diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-16 17:07:22 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-16 17:07:22 -0400 |
| commit | e80571e36f858fa1fc695e5e40e453294304401f (patch) | |
| tree | 7bc85e98802cd4351cf0c2776b6dffd9fe912b46 /test | |
| parent | f4f5fd4fdd9315667f048c578f3a441e6710250d (diff) | |
Remove enum type prefix when printing enum
Diffstat (limited to 'test')
| -rw-r--r-- | test/enums.tm | 8 | ||||
| -rw-r--r-- | test/optionals.tm | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/enums.tm b/test/enums.tm index c2ffce4c..a5ed64ba 100644 --- a/test/enums.tm +++ b/test/enums.tm @@ -17,11 +17,11 @@ func choose_text(f:Foo->Text): func main(): >> Foo.Zero - = Foo.Zero + = Zero >> Foo.One(123) - = Foo.One(123) + = One(123) >> Foo.Two(123, 456) - = Foo.Two(x=123, y=456) + = Two(x=123, y=456) >> one := Foo.One(123) >> one.One @@ -59,7 +59,7 @@ func main(): >> choose_text(Foo.Four(1,2,3,4)) = "Four" >> choose_text(Foo.Last("XX")) - = 'else: Foo.Last("XX")' + = 'else: Last("XX")' i := 1 cases := [Foo.One(1), Foo.One(2), Foo.Zero] diff --git a/test/optionals.tm b/test/optionals.tm index 3ef7f28e..0b2a2209 100644 --- a/test/optionals.tm +++ b/test/optionals.tm @@ -218,12 +218,12 @@ func main(): !! ... !! Enums: >> yep := Enum.maybe(yes) - = Enum.Y(123) : Enum? + = Y(123) : Enum? >> nope := Enum.maybe(no) = none : Enum? >> if yep: >> yep - = Enum.Y(123) + = Y(123) else: fail("Falsey: $yep") >> if nope: fail("Truthy: $nope") |
