Skip to content

Commit 06405ce

Browse files
committed
Tuple test fixed
1 parent d1971e2 commit 06405ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scala-core-modules/scala-core/src/test/scala/com/baeldung/scala/tuples/TuplesUnitTest.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ class TuplesUnitTest extends AnyWordSpec with Matchers {
1616
name shouldBe "Joe"
1717
age shouldBe 34
1818
}
19-
"not contain more then 22 elements" in {
20-
"(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23)" shouldNot compile
19+
// From Scala3 onwards, we can have more than 22 fields in tuple.
20+
"allow more then 22 elements in Scala 3" in {
21+
"(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23)" should compile
2122
}
2223
}
2324
}

0 commit comments

Comments
 (0)