This line of code is from a test cases written in specs:
runtime.ev("\"hello world\"")._with(interpreter)Runtime is a Scala class and so is interpreter. I added println()'s before and after, and at different methods in this statement. Now, the baffling thing, the really strange thing (at least in my mind), is that the left hand side of the must, gets evaluated THREE times. But this code only run once. How can that happen? What does Scala do here? (And must doesn't seem to be a special method. I looked at the implementation, and it's just a regular method on a trait, mixed into the Scala Object.
must be_==(runtime.stringFor("hello world"))
Someone please explain this! =)