forked from fishercoder1534/Leetcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_1118Test.java
More file actions
37 lines (28 loc) · 749 Bytes
/
_1118Test.java
File metadata and controls
37 lines (28 loc) · 749 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
package com.fishercoder;
import com.fishercoder.solutions._1118;
import org.junit.Before;
import org.junit.Test;
import static junit.framework.TestCase.assertEquals;
public class _1118Test {
private static _1118.Solution1 solution1;
@Before
public void setupForEachTest() {
solution1 = new _1118.Solution1();
}
@Test
public void test1() {
assertEquals(31, solution1.numberOfDays(1992, 7));
}
@Test
public void test2() {
assertEquals(29, solution1.numberOfDays(2000, 2));
}
@Test
public void test3() {
assertEquals(28, solution1.numberOfDays(1900, 2));
}
@Test
public void test4() {
assertEquals(29, solution1.numberOfDays(1836, 2));
}
}