Skip to content

Commit

Permalink
test: update locale tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkaradachki authored and gyoshev committed Jun 12, 2017
1 parent 9dacfcb commit a3e34bf
Show file tree
Hide file tree
Showing 719 changed files with 6,329 additions and 1 deletion.
24 changes: 24 additions & 0 deletions locale-tests/generated-locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,18 @@ describe('generated-locales', () => {
}).not.toThrow();
});

it('format accounting', () => {
expect(() => {
formatNumber(number, 'a', locale);
}).not.toThrow();
});

it('parse accounting', () => {
expect(() => {
parseNumber(numberString, locale, 'a');
}).not.toThrow();
});

});
}

Expand Down Expand Up @@ -147,6 +159,18 @@ describe('generated-locales', () => {
parseNumber(numberString, locale, 'c');
}).not.toThrow();
});

it('format accounting', () => {
expect(() => {
formatNumber(number, 'a', locale);
}).not.toThrow();
});

it('parse accounting', () => {
expect(() => {
parseNumber(numberString, locale, 'a');
}).not.toThrow();
});
}

it('format date', () => {
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/af-NA/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ const data = {
"unitPattern-count-one": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
},
currencies: {
ADP: {
displayName: "ADP",
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/af-NA/numbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ const data = {
],
"unitPattern-count-one": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
}
}
};
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/af/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ const data = {
"unitPattern-count-one": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
},
currencies: {
ADP: {
displayName: "ADP",
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/af/numbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ const data = {
],
"unitPattern-count-one": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
}
}
};
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/am/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ const data = {
"unitPattern-count-one": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
},
currencies: {
ADP: {
displayName: "ADP",
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/am/numbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ const data = {
],
"unitPattern-count-one": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
}
}
};
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/ar-AE/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ const data = {
"unitPattern-count-many": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
},
currencies: {
ADP: {
displayName: "بيستا أندوري",
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/ar-AE/numbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ const data = {
"unitPattern-count-few": "n $",
"unitPattern-count-many": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
}
}
};
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/ar-BH/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ const data = {
"unitPattern-count-many": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
},
currencies: {
ADP: {
displayName: "بيستا أندوري",
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/ar-BH/numbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ const data = {
"unitPattern-count-few": "n $",
"unitPattern-count-many": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
}
}
};
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/ar-DJ/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ const data = {
"unitPattern-count-many": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
},
currencies: {
ADP: {
displayName: "بيستا أندوري",
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/ar-DJ/numbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ const data = {
"unitPattern-count-few": "n $",
"unitPattern-count-many": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
}
}
};
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/ar-DZ/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ const data = {
"unitPattern-count-many": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
},
currencies: {
ADP: {
displayName: "بيستا أندوري",
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/ar-DZ/numbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ const data = {
"unitPattern-count-few": "n $",
"unitPattern-count-many": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
}
}
};
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/ar-EG/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ const data = {
"unitPattern-count-many": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
},
currencies: {
ADP: {
displayName: "بيستا أندوري",
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/ar-EG/numbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ const data = {
"unitPattern-count-few": "n $",
"unitPattern-count-many": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
}
}
};
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/ar-EH/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ const data = {
"unitPattern-count-many": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
},
currencies: {
ADP: {
displayName: "بيستا أندوري",
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/ar-EH/numbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ const data = {
"unitPattern-count-few": "n $",
"unitPattern-count-many": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
}
}
};
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/ar-ER/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ const data = {
"unitPattern-count-many": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
},
currencies: {
ADP: {
displayName: "بيستا أندوري",
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/ar-ER/numbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ const data = {
"unitPattern-count-few": "n $",
"unitPattern-count-many": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
}
}
};
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/ar-IL/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ const data = {
"unitPattern-count-many": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
},
currencies: {
ADP: {
displayName: "بيستا أندوري",
Expand Down
9 changes: 9 additions & 0 deletions locale-tests/locales/ar-IL/numbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ const data = {
"unitPattern-count-few": "n $",
"unitPattern-count-many": "n $",
"unitPattern-count-other": "n $"
},
accounting: {
patterns: [
"$n",
"($n)"
],
groupSize: [
3
]
}
}
};
Expand Down
Loading

0 comments on commit a3e34bf

Please sign in to comment.