diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 03:25:36 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 03:25:36 +0900 |
| commit | 66cfb2371b02bd3d66d092d444ac7f8e7a842916 (patch) | |
| tree | ceda9e208e7defd6af933958a8ceb0a632657863 /crates/shirabe/tests/json | |
| parent | 88137321d0e02eaa1a929146dd257f79bda53ebd (diff) | |
| download | php-shirabe-66cfb2371b02bd3d66d092d444ac7f8e7a842916.tar.gz php-shirabe-66cfb2371b02bd3d66d092d444ac7f8e7a842916.tar.zst php-shirabe-66cfb2371b02bd3d66d092d444ac7f8e7a842916.zip | |
test(json): port JsonFormatterTest
Stubbed as todo!()/ignored: Composer\Json\JsonFormatter is not yet ported.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/json')
| -rw-r--r-- | crates/shirabe/tests/json/json_formatter_test.rs | 16 | ||||
| -rw-r--r-- | crates/shirabe/tests/json/main.rs | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/crates/shirabe/tests/json/json_formatter_test.rs b/crates/shirabe/tests/json/json_formatter_test.rs index 78eb01b..328c942 100644 --- a/crates/shirabe/tests/json/json_formatter_test.rs +++ b/crates/shirabe/tests/json/json_formatter_test.rs @@ -1 +1,17 @@ //! ref: composer/tests/Composer/Test/Json/JsonFormatterTest.php + +/// Test if ę will get correctly formatted (unescaped) +/// https://github.com/composer/composer/issues/2613 +#[test] +#[ignore = "Composer\\Json\\JsonFormatter (json/json_formatter.rs) is not yet ported"] +fn test_unicode_with_prepended_slash() { + todo!() +} + +/// Surrogate pairs are intentionally skipped and not unescaped +/// https://github.com/composer/composer/issues/7510 +#[test] +#[ignore = "Composer\\Json\\JsonFormatter (json/json_formatter.rs) is not yet ported"] +fn test_utf16_surrogate_pair() { + todo!() +} diff --git a/crates/shirabe/tests/json/main.rs b/crates/shirabe/tests/json/main.rs index a98ebc5..b26779f 100644 --- a/crates/shirabe/tests/json/main.rs +++ b/crates/shirabe/tests/json/main.rs @@ -1 +1,2 @@ +mod json_formatter_test; mod json_validation_exception_test; |
