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.1.0.4 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.1.0.3 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.1.0.2 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.1.0.1 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.1.0.0 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.0.8.55 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.0.8.54 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.0.8.53 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.0.8.52 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.0.8.51 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.0.8.50 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.0.8.49 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.0.8.48 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.0.8.47 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.0.8.46 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.0.8.45 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.0.8.44 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.0.8.43 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.0.8.42 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs
trackler-2.0.8.41 tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs