diff options
Diffstat (limited to 'tests/03_bugs/09_reject_invalid_array_indexes')
-rw-r--r-- | tests/03_bugs/09_reject_invalid_array_indexes | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/03_bugs/09_reject_invalid_array_indexes b/tests/03_bugs/09_reject_invalid_array_indexes deleted file mode 100644 index a7e5272..0000000 --- a/tests/03_bugs/09_reject_invalid_array_indexes +++ /dev/null @@ -1,25 +0,0 @@ -Since libjson-c's json_object_get_int64() returns 0 for any input value -that has no integer representation, any kind of invalid array index -incorrectly yielded the first array element. - --- Testcase -- -{% - x = [1, 2, 3]; - - print([ - x[1], - x["1"], - x[1.0], - x[1.1], - x.foo, - x["foo"], - x["0abc"], - x[x], - x[{ foo: true }] - ], "\n"); -%} --- End -- - --- Expect stdout -- -[ 2, 2, 2, null, null, null, null, null, null ] --- End -- |