mirror of https://github.com/tc39/test262.git
Use global values on typeof tests for Number values (#713)
This is a pure miscellaneous change to use global values of NaN and Infinity instead of their namespaced equivalents.
Ref 9ae0567a50 (r69049894)
cc @suwc
This commit is contained in:
parent
3868f8f765
commit
ca7018bc7e
|
@ -11,29 +11,29 @@ description: typeof (number value) === "number"
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
typeof 1,
|
typeof 1,
|
||||||
"number",
|
"number",
|
||||||
'#1: typeof 1 === "number". Actual: ' + (typeof 1)
|
'typeof 1 === "number". Actual: ' + (typeof 1)
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
typeof Number.NaN,
|
typeof NaN,
|
||||||
"number",
|
"number",
|
||||||
'#2: typeof NaN === "number". Actual: ' + (typeof NaN)
|
'typeof NaN === "number". Actual: ' + (typeof NaN)
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
typeof Number.POSITIVE_INFINITY,
|
typeof Infinity,
|
||||||
"number",
|
"number",
|
||||||
'#3: typeof Infinity === "number". Actual: ' + (typeof Infinity)
|
'typeof Infinity === "number". Actual: ' + (typeof Infinity)
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
typeof Number.NEGATIVE_INFINITY,
|
typeof -Infinity,
|
||||||
"number",
|
"number",
|
||||||
'#4: typeof -Infinity === "number". Actual: ' + (typeof -Infinity)
|
'typeof -Infinity === "number". Actual: ' + (typeof -Infinity)
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
typeof Math.PI,
|
typeof Math.PI,
|
||||||
"number",
|
"number",
|
||||||
'#5: typeof Math.PI === "number". Actual: ' + (typeof Math.PI)
|
'typeof Math.PI === "number". Actual: ' + (typeof Math.PI)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue