Skip to content

Commit 21f49d0

Browse files
committed
reenable part of js_globals::Number::to_locale_string
1 parent 8abecba commit 21f49d0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/all/js_globals/Number.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
use super::project;
44

55

6-
// TODO: test seems to be system dependent, disable for now
7-
// #[test]
8-
#[allow(dead_code)]
6+
#[test]
97
fn to_locale_string() {
108
project()
119
.file("src/lib.rs", r#"
@@ -26,9 +24,10 @@ fn to_locale_string() {
2624
2725
export function test() {
2826
let number = 1234.45;
29-
assert.equal(wasm.to_locale_string(number, "de-DE"), "1,234.45");
3027
assert.equal(wasm.to_locale_string(number, "en-US"), "1,234.45");
31-
assert.equal(wasm.to_locale_string(number, "zh-Hans-CN-u-nu-hanidec"), "1,234.45");
28+
// TODO: these tests seems to be system dependent, disable for now
29+
// assert.equal(wasm.to_locale_string(number, "de-DE"), "1,234.45");
30+
// assert.equal(wasm.to_locale_string(number, "zh-Hans-CN-u-nu-hanidec"), "1,234.45");
3231
}
3332
"#)
3433
.test()

0 commit comments

Comments
 (0)