Sha256: 713e08d5a12f89632500af45915fdab305cc38cfb51936ad45508023026a9dce

Contents?: true

Size: 1.19 KB

Versions: 240

Compression:

Stored size: 1.19 KB

Contents

module DifferenceOfSquaresTest

open NUnit.Framework
open DifferenceOfSquares
    
[<Test>]
let ``Square of sums to 5`` () =
    Assert.That(squareOfSums 5, Is.EqualTo(225))

[<Test>]
[<Ignore("Remove to run test")>]
let ``Sum of squares to 5`` () =
    Assert.That(sumOfSquares 5, Is.EqualTo(55))

[<Test>]
[<Ignore("Remove to run test")>]
let ``Difference of sums to 5`` () =
    Assert.That(difference 5, Is.EqualTo(170))

[<Test>]
[<Ignore("Remove to run test")>]
let ``Square of sums to 10`` () =
    Assert.That(squareOfSums 10, Is.EqualTo(3025))

[<Test>]
[<Ignore("Remove to run test")>]
let ``Sum of squares to 10`` () =
    Assert.That(sumOfSquares 10, Is.EqualTo(385))

[<Test>]
[<Ignore("Remove to run test")>]
let ``Difference of sums to 10`` () =
    Assert.That(difference 10, Is.EqualTo(2640))

[<Test>]
[<Ignore("Remove to run test")>]
let ``Square of sums to 100`` () =
    Assert.That(squareOfSums 100, Is.EqualTo(25502500))

[<Test>]
[<Ignore("Remove to run test")>]
let ``Sum of squares to 100`` () =
    Assert.That(sumOfSquares 100, Is.EqualTo(338350))

[<Test>]
[<Ignore("Remove to run test")>]
let ``Difference of sums to 100`` () =
    Assert.That(difference 100, Is.EqualTo(25164150))

Version data entries

240 entries across 240 versions & 1 rubygems

Version Path
trackler-2.2.1.22 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.21 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.20 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.19 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.18 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.17 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.16 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.15 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.14 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.13 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.12 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.11 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.10 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.9 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.8 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.7 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.6 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.5 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.4 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.3 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs