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.159 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.158 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.157 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.156 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.155 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.154 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.153 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.152 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.151 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.150 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.149 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.148 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.147 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.146 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.145 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.144 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.143 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.142 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.141 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.140 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs