Open sffc opened 3 years ago
@Manishearth added test on the Diplomat side for this. https://github.com/rust-diplomat/diplomat/pull/95
If folks want to work on this, it essentially involves adding more tests like https://github.com/unicode-org/icu4x/blob/main/ffi/diplomat/wasm/test/fixed-decimal.mjs , perhaps one for plural rules that tries all kinds of plural options. We have some plural rules tests in the cpp folder you can start out with.
The layout of the ICU4XPluralOperands struct changed in https://github.com/unicode-org/icu4x/pull/1100, and yet it was not necessary to make any changes to the tests. This suggests that the test coverage for this corner of the WASM API is weak. We should add more thorough tests.
Related: https://github.com/rust-diplomat/diplomat/issues/91