diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 16:49:40 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 16:49:40 -0400 |
| commit | e87e6dabfbdc1d35b5fe41b5d84dab38df3c8e76 (patch) | |
| tree | 93588c81392489a621ce4fcca41645c92c0d06e9 /test/when.tm | |
| parent | f69f862bf6e744834d781867a85f962c783f314e (diff) | |
Insert `then` for clarity
Diffstat (limited to 'test/when.tm')
| -rw-r--r-- | test/when.tm | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/when.tm b/test/when.tm index 28573d88..d18f5276 100644 --- a/test/when.tm +++ b/test/when.tm @@ -3,12 +3,9 @@ func main() answers := [ ( - when x is "A","B" - "A or B" - is "C" - "C" - else - "Other" + when x is "A","B" then "A or B" + is "C" then "C" + else "Other" ) for x in ["A", "B", "C", "D"] ] >> answers |
