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.139 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.138 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.137 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.136 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.135 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.134 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.133 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.132 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.131 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.130 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.129 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.128 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.127 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.126 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.125 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.124 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.123 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.122 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.121 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs
trackler-2.2.1.120 tracks/fsharp/exercises/spiral-matrix/SpiralMatrixTest.fs