|
@@ -1,45 +1,45 @@
|
1
|
|
-<<<<<<< HEAD
|
2
|
|
-//package io.zipcoder.casino;
|
3
|
|
-//
|
4
|
|
-//import org.junit.Assert;
|
5
|
|
-//import org.junit.Before;
|
6
|
|
-//import org.junit.Test;
|
7
|
|
-//
|
8
|
|
-//
|
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
|
|
-//}
|
|
1
|
+ HEAD
|
|
2
|
+package io.zipcoder.casino;
|
|
3
|
+
|
|
4
|
+import org.junit.Assert;
|
|
5
|
+import org.junit.Before;
|
|
6
|
+import org.junit.Test;
|
|
7
|
+
|
|
8
|
+
|
|
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
|
43
|
=======
|
44
|
44
|
package io.zipcoder.casino;
|
45
|
45
|
|