summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-11-30 17:42:04 -0800
committerOri Bernstein <ori@eigenstate.org>2014-11-30 17:42:04 -0800
commit9526e43a51595f081bfa0cc8b63d625ea785ff6d (patch)
treecc94e364e7daad25d730635e1186ce8ab292eb1a /test
parentd534f4ba7940abe04a5e8e12b3b41a86dc0a7107 (diff)
downloadmc-9526e43a51595f081bfa0cc8b63d625ea785ff6d.tar.gz
Be stricter about negating booleans.
We used to allow non-booleans. This was bad.
Diffstat (limited to 'test')
-rw-r--r--test/encodechar.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/encodechar.myr b/test/encodechar.myr
index eb32e18..ca2ff76 100644
--- a/test/encodechar.myr
+++ b/test/encodechar.myr
@@ -15,7 +15,7 @@ const chartypes = {
while s.len != 0
(c, s) = std.striter(s)
foo = c
- if !std.encode(buf[:std.charlen(c)], c)
+ if std.encode(buf[:std.charlen(c)], c) == 0
std.write(1, "couldn't encode\n")
;;
std.write(1, buf[:std.charlen(c)])