forked from exercism/java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPangramTest.java
More file actions
69 lines (55 loc) · 1.86 KB
/
PangramTest.java
File metadata and controls
69 lines (55 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import org.junit.Test;
import org.junit.Ignore;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;
public class PangramTest {
@Test
public void sentenceEmpty() {
assertFalse(Pangrams.isPangram(""));
}
@Ignore
@Test
public void pangramWithOnlyLowerCase() {
assertTrue(Pangrams.isPangram("the quick brown fox jumps over the lazy dog"));
}
@Ignore
@Test
public void missingCharacterX() {
assertFalse(Pangrams.isPangram("a quick movement of the enemy will jeopardize five gunboats"));
}
@Ignore
@Test
public void anotherMissingCharacterX() {
assertFalse(Pangrams.isPangram("the quick brown fish jumps over the lazy dog"));
}
@Ignore
@Test
public void pangramWithUnderscores() {
assertTrue(Pangrams.isPangram("\"the_quick_brown_fox_jumps_over_the_lazy_dog\""));
}
@Ignore
@Test
public void pangramWithNumbers() {
assertTrue(Pangrams.isPangram("\"the 1 quick brown fox jumps over the 2 lazy dogs\""));
}
@Ignore
@Test
public void missingLettersReplacedByNumbers() {
assertFalse(Pangrams.isPangram("\"7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog\""));
}
@Ignore
@Test
public void pangramWithMixedCaseAndPunctuation() {
assertTrue(Pangrams.isPangram("\"Five quacking Zephyrs jolt my wax bed.\""));
}
@Ignore
@Test
public void pangramWithNonAsciiCharacters() {
assertTrue(Pangrams.isPangram("Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich."));
}
@Ignore
@Test
public void panagramInAlphabetOtherThanAscii() {
assertFalse(Pangrams.isPangram("Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства."));
}
}