public void Paired_and_nested_brackets() { var value = "([{}({}[])])"; Assert.True(BracketPush.IsPaired(value)); }
public void Unpaired_and_nested_brackets() { const string actual = "([{])"; Assert.False(BracketPush.Matched(actual)); }
public void Math_expression() { const string actual = "(((185 + 223.85) * 15) - 543)/2"; Assert.True(BracketPush.Matched(actual)); }
public void Simple_nested_brackets() { const string actual = "{[]}"; Assert.True(BracketPush.Matched(actual)); }
public void Several_paired_brackets() { const string actual = "{}[]"; Assert.True(BracketPush.Matched(actual)); }
public void Empty_string() { const string actual = ""; Assert.True(BracketPush.Matched(actual)); }
public void Wrong_ordered_brackets() { const string actual = "}{"; Assert.False(BracketPush.Matched(actual)); }
public void Unpaired_brackets() { var input = "[["; Assert.False(BracketPush.IsPaired(input)); }
public void Wrong_ordered_brackets() { var input = "}{"; Assert.False(BracketPush.IsPaired(input)); }
public void Complex_latex_expression() { var input = "\\left(\\begin{array}{cc} \\frac{1}{3} & x\\\\ \\mathrm{e}^{x} &... x^2 \\end{array}\\right)"; Assert.True(BracketPush.IsPaired(input)); }
public void Empty_string() { var input = ""; Assert.True(BracketPush.IsPaired(input)); }
public void Math_expression() { var input = "(((185 + 223.85) * 15) - 543)/2"; Assert.True(BracketPush.IsPaired(input)); }
public void Unpaired_and_nested_brackets() { var value = "([{])"; Assert.False(BracketPush.IsPaired(value)); }
public void Unopened_closing_brackets() { var value = "{[)][]}"; Assert.False(BracketPush.IsPaired(value)); }
public void Unpaired_and_nested_brackets() { var input = "([{])"; Assert.False(BracketPush.IsPaired(input)); }
public void Wrong_closing_bracket() { var input = "{]"; Assert.False(BracketPush.IsPaired(input)); }
public void Paired_and_wrong_nested_brackets() { var input = "[({]})"; Assert.False(BracketPush.IsPaired(input)); }
public void Paired_with_whitespace() { var input = "{ }"; Assert.True(BracketPush.IsPaired(input)); }
public void Unpaired_brackets() { const string actual = "[["; Assert.False(BracketPush.Matched(actual)); }
public void Simple_nested_brackets() { var input = "{[]}"; Assert.True(BracketPush.IsPaired(input)); }
public void Paired_with_whitespace() { const string actual = "{ }"; Assert.True(BracketPush.Matched(actual)); }
public void Several_paired_brackets() { var input = "{}[]"; Assert.True(BracketPush.IsPaired(input)); }
public void Paired_square_brackets() { const string actual = "[]"; Assert.True(BracketPush.Matched(actual)); }
public void Paired_square_brackets() { var input = "[]"; Assert.True(BracketPush.IsPaired(input)); }
public void Paired_and_nested_brackets() { const string actual = "([{}({}[])])"; Assert.True(BracketPush.Matched(actual)); }
public void Paired_and_nested_brackets() { var input = "([{}({}[])])"; Assert.True(BracketPush.IsPaired(input)); }
public void Paired_and_wrong_nested_brackets() { const string actual = "[({]})"; Assert.False(BracketPush.Matched(actual)); }
public void Unopened_closing_brackets() { var input = "{[)][]}"; Assert.False(BracketPush.IsPaired(input)); }
public void Complex_latex_expression() { const string actual = "\\left(\\begin{array}{cc} \\frac{1}{3} & x\\\\ \\mathrm{e}^{x} &... x^2 \\end{array}\\right)"; Assert.True(BracketPush.Matched(actual)); }
public void Several_paired_brackets() { var value = "{}[]"; Assert.True(BracketPush.IsPaired(value)); }