Permalink
Browse files

ExpressionSample - more type mismatch tests (+ - * / ^)

  • Loading branch information...
bobbymcr committed Apr 17, 2018
1 parent e8f14f1 commit 7c5a6ca77f03eba982b43f9d5c4855f78c6f3f3d
@@ -35,9 +35,16 @@ public void StringExpressions(string input, string output)
Test.Good(input, output);
}
[InlineData("\"1\"+2")]
[InlineData("X$+234")]
[InlineData("X(234)+YZ1234$")]
[InlineData("1+\"x\"")]
[InlineData("\"x\"+1")]
[InlineData("X+X$")]
[InlineData("X$+X")]
[InlineData("X+\"x\"")]
[InlineData("\"x\"+X")]
[InlineData("1+X$")]
[InlineData("X$+1")]
[InlineData("X$(1)+X(1)")]
[InlineData("X(1)+X$(1)")]
[Theory]
public void TypeMismatch(string input)
{
@@ -26,9 +26,16 @@ public void IgnoreSpaces(string input, string output)
Test.Good(input, output);
}
[InlineData("2/\"1\"")]
[InlineData("234/X$")]
[InlineData("X(234)/YZ1234$")]
[InlineData("1/\"x\"")]
[InlineData("\"x\"/1")]
[InlineData("X/X$")]
[InlineData("X$/X")]
[InlineData("X/\"x\"")]
[InlineData("\"x\"/X")]
[InlineData("1/X$")]
[InlineData("X$/1")]
[InlineData("X$(1)/X(1)")]
[InlineData("X(1)/X$(1)")]
[Theory]
public void TypeMismatch(string input)
{
@@ -26,9 +26,16 @@ public void IgnoreSpaces(string input, string output)
Test.Good(input, output);
}
[InlineData("2^\"1\"")]
[InlineData("234^X$")]
[InlineData("X(234)^YZ1234$")]
[InlineData("1^\"x\"")]
[InlineData("\"x\"^1")]
[InlineData("X^X$")]
[InlineData("X$^X")]
[InlineData("X^\"x\"")]
[InlineData("\"x\"^X")]
[InlineData("1^X$")]
[InlineData("X$^1")]
[InlineData("X$(1)^X(1)")]
[InlineData("X(1)^X$(1)")]
[Theory]
public void TypeMismatch(string input)
{
@@ -26,9 +26,16 @@ public void IgnoreSpaces(string input, string output)
Test.Good(input, output);
}
[InlineData("2*\"1\"")]
[InlineData("234*X$")]
[InlineData("X(234)*YZ1234$")]
[InlineData("1*\"x\"")]
[InlineData("\"x\"*1")]
[InlineData("X*X$")]
[InlineData("X$*X")]
[InlineData("X*\"x\"")]
[InlineData("\"x\"*X")]
[InlineData("1*X$")]
[InlineData("X$*1")]
[InlineData("X$(1)*X(1)")]
[InlineData("X(1)*X$(1)")]
[Theory]
public void TypeMismatch(string input)
{
@@ -26,9 +26,16 @@ public void IgnoreSpaces(string input, string output)
Test.Good(input, output);
}
[InlineData("2-\"1\"")]
[InlineData("234-X$")]
[InlineData("X(234)-YZ1234$")]
[InlineData("1-\"x\"")]
[InlineData("\"x\"-1")]
[InlineData("X-X$")]
[InlineData("X$-X")]
[InlineData("X-\"x\"")]
[InlineData("\"x\"-X")]
[InlineData("1-X$")]
[InlineData("X$-1")]
[InlineData("X$(1)-X(1)")]
[InlineData("X(1)-X$(1)")]
[Theory]
public void TypeMismatch(string input)
{

0 comments on commit 7c5a6ca

Please sign in to comment.