summaryrefslogtreecommitdiff
path: root/tests/src/negate.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/negate.nim')
-rw-r--r--tests/src/negate.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/src/negate.nim b/tests/src/negate.nim
new file mode 100644
index 0000000..c775e74
--- /dev/null
+++ b/tests/src/negate.nim
@@ -0,0 +1,5 @@
+func negate(x): bool -> bool =
+ if x:
+ 0
+ else:
+ 1