aboutsummaryrefslogtreecommitdiff
path: root/test/tables.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-04-28 14:58:55 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-04-28 14:58:55 -0400
commit3c0a8f0b899a343f43caf9c95147b2cf77a7b525 (patch)
treeb7193a8021ef9ab57c71319ecad797bf51849025 /test/tables.tm
parent5910998a19aab5dab2c761aea946cfbb09a37918 (diff)
Syntax tweak: use ':' for blocks
Diffstat (limited to 'test/tables.tm')
-rw-r--r--test/tables.tm6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tables.tm b/test/tables.tm
index 2ba42714..8609e522 100644
--- a/test/tables.tm
+++ b/test/tables.tm
@@ -1,4 +1,4 @@
-func main()
+func main():
>> t := {"one":1, "two":2; default=999}
= {"one":1, "two":2; default=999}
@@ -10,7 +10,7 @@ func main()
= 999
t_str := ""
- for k,v in t
+ for k,v in t:
t_str ++= "({k}:{v})"
>> t_str
= "(one:1)(two:2)"
@@ -45,7 +45,7 @@ func main()
= ?%{"one":1, "two":2; default=999}
t2_str := ""
- for k,v in t2
+ for k,v in t2:
t2_str ++= "({k}:{v})"
>> t2_str
= "(three:3)"