Sha256: aabd657dde2269d0ef06e4d1ddef1baa9facc03a42ad9cb196634b5adc71d7fb
Contents?: true
Size: 1.94 KB
Versions: 42
Compression:
Stored size: 1.94 KB
Contents
// This file was auto-generated based on version 1.3.0 of the canonical data. module BracketPushTest open FsUnit.Xunit open Xunit open BracketPush [<Fact>] let ``Paired square brackets`` () = isPaired "[]" |> should equal true [<Fact(Skip = "Remove to run test")>] let ``Empty string`` () = isPaired "" |> should equal true [<Fact(Skip = "Remove to run test")>] let ``Unpaired brackets`` () = isPaired "[[" |> should equal false [<Fact(Skip = "Remove to run test")>] let ``Wrong ordered brackets`` () = isPaired "}{" |> should equal false [<Fact(Skip = "Remove to run test")>] let ``Wrong closing bracket`` () = isPaired "{]" |> should equal false [<Fact(Skip = "Remove to run test")>] let ``Paired with whitespace`` () = isPaired "{ }" |> should equal true [<Fact(Skip = "Remove to run test")>] let ``Partially paired brackets`` () = isPaired "{[])" |> should equal false [<Fact(Skip = "Remove to run test")>] let ``Simple nested brackets`` () = isPaired "{[]}" |> should equal true [<Fact(Skip = "Remove to run test")>] let ``Several paired brackets`` () = isPaired "{}[]" |> should equal true [<Fact(Skip = "Remove to run test")>] let ``Paired and nested brackets`` () = isPaired "([{}({}[])])" |> should equal true [<Fact(Skip = "Remove to run test")>] let ``Unopened closing brackets`` () = isPaired "{[)][]}" |> should equal false [<Fact(Skip = "Remove to run test")>] let ``Unpaired and nested brackets`` () = isPaired "([{])" |> should equal false [<Fact(Skip = "Remove to run test")>] let ``Paired and wrong nested brackets`` () = isPaired "[({]})" |> should equal false [<Fact(Skip = "Remove to run test")>] let ``Math expression`` () = isPaired "(((185 + 223.85) * 15) - 543)/2" |> should equal true [<Fact(Skip = "Remove to run test")>] let ``Complex latex expression`` () = isPaired "\left(\begin{array}{cc} \frac{1}{3} & x\\ \mathrm{e}^{x} &... x^2 \end{array}\right)" |> should equal true
Version data entries
42 entries across 42 versions & 1 rubygems