ref: 586fecf9ce10a7d9cdea222275916574355269fd
parent: b0c3ab86f225f819ab5c0ccdc01a768780d92c88
author: Ori Bernstein <[email protected]>
date: Tue Nov 6 08:24:43 EST 2012
Add test for catting a file. This exercises nested generics.
--- /dev/null
+++ b/test/catfile.myr
@@ -1,0 +1,10 @@
+use std
+
+const main = {args : byte[:][:]
+ var dat
+
+ dat = std.slurp("data/catfile")
+ std.write(1, dat)
+ -> 0
+}
+
--- /dev/null
+++ b/test/data/catfile
@@ -1,0 +1,1 @@
+Hello-世界
--- a/test/tests
+++ b/test/tests
@@ -73,6 +73,7 @@
B tuple E 42
B tyrec E 42
B helloworld P Hello-世界
+B catfile P Hello-世界
B encodechar P 1世界äa
F declmismatch
F infermismatch