1
+ import kotlin.test.Ignore
1
2
import kotlin.test.Test
2
3
import kotlin.test.assertEquals
3
4
@@ -6,39 +7,51 @@ class DartsTest {
6
7
@Test
7
8
fun `missed target` () = assertEquals(0 , Darts .score(- 9 , 9 ))
8
9
10
+ @Ignore
9
11
@Test
10
12
fun `on the outer circle` () = assertEquals(1 , Darts .score(0 , 10 ))
11
13
14
+ @Ignore
12
15
@Test
13
16
fun `on the middle circle` () = assertEquals(5 , Darts .score(- 5 , 0 ))
14
17
18
+ @Ignore
15
19
@Test
16
20
fun `on the inner circle` () = assertEquals(10 , Darts .score(0 , - 1 ))
17
21
22
+ @Ignore
18
23
@Test
19
24
fun `exactly on centre` () = assertEquals(10 , Darts .score(0 , 0 ))
20
25
26
+ @Ignore
21
27
@Test
22
28
fun `near the centre` () = assertEquals(10 , Darts .score(- 0.1 , - 0.1 ))
23
29
30
+ @Ignore
24
31
@Test
25
32
fun `just within the inner circle` () = assertEquals(10 , Darts .score(0.7 , 0.7 ))
26
33
34
+ @Ignore
27
35
@Test
28
36
fun `just outside the inner circle` () = assertEquals(5 , Darts .score(0.8 , - 0.8 ))
29
37
38
+ @Ignore
30
39
@Test
31
40
fun `just within the middle circle` () = assertEquals(5 , Darts .score(- 3.5 , 3.5 ))
32
41
42
+ @Ignore
33
43
@Test
34
44
fun `just outside the middle circle` () = assertEquals(1 , Darts .score(- 3.6 , - 3.6 ))
35
45
46
+ @Ignore
36
47
@Test
37
48
fun `just within the outer circle` () = assertEquals(1 , Darts .score(- 7.0 , 7.0 ))
38
49
50
+ @Ignore
39
51
@Test
40
52
fun `just outside the outer circle` () = assertEquals(0 , Darts .score(7.1 , - 7.1 ))
41
53
54
+ @Ignore
42
55
@Test
43
56
fun `asymmetric position between the inner and middle circles` () = assertEquals(5 , Darts .score(0.5 , - 4 ))
44
57
}
0 commit comments