Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Jul 12, 2017
1 parent 24411a0 commit 4a28cdf
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/test/java/fr/inria/spirals/npefix/main/all/LauncherTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,35 +47,35 @@ public void testRun() throws Exception {
launcher.instrument();

NPEOutput results = launcher.runStrategy(new NoStrat());
Assert.assertEquals("Nb test", 7, results.size());
Assert.assertEquals("NoStrat failing", 7, results.getFailureCount());
Assert.assertEquals("Nb test", 10, results.size());
Assert.assertEquals("NoStrat failing", 10, results.getFailureCount());

results = launcher.runStrategy(new Strat1A());
Assert.assertEquals("Strat1A failing", 6, results.getFailureCount());
Assert.assertEquals("Strat1A failing", 9, results.getFailureCount());

results = launcher.runStrategy(new Strat1B());
Assert.assertEquals("Strat1B failing", 6, results.getFailureCount());
Assert.assertEquals("Strat1B failing", 9, results.getFailureCount());

results = launcher.runStrategy(new Strat2A());
Assert.assertEquals("Strat2A failing", 4, results.getFailureCount());
Assert.assertEquals("Strat2A failing", 7, results.getFailureCount());

results = launcher.runStrategy(new Strat2B());
Assert.assertEquals("Strat2B failing", 4, results.getFailureCount());
Assert.assertEquals("Strat2B failing", 7, results.getFailureCount());

results = launcher.runStrategy(new Strat3());
Assert.assertEquals("Strat3 failing", 2, results.getFailureCount());
Assert.assertEquals("Strat3 failing", 5, results.getFailureCount());

results = launcher.runStrategy(new Strat4(ReturnType.NULL));
Assert.assertEquals("Strat4 Null failing", 6, results.getFailureCount());
Assert.assertEquals("Strat4 Null failing", 9, results.getFailureCount());

results = launcher.runStrategy(new Strat4(ReturnType.VAR));
Assert.assertEquals("Strat4 var failing", 6, results.getFailureCount());
Assert.assertEquals("Strat4 var failing", 9, results.getFailureCount());

results = launcher.runStrategy(new Strat4(ReturnType.NEW));
Assert.assertEquals("Strat4 new failing", 5, results.getFailureCount());
Assert.assertEquals("Strat4 new failing", 8, results.getFailureCount());

results = launcher.runStrategy(new Strat4(ReturnType.VOID));
Assert.assertEquals("Strat4 void failing", 5, results.getFailureCount());
Assert.assertEquals("Strat4 void failing", 8, results.getFailureCount());
}

@Test
Expand Down

0 comments on commit 4a28cdf

Please sign in to comment.