@@ -7,61 +7,53 @@ open KillerSudokuHelper
7
7
8
8
[<Fact>]
9
9
let ``1`` () =
10
- combinations 1 1 [] |> should equal [ [ 1 ] ]
10
+ combinations [] 1 1 |> should equal [[ 1 ] ]
11
11
12
12
[<Fact( Skip = " Remove this Skip property to run this test" ) >]
13
13
let ``2`` () =
14
- combinations 2 1 [] |> should equal [ [ 2 ] ]
14
+ combinations [] 1 2 |> should equal [[ 2 ] ]
15
15
16
16
[<Fact( Skip = " Remove this Skip property to run this test" ) >]
17
17
let ``3`` () =
18
- combinations 3 1 [] |> should equal [ [ 3 ] ]
18
+ combinations [] 1 3 |> should equal [[ 3 ] ]
19
19
20
20
[<Fact( Skip = " Remove this Skip property to run this test" ) >]
21
21
let ``4`` () =
22
- combinations 4 1 [] |> should equal [ [ 4 ] ]
22
+ combinations [] 1 4 |> should equal [[ 4 ] ]
23
23
24
24
[<Fact( Skip = " Remove this Skip property to run this test" ) >]
25
25
let ``5`` () =
26
- combinations 5 1 [] |> should equal [ [ 5 ] ]
26
+ combinations [] 1 5 |> should equal [[ 5 ] ]
27
27
28
28
[<Fact( Skip = " Remove this Skip property to run this test" ) >]
29
29
let ``6`` () =
30
- combinations 6 1 [] |> should equal [ [ 6 ] ]
30
+ combinations [] 1 6 |> should equal [[ 6 ] ]
31
31
32
32
[<Fact( Skip = " Remove this Skip property to run this test" ) >]
33
33
let ``7`` () =
34
- combinations 7 1 [] |> should equal [ [ 7 ] ]
34
+ combinations [] 1 7 |> should equal [[ 7 ] ]
35
35
36
36
[<Fact( Skip = " Remove this Skip property to run this test" ) >]
37
37
let ``8`` () =
38
- combinations 8 1 [] |> should equal [ [ 8 ] ]
38
+ combinations [] 1 8 |> should equal [[ 8 ] ]
39
39
40
40
[<Fact( Skip = " Remove this Skip property to run this test" ) >]
41
41
let ``9`` () =
42
- combinations 9 1 [] |> should equal [ [ 9 ] ]
42
+ combinations [] 1 9 |> should equal [[ 9 ] ]
43
43
44
44
[<Fact( Skip = " Remove this Skip property to run this test" ) >]
45
45
let ``Cage with sum 45 contains all digits 1 : 9`` () =
46
- combinations 45 9 []
47
- |> should equal [ [ 1 ; 2 ; 3 ; 4 ; 5 ; 6 ; 7 ; 8 ; 9 ] ]
46
+ combinations [] 9 45 |> should equal [[ 1 ; 2 ; 3 ; 4 ; 5 ; 6 ; 7 ; 8 ; 9 ]]
48
47
49
48
[<Fact( Skip = " Remove this Skip property to run this test" ) >]
50
49
let ``Cage with only 1 possible combination`` () =
51
- combinations 7 3 []
52
- |> should equal [ [ 1 ; 2 ; 4 ] ]
50
+ combinations [] 3 7 |> should equal [[ 1 ; 2 ; 4 ]]
53
51
54
52
[<Fact( Skip = " Remove this Skip property to run this test" ) >]
55
53
let ``Cage with several combinations`` () =
56
- combinations 10 2 []
57
- |> should
58
- equal
59
- [ [ 1 ; 9 ]
60
- [ 2 ; 8 ]
61
- [ 3 ; 7 ]
62
- [ 4 ; 6 ] ]
54
+ combinations [] 2 10 |> should equal [[ 1 ; 9 ]; [ 2 ; 8 ]; [ 3 ; 7 ]; [ 4 ; 6 ]]
63
55
64
56
[<Fact( Skip = " Remove this Skip property to run this test" ) >]
65
57
let ``Cage with several combinations that is restricted`` () =
66
- combinations 10 2 [ 1 ; 4 ]
67
- |> should equal [ [ 2 ; 8 ]; [ 3 ; 7 ] ]
58
+ combinations [ 1 ; 4 ] 2 10 |> should equal [[ 2 ; 8 ]; [ 3 ; 7 ] ]
59
+
0 commit comments