Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Oct 23, 2023
1 parent 1e69045 commit 7b2dd55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions terminal/src/test/java/org/jline/utils/PumpReaderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ public void testSplitSurrogatePair() throws IOException {
InputStream inputStream = pump.createInputStream(StandardCharsets.UTF_8);
byte[] expectedEncoded = "\uD83D\uDE0A".getBytes(StandardCharsets.UTF_8);
assertEquals(4, expectedEncoded.length); // verify that test is correctly implemented
assertEquals(expectedEncoded[0], inputStream.read());
assertEquals(expectedEncoded[1], inputStream.read());
assertEquals(expectedEncoded[2], inputStream.read());
assertEquals(expectedEncoded[3], inputStream.read());
assertEquals(expectedEncoded[0] & 0xff, inputStream.read());
assertEquals(expectedEncoded[1] & 0xff, inputStream.read());
assertEquals(expectedEncoded[2] & 0xff, inputStream.read());
assertEquals(expectedEncoded[3] & 0xff, inputStream.read());
assertEquals(-1, inputStream.read());
}

Expand Down

0 comments on commit 7b2dd55

Please sign in to comment.