Skip to content

Commit

Permalink
Merge pull request #100 from fathzer/master
Browse files Browse the repository at this point in the history
Fixes UnicodePrinterTest (does'nt compile in java 8 and fails in 11)
  • Loading branch information
bhlangonijr authored Jul 22, 2022
2 parents b63a867 + 6b7befe commit 55ab421
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>11</source>
<target>11</target>
</configuration>
</plugin>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void testPrintBoard() {
printer.print(board);

String repr = baos.toString(StandardCharsets.UTF_8);
assertEquals("Should be a white rook", '\u2656', repr.charAt(0));
assertEquals("Should be a black rook", '\u265C', repr.charAt(63));
assertEquals("Should be a white rook at pos 0\n"+repr, '\u2656', repr.charAt(0));
assertEquals("Should be a black rook at pos 63\n"+repr, '\u265C', repr.split("\n")[7].charAt(7));
}
}

0 comments on commit 55ab421

Please sign in to comment.