mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Fixed stupid bugs in metadata encoder and parser.
This commit is contained in:
@@ -86,7 +86,7 @@ public class MetadataEncoderParserImplTest extends BriarTestCase {
|
||||
d.put("test", b);
|
||||
Metadata metadata = e.encode(d);
|
||||
|
||||
assertEquals(p.parse(metadata).getRaw("test", null), b);
|
||||
assertArrayEquals(p.parse(metadata).getRaw("test", null), b);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -149,7 +149,7 @@ public class MetadataEncoderParserImplTest extends BriarTestCase {
|
||||
assertEquals(p.parse(metadata).getDictionary("test", null)
|
||||
.getList("Two", null).get(0), "\u0080");
|
||||
assertEquals(p.parse(metadata).getDictionary("test", null)
|
||||
.getList("Two", null).get(0), "\uD800\uDC00");
|
||||
.getList("Two", null).get(1), "\uD800\uDC00");
|
||||
|
||||
assertEquals(p.parse(metadata).getDictionary("another test", null)
|
||||
.getBoolean("should be true", false), true);
|
||||
|
||||
Reference in New Issue
Block a user