Conversation
3e9b0ea to
1fb5f92
Compare
|
Updated tests to be slightly less "golden string" -- instead of checking for exact match between formatted string and expected string, now expected is a substring without whitespace, and test is for whether formatted string includes the expected substring. |
ptomato
left a comment
There was a problem hiding this comment.
Thanks! Your effort in using fewer "golden strings" is appreciated.
There was a problem hiding this comment.
I'm not sure about this, but I think you need to include en-US-u-nu-arab and the others in this list as well.
There was a problem hiding this comment.
Unlike the previous test, you might actually be able to make this one even less "golden", with something like
const expected = new Intl.NumberFormat(locale).format(seconds);…formatting in various numbering systems
…t` for formatting in various numbering systems
d9a4950 to
0ade7e3
Compare
|
I find it problematic/incorrect that the |
|
@iamstolis Could you open a new issue for that? The comment is likely to get lost on a merged PR. It's an ongoing effort to remove "golden output" like |
Previously there was a spec bug: the
Intl.NumberFormats created withinIntl.DateTimeFormat.prototype.formatandIntl.RelativeTimeFormatconstructor were not passed the numbering system to be used.See tc39/ecma402#919
Fix #4260