Browse Source

add test for #6493

Dan Korostelev 8 years ago
parent
commit
dbbafc09c0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/unit/src/unit/TestJson.hx

+ 1 - 0
tests/unit/src/unit/TestJson.hx

@@ -88,6 +88,7 @@ class TestJson extends Test {
 		deepId( {array: mix} );
 		deepId( {array: mix} );
 
 
 		eq( haxe.format.JsonParser.parse('"\\u00E9"'), "é" );
 		eq( haxe.format.JsonParser.parse('"\\u00E9"'), "é" );
+		exc(() -> haxe.format.JsonParser.parse('{"""a": 1}'));
 
 
 		eq(haxe.format.JsonPrinter.print(Math.POSITIVE_INFINITY), "null");
 		eq(haxe.format.JsonPrinter.print(Math.POSITIVE_INFINITY), "null");
 		eq(haxe.format.JsonPrinter.print(Math.NEGATIVE_INFINITY), "null");
 		eq(haxe.format.JsonPrinter.print(Math.NEGATIVE_INFINITY), "null");