diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 17:44:08 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 17:44:08 -0400 |
| commit | c941b9a3325228eba404455afea7ccea0da45095 (patch) | |
| tree | d4ca88c6848ac2e6ceee635bb87add87ba6d2322 /test/when.tm | |
| parent | 1cec086a6034ad546977cae7aeaf4bb876d21970 (diff) | |
Fix tests
Diffstat (limited to 'test/when.tm')
| -rw-r--r-- | test/when.tm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/when.tm b/test/when.tm index 57de4c2c..26afeb7d 100644 --- a/test/when.tm +++ b/test/when.tm @@ -8,11 +8,11 @@ func main() else "Other" ) for x in ["A", "B", "C", "D"] ] - >> answers - = ["A or B", "A or B", "C", "Other"] + assert answers == ["A or B", "A or B", "C", "Other"] n := 23 - >> when n is 1 Int64(1) - is 2 Int64(2) - is 21 + 2 Int64(23) - = Int64(23) + assert ( + when n is 1 Int64(1) + is 2 Int64(2) + is 21 + 2 Int64(23) + ) == Int64(23) |
