deal with yet another locale/platform issue (#480)

This test fails on my system. As previously decided, until we can
figure out a better solution for this issue, for now we just check
to make sure the output is a non-empty string.
This commit is contained in:
R. Andrew Ohana 2018-07-14 20:45:49 -07:00 committed by Alex Crichton
parent 0b78b345e1
commit 16cbca74e2

View File

@ -962,9 +962,11 @@ fn to_locale_string() {
import * as wasm from "./out";
export function test() {
assert.equal(wasm.array_to_locale_string([1, 'a', new Date('21 Dec 1997 14:12:00 UTC')], 'en', {timeZone: 'UTC'}), '1,a,12/21/1997, 2:12:00 PM');
const output = wasm.array_to_locale_string([1, 'a', new Date('21 Dec 1997 14:12:00 UTC')], 'en', {timeZone: 'UTC'});
assert.equal(typeof output, 'string');
assert.ok(output.length > 0);
}
"#,
)
.test()
}
}