Commit 3ce20c06 authored by julanar.ali's avatar julanar.ali

initializing data before testing

parent 551cc185
......@@ -23,11 +23,17 @@ import org.junit.jupiter.api.Test;*/
}
private static void testAll(int threadCount) {
initialize();
assertEquals(result, ParallelCounter0.primesCount(data,threadCount));
System.out.println("parallel counter 0:"+result);
assertEquals(result, ParallelCounter1.primesCount(data,threadCount));
System.out.println("parallel counter 1:"+result);
assertEquals(result, ParallelCounter2.primesCount(data,threadCount));
System.out.println("parallel counter 2:"+result);
assertEquals(result, ParallelCounter3.primesCount(data,threadCount));
System.out.println("parallel counter 3:"+result);
assertEquals(result, ParallelCounter4.primesCount(data,threadCount));
System.out.println("parallel counter 4:"+result);
}
@Test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment