Commit cdaa4f26 authored by Michael Menzel's avatar Michael Menzel

Fixed tests

parent 5efafb94
......@@ -29,9 +29,9 @@ public class EffectSizeTest {
public void testFoldChange() throws Exception {
EffectSize fc = new EffectSize();
assertEquals(0.122216, fc.foldChange(6000, 4000, 4700, 5300), 0.0001);
assertEquals(0.514548, fc.foldChange(1139, 5, 9021, 131), 0.1);
assertEquals(1.07, fc.foldChange(0, 1144, 86, 9066), 0.1);
assertEquals(0.405, fc.foldChange(6000, 4000, 4700, 5300), 0.01);
assertEquals(1.533, fc.foldChange(1139, 5, 9021, 131), 0.1);
assertEquals(3.55, fc.foldChange(0, 1144, 86, 9066), 0.1);
assertEquals(0.0, fc.foldChange(0, 0, 0, 0), 0.0001);
assertEquals(0.0, fc.foldChange(10, 10, 10, 10), 0.0001);
assertEquals(0.0, fc.foldChange(25395, 0, 10000, 0), 0.0001);
......
......@@ -64,7 +64,7 @@ public class IndependenceTestTest {
//test the specific method for scored tracks
TestResult result = tester.testScoredTrack(a,b,track);
assertEquals(expected,result.getpValue(), 0.001);
assertEquals(7.4, result.getEffectSize(), 0.1);
assertEquals(2.89, result.getEffectSize(), 0.1);
//test the combined method which decied upon the track which method to call
TestResult otherResult = tester.test(a,b,track);
......
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