diff options
author | petersont@chromium.org <petersont@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 21:22:49 +0000 |
---|---|---|
committer | petersont@chromium.org <petersont@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 21:22:49 +0000 |
commit | 1fc9f4682dc8d1150540159fbe749de6fb975840 (patch) | |
tree | bed96f6500ffd2a31054ece4370907297064944d /o3d | |
parent | b81637c3d9f2cf895b81d5b673b88668b6bc1322 (diff) | |
download | chromium_src-1fc9f4682dc8d1150540159fbe749de6fb975840.zip chromium_src-1fc9f4682dc8d1150540159fbe749de6fb975840.tar.gz chromium_src-1fc9f4682dc8d1150540159fbe749de6fb975840.tar.bz2 |
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
Diffstat (limited to 'o3d')
-rw-r--r-- | o3d/tests/selenium/tests/math-test.html | 6 |
1 files changed, 6 insertions, 0 deletions
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)), |