Open GoogleCodeExporter opened 8 years ago
This may be because of a change in Scala from 2.9 to 2.10, I'm not sure, but
regardless what I'd recommend you write instead is:
assert("something" === something)
And it will give you a good error message if it fails. I checked the code and
it will throw an NPE if you pass null as the clue object. This is the specified
behavior in the Scaladoc, but possibly it would be better if it just
transformed a null into the message "null". I'll think about that.
Original comment by b...@artima.com
on 6 Jan 2013 at 9:59
Thanks. Again, I am new to both Scala and Scalatest., my expectations for how
something should work come from the Java world and JUnit. That doesn't make it
right. I've changed the behavior of some of my assertions with your suggestion
and using the 'should' matchers.
Original comment by zackdjon...@gmail.com
on 6 Jan 2013 at 4:12
No problem. I would like to to work like you expect. I'll take a look at
JUnit's behavior when a null "clue string" is passed.
Original comment by b...@artima.com
on 6 Jan 2013 at 10:40
Original issue reported on code.google.com by
zackdjon...@gmail.com
on 6 Jan 2013 at 7:11