Fix Json5 test
This commit is contained in:
parent
41cafc0987
commit
031f729d32
|
@ -16,7 +16,7 @@ public class Json5Test extends TestCase {
|
||||||
" leadingDecimalPoint: .8675309, andTrailing: 8675309.,\n" +
|
" leadingDecimalPoint: .8675309, andTrailing: 8675309.,\n" +
|
||||||
" positiveSign: +1,\n" +
|
" positiveSign: +1,\n" +
|
||||||
" trailingComma: 'in objects', andIn: ['arrays',],\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());
|
"}", ExampleModel.class).isDefault());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ public class Json5Test extends TestCase {
|
||||||
public boolean isDefault() {
|
public boolean isDefault() {
|
||||||
return unquoted.equals("and you can quote me on that")
|
return unquoted.equals("and you can quote me on that")
|
||||||
&& singleQuotes.equals("I can use \"double quotes\" here")
|
&& 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)
|
&& hexadecimal.equals(0xdecaf)
|
||||||
&& leadingDecimalPoint.equals(.8675309)
|
&& leadingDecimalPoint.equals(.8675309)
|
||||||
&& andTrailing.equals(8675309.)
|
&& andTrailing.equals(8675309.)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user