From 903d37a254f931e79ecded26f30a3b517c6d27da Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 03:16:34 +0900 Subject: test(repository): port InstalledRepositoryTest testAddRepository maps the expected LogicException to #[should_panic] since InstalledRepository::add_repository guards with assert!. testFindPackagesWithReplacersAndProviders is #[ignore] because that assert omits InstalledRepositoryInterface, so adding an InstalledArrayRepository panics before the lookup runs. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/tests/platform/version_test.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'crates/shirabe/tests/platform') diff --git a/crates/shirabe/tests/platform/version_test.rs b/crates/shirabe/tests/platform/version_test.rs index aada5f9..c2511d5 100644 --- a/crates/shirabe/tests/platform/version_test.rs +++ b/crates/shirabe/tests/platform/version_test.rs @@ -35,7 +35,12 @@ fn provide_openssl_versions() -> Vec<(&'static str, &'static str, bool, Option<& ("1.2.3zh-fips", "1.2.3.34", true, None), ("1.2.3zh-fips-dev", "1.2.3.34-dev", true, None), // Additional cases - ("1.2.3zh-fips-rc3", "1.2.3.34-rc3", true, Some("1.2.3.34-RC3")), + ( + "1.2.3zh-fips-rc3", + "1.2.3.34-rc3", + true, + Some("1.2.3.34-RC3"), + ), ("1.2.3zh-alpha10-fips", "1.2.3.34-alpha10", true, None), ("1.1.1l (Schannel)", "1.1.1.12", false, None), // Check that alphabetical patch levels overflow correctly -- cgit v1.3.1