Skip to content

Commit

Permalink
lint the code
Browse files Browse the repository at this point in the history
  • Loading branch information
gero3 committed Jun 19, 2019
1 parent 5a026e5 commit be422c3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/unit/src/math/Math.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export default QUnit.module( 'Maths', () => {
QUnit.test( "lerp", ( assert ) => {


assert.strictEqual(ThreeMath.lerp(1, 2, 0), 1, "Value equal to lower boundary");
assert.strictEqual(ThreeMath.lerp(1, 2, 1), 2, "Value equal to upper boundary");
assert.strictEqual(ThreeMath.lerp(1, 2, 0.4), 1.4, "Value within range");
assert.strictEqual( ThreeMath.lerp( 1, 2, 0 ), 1, "Value equal to lower boundary" );
assert.strictEqual( ThreeMath.lerp( 1, 2, 1 ), 2, "Value equal to upper boundary" );
assert.strictEqual( ThreeMath.lerp( 1, 2, 0.4 ), 1.4, "Value within range" );


} );
Expand All @@ -73,13 +73,13 @@ export default QUnit.module( 'Maths', () => {

QUnit.test( "smootherstep", ( assert ) => {

assert.strictEqual(ThreeMath.smootherstep(- 1, 0, 2), 0, "Value lower than minimum");
assert.strictEqual(ThreeMath.smootherstep(0, 0, 2), 0, "Value equal to minimum");
assert.strictEqual(ThreeMath.smootherstep(0.5, 0, 2), 0.103515625, "Value within limits");
assert.strictEqual(ThreeMath.smootherstep(1, 0, 2), 0.5, "Value within limits");
assert.strictEqual(ThreeMath.smootherstep(1.5, 0, 2), 0.896484375, "Value within limits");
assert.strictEqual(ThreeMath.smootherstep(2, 0, 2), 1, "Value equal to maximum");
assert.strictEqual(ThreeMath.smootherstep(3, 0, 2), 1, "Value highter than maximum");
assert.strictEqual( ThreeMath.smootherstep( - 1, 0, 2 ), 0, "Value lower than minimum" );
assert.strictEqual( ThreeMath.smootherstep( 0, 0, 2 ), 0, "Value equal to minimum" );
assert.strictEqual( ThreeMath.smootherstep( 0.5, 0, 2 ), 0.103515625, "Value within limits" );
assert.strictEqual( ThreeMath.smootherstep( 1, 0, 2 ), 0.5, "Value within limits" );
assert.strictEqual( ThreeMath.smootherstep( 1.5, 0, 2 ), 0.896484375, "Value within limits" );
assert.strictEqual( ThreeMath.smootherstep( 2, 0, 2 ), 1, "Value equal to maximum" );
assert.strictEqual( ThreeMath.smootherstep( 3, 0, 2 ), 1, "Value highter than maximum" );

} );

Expand Down

0 comments on commit be422c3

Please sign in to comment.