mirror of https://github.com/tc39/test262.git
Move tests to Math.clz32 (Fixes #41)
Number.prototype.clz() was renamed to Math.clz32(). Also removed superfluous 'spec' entry in test descriptor.
This commit is contained in:
parent
64756c252e
commit
f0ac90a5fd
|
@ -7,13 +7,12 @@
|
|||
/*---
|
||||
author: Ryan Lewis
|
||||
email: ryanhlewis@hotmail.com
|
||||
spec: "http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.prototype.clz"
|
||||
description: Number.prototype.clz should return 32 if passed 0.
|
||||
description: Math.clz32 should return 32 if passed 0.
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
if(Number.prototype.clz(0) === 32) {
|
||||
if(Math.clz32(0) === 32) {
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -7,13 +7,12 @@
|
|||
/*---
|
||||
author: Ryan Lewis
|
||||
email: ryanhlewis@hotmail.com
|
||||
spec: "http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.prototype.clz"
|
||||
description: Number.prototype.clz should return 31 if passed 1.
|
||||
description: Math.clz32 should return 31 if passed 1.
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
if(Number.prototype.clz(1) === 31) {
|
||||
if(Math.clz32(1) === 31) {
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -7,13 +7,12 @@
|
|||
/*---
|
||||
author: Ryan Lewis
|
||||
email: ryanhlewis@hotmail.com
|
||||
spec: "http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.prototype.clz"
|
||||
description: Number.prototype.clz should return 0 if passed 2147483648
|
||||
description: Math.clz32 should return 0 if passed 2147483648
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
if(Number.prototype.clz(2147483648) === 0) {
|
||||
if(Math.clz32(2147483648) === 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue