Skip to content

Commit

Permalink
fix fs test
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian committed Jan 13, 2025
1 parent b47744e commit 4cc12af
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions provider/fs/src/datapath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,8 @@ icu_provider_registry::registry!(cb);

#[test]
fn test_path_to_string() {
struct TestCase {
pub path: DataMarkerPath,
pub expected: &'static str,
}

for cas in [
TestCase {
path: data_marker_path!("core/cardinal@1"),
expected: "core/cardinal@1",
},
TestCase {
path: data_marker_path!("core/maxlengthsubcatg@1"),
expected: "core/maxlengthsubcatg@1",
},
TestCase {
path: data_marker_path!("core/cardinal@65535"),
expected: "core/cardinal@65535",
},
] {
let path = get_data_marker_path(cas.path);
assert_eq!(Some(cas.expected), path);
}
assert_eq!(
get_data_marker_path(data_marker_path!("core/helloworld@1")),
Some("core/helloworld@1")
);
}

0 comments on commit 4cc12af

Please sign in to comment.