Sha256: d4447b833ef66fac646c56b894d7e4d820d63bbb37705c6e52bdf70ac146512e

Contents?: true

Size: 1.21 KB

Versions: 240

Compression:

Stored size: 1.21 KB

Contents

module TwoBucketTest

open NUnit.Framework

open TwoBucket

[<Test>]
let ``First example``() =
    let bucketOneSize = 3
    let bucketTwoSize = 5
    let goal = 1
    let startBucket = Bucket.One

    let actual = moves bucketOneSize bucketTwoSize goal startBucket
    Assert.That(actual, Is.EqualTo(Some (4, Bucket.One, 5)))

[<Test>]
[<Ignore("Remove to run test")>]
let ``Second example``() =
    let bucketOneSize = 3
    let bucketTwoSize = 5
    let goal = 1
    let startBucket = Bucket.Two

    let actual = moves bucketOneSize bucketTwoSize goal startBucket
    Assert.That(actual, Is.EqualTo(Some (8, Bucket.Two, 3)))

[<Test>]
[<Ignore("Remove to run test")>]
let ``Third example``() =
    let bucketOneSize = 7
    let bucketTwoSize = 11
    let goal = 2
    let startBucket = Bucket.One

    let actual = moves bucketOneSize bucketTwoSize goal startBucket
    Assert.That(actual, Is.EqualTo(Some (14, Bucket.One, 11)))

[<Test>]
[<Ignore("Remove to run test")>]
let ``Fourth example``() =
    let bucketOneSize = 7
    let bucketTwoSize = 11
    let goal = 2
    let startBucket = Bucket.Two

    let actual = moves bucketOneSize bucketTwoSize goal startBucket
    Assert.That(actual, Is.EqualTo(Some (18, Bucket.Two, 7)))

Version data entries

240 entries across 240 versions & 1 rubygems

Version Path
trackler-2.1.0.45 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.44 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.43 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.42 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.41 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.40 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.39 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.38 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.37 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.36 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.34 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.33 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.32 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.31 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.30 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.29 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.28 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.27 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.26 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.1.0.25 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs