This commit is contained in:
JunkJumper 2020-09-02 14:49:33 +02:00
parent 414a649d02
commit e852afc59a
2 changed files with 37 additions and 0 deletions

5
src/TP1/Eponge.java Normal file
View File

@ -0,0 +1,5 @@
package TP1;
public class Eponge {
}

View File

@ -0,0 +1,32 @@
package TP1;
import static org.junit.Assert.assertTrue;
import org.junit.jupiter.api.Test;
public class TestsFactorielle {
private String s1 = "";
private String s2 = "a";
private String s3 = "ab";
private String s4 = "abba";
private String s5 = "slttls";
private String s6 = "radar";
private String s7 = "applejack";
@Test
public void testVrais() {
assertTrue(Palindrome.pal(s1));
assertTrue(Palindrome.pal(s2));
assertTrue(Palindrome.pal(s4));
assertTrue(Palindrome.pal(s5));
assertTrue(Palindrome.pal(s6));
}
@Test
public void testFaux() {
assertTrue(Palindrome.pal(s3));
assertTrue(Palindrome.pal(s7));
}
}