diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 14:20:18 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 14:20:18 -0400 |
| commit | 2bb2ff871fa1761478442bec5f6a32c9428360a1 (patch) | |
| tree | 9b73df7a0c50c02353ae7bca7c2cd54788ef0077 /test/sets.tm | |
| parent | 59845e610f2c90474f34079d27b5f1e07071ded4 (diff) | |
Change method calls to use `foo.baz()` instead of `foo:baz()`
Diffstat (limited to 'test/sets.tm')
| -rw-r--r-- | test/sets.tm | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/sets.tm b/test/sets.tm index 7b285d60..5179947e 100644 --- a/test/sets.tm +++ b/test/sets.tm @@ -2,36 +2,36 @@ func main(): >> t1 := @{10, 20, 30, 10} = @{10, 20, 30} - >> t1:has(10) + >> t1.has(10) = yes - >> t1:has(-999) + >> t1.has(-999) = no >> t2 := {30, 40} - >> t1:with(t2) + >> t1.with(t2) >> {10, 20, 30, 40} - >> t1:without(t2) + >> t1.without(t2) >> {10, 20} - >> t1:overlap(t2) + >> t1.overlap(t2) >> {30} - >> {1,2}:is_subset_of({2,3}) + >> {1,2}.is_subset_of({2,3}) = no - >> {1,2}:is_subset_of({1,2,3}) + >> {1,2}.is_subset_of({1,2,3}) = yes - >> {1,2}:is_subset_of({1,2}) + >> {1,2}.is_subset_of({1,2}) = yes - >> {1,2}:is_subset_of({1,2}, strict=yes) + >> {1,2}.is_subset_of({1,2}, strict=yes) = no - >> t1:add_all(t2) + >> t1.add_all(t2) >> t1 = @{10, 20, 30, 40} - >> t1:remove_all(t2) + >> t1.remove_all(t2) >> t1 = @{10, 20} |
