ソースを参照

[tests] add a test for #3297

(fixed thanks to #9549)
Jens Fischer 5 年 前
コミット
bc60a98cba
1 ファイル変更9 行追加0 行削除
  1. 9 0
      tests/unit/src/unit/issues/Issue3297.hx

+ 9 - 0
tests/unit/src/unit/issues/Issue3297.hx

@@ -0,0 +1,9 @@
+package unit.issues;
+
+class Issue3297 extends Test {
+	function test() {
+		var json = haxe.Json.parse('{ "array": [1, 2, 3] }');
+		eq(json.array.length, 3);
+		eq(json.array[0], 1);
+	}
+}