summaryrefslogtreecommitdiff
path: root/test.fy
diff options
context:
space:
mode:
Diffstat (limited to 'test.fy')
-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;