Java Verifier
Provide you Java code and assertions and this tool will do the assertion for you online.
Request
{ "assertions": [ "assertEquals(5.0, Math.sum(2, 3));", "assertNotSame(4.999999999999, Math.sum(2, 3));" ], "code": "public class Math { public static double sum(int a, int b) { return (double)(a + b); } }" }
Powered by
Beanshell