Fix whitespace

This commit is contained in:
Leo Balter 2018-02-15 17:34:54 -05:00 committed by Rick Waldron
parent 7024f3fa11
commit 8add0d64b2
25 changed files with 38 additions and 67 deletions

View File

@ -45,6 +45,7 @@ assert.throws(TypeError, function() {
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
new Map([ new Map([
['a', 1], 2 ['a', 1],
2
]); ]);
}); });

View File

@ -20,7 +20,8 @@ var ynum = 3;
for (var i = 0; i < ynum; i++) for (var i = 0; i < ynum; i++)
{ {
assert.sameValue( assert.sameValue(
Math.atan2(y[i], x), -0, Math.atan2(y[i], x),
-0,
"(" + y[i] + ", Infinity)" "(" + y[i] + ", Infinity)"
); );
} }

View File

@ -18,7 +18,8 @@ var xnum = 3;
for (var i = 0; i < xnum; i++) for (var i = 0; i < xnum; i++)
{ {
assert.sameValue( assert.sameValue(
Math.atan2(y, x[i]), -0, Math.atan2(y, x[i]),
-0,
"(-0, " + x[i] + ")" "(-0, " + x[i] + ")"
); );
} }

View File

@ -20,8 +20,7 @@ base[7] = +Infinity;
base[8] = NaN; base[8] = NaN;
var basenum = 9; var basenum = 9;
for (var i = 0; i < basenum; i++) for (var i = 0; i < basenum; i++) {
{
assert.sameValue( assert.sameValue(
Math.pow(base[i], exponent), Math.pow(base[i], exponent),
NaN, NaN,

View File

@ -17,10 +17,8 @@ base[4] = -0.5;
base[5] = -0.999999999999999; base[5] = -0.999999999999999;
var basenum = 6; var basenum = 6;
for (var i = 0; i < basenum; i++) for (var i = 0; i < basenum; i++) {
{ if (Math.pow(base[i], exponent) !== +Infinity) {
if (Math.pow(base[i], exponent) !== +Infinity)
{
$ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== +Infinity"); $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== +Infinity");
} }
} }

View File

@ -15,10 +15,8 @@ exponent[1] = 1;
exponent[0] = 0.000000000000001; exponent[0] = 0.000000000000001;
var exponentnum = 4; var exponentnum = 4;
for (var i = 0; i < exponentnum; i++) for (var i = 0; i < exponentnum; i++) {
{ if (Math.pow(base, exponent[i]) !== +Infinity) {
if (Math.pow(base, exponent[i]) !== +Infinity)
{
$ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity"); $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity");
} }
} }

View File

@ -15,7 +15,6 @@ exponent[2] = -1;
exponent[3] = -0.000000000000001; exponent[3] = -0.000000000000001;
var exponentnum = 4; var exponentnum = 4;
for (var i = 0; i < exponentnum; i++) for (var i = 0; i < exponentnum; i++) {
{
assert.sameValue(Math.pow(base, exponent[i]), 0, exponent[i]); assert.sameValue(Math.pow(base, exponent[i]), 0, exponent[i]);
} }

View File

@ -14,10 +14,8 @@ exponent[1] = 111;
exponent[2] = 111111; exponent[2] = 111111;
var exponentnum = 3; var exponentnum = 3;
for (var i = 0; i < exponentnum; i++) for (var i = 0; i < exponentnum; i++) {
{ if (Math.pow(base, exponent[i]) !== -Infinity) {
if (Math.pow(base, exponent[i]) !== -Infinity)
{
$ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== -Infinity"); $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== -Infinity");
} }
} }

View File

@ -16,10 +16,8 @@ exponent[3] = 1.7976931348623157E308; //largest finite number
exponent[4] = +Infinity; exponent[4] = +Infinity;
var exponentnum = 5; var exponentnum = 5;
for (var i = 0; i < exponentnum; i++) for (var i = 0; i < exponentnum; i++) {
{ if (Math.pow(base, exponent[i]) !== +Infinity) {
if (Math.pow(base, exponent[i]) !== +Infinity)
{
$ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity"); $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity");
} }
} }

