seratch / scalatest

Automatically exported from code.google.com/p/scalatest
Apache License 2.0
0 stars 0 forks source link

"should contain" / "should have" may not compile #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
> What steps will reproduce the problem?

1. check out http://www.assembla.com/code/scala-graph/subversion/nodes/trunk
2. build with SBT
3. inspect and modify TEdit.scala and TTraversal.scala in 
src\test\scala\scalax\collection as described below

> What is the expected output? What do you see instead?

In TEdit, line 146, replacing the valid code with that commented out causes a 
compiler error. So, in some situations, "x should contain (y)" does not 
compile. As a fall-back, I have to use "x.contains(y) should be (true)".

In TTraversable, line 212, replacing the valid code with that commented out 
causes a compiler error. So, in some situations, "x should have (x1 (y1), ...)" 
does not compile. As a fall-back, I have to use repeated "x1 should be (y1)".

> What version of the product are you using? On what operating system?
Scalatest 1.6.1 / Windows XP

Original issue reported on code.google.com by empen.sc...@gmail.com on 30 Jul 2011 at 12:47