Skip to content

Commit c412d72

Browse files
committed
Fixed test for scalatest matchers
1 parent 69b276a commit c412d72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scala-test/src/test/scala/com/baeldung/scala/scalatest/collectiontest/CollectionTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class CollectionTest extends AnyFlatSpec with Matchers {
7474
Random.shuffle(cities) should contain theSameElementsAs (cities2)
7575
cities shouldBe cities2
7676
cities ++ cities should contain only ("Barcelona", "Hamburg") // but duplicates are allowed
77-
cities should contain only cities2
77+
cities should contain only ("Barcelona", "Hamburg")
7878
}
7979

8080
it should "pass if both collections contains exactly same elements in same order" in {

0 commit comments

Comments
 (0)