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.2.1.22 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.21 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.20 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.19 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.18 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.17 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.16 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.15 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.14 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.13 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.12 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.11 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.10 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.9 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.8 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.7 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.6 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.5 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.4 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs
trackler-2.2.1.3 tracks/fsharp/exercises/two-bucket/TwoBucketTest.fs