Skip to content

Commit

Permalink
collections: "expect" var conflicts with expect macro
Browse files Browse the repository at this point in the history
The "expect" macro is new in Testworks and conflicts with this one local
variable name.
  • Loading branch information
cgay committed Feb 6, 2024
1 parent 5b65a02 commit 7f95bfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sources/collections/tests/bit-set-tests.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -759,13 +759,13 @@ define test bit-set-iteration ()
check-equal("Forward iteration over a finite set", result, #t);

let result = #t;
let expect = 100;
let want = 100;
for (count from 0, i in *infinite-set*, while: i < 120)
if (count < size(*infinite-members*))
result := result & (i = *infinite-members*[count]);
else
result := result & (i = expect);
expect := expect + 1;
result := result & (i = want);
want := want + 1;
end if;
end for;
check-equal("Forward iteration over an infinite set", result, #t);
Expand Down

0 comments on commit 7f95bfe

Please sign in to comment.