Skip to content

Commit

Permalink
test: don't use assert_true/assert_false
Browse files Browse the repository at this point in the history
GitHub: GH-102

They aren't available in ruby/ruby.
  • Loading branch information
kou committed Sep 15, 2022
1 parent 2530496 commit ced671e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fiddle/test_closure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def call(string)

def test_free
Closure.create(:int, [:void]) do |closure|
assert_false(closure.freed?)
assert(!closure.freed?)
closure.free
assert_true(closure.freed?)
assert(closure.freed?)
closure.free
end
end
Expand Down

0 comments on commit ced671e

Please sign in to comment.