Skip to content
Snippets Groups Projects
Commit 90226efd authored by chrg's avatar chrg
Browse files

Small fixes

parent 488e7ca7
Branches main
No related tags found
No related merge requests found
......@@ -17,7 +17,8 @@ import jpamb.cases.*;
public class Runtime {
static List<Class<?>> caseclasses = List.of(
Simple.class,
Loops.class);
Loops.class,
Tricky.class);
public static Case[] cases(Method m) {
var cases = m.getAnnotation(Cases.class);
......
methodid,*,assertion error,divide by zero,ok
jpamb.cases.Loops.forever:()V,1,0,0,0
jpamb.cases.Loops.neverAsserts:()V,1,0,0,0
jpamb.cases.Loops.neverDivides:()I,1,0,0,0
jpamb.cases.Loops.terminates:()V,0,1,0,0
jpamb.cases.Simple.assertBoolean:(Z)V,0,1,0,1
jpamb.cases.Simple.assertFalse:()V,0,1,0,0
jpamb.cases.Simple.assertInteger:(I)V,0,1,0,1
jpamb.cases.Simple.assertPositive:(I)V,0,1,0,1
jpamb.cases.Simple.divideByN:(I)I,0,0,1,1
jpamb.cases.Simple.divideByZero:()I,0,0,1,0
jpamb.cases.Simple.divideZeroByZero:(II)I,0,0,1,1
jpamb.cases.Simple.multiError:(Z)I,0,1,1,0
jpamb.cases.Tricky.collatz:(I)V,0,0,0,1
-,5.8%,11.5%,7.7%,11.5%
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment