-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFizzBuzzTest.java
More file actions
35 lines (27 loc) · 928 Bytes
/
FizzBuzzTest.java
File metadata and controls
35 lines (27 loc) · 928 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
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.runners.Enclosed;
import org.junit.runner.RunWith;
@RunWith(Enclosed.class)
public class FizzBuzzTest {
// TODO 4. 3の倍数場合はFizzを返すこと
// TODO 5. 5の倍数場合はBuzzを返すこと
// TODO 6. 3と5の倍数場は合FizzBuzzを返すこと
// TODO 7. 1から100の数列をfizzbuzz配列に変換すること
public static class _3の倍数でも5の倍数でもない場合 {
FizzBuzz fizzbuss;
@Before
public void setUp() {
fizzbuss = new FizzBuzz();
}
@Test
public void 数字を返すこと_2() {
assertEquals("2", fizzbuss.convert(2));
}
@Test
public void 数字を返すこと_4() {
assertEquals("4", fizzbuss.convert(4));
}
}
}