1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/fiddle] test: don't use assert_true/assert_false

GitHub: GH-102

They aren't available in ruby/ruby.

https://github.com/ruby/fiddle/commit/ced671e43b
This commit is contained in:
Sutou Kouhei 2022-09-16 05:54:47 +09:00 committed by Hiroshi SHIBATA
parent ada9f8a9f7
commit 92f0c53934

View file

@ -83,9 +83,9 @@ module Fiddle
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