From 66cfb2371b02bd3d66d092d444ac7f8e7a842916 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 03:25:36 +0900 Subject: test(json): port JsonFormatterTest Stubbed as todo!()/ignored: Composer\Json\JsonFormatter is not yet ported. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/tests/json/json_formatter_test.rs | 16 ++++++++++++++++ crates/shirabe/tests/json/main.rs | 1 + 2 files changed, 17 insertions(+) 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; -- cgit v1.3.1