mirror of
https://github.com/robertkrimen/otto
synced 2025-10-19 19:55:30 +08:00
Merge pull request #172 from dop251/remove-redundant-rangeerror-prefixes-fix-tests
Fixed tests to match the updated error messages.
This commit is contained in:
commit
c619b8fa10
|
|
@ -34,11 +34,11 @@ func TestNumber_toString(t *testing.T) {
|
||||||
|
|
||||||
test(`raise:
|
test(`raise:
|
||||||
new Number(451).toString(1);
|
new Number(451).toString(1);
|
||||||
`, "RangeError: RangeError: toString() radix must be between 2 and 36")
|
`, "RangeError: toString() radix must be between 2 and 36")
|
||||||
|
|
||||||
test(`raise:
|
test(`raise:
|
||||||
new Number(451).toString(Infinity);
|
new Number(451).toString(Infinity);
|
||||||
`, "RangeError: RangeError: toString() radix must be between 2 and 36")
|
`, "RangeError: toString() radix must be between 2 and 36")
|
||||||
|
|
||||||
test(`
|
test(`
|
||||||
new Number(NaN).toString()
|
new Number(NaN).toString()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user