MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / test_toLocaleString

Function test_toLocaleString

tests/python/test_arrays.py:2338–2346  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2336
2337
2338def test_toLocaleString():
2339 prices = ["¥7", 500, 8123, 12]
2340 result = [None]
2341 pm.eval("""
2342 (result, arr) => {
2343 result[0] = arr.toLocaleString('ja-JP', { style: 'currency', currency: 'JPY' });
2344 }
2345 """)(result, prices)
2346 assert result[0] == '¥7,¥500,¥8,123,¥12'
2347
2348
2349def test_toLocaleString_with_none():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected