Sha256: 99e451f28d065a5091c36fd94e583eb9f2ce8c5a61a65424215d7163c09cb11f
Contents?: true
Size: 1.98 KB
Versions: 36
Compression:
Stored size: 1.98 KB
Contents
// This file was auto-generated based on version 2.0.0 of the canonical data. module DominoesTest open FsUnit.Xunit open Xunit open Dominoes [<Fact>] let ``Empty input = empty output`` () = let input = [] canChain input |> should equal true [<Fact(Skip = "Remove to run test")>] let ``Singleton input = singleton output`` () = let input = [(1, 1)] canChain input |> should equal true [<Fact(Skip = "Remove to run test")>] let ``Singleton that can't be chained`` () = let input = [(1, 2)] canChain input |> should equal false [<Fact(Skip = "Remove to run test")>] let ``Three elements`` () = let input = [(1, 2); (3, 1); (2, 3)] canChain input |> should equal true [<Fact(Skip = "Remove to run test")>] let ``Can reverse dominoes`` () = let input = [(1, 2); (1, 3); (2, 3)] canChain input |> should equal true [<Fact(Skip = "Remove to run test")>] let ``Can't be chained`` () = let input = [(1, 2); (4, 1); (2, 3)] canChain input |> should equal false [<Fact(Skip = "Remove to run test")>] let ``Disconnected - simple`` () = let input = [(1, 1); (2, 2)] canChain input |> should equal false [<Fact(Skip = "Remove to run test")>] let ``Disconnected - double loop`` () = let input = [(1, 2); (2, 1); (3, 4); (4, 3)] canChain input |> should equal false [<Fact(Skip = "Remove to run test")>] let ``Disconnected - single isolated`` () = let input = [(1, 2); (2, 3); (3, 1); (4, 4)] canChain input |> should equal false [<Fact(Skip = "Remove to run test")>] let ``Need backtrack`` () = let input = [(1, 2); (2, 3); (3, 1); (2, 4); (2, 4)] canChain input |> should equal true [<Fact(Skip = "Remove to run test")>] let ``Separate loops`` () = let input = [(1, 2); (2, 3); (3, 1); (1, 1); (2, 2); (3, 3)] canChain input |> should equal true [<Fact(Skip = "Remove to run test")>] let ``Nine elements`` () = let input = [(1, 2); (5, 3); (3, 1); (1, 2); (2, 4); (1, 6); (2, 3); (3, 4); (5, 6)] canChain input |> should equal true
Version data entries
36 entries across 36 versions & 1 rubygems