-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIsPangramicTest.java
More file actions
39 lines (29 loc) · 1.02 KB
/
IsPangramicTest.java
File metadata and controls
39 lines (29 loc) · 1.02 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
package com.zipcodewilmington;
import org.junit.Assert;
import org.junit.Test;
public class IsPangramicTest {
@Test
public void testIsPangramic1() {
String[] array = {"The quick brown", "Fox jumps over", "The lazy dog"};
boolean outcome = StringArrayUtils.isPangramic(array);
Assert.assertTrue(outcome);
}
@Test
public void testIsPangramic2() {
String[] array = {"The", "quick*^^&*&^", "onyx", "goblin", "jumps", "over", "the", "lazy", "dwarf"};
boolean outcome = StringArrayUtils.isPangramic(array);
Assert.assertTrue(outcome);
}
@Test
public void testIsPangramic3() {
String[] array = {"Five quacking", "zephyrs", "jolt my", "wax bed"};
boolean outcome = StringArrayUtils.isPangramic(array);
Assert.assertTrue(outcome);
}
@Test
public void testIsPangramic4() {
String[] array = {"a", "b", "c", "d"};
boolean outcome = StringArrayUtils.isPangramic(array);
Assert.assertFalse(outcome);
}
}