Package mikera.vectorz.util

Source Code of mikera.vectorz.util.TestTesting

package mikera.vectorz.util;

import static org.junit.Assert.*;

import org.junit.Test;

import mikera.util.Random;
import mikera.vectorz.AVector;
import mikera.vectorz.TestVectors;

// Can't believe I'm writing a test case to test the test cases. Just in case...

public class TestTesting {
  @Test public void testTestVectors() {
    for (int i=1; i<30; i++) {
      Random r=new Random();
      r.setSeed(i);
      AVector v=Testing.createTestVector(i, r);
      assertEquals(i,v.length());
      new TestVectors().doGenericTests(v);
    }
  }
}
TOP

Related Classes of mikera.vectorz.util.TestTesting

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.