mirror of
https://github.com/cerbero90/json-parser.git
synced 2025-01-17 13:08:16 +01:00
Add checks for unicode characters
This commit is contained in:
parent
1d85f387d7
commit
a5146b2ef6
2
tests/fixtures/parsing/array.json
vendored
2
tests/fixtures/parsing/array.json
vendored
@ -1 +1 @@
|
||||
[1, "", "foo", "\"bar\"", 3.14, false, null, [], {}]
|
||||
[1, "", "foo", "\"bar\"", "hej då", 3.14, false, null, [], {}]
|
||||
|
2
tests/fixtures/parsing/array.php
vendored
2
tests/fixtures/parsing/array.php
vendored
@ -1,3 +1,3 @@
|
||||
<?php
|
||||
|
||||
return [1, '', 'foo', '"bar"', 3.14, false, null, [], []];
|
||||
return [1, '', 'foo', '"bar"', 'hej då', 3.14, false, null, [], []];
|
||||
|
1
tests/fixtures/parsing/object.json
vendored
1
tests/fixtures/parsing/object.json
vendored
@ -4,6 +4,7 @@
|
||||
"string": "foo",
|
||||
"escaped_string": "\"bar\"",
|
||||
"\"escaped_key\"": "baz",
|
||||
"unicode": "hej då",
|
||||
"float": 3.14,
|
||||
"bool": false,
|
||||
"null": null,
|
||||
|
1
tests/fixtures/parsing/object.php
vendored
1
tests/fixtures/parsing/object.php
vendored
@ -6,6 +6,7 @@ return [
|
||||
'string' => 'foo',
|
||||
'escaped_string' => '"bar"',
|
||||
'"escaped_key"' => 'baz',
|
||||
"unicode" => "hej då",
|
||||
'float' => 3.14,
|
||||
'bool' => false,
|
||||
'null' => null,
|
||||
|
Loading…
x
Reference in New Issue
Block a user