Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/Calculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ var CURRENCIES = {
HUF: { symbol: "", names: ["forint", "forints", "huf"], decimals: 0 },
RON: { symbol: "", names: ["leu", "lei", "romanian leu", "ron"] },
ISK: { symbol: "", names: ["icelandic krona", "isk"], decimals: 0 },
ILS: { symbol: "₪", names: ["shekel", "shekels", "ils"] },
ILS: { symbol: "₪", names: ["shekel", "shekels", "nis", "ils"] },
ZAR: { symbol: "", names: ["rand", "south african rand", "zar"] },
THB: { symbol: "", names: ["baht", "thai baht", "thb"] },
MYR: { symbol: "", names: ["ringgit", "myr"] },
Expand Down
1 change: 1 addition & 0 deletions tests/calculator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ test("currencies use the rates and need them only to convert", () => {
assert.equal(result("1000 yen to usd"), "$6.32")
assert.equal(C.evaluate("10 usd to eur", Object.assign({}, env, { rates: null })), null)
assert.equal(result("$30 + 20%", Object.assign({}, env, { rates: null })), "$36.00")
assert.equal(result("10 nis + 5 shekels", Object.assign({}, env, { rates: null })), "₪15.00")
})

test("dates and durations", () => {
Expand Down