Skip to content

Instantly share code, notes, and snippets.

@ruslux

ruslux/car.cr Secret

Created June 10, 2016 07:57
Show Gist options
  • Save ruslux/402eb6eadebce59eeb7fda8e154eadaf to your computer and use it in GitHub Desktop.
Save ruslux/402eb6eadebce59eeb7fda8e154eadaf to your computer and use it in GitHub Desktop.
require "spec"
module Account
struct Human
@age : Int32 = 30
end
struct Car
@human : Human = Human.new
property human
end
end
describe Account do
it "car is equal" do
car1 = Account::Car.new
car2 = Account::Car.new
car1.human.should eq car2.human
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment