Skip to content

Commit

Permalink
More yaml and whitespace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leobalter committed Oct 8, 2019
1 parent 917e6f7 commit 2b48ec7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@

/*---
esid: sec-initializedatetimeformat
description: Checks the order of getting "calendar" and "numberingSystem" options in the
DateTimeFormat is between "localeMatcher" and "hour12" options.
description: >
Checks the order of getting "calendar" and "numberingSystem" options in the
DateTimeFormat is between "localeMatcher" and "hour12" options.
info: |
4. Let _matcher_ be ? GetOption(_options_, `"localeMatcher"`, `"string"`, « `"lookup"`, `"best fit"` », `"best fit"`).
...
6. Let _calendar_ be ? GetOption(_options_, `"calendar"`, `"string"`, *undefined*, *undefined*).
...
9. Let _numberingSystem_ be ? GetOption(_options_, `"numberingSystem"`, `"string"`, *undefined*, *undefined*).
...
12. Let _hour12_ be ? GetOption(_options_, `"hour12"`, `"boolean"`, *undefined*, *undefined*).
4. Let _matcher_ be ? GetOption(_options_, `"localeMatcher"`, `"string"`, « `"lookup"`, `"best fit"` », `"best fit"`).
...
6. Let _calendar_ be ? GetOption(_options_, `"calendar"`, `"string"`, *undefined*, *undefined*).
...
9. Let _numberingSystem_ be ? GetOption(_options_, `"numberingSystem"`, `"string"`, *undefined*, *undefined*).
...
12. Let _hour12_ be ? GetOption(_options_, `"hour12"`, `"boolean"`, *undefined*, *undefined*).
includes: [compareArray.js]
---*/

Expand All @@ -38,10 +39,10 @@ const options = {
};

const expected = [
"localeMatcher",
"calendar",
"numberingSystem",
"hour12"
"localeMatcher",
"calendar",
"numberingSystem",
"hour12"
];

let df = new Intl.DateTimeFormat(undefined, options);
Expand Down
23 changes: 12 additions & 11 deletions test/intl402/NumberFormat/constructor-numberingSystem-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@

/*---
esid: sec-initializenumberformat
description: Checks the order of getting "numberingSystem" option in the
NumberFormat is between "localeMatcher" and "style" options.
description: >
Checks the order of getting "numberingSystem" option in the
NumberFormat is between "localeMatcher" and "style" options.
info: |
InitializeNumberFormat ( _numberFormat_, _locales_, _options_ )
5. Let _matcher_ be ? GetOption(_options_, `"localeMatcher"`, `"string"`, « `"lookup"`, `"best fit"` », `"best fit"`).
...
7. Let _numberingSystem_ be ? GetOption(_options_, `"numberingSystem"`, `"string"`, *undefined*, *undefined*).
...
17. Let _style_ be ? GetOption(_options_, `"style"`, `"string"`, « `"decimal"`, `"percent"`, `"currency"` », `"decimal"`).
InitializeNumberFormat ( _numberFormat_, _locales_, _options_ )
5. Let _matcher_ be ? GetOption(_options_, `"localeMatcher"`, `"string"`, « `"lookup"`, `"best fit"` », `"best fit"`).
...
7. Let _numberingSystem_ be ? GetOption(_options_, `"numberingSystem"`, `"string"`, *undefined*, *undefined*).
...
17. Let _style_ be ? GetOption(_options_, `"style"`, `"string"`, « `"decimal"`, `"percent"`, `"currency"` », `"decimal"`).
includes: [compareArray.js]
---*/

Expand All @@ -34,9 +35,9 @@ const options = {
};

const expected = [
"localeMatcher",
"numberingSystem",
"style"
"localeMatcher",
"numberingSystem",
"style"
];

let nf = new Intl.NumberFormat(undefined, options);
Expand Down

0 comments on commit 2b48ec7

Please sign in to comment.