summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-11-09 11:29:20 +0000
committerPaul Buetow <paul@buetow.org>2008-11-09 11:29:20 +0000
commit3c8a930c790976bb98ea0abeb144f2757ca1cc30 (patch)
tree133dae8aa2cb4f7bdb565d850c7c7b7a080d26e2
parent0c69b76e7d7cbc50d4f87e41766a2de1394a6cad (diff)
updated the array example.
-rw-r--r--test.fy6
1 files changed, 6 insertions, 0 deletions
diff --git a/test.fy b/test.fy
index 0331c31..cf34f24 100644
--- a/test.fy
+++ b/test.fy
@@ -10,3 +10,9 @@ my foo = [bar, 1, 4/2, double "3", ["A", ["BA", "BB"]]];
# Run on each element of foo recursive 'say'
say foo;
+
+# Print the length of the array
+assert 5 == say len foo;
+
+# Print the last index of the array
+assert 4 == say ind foo;