This commit is contained in:
Looly
2022-06-13 21:55:25 +08:00
parent 917f6eeead
commit 1e9645c2e8
2 changed files with 5 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ public class IssueI59LW4Test {
@Test
public void bytesInJSONArrayTest(){
final JSONArray jsonArray = JSONUtil.createArray().set(new byte[]{1});
Assert.assertEquals("[\"AQ==\"]", jsonArray.toString());
Assert.assertEquals("[[1]]", jsonArray.toString());
final byte[] bytes = jsonArray.getBytes(0);
Assert.assertArrayEquals(new byte[]{1}, bytes);