|
@@ -1,51 +1,10 @@
|
1
|
|
- HEAD
|
2
|
1
|
package io.zipcoder.casino;
|
3
|
2
|
|
4
|
|
-import org.junit.Assert;
|
5
|
|
-import org.junit.Before;
|
6
|
|
-import org.junit.Test;
|
7
|
3
|
|
|
4
|
+import org.junit.jupiter.api.Assertions;
|
|
5
|
+import org.junit.jupiter.api.Test;
|
8
|
6
|
|
9
|
|
-public class DiceTest {
|
10
|
|
-
|
11
|
|
- @Test
|
12
|
|
- public void getSum1(){
|
13
|
|
- Dice dice = new Dice(2);
|
14
|
|
- int expected = 6;
|
15
|
|
- int actual = dice.getSum();
|
16
|
|
- Assert.assertEquals(expected, actual, 6);
|
17
|
|
- }
|
18
|
|
-
|
19
|
|
- @Test
|
20
|
|
- public void getSum2(){
|
21
|
|
- Dice dice = new Dice(5);
|
22
|
|
- int expected = 13;
|
23
|
|
- int actual = dice.getSum();
|
24
|
|
- Assert.assertEquals(expected, actual, 12);
|
25
|
|
- }
|
26
|
|
-
|
27
|
|
- @Test
|
28
|
|
- public void getEach1(){
|
29
|
|
- Dice dice = new Dice(2);
|
30
|
|
- int expected = 3;
|
31
|
|
- int actual = dice.getEach()[1];
|
32
|
|
- Assert.assertEquals(expected, actual, 3);
|
33
|
|
- }
|
34
|
|
-
|
35
|
|
- @Test
|
36
|
|
- public void getEach2(){
|
37
|
|
- Dice dice = new Dice(6);
|
38
|
|
- int expected = 3;
|
39
|
|
- int actual = dice.getEach()[3];
|
40
|
|
- Assert.assertEquals(expected, actual, 3);
|
41
|
|
- }
|
42
|
|
-}
|
43
|
|
-=======
|
44
|
|
-package io.zipcoder.casino;
|
45
|
|
-
|
46
|
|
-import org.junit.Assert;
|
47
|
|
-import org.junit.Before;
|
48
|
|
-import org.junit.Test;
|
|
7
|
+import static org.junit.jupiter.api.Assertions.assertEquals;
|
49
|
8
|
|
50
|
9
|
public class DiceTest {
|
51
|
10
|
|
|
@@ -54,7 +13,7 @@ public class DiceTest {
|
54
|
13
|
Dice dice = new Dice(2);
|
55
|
14
|
int expected = 6;
|
56
|
15
|
int actual = dice.getSum();
|
57
|
|
- Assert.assertEquals(expected, actual, 6);
|
|
16
|
+ assertEquals(expected, actual, 6);
|
58
|
17
|
}
|
59
|
18
|
|
60
|
19
|
@Test
|
|
@@ -62,7 +21,7 @@ public class DiceTest {
|
62
|
21
|
Dice dice = new Dice(5);
|
63
|
22
|
int expected = 13;
|
64
|
23
|
int actual = dice.getSum();
|
65
|
|
- Assert.assertEquals(expected, actual, 12);
|
|
24
|
+ assertEquals(expected, actual, 12);
|
66
|
25
|
}
|
67
|
26
|
|
68
|
27
|
@Test
|
|
@@ -70,7 +29,7 @@ public class DiceTest {
|
70
|
29
|
Dice dice = new Dice(2);
|
71
|
30
|
int expected = 3;
|
72
|
31
|
int actual = dice.getEach()[1];
|
73
|
|
- Assert.assertEquals(expected, actual, 3);
|
|
32
|
+ assertEquals(expected, actual, 3);
|
74
|
33
|
}
|
75
|
34
|
|
76
|
35
|
@Test
|
|
@@ -78,7 +37,6 @@ public class DiceTest {
|
78
|
37
|
Dice dice = new Dice(6);
|
79
|
38
|
int expected = 3;
|
80
|
39
|
int actual = dice.getEach()[3];
|
81
|
|
- Assert.assertEquals(expected, actual, 3);
|
|
40
|
+ assertEquals(expected, actual, 3);
|
82
|
41
|
}
|
83
|
42
|
}
|
84
|
|
->>>>>>> origin/dev
|