Skip to content

Commit

Permalink
added unfixed test for short circuit evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
wmww committed Mar 14, 2017
1 parent f1f9cfb commit 35eab47
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions examples/tests/unfixed/bool_short_circuit.pn
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Tests if short circuit is applied to operations with multiple bools

print: "1\n2\nmyFunc called\n_____"

tru || (myFunc: tru) ?
print: 1

fls && (myFunc: tru) ?
print: 2

!(myFunc: tru) || fls ?
print: 3

myFunc :: {Bool} -> {Bool}: (
print: "myFunc called"
in
)

0 comments on commit 35eab47

Please sign in to comment.