Skip to content

Commit

Permalink
update KVP test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
esaulpaugh committed Jun 5, 2024
1 parent cfea774 commit 3ea6389
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/com/esaulpaugh/headlong/rlp/EIP778Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ public void testOutOfOrder() throws Throwable {

@Test
public void testToString() {
assertEquals("key0 --> 76616c756530", new KVP("key0", "value0", ASCII).toString());
assertEquals("key1 --> [\"dd\", \"\"]", new KVP("key1", RLPDecoder.RLP_STRICT.wrapBits(0xc482646480L)).toString());
assertEquals("ip --> 3235352e3130312e302e313238", new KVP(IP, "255.101.0.128", ASCII).toString());
assertEquals("client --> [\"dd\", \"\"]", new KVP(KVP.CLIENT, RLPDecoder.RLP_STRICT.wrapBits(0xc482646480L)).toString());
}
}

0 comments on commit 3ea6389

Please sign in to comment.