From 1fc9f4682dc8d1150540159fbe749de6fb975840 Mon Sep 17 00:00:00 2001 From: "petersont@chromium.org" Date: Fri, 26 Jun 2009 21:22:49 +0000 Subject: divVectorVector was copied from mulVectorVector and the * was still there. Fixed bug and added test. Review URL: http://codereview.chromium.org/147231 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19419 0039d316-1c4b-4281-b951-d872f2087c98 --- o3d/tests/selenium/tests/math-test.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'o3d') diff --git a/o3d/tests/selenium/tests/math-test.html b/o3d/tests/selenium/tests/math-test.html index 981c673..f31fbd6 100644 --- a/o3d/tests/selenium/tests/math-test.html +++ b/o3d/tests/selenium/tests/math-test.html @@ -389,6 +389,12 @@ g_suite.testMulVectorVector = function() { [-1, 0, 2, -2])); }; +g_suite.testDivVectorVector = function() { + g_test.assertArrayEquals([-0.5, 0, 2, -2], + g_math.divVectorVector([-1, 0, 8, -10], + [2, 3, 4, 5])); +}; + g_suite.testOrthonormalize = function() { var W = g_math.orthonormalize([[1, 2, -1], [1, -2, 0], [2, 4, 1]]); g_test.assertTrue(matrixDiff(g_math.mulMatrixMatrix(W, g_math.transpose(W)), -- cgit v1.1