Skip to content

Commit

Permalink
Update simplification results of newer library
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamTheCoder committed Apr 10, 2022
1 parent 6d86358 commit 445bbf2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/CSharp/ExpressionTests/BinaryExpressionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ private void TestMethod()
bool x = false;
if ((a & b) == true)
return;
if ((a is var arg1 && arg1.HasValue && !arg1.Value ? (bool?)false : !(b is { } arg2) ? null : arg2 ? arg1 : false) == true)
if ((a is var arg1 && arg1.HasValue && !arg1.Value ? false : !(b is { } arg2) ? null : arg2 ? arg1 : false) == true)
return;
if ((a & x) == true)
return;
Expand All @@ -293,7 +293,7 @@ private void TestMethod()
if (x && a.GetValueOrDefault())
return;
var res = a & b;
res = a is var arg7 && arg7.HasValue && !arg7.Value ? (bool?)false : !(b is { } arg8) ? null : arg8 ? arg7 : false;
res = a is var arg7 && arg7.HasValue && !arg7.Value ? false : !(b is { } arg8) ? null : arg8 ? arg7 : false;
res = a & x;
res = a is var arg9 && arg9.HasValue && !arg9.Value ? false : x ? arg9 : false;
res = x & a;
Expand Down Expand Up @@ -347,7 +347,7 @@ private void TestMethod()
if (x || a.GetValueOrDefault())
return;
var res = a | b;
res = a is var arg1 && arg1.GetValueOrDefault() ? (bool?)true : !(b is { } arg2) ? null : arg2 ? true : arg1;
res = a is var arg1 && arg1.GetValueOrDefault() ? true : !(b is { } arg2) ? null : arg2 ? true : arg1;
res = a | x;
res = a is var arg3 && arg3.GetValueOrDefault() ? true : x ? true : arg3;
res = x | a;
Expand Down Expand Up @@ -531,7 +531,7 @@ private object TestMethod()
{
bool? var1 = default;
bool? var2 = default;
return var1 is var arg1 && arg1.GetValueOrDefault() ? (bool?)true : !(!var2 is { } arg2) ? null : arg2 ? true : arg1;
return (object)(var1 is var arg1 && arg1.GetValueOrDefault() ? true : !(!var2 is { } arg2) ? null : arg2 ? true : arg1);
}
}");
}
Expand Down

0 comments on commit 445bbf2

Please sign in to comment.