View File

@ -14,7 +14,6 @@ exponent[1] = -111;
exponent[0] = -111111; exponent[0] = -111111;
var exponentnum = 3; var exponentnum = 3;
for (var i = 0; i < exponentnum; i++) for (var i = 0; i < exponentnum; i++) {
{
assert.sameValue(Math.pow(base, exponent[i]), -0, exponent[i]); assert.sameValue(Math.pow(base, exponent[i]), -0, exponent[i]);
} }

View File

@ -16,7 +16,6 @@ exponent[1] = -1.7976931348623157E308; //largest (by module) finite number
exponent[0] = -Infinity; exponent[0] = -Infinity;
var exponentnum = 5; var exponentnum = 5;
for (var i = 0; i < exponentnum; i++) for (var i = 0; i < exponentnum; i++) {
{
assert.sameValue(Math.pow(base, exponent[i]), 0, exponent[i]); assert.sameValue(Math.pow(base, exponent[i]), 0, exponent[i]);
} }

View File

@ -15,7 +15,6 @@ exponent[1] = 1;
exponent[0] = 0.000000000000001; exponent[0] = 0.000000000000001;
var exponentnum = 4; var exponentnum = 4;
for (var i = 0; i < exponentnum; i++) for (var i = 0; i < exponentnum; i++) {
{
assert.sameValue(Math.pow(base, exponent[i]), 0, exponent[i]); assert.sameValue(Math.pow(base, exponent[i]), 0, exponent[i]);
} }

View File

@ -15,10 +15,8 @@ exponent[2] = -1;
exponent[3] = -0.000000000000001; exponent[3] = -0.000000000000001;
var exponentnum = 4; var exponentnum = 4;
for (var i = 0; i < exponentnum; i++) for (var i = 0; i < exponentnum; i++) {
{ if (Math.pow(base, exponent[i]) !== +Infinity) {
if (Math.pow(base, exponent[i]) !== +Infinity)
{
$ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity"); $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity");
} }
} }

View File

@ -14,7 +14,6 @@ exponent[1] = 111;
exponent[2] = 111111; exponent[2] = 111111;
var exponentnum = 3; var exponentnum = 3;
for (var i = 0; i < exponentnum; i++) for (var i = 0; i < exponentnum; i++) {
{
assert.sameValue(Math.pow(base, exponent[i]), -0, exponent[i]); assert.sameValue(Math.pow(base, exponent[i]), -0, exponent[i]);
} }

View File

@ -20,10 +20,8 @@ base[7] = +Infinity;
base[8] = NaN; base[8] = NaN;
var basenum = 9; var basenum = 9;
for (var i = 0; i < basenum; i++) for (var i = 0; i < basenum; i++) {
{ if (Math.pow(base[i], exponent) !== 1) {
if (Math.pow(base[i], exponent) !== 1)
{
$ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== 1"); $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== 1");
} }
} }

View File

@ -16,7 +16,6 @@ exponent[3] = 1.7976931348623157E308; //largest finite number
exponent[4] = +Infinity; exponent[4] = +Infinity;
var exponentnum = 5; var exponentnum = 5;
for (var i = 0; i < exponentnum; i++) for (var i = 0; i < exponentnum; i++) {
{
assert.sameValue(Math.pow(base, exponent[i]), 0, exponent[i]); assert.sameValue(Math.pow(base, exponent[i]), 0, exponent[i]);
} }

View File

@ -14,10 +14,8 @@ exponent[1] = -111;
exponent[0] = -111111; exponent[0] = -111111;
var exponentnum = 3; var exponentnum = 3;
for (var i = 0; i < exponentnum; i++) for (var i = 0; i < exponentnum; i++) {
{ if (Math.pow(base, exponent[i]) !== -Infinity) {
if (Math.pow(base, exponent[i]) !== -Infinity)
{
$ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== -Infinity"); $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== -Infinity");
} }
} }

