We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05227bd commit 6bc62eeCopy full SHA for 6bc62ee
1 file changed
solution/day22/src/test/java/DiamondTests.java
@@ -42,7 +42,7 @@ void contains_2_letters_per_line() {
42
.drop(1)
43
.dropRight(1)
44
.map(line -> line.replaceAll(" ", ""))
45
- .forAll(x -> x.length() == 2)
+ .forAll(x -> x.length() == 2 && x.charAt(0) == x.charAt(1))
46
);
47
}
48
0 commit comments