aboutsummaryrefslogtreecommitdiff
path: root/test/structs.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/structs.tm
parent5910998a19aab5dab2c761aea946cfbb09a37918 (diff)
Syntax tweak: use ':' for blocks
Diffstat (limited to 'test/structs.tm')
-rw-r--r--test/structs.tm8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/structs.tm b/test/structs.tm
index 9fe2f6a7..840ee847 100644
--- a/test/structs.tm
+++ b/test/structs.tm
@@ -4,7 +4,7 @@ struct Mixed(x:Int, text:Text)
struct LinkedList(x:Int, next=!LinkedList)
struct Password(text:Text; secret)
-func test_literals()
+func test_literals():
>> x := Pair(10, 20)
= Pair(x=10, y=20)
>> y := Pair(y=20, 10)
@@ -14,7 +14,7 @@ func test_literals()
>> x == Pair(-1, -2)
= no
-func test_metamethods()
+func test_metamethods():
>> x := Pair(10, 20)
>> y := Pair(100, 200)
>> x == y
@@ -32,7 +32,7 @@ func test_metamethods()
>> t2[y]
= "missing"
-func test_mixed()
+func test_mixed():
>> x := Mixed(10, "Hello")
>> y := Mixed(99, "Hello")
>> x == y
@@ -49,7 +49,7 @@ func test_mixed()
>> t[y]
= "missing"
-func main()
+func main():
test_literals()
test_metamethods()
test_mixed()