summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-04-28 22:35:08 -0700
committerOri Bernstein <ori@eigenstate.org>2019-04-28 22:35:43 -0700
commitfd00fa796bd36d2d369ff2ac67ac2a35d981ea6c (patch)
tree3471ab62af7c2d1cdf5e13444ed11f88febea7b4
parent4be03d030c00960d2b27f319057d1a07603c0260 (diff)
downloadmc-fd00fa796bd36d2d369ff2ac67ac2a35d981ea6c.tar.gz
Add test for previous issue.
-rw-r--r--test/fltabs.myr5
-rw-r--r--test/tests1
2 files changed, 6 insertions, 0 deletions
diff --git a/test/fltabs.myr b/test/fltabs.myr
new file mode 100644
index 0000000..575cf6a
--- /dev/null
+++ b/test/fltabs.myr
@@ -0,0 +1,5 @@
+use std
+
+const main = {
+ std.put("{}\n", std.abs(-42.0))
+}
diff --git a/test/tests b/test/tests
index d4ad1ce..b4d9547 100644
--- a/test/tests
+++ b/test/tests
@@ -127,6 +127,7 @@ B matchnest P 'abcdef'
F matchmixed
F matchoverlap
B bigliteral P 34359738368
+B fltabs P '42.0'
B arraylit-ni E 2
B arraypack P '(1, foo)(2, bar)(3, baz)'
B arraypass P 1