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