Skip to content

Commit

Permalink
minor tweaks to test added
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Oct 17, 2023
1 parent ef7660b commit ca5ccd9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.fasterxml.jackson.dataformat.yaml.failing;

import com.fasterxml.jackson.core.JacksonException;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.yaml.ModuleTestBase;

Expand All @@ -12,6 +13,7 @@ public class FuzzYAMLRead63273Test extends ModuleTestBase
public void testReadBoundary63273() throws Exception
{
// As bytes:
/*
{
byte[] BYTES = new byte[] {
'!', ' ', '>', (byte) 0xF0,
Expand All @@ -24,6 +26,7 @@ public void testReadBoundary63273() throws Exception
System.err.printf(" %02x: %02x -> '%c'\n", i, (int) str.charAt(i), str.charAt(i));
}
}
*/

// Or as a UCS-2 String
String doc = "! >\uD835\uDFD6C!";
Expand All @@ -33,6 +36,7 @@ public void testReadBoundary63273() throws Exception
MAPPER.readTree(doc);
// Ok; don't care about content, just buffer reads
} catch (JacksonException e) {
// !!! TODO: proper checking of exception
verifyException(e, "foo");
}
}
Expand Down

0 comments on commit ca5ccd9

Please sign in to comment.