Skip to content

Commit

Permalink
improved property for day 22
Browse files Browse the repository at this point in the history
  • Loading branch information
ythirion committed Dec 26, 2023
1 parent 05227bd commit 6bc62ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solution/day22/src/test/java/DiamondTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void contains_2_letters_per_line() {
.drop(1)
.dropRight(1)
.map(line -> line.replaceAll(" ", ""))
.forAll(x -> x.length() == 2)
.forAll(x -> x.length() == 2 && x.charAt(0) == x.charAt(1))
);
}

Expand Down

0 comments on commit 6bc62ee

Please sign in to comment.