Skip to content

Commit

Permalink
WIP: enable json tests for json_encode in k2-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
irlgirl committed Nov 28, 2024
1 parent 7032b33 commit 36b3357
Show file tree
Hide file tree
Showing 40 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion tests/phpt/dl/395_subnormal_doubles_in_json.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php

function test_json_encode() {
Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/108_tuples_and_shapes_forbidden.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@kphp_should_fail k2_skip
@kphp_should_fail
/Field WithTuple::\$tupe is @var tuple\(int, string\), it's incompatible with json/
/Field WithShape::\$shape is @var shape\(a:int, b:string\), it's incompatible with json/
/Field WithBuiltin::\$ex is @var \?ArgumentCountError, it's incompatible with json/
Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/10_array_nested.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/114_field_reorder.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php

require_once 'kphp_tester_include.php';
Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/11_array_of_mixed.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/12_array_string_int_key_conversions.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/13_nan_inf.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/14_override_json_keys.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/15_default_values.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/16_json_obj_keys_order.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/18_rename_field_policy.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/19_skip_field.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/1_basic_types.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/20_fields_rename.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/21_visibility_policy.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/22_skip_if_default.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/23_float_precision.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/24_flatten_classes.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/25_pretty_print.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/26_raw_string.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/27_encoder_namespaces.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';
require __DIR__ . '/include/MyJsonEncoder.php';
Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/28_strings_escape.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/29_derived_encode.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/2_null_object.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/30_more_encode_array.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/31_russian_cp1251.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
// important! this file is saved as cp1251
require_once 'kphp_tester_include.php';
Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/31_russian_utf8.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
// important! this file is saved as utf-8
require_once 'kphp_tester_include.php';
Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/32_preserve_zero_fraction.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/33_required_fields.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/34_specified_fields.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/35_for_encoder.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/36_wakeup_after_decode.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/38_optimized_init_val.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/3_nested_objects.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/4_mixed_values.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/5_optional_values.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/6_invalid_json.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/7_conversion_errors.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/8_array_vector.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpt/json/9_array_map.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ok k2_skip
@ok
<?php
require_once 'kphp_tester_include.php';

Expand Down

0 comments on commit 36b3357

Please sign in to comment.