// This file was auto-generated based on version 1.0.0 of the canonical data. module MinesweeperTest open FsUnit.Xunit open Xunit open Minesweeper [] let ``No rows`` () = let input: string list = [] let expected: string list = [] annotate input |> should equal expected [] let ``No columns`` () = let input = [""] let expected = [""] annotate input |> should equal expected [] let ``No mines`` () = let input = [ " "; " "; " " ] let expected = [ " "; " "; " " ] annotate input |> should equal expected [] let ``Board with only mines`` () = let input = [ "***"; "***"; "***" ] let expected = [ "***"; "***"; "***" ] annotate input |> should equal expected [] let ``Mine surrounded by spaces`` () = let input = [ " "; " * "; " " ] let expected = [ "111"; "1*1"; "111" ] annotate input |> should equal expected [] let ``Space surrounded by mines`` () = let input = [ "***"; "* *"; "***" ] let expected = [ "***"; "*8*"; "***" ] annotate input |> should equal expected [] let ``Horizontal line`` () = let input = [" * * "] let expected = ["1*2*1"] annotate input |> should equal expected [] let ``Horizontal line, mines at edges`` () = let input = ["* *"] let expected = ["*1 1*"] annotate input |> should equal expected [] let ``Vertical line`` () = let input = [ " "; "*"; " "; "*"; " " ] let expected = [ "1"; "*"; "2"; "*"; "1" ] annotate input |> should equal expected [] let ``Vertical line, mines at edges`` () = let input = [ "*"; " "; " "; " "; "*" ] let expected = [ "*"; "1"; " "; "1"; "*" ] annotate input |> should equal expected [] let ``Cross`` () = let input = [ " * "; " * "; "*****"; " * "; " * " ] let expected = [ " 2*2 "; "25*52"; "*****"; "25*52"; " 2*2 " ] annotate input |> should equal expected [] let ``Large board`` () = let input = [ " * * "; " * "; " * "; " * *"; " * * "; " " ] let expected = [ "1*22*1"; "12*322"; " 123*2"; "112*4*"; "1*22*2"; "111111" ] annotate input |> should equal expected