Skip to content

Commit

Permalink
Make heap dependent finaliser test logic more precise
Browse files Browse the repository at this point in the history
  • Loading branch information
dipinhora committed Oct 7, 2024
1 parent 448ad8e commit fda99f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/full-program-tests/large-dependent-finalisers/main.pony
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ class _Final
match other
| None => None
| let o: this->_Final =>
if (num > 0) and (o.num > 0) then
if 1025 == (num + o.num) then
@codegentest_large_dependent_finalisers_decrement_num_objects()
end
end

actor Main
new create(env: Env) =>
let f1 = _Final(1)
let f2 = _Final(2)
let f2 = _Final(1024)
f1.other = f2
f2.other = f1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class _Final
match other
| None => None
| let o: this->_Final =>
if (num > 0) and (o.num > 0) then
if 1025 == (num + o.num) then
@codegentest_small_dependent_finalisers_decrement_num_objects()
end
end
Expand Down

0 comments on commit fda99f3

Please sign in to comment.