mirror of
https://github.com/robertkrimen/otto
synced 2025-10-12 20:27: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:
|
||||
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:
|
||||
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(`
|
||||
new Number(NaN).toString()
|
||||
|
|
Loading…
Reference in New Issue
Block a user