In RSPC, what should be the difference between using == ... and < Code> eql (...) ? I saw that the RSPC documentation always uses eql , but == is less typing and easy to read What am I missing?
This is really simple, in fact: should == test subject Send message to == , should eql subject to exam eql? sends a message In other words: Two separate tests send two completely different messages, which call two completely different methods and thus do two completely different things. Specifically, eql? is harder than == , but equals? Less harder than
Comments
Post a Comment