ref: 4ec65693a851c2c8d06e2eb2bb281105d006f474
parent: dca5e6339087339e0cd9890b5f91c2b3c9e875aa
author: Ori Bernstein <[email protected]>
date: Thu Jan 3 15:02:07 EST 2013
Add test for 'slgrow()' function.
--- /dev/null
+++ b/test/slgrow.myr
@@ -1,0 +1,11 @@
+use std
+
+const main = {
+ var sl
+
+ sl = std.slalloc(42)
+ sl[0] = 12
+ sl = std.slgrow(sl, 123)
+ sl[122] = 30
+ -> sl[0] + sl[122]
+}
--- a/test/tests
+++ b/test/tests
@@ -73,6 +73,7 @@
B structlit E 42
B tuple E 42
B tyrec E 42
+B slgrow E 42
B helloworld P Hello-世界
B catfile P Hello-世界
B encodechar P 1世界äa