aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/util/package_sorter_test.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-21 21:25:15 +0900
committernsfisis <nsfisis@gmail.com>2026-06-22 00:49:03 +0900
commitf691b864b687f251c3b266e8cff2774d730567ba (patch)
tree86d361d44531240436fa6a55589acc206b9aae01 /crates/shirabe/tests/util/package_sorter_test.rs
parent8db88c2da2cf387bc58843ac5093bb15b9fc3252 (diff)
downloadphp-shirabe-f691b864b687f251c3b266e8cff2774d730567ba.tar.gz
php-shirabe-f691b864b687f251c3b266e8cff2774d730567ba.tar.zst
php-shirabe-f691b864b687f251c3b266e8cff2774d730567ba.zip
test(php-shim): un-ignore tests now unblocked by implemented shims
Remove #[ignore] from tests gated solely on a shim function that is now implemented, where the test passes: - metapackage_installer::test_update (version_compare) - platform_requirement_filter_factory::test_from_bool_throws... (get_debug_type) - runtime::test_parse_extension_info (html_entity_decode/strip_tags) - package_sorter::test_sorting_does_nothing... (strnatcasecmp) - no_proxy_pattern::test_host_name/test_port (unpack/substr_count) - version_parser::test_is_upgrade (version_compare) - pool::test_what_provides_package_with_constraint - proxy_item::test_throws_on_malformed_url Update the ignore reason where the cited shim is now implemented but the test still cannot pass for a different reason: - no_proxy_pattern::test_ip_address/test_ip_range (IPv4-mapped IPv6 gap) - package_sorter::test_sorting_orders... (look-around regex) - proxy_item::test_url_formatting (parse_url host discrepancy) - json_manipulator/json_config_source/filesystem_repository stubs (test bodies are still todo!(), not yet ported) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/util/package_sorter_test.rs')
-rw-r--r--crates/shirabe/tests/util/package_sorter_test.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/shirabe/tests/util/package_sorter_test.rs b/crates/shirabe/tests/util/package_sorter_test.rs
index 1b95824..f84ff09 100644
--- a/crates/shirabe/tests/util/package_sorter_test.rs
+++ b/crates/shirabe/tests/util/package_sorter_test.rs
@@ -32,7 +32,6 @@ fn names(packages: &[PackageInterfaceHandle]) -> Vec<String> {
}
#[test]
-#[ignore = "PackageSorter::sort_packages reaches strnatcasecmp, a todo!() in the php-shim"]
fn test_sorting_does_nothing_with_no_dependencies() {
let packages = vec![
create_package("foo/bar1", &[]),
@@ -142,7 +141,7 @@ fn sorting_orders_dependencies_higher_than_package_cases() -> Vec<(
}
#[test]
-#[ignore = "PackageSorter::sort_packages reaches strnatcasecmp, a todo!() in the php-shim"]
+#[ignore = "constraint parsing reaches a look-around regex unsupported by the regex-crate shim (Preg)"]
fn test_sorting_orders_dependencies_higher_than_package() {
for (packages, expected_ordered_list, weights) in
sorting_orders_dependencies_higher_than_package_cases()