-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathForemanPigTest.java
More file actions
14 lines (12 loc) · 658 Bytes
/
ForemanPigTest.java
File metadata and controls
14 lines (12 loc) · 658 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
class ForemanPigTest {
@Test
void sample() {
assertEquals("walk your dog at nine", ForemanPig.decipher(new String[]{"u lk zxuq hfk as fouh", "y l zpuv xe at sicd", "welvayfuqbfpeaauaqcrc"}));
assertEquals("hello world", ForemanPig.decipher(new String[]{"hello world"}));
assertEquals("", ForemanPig.decipher(new String[]{"", "", "", "", ""}));
assertEquals(" ", ForemanPig.decipher(new String[]{"a ", " b ", " c", " ", " "}));
assertEquals("foreman pig", ForemanPig.decipher(new String[]{"foreman pig", "foreman pig"}));
}
}