Parent Directory
|
Revision Log
CONTRIB-689 - adding sojunit question type. Thanks to Süreç Özcan for contributing and maintaining this code.
import junit.framework.TestCase;
public class FactorialTest extends TestCase {
public void testFactorial() {
assertEquals(1.0, Factorial.factorial(0), 0.0);
}
public void testFactorial2() {
assertEquals(1.0, Factorial.factorial(1), 0.0);
}
public void testFactorial3() {
assertEquals(120, Factorial.factorial(5), 0.0);
}
}
| Moodle CVS Admin | ViewVC Help |
| Powered by ViewVC 1.0.7 |