Sha256: ea4142830bd970019f3a4fd71e1c36abbfe05296b09fe862798817ceac2b7774

Contents?: true

Size: 1.82 KB

Versions: 240

Compression:

Stored size: 1.82 KB

Contents

module BracketPushTest

open NUnit.Framework

open BracketPush

[<Test>]
let ``Paired square brackets`` () =
    let actual ="[]"
    Assert.That(matched actual, Is.True)

[<Test>]
[<Ignore("Remove to run test")>]
let ``Empty string`` () =
    let actual =""
    Assert.That(matched actual, Is.True)

[<Test>]
[<Ignore("Remove to run test")>]
let ``Unpaired brackets`` () =
    let actual ="[["
    Assert.That(matched actual, Is.False)

[<Test>]
[<Ignore("Remove to run test")>]
let ``Wrong ordered brackets`` () =
    let actual ="}{"
    Assert.That(matched actual, Is.False)

[<Test>]
[<Ignore("Remove to run test")>]
let ``Paired with whitespace`` () =
    let actual ="{ }"
    Assert.That(matched actual, Is.True)

[<Test>]
[<Ignore("Remove to run test")>]
let ``Simple nested brackets`` () =
    let actual ="{[]}"
    Assert.That(matched actual, Is.True)

[<Test>]
[<Ignore("Remove to run test")>]
let ``Several paired brackets`` () =
    let actual ="{}[]"
    Assert.That(matched actual, Is.True)

[<Test>]
[<Ignore("Remove to run test")>]
let ``Paired and nested brackets`` () =
    let actual ="([{}({}[])])"
    Assert.That(matched actual, Is.True)

[<Test>]
[<Ignore("Remove to run test")>]
let ``Unpaired and nested brackets`` () =
    let actual ="([{])"
    Assert.That(matched actual, Is.False)

[<Test>]
[<Ignore("Remove to run test")>]
let ``Paired and wrong nested brackets`` () =
    let actual ="[({]})"
    Assert.That(matched actual, Is.False)

[<Test>]
[<Ignore("Remove to run test")>]
let ``Math expression`` () =
    let actual ="(((185 + 223.85) * 15) - 543)/2"
    Assert.That(matched actual, Is.True)

[<Test>]
[<Ignore("Remove to run test")>]
let ``Complex latex expression`` () =
    let actual ="\\left(\\begin{array}{cc} \\frac{1}{3} & x\\\\ \\mathrm{e}^{x} &... x^2 \\end{array}\\right)"
    Assert.That(matched actual, Is.True)

Version data entries

240 entries across 240 versions & 1 rubygems

Version Path
trackler-2.2.1.2 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.2.1.1 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.2.1.0 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.2.0.6 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.2.0.5 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.2.0.4 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.2.0.3 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.2.0.2 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.2.0.1 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.2.0.0 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.1.0.55 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.1.0.54 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.1.0.53 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.1.0.52 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.1.0.51 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.1.0.50 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.1.0.49 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.1.0.48 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.1.0.47 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs
trackler-2.1.0.46 tracks/fsharp/exercises/bracket-push/BracketPushTest.fs