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/for.tm | |
| parent | 1cec086a6034ad546977cae7aeaf4bb876d21970 (diff) | |
Fix tests
Diffstat (limited to 'test/for.tm')
| -rw-r--r-- | test/for.tm | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/test/for.tm b/test/for.tm index 75ad2fee..3598df85 100644 --- a/test/for.tm +++ b/test/for.tm @@ -30,21 +30,14 @@ func table_key_str(t:{Text=Text} -> Text) return str func main() - >> all_nums([10,20,30]) - = "10,20,30," - >> all_nums([]) - = "EMPTY" + assert all_nums([10,20,30]) == "10,20,30," + assert all_nums([]) == "EMPTY" - >> labeled_nums([10,20,30]) - = "1:10,2:20,3:30," - >> labeled_nums([]) - = "EMPTY" + assert labeled_nums([10,20,30]) == "1:10,2:20,3:30," + assert labeled_nums([]) == "EMPTY" >> t := {"key1"="value1", "key2"="value2"} - >> table_str(t) - = "key1:value1,key2:value2," - >> table_str({}) - = "EMPTY" + assert table_str(t) == "key1:value1,key2:value2," + assert table_str({}) == "EMPTY" - >> table_key_str(t) - = "key1,key2," + assert table_key_str(t) == "key1,key2," |
