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.2 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.1 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.1.0 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.0.6 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.0.5 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.0.4 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.0.3 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.0.2 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.0.1 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.2.0.0 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.1.0.55 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.1.0.54 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.1.0.53 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.1.0.52 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.1.0.51 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.1.0.50 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.1.0.49 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.1.0.48 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.1.0.47 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.1.0.46 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs