Skip to content

Commit

Permalink
More tests for the reader and write equality
Browse files Browse the repository at this point in the history
  • Loading branch information
DavyLandman committed Sep 19, 2024
1 parent 21c2bf4 commit e289490
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ private String readerToString(IString a) {
private void assertEqualWriteAndRead(IString one, IString two) {
assertEquals(writerToString(one), writerToString(two), "IString::write had different results");
assertEquals(readerToString(one), readerToString(two), "IString::asReader had different results");
assertEquals(one.getValue(), writerToString(one), "IString::write should be the same as getValue");
assertEquals(one.getValue(), readerToString(one), "IString::asReader should be the same as getValue");
}

private void assertEqualCharAt(IString one, IString two) {
Expand Down

0 comments on commit e289490

Please sign in to comment.