We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69b276a commit c412d72Copy full SHA for c412d72
scala-test/src/test/scala/com/baeldung/scala/scalatest/collectiontest/CollectionTest.scala
@@ -74,7 +74,7 @@ class CollectionTest extends AnyFlatSpec with Matchers {
74
Random.shuffle(cities) should contain theSameElementsAs (cities2)
75
cities shouldBe cities2
76
cities ++ cities should contain only ("Barcelona", "Hamburg") // but duplicates are allowed
77
- cities should contain only cities2
+ cities should contain only ("Barcelona", "Hamburg")
78
}
79
80
it should "pass if both collections contains exactly same elements in same order" in {
0 commit comments