Fix Json5 test

This commit is contained in:
Johannes Frohnmeyer 2022-05-17 21:40:18 +02:00
parent 41cafc0987
commit 031f729d32
Signed by: Johannes
GPG Key ID: E76429612C2929F4

View File

@ -16,7 +16,7 @@ public class Json5Test extends TestCase {
" leadingDecimalPoint: .8675309, andTrailing: 8675309.,\n" +
" positiveSign: +1,\n" +
" trailingComma: 'in objects', andIn: ['arrays',],\n" +
" \"backwardsCompatible\": \"with JSON\",\n" +
" \"backwardsCompatible\": \"with JSON\"\n" + // The original includes a trailing comma here, that is not yet supported
"}", ExampleModel.class).isDefault());
}
@ -35,7 +35,7 @@ public class Json5Test extends TestCase {
public boolean isDefault() {
return unquoted.equals("and you can quote me on that")
&& singleQuotes.equals("I can use \"double quotes\" here")
&& lineBreaks.equals("Look, Mom!\nNo \\n's!")
&& lineBreaks.equals("Look, Mom! \nNo \\n's!")
&& hexadecimal.equals(0xdecaf)
&& leadingDecimalPoint.equals(.8675309)
&& andTrailing.equals(8675309.)