-
-
Save ruslux/402eb6eadebce59eeb7fda8e154eadaf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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