aboutsummaryrefslogtreecommitdiff
path: root/test/for.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-04 17:06:09 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-04 17:06:09 -0400
commit0b8074154e2671691050bdb3bcb33245625a056c (patch)
tree1410e0c4e05c6372e876cd08f16d117e12868f41 /test/for.tm
parentfadcb45baf1274e06cfe37b87655b9146aa52874 (diff)
First working compile of refactor to add explicit typing to declarations
and support untyped empty collections and `none`s
Diffstat (limited to 'test/for.tm')
-rw-r--r--test/for.tm6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/for.tm b/test/for.tm
index a67e9d5d..e4967e86 100644
--- a/test/for.tm
+++ b/test/for.tm
@@ -32,18 +32,18 @@ func table_key_str(t:{Text=Text} -> Text):
func main():
>> all_nums([10,20,30])
= "10,20,30,"
- >> all_nums([:Int])
+ >> all_nums([])
= "EMPTY"
>> labeled_nums([10,20,30])
= "1:10,2:20,3:30,"
- >> labeled_nums([:Int])
+ >> labeled_nums([])
= "EMPTY"
>> t := {"key1"="value1", "key2"="value2"}
>> table_str(t)
= "key1:value1,key2:value2,"
- >> table_str({:Text=Text})
+ >> table_str({})
= "EMPTY"
>> table_key_str(t)