Skip to content

Commit 6bc62ee

Browse files
committed
improved property for day 22
1 parent 05227bd commit 6bc62ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

solution/day22/src/test/java/DiamondTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void contains_2_letters_per_line() {
4242
.drop(1)
4343
.dropRight(1)
4444
.map(line -> line.replaceAll(" ", ""))
45-
.forAll(x -> x.length() == 2)
45+
.forAll(x -> x.length() == 2 && x.charAt(0) == x.charAt(1))
4646
);
4747
}
4848

0 commit comments

Comments
 (0)