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

Version Path
trackler-2.2.1.180 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.179 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.178 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.177 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.176 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.175 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.174 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.173 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.172 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.171 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.170 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.169 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.167 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.166 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.165 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.164 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.163 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.162 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.161 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.160 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs