Simplify logical && || operator eval

This commit is contained in:
Jason Turner
2015-01-31 13:41:29 -07:00
parent 722e9ed3d1
commit d558019bb3
2 changed files with 25 additions and 37 deletions

View File

@@ -0,0 +1,21 @@
def shouldnt_execute()
{
assert(false)
}
if (false && shouldnt_execute()) {
}
if (true || shouldnt_execute()) {
}
if (false || false || false || true || shouldnt_execute()) {
}
if (true && true && true && false && shouldnt_execute()) {
}