aboutsummaryrefslogtreecommitdiff
path: root/test/optionals.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-12 04:09:52 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-12 04:09:52 -0400
commit43f4f3610e5258afbfb9e313c989e1e52f477c38 (patch)
tree1f960cd930ed7e1e251ed24700c613a01221443b /test/optionals.tm
parentfb6dc0a8b9b5537ef708778bf013f71f98fad41f (diff)
For single-member structs/enums, don't print the member name
Diffstat (limited to 'test/optionals.tm')
-rw-r--r--test/optionals.tm4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/optionals.tm b/test/optionals.tm
index c0c600a7..5c18d58d 100644
--- a/test/optionals.tm
+++ b/test/optionals.tm
@@ -215,12 +215,12 @@ func main():
!! ...
!! Enums:
>> yep := Enum.maybe(yes)
- = Enum.Y(y=123)?
+ = Enum.Y(123)?
>> nope := Enum.maybe(no)
= !Enum
>> if yep:
>> yep
- = Enum.Y(y=123)
+ = Enum.Y(123)
else: fail("Falsey: $yep")
>> if nope:
fail("Truthy: $nope")