소스 검색

newblackjsc

Vincent Sima 6 년 전
부모
커밋
34049fa775
3개의 변경된 파일141개의 추가작업 그리고 42개의 파일을 삭제
  1. BIN
      src/main/java/io/zipcoder/.DS_Store
  2. 99
    0
      src/test/java/io/zipcoder/casino/BlackJackTest.java
  3. 42
    42
      src/test/java/io/zipcoder/casino/DiceTest.java

BIN
src/main/java/io/zipcoder/.DS_Store 파일 보기


+ 99
- 0
src/test/java/io/zipcoder/casino/BlackJackTest.java 파일 보기

@@ -0,0 +1,99 @@
1
+package io.zipcoder.casino;
2
+
3
+import org.junit.jupiter.api.Test;
4
+
5
+import static org.junit.jupiter.api.Assertions.*;
6
+
7
+class BlackJackTest {
8
+
9
+    @Test
10
+    void start() {
11
+    }
12
+
13
+    @Test
14
+    void dealToPlayerHand() {
15
+    }
16
+    @Test
17
+    void dealToDealerHand() {
18
+    }
19
+
20
+    @Test
21
+    void setPlayingHands() {
22
+    }
23
+    @Test
24
+    void getPlayerHand() {
25
+    }
26
+
27
+    @Test
28
+    void getDealerHand() {
29
+    }
30
+    @Test
31
+    void showDealerHand() {
32
+    }
33
+
34
+    @Test
35
+    void setCurrentBet() {
36
+    }
37
+    @Test
38
+    void setAskToPlayAgain() {
39
+    }
40
+
41
+    @Test
42
+    void resetHands() {
43
+    }
44
+    @Test
45
+    void startHands() {
46
+    }
47
+    @Test
48
+    void startNextHand() {
49
+    }
50
+
51
+    @Test
52
+    void getCardValue() {
53
+    }
54
+    @Test
55
+    void calcHand() {
56
+    }
57
+    @Test
58
+    void playerBust() {
59
+    }
60
+
61
+    @Test
62
+    void dealerBust() {
63
+    }
64
+    @Test
65
+    void playerHits() {
66
+    }
67
+    @Test
68
+    void playerDoubles() {
69
+    }
70
+
71
+    @Test
72
+    void playerStays() {
73
+    }
74
+    @Test
75
+    void dealerHits() {
76
+    }
77
+    @Test
78
+    void dealerStays() {
79
+    }
80
+    @Test
81
+    void dealerBj() {
82
+    }
83
+    @Test
84
+    void playerBj() {
85
+    }
86
+    @Test
87
+    void playerPush() {
88
+    }
89
+    @Test
90
+    void playerWins() {
91
+    }
92
+    @Test
93
+    void dealerWins() {
94
+    }
95
+    @Test
96
+    void newDeal() {
97
+    }
98
+
99
+}

+ 42
- 42
src/test/java/io/zipcoder/casino/DiceTest.java 파일 보기

@@ -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