@@ -0,0 +1,1009 @@
+package tests;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport svd.FeatureVector;%0Aimport svd.SingularValueDecomposition;%0A%0Apublic class SingularValueDecompositionTests %7B%0A%09private SingularValueDecomposition svd;%0A%09private int featureSize = 5;%0A%09private double delta = 0;%0A%0A%09/**%0A%09 * Sets up the test fixture.%0A%09 * (Called before every test case method.)%0A%09 */%0A%09@Before%0A%09public void setUp() %7B%0A%09%09svd = new SingularValueDecomposition();%0A%09%7D%0A%0A%09@Test%0A%09public void dotProductShouldReturnEstimatedValueOfOne() %7B%0A%09%09//%09%09assertEquals(0, featureVector.dotProduct(featureVector), delta);%0A%09%09//%09%09assertEquals(0, featureVector.dotProduct(new FeatureVector(new double%5B%5D%7B1,2,3,4,5%7D)), delta);%0A%09%09//%09%09assertEquals(0, featureVector.dotProduct(new FeatureVector(new double%5B%5D%7B-1,-1,-1,-1,-1%7D)), delta);%0A%09%7D%0A%0A%09@Test%0A%09public void dotProductShouldReturnEstimatedValuesOfFive() %7B%0A%09%09//%09%09assertEquals(0, featureVector.dotProduct(new FeatureVector(new double%5B%5D%7B-1,-1,-1,-1,-1%7D)), delta);%0A%09%7D%0A%7D%0A

add svd test template Added svd tests class. Needs to be filled in.