Fixed tests to match the updated error messages.

This commit is contained in:
Dmitry Panov
2016-04-05 19:10:38 +01:00
parent 6c92cd134a
commit 25c2e92cec

View File

@@ -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()