Skip to content

Commit

Permalink
hm
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian committed Jul 4, 2024
1 parent 8547808 commit a004792
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 35 deletions.
3 changes: 2 additions & 1 deletion components/timezone/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 0 additions & 34 deletions ffi/ecma402/src/pluralrules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,40 +188,6 @@ pub(crate) mod internal {
assert_eq!(test.expected, actual.as_str(), "test: {:?}", &test);
}
}

#[test]
fn format_conversion() {
#[derive(Debug)]
struct TestCase {
n: f64,
opts: Options,
expected: PluralOperands,
}
let tests = [TestCase {
n: 1.5,
opts: Options {
in_type: Type::Cardinal,
minimum_integer_digits: 3,
minimum_fraction_digits: 2,
maximum_fraction_digits: 3,
minimum_significant_digits: 3,
maximum_significant_digits: 4,
},
expected: RawPluralOperands {
i: 1,
v: 2,
w: 1,
f: 50,
t: 5,
c: 0,
}
.into(),
}];
for test in tests {
let actual = to_icu4x_operands(test.n, test.opts.clone());
assert_eq!(test.expected, actual, "test: {:?}", &test);
}
}
}
}

Expand Down

0 comments on commit a004792

Please sign in to comment.