Sha256: 72b808afbd8c6788bc549023ad168bc96643569cbecad9bd769fab3c70f3abe1
Contents?: true
Size: 1.09 KB
Versions: 79
Compression:
Stored size: 1.09 KB
Contents
// This file was auto-generated based on version 1.1.0 of the canonical data. module SpiralMatrixTest open FsUnit.Xunit open Xunit open SpiralMatrix [<Fact>] let ``Empty spiral`` () = spiralMatrix 0 |> should be Empty [<Fact(Skip = "Remove to run test")>] let ``Trivial spiral`` () = spiralMatrix 1 |> should equal [[1]] [<Fact(Skip = "Remove to run test")>] let ``Spiral of size 2`` () = spiralMatrix 2 |> should equal [ [1; 2]; [4; 3] ] [<Fact(Skip = "Remove to run test")>] let ``Spiral of size 3`` () = spiralMatrix 3 |> should equal [ [1; 2; 3]; [8; 9; 4]; [7; 6; 5] ] [<Fact(Skip = "Remove to run test")>] let ``Spiral of size 4`` () = spiralMatrix 4 |> should equal [ [1; 2; 3; 4]; [12; 13; 14; 5]; [11; 16; 15; 6]; [10; 9; 8; 7] ] [<Fact(Skip = "Remove to run test")>] let ``Spiral of size 5`` () = spiralMatrix 5 |> should equal [ [1; 2; 3; 4; 5]; [16; 17; 18; 19; 6]; [15; 24; 25; 20; 7]; [14; 23; 22; 21; 8]; [13; 12; 11; 10; 9] ]
Version data entries
79 entries across 79 versions & 1 rubygems