Skip to content

Commit 1d5a14c

Browse files
committed
DataHandleTest: purge non-ASCII characters
This makes the source code as accessible as possible, by escaping the non-ASCII Unicode characters.
1 parent 9de70b4 commit 1d5a14c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/org/scijava/io/handle/DataHandleTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,9 @@ public <L extends Location> void checkAdvancedStringWriting(
404404
final Supplier<DataHandle<L>> writeHandleCreator) throws IOException
405405
{
406406
// test writeUTF() / readUTF()
407-
final String utfTestString = "abcäúöäéëåáðßø¶🤓🍕😋";
407+
final String utfTestString = "abc\u00E4\u00FA\u00F6\u00E4" +
408+
"\u00E9\u00EB\u00E5\u00E1\u00F0\u00DF\u00EF\u0153\u0153" +
409+
"\u00F8\u00B6\uD83E\uDD13\uD83C\uDF55\uD83D\uDE0B";
408410
try (final DataHandle<L> writeHandle = writeHandleCreator.get()) {
409411
writeHandle.writeUTF(utfTestString);
410412
}

0 commit comments

Comments
 (0)