提交 be422c37 编写于 作者: G Gero3

lint the code

上级 5a026e57
......@@ -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" );
} );
......@@ -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" );
} );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册