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