Skip to content

Commit ad6347a

Browse files
committed
Update results of comparing json minefield tests
1 parent 3a8d229 commit ad6347a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/compare_decode_results.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
// See comment at bottom file for the results the last time this was run in php 8.2.0-dev
23

34
function compare_decode_result(string $filename) {
45
echo "$filename: ";
@@ -68,7 +69,7 @@ function compare_decode_result(string $filename) {
6869
i_string_1st_surrogate_but_2nd_missing.json: i_string_1st_surrogate_but_2nd_missing.json:
6970
=> same(both throw): JSON(JsonException: Single unpaired UTF-16 surrogate in unicode escape) SIMDJSON(RuntimeException: Problem while parsing a string)
7071
i_string_1st_valid_surrogate_2nd_invalid.json: i_string_1st_valid_surrogate_2nd_invalid.json:
71-
=> ERROR: json threw(JsonException Single unpaired UTF-16 surrogate in unicode escape) but simdjson did not throw
72+
=> same(both throw): JSON(JsonException: Single unpaired UTF-16 surrogate in unicode escape) SIMDJSON(RuntimeException: Problem while parsing a string)
7273
i_string_UTF-16LE_with_BOM.json: i_string_UTF-16LE_with_BOM.json:
7374
=> same(both throw): JSON(JsonException: Malformed UTF-8 characters, possibly incorrectly encoded) SIMDJSON(RuntimeException: Within strings, some characters must be escaped, we found unescaped characters)
7475
i_string_UTF-8_invalid_sequence.json: i_string_UTF-8_invalid_sequence.json:
@@ -80,7 +81,7 @@ function compare_decode_result(string $filename) {
8081
i_string_incomplete_surrogate_pair.json: i_string_incomplete_surrogate_pair.json:
8182
=> same(both throw): JSON(JsonException: Single unpaired UTF-16 surrogate in unicode escape) SIMDJSON(RuntimeException: Problem while parsing a string)
8283
i_string_incomplete_surrogates_escape_valid.json: i_string_incomplete_surrogates_escape_valid.json:
83-
=> ERROR: json threw(JsonException Single unpaired UTF-16 surrogate in unicode escape) but simdjson did not throw
84+
=> same(both throw): JSON(JsonException: Single unpaired UTF-16 surrogate in unicode escape) SIMDJSON(RuntimeException: Problem while parsing a string)
8485
i_string_invalid_lonely_surrogate.json: i_string_invalid_lonely_surrogate.json:
8586
=> same(both throw): JSON(JsonException: Single unpaired UTF-16 surrogate in unicode escape) SIMDJSON(RuntimeException: Problem while parsing a string)
8687
i_string_invalid_surrogate.json: i_string_invalid_surrogate.json:

0 commit comments

Comments
 (0)