Skip to content

Commit a3e34bf

Browse files
danielkaradachkigyoshev
authored andcommitted
test: update locale tests
1 parent 9dacfcb commit a3e34bf

File tree

719 files changed

+6329
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

719 files changed

+6329
-1
lines changed

locale-tests/generated-locales.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,18 @@ describe('generated-locales', () => {
8181
}).not.toThrow();
8282
});
8383

84+
it('format accounting', () => {
85+
expect(() => {
86+
formatNumber(number, 'a', locale);
87+
}).not.toThrow();
88+
});
89+
90+
it('parse accounting', () => {
91+
expect(() => {
92+
parseNumber(numberString, locale, 'a');
93+
}).not.toThrow();
94+
});
95+
8496
});
8597
}
8698

@@ -147,6 +159,18 @@ describe('generated-locales', () => {
147159
parseNumber(numberString, locale, 'c');
148160
}).not.toThrow();
149161
});
162+
163+
it('format accounting', () => {
164+
expect(() => {
165+
formatNumber(number, 'a', locale);
166+
}).not.toThrow();
167+
});
168+
169+
it('parse accounting', () => {
170+
expect(() => {
171+
parseNumber(numberString, locale, 'a');
172+
}).not.toThrow();
173+
});
150174
}
151175

152176
it('format date', () => {

locale-tests/locales/af-NA/all.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ const data = {
5252
"unitPattern-count-one": "n $",
5353
"unitPattern-count-other": "n $"
5454
},
55+
accounting: {
56+
patterns: [
57+
"$n",
58+
"($n)"
59+
],
60+
groupSize: [
61+
3
62+
]
63+
},
5564
currencies: {
5665
ADP: {
5766
displayName: "ADP",

locale-tests/locales/af-NA/numbers.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ const data = {
5454
],
5555
"unitPattern-count-one": "n $",
5656
"unitPattern-count-other": "n $"
57+
},
58+
accounting: {
59+
patterns: [
60+
"$n",
61+
"($n)"
62+
],
63+
groupSize: [
64+
3
65+
]
5766
}
5867
}
5968
};

locale-tests/locales/af/all.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ const data = {
5151
"unitPattern-count-one": "n $",
5252
"unitPattern-count-other": "n $"
5353
},
54+
accounting: {
55+
patterns: [
56+
"$n",
57+
"($n)"
58+
],
59+
groupSize: [
60+
3
61+
]
62+
},
5463
currencies: {
5564
ADP: {
5665
displayName: "ADP",

locale-tests/locales/af/numbers.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ const data = {
5353
],
5454
"unitPattern-count-one": "n $",
5555
"unitPattern-count-other": "n $"
56+
},
57+
accounting: {
58+
patterns: [
59+
"$n",
60+
"($n)"
61+
],
62+
groupSize: [
63+
3
64+
]
5665
}
5766
}
5867
};

locale-tests/locales/am/all.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ const data = {
5151
"unitPattern-count-one": "n $",
5252
"unitPattern-count-other": "n $"
5353
},
54+
accounting: {
55+
patterns: [
56+
"$n",
57+
"($n)"
58+
],
59+
groupSize: [
60+
3
61+
]
62+
},
5463
currencies: {
5564
ADP: {
5665
displayName: "ADP",

locale-tests/locales/am/numbers.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ const data = {
5353
],
5454
"unitPattern-count-one": "n $",
5555
"unitPattern-count-other": "n $"
56+
},
57+
accounting: {
58+
patterns: [
59+
"$n",
60+
"($n)"
61+
],
62+
groupSize: [
63+
3
64+
]
5665
}
5766
}
5867
};

locale-tests/locales/ar-AE/all.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ const data = {
5656
"unitPattern-count-many": "n $",
5757
"unitPattern-count-other": "n $"
5858
},
59+
accounting: {
60+
patterns: [
61+
"$n",
62+
"($n)"
63+
],
64+
groupSize: [
65+
3
66+
]
67+
},
5968
currencies: {
6069
ADP: {
6170
displayName: "بيستا أندوري",

locale-tests/locales/ar-AE/numbers.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ const data = {
5858
"unitPattern-count-few": "n $",
5959
"unitPattern-count-many": "n $",
6060
"unitPattern-count-other": "n $"
61+
},
62+
accounting: {
63+
patterns: [
64+
"$n",
65+
"($n)"
66+
],
67+
groupSize: [
68+
3
69+
]
6170
}
6271
}
6372
};

locale-tests/locales/ar-BH/all.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ const data = {
5656
"unitPattern-count-many": "n $",
5757
"unitPattern-count-other": "n $"
5858
},
59+
accounting: {
60+
patterns: [
61+
"$n",
62+
"($n)"
63+
],
64+
groupSize: [
65+
3
66+
]
67+
},
5968
currencies: {
6069
ADP: {
6170
displayName: "بيستا أندوري",

0 commit comments

Comments
 (0)