View File

@ -16,10 +16,8 @@ exponent[1] = -1.7976931348623157E308; //largest (by module) finite number
exponent[0] = -Infinity; exponent[0] = -Infinity;
var exponentnum = 5; var exponentnum = 5;
for (var i = 0; i < exponentnum; i++) for (var i = 0; i < exponentnum; i++) {
{ if (Math.pow(base, exponent[i]) !== +Infinity) {
if (Math.pow(base, exponent[i]) !== +Infinity)
{
$ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity"); $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity");
} }
} }

View File

@ -20,10 +20,8 @@ base[7] = +Infinity;
base[8] = NaN; base[8] = NaN;
var basenum = 9; var basenum = 9;
for (var i = 0; i < basenum; i++) for (var i = 0; i < basenum; i++) {
{ if (Math.pow(base[i], exponent) !== 1) {
if (Math.pow(base[i], exponent) !== 1)
{
$ERROR("#1: Math.pow(" + base[i] + ", -0) !== 1"); $ERROR("#1: Math.pow(" + base[i] + ", -0) !== 1");
} }
} }

View File

@ -18,8 +18,7 @@ exponent[5] = +Infinity;
exponent[6] = NaN; exponent[6] = NaN;
var exponentnum = 7; var exponentnum = 7;
for (var i = 0; i < exponentnum; i++) for (var i = 0; i < exponentnum; i++) {
{
assert.sameValue( assert.sameValue(
Math.pow(base, exponent[i]), Math.pow(base, exponent[i]),
NaN, NaN,

View File

@ -17,10 +17,8 @@ base[4] = 1.7976931348623157E308; //largest finite number
base[5] = +Infinity; base[5] = +Infinity;
var basenum = 6; var basenum = 6;
for (var i = 0; i < basenum; i++) for (var i = 0; i < basenum; i++) {
{ if (Math.pow(base[i], exponent) !== +Infinity) {
if (Math.pow(base[i], exponent) !== +Infinity)
{
$ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== +Infinity"); $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== +Infinity");
} }
} }

View File

@ -17,7 +17,6 @@ base[4] = 1.7976931348623157E308; //largest finite number
base[5] = +Infinity; base[5] = +Infinity;
var basenum = 6; var basenum = 6;
for (var i = 0; i < basenum; i++) for (var i = 0; i < basenum; i++) {
{
assert.sameValue(Math.pow(base[i], exponent), 0, base[i]); assert.sameValue(Math.pow(base[i], exponent), 0, base[i]);
} }

View File

@ -13,8 +13,7 @@ base[0] = -1;
base[1] = 1 base[1] = 1
var basenum = 2; var basenum = 2;
for (var i = 0; i < basenum; i++) for (var i = 0; i < basenum; i++) {
{
assert.sameValue( assert.sameValue(
Math.pow(base[i], exponent), Math.pow(base[i], exponent),
NaN, NaN,

View File

@ -13,8 +13,7 @@ base[0] = -1;
base[1] = 1 base[1] = 1
var basenum = 2; var basenum = 2;
for (var i = 0; i < basenum; i++) for (var i = 0; i < basenum; i++) {
{
assert.sameValue( assert.sameValue(
Math.pow(base[i], exponent), Math.pow(base[i], exponent),
NaN, NaN,

View File

@ -17,7 +17,6 @@ base[4] = -0.5;
base[5] = -0.999999999999999; base[5] = -0.999999999999999;
var basenum = 6; var basenum = 6;
for (var i = 0; i < basenum; i++) for (var i = 0; i < basenum; i++) {
{
assert.sameValue(Math.pow(base[i], exponent), 0, exponent); assert.sameValue(Math.pow(base[i], exponent), 0, exponent);
} }