未验证 提交 36aac015 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #18598 from OndrejSpanel/fixTest

Fix tests: wrong parameters
......@@ -546,7 +546,7 @@ export default QUnit.module( 'Maths', () => {
var b = new Vector3( 2, 3, 4 );
var c = new Matrix4().set( 1, 0, 0, 2, 0, 1, 0, 3, 0, 0, 1, 4, 0, 0, 0, 1 );
a.makeTranslation( b );
a.makeTranslation( b.x, b.y, b.z );
assert.ok( matrixEquals4( a, c ), "Passed!" );
} );
......
......@@ -126,7 +126,7 @@ export default QUnit.module( 'Maths', () => {
QUnit.test( "clone", ( assert ) => {
var a = new Plane( 2.0, 0.5, 0.25 );
var a = new Plane( new Vector3( 2.0, 0.5, 0.25 ) );
var b = a.clone();
assert.ok( a.equals( b ), "clones are equal" );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册