-
Notifications
You must be signed in to change notification settings - Fork 198
Expand file tree
/
Copy pathCountYZTest.java
More file actions
45 lines (36 loc) · 1020 Bytes
/
CountYZTest.java
File metadata and controls
45 lines (36 loc) · 1020 Bytes
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
package io.zipcoder.stringsandthings;
import io.zipcoder.StringsAndThings;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
/**
* @author leon on 29/01/2019.
*/
public class CountYZTest {
private StringsAndThings stringsAndThings;
@Before
public void setup(){
stringsAndThings = new StringsAndThings();
}
@Test
public void countYZTest1(){
String input = "fez day";
Integer expected = 2;
Integer actual = stringsAndThings.countYZ(input);
Assert.assertEquals(expected, actual);
}
@Test
public void countYZTest2(){
String input = "day fez";
Integer expected = 2;
Integer actual = stringsAndThings.countYZ(input);
Assert.assertEquals(expected, actual);
}
@Test
public void countYZTest3 (){
String input = "day fyyyz";
Integer expected = 2;
Integer actual = stringsAndThings.countYZ(input);
Assert.assertEquals(expected, actual);
}
}