From c941b9a3325228eba404455afea7ccea0da45095 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 21 Sep 2025 17:44:08 -0400 Subject: Fix tests --- test/when.tm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/when.tm') 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) -- cgit v1.2.3