diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 16:07:23 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 16:07:23 -0400 |
| commit | 6782cc5570e194791ca6cdd695b88897e9145564 (patch) | |
| tree | a428e9d954aca251212ec1cf15bd35e0badce630 /test/structs.tm | |
| parent | 448e805293989b06e07878a4a87fdd378f7c6e02 (diff) | |
No more colons for blocks
Diffstat (limited to 'test/structs.tm')
| -rw-r--r-- | test/structs.tm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/structs.tm b/test/structs.tm index cf7b6a1c..f1ae49d0 100644 --- a/test/structs.tm +++ b/test/structs.tm @@ -8,7 +8,7 @@ struct Password(text:Text; secret) struct CorecursiveA(other:@CorecursiveB?) struct CorecursiveB(other:@CorecursiveA?=none) -func test_literals(): +func test_literals() >> Single(123) = Single(123) >> x := Pair(10, 20) @@ -20,7 +20,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 @@ -38,7 +38,7 @@ func test_metamethods(): >> set.has(y) = no -func test_mixed(): +func test_mixed() >> x := Mixed(10, "Hello") >> y := Mixed(99, "Hello") >> x == y @@ -55,14 +55,14 @@ func test_mixed(): >> set.has(y) = no -func test_text(): +func test_text() >> b := @CorecursiveB() >> a := @CorecursiveA(b) >> b.other = a >> a # = @CorecursiveA(@CorecursiveB(@~1)) -func main(): +func main() test_literals() test_metamethods() test_mixed() |
