diff options
author | Sutou Kouhei <kou@clear-code.com> | 2022-09-15 06:40:31 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-10-07 15:18:52 +0900 |
commit | dfca6a879935b5999a56c2a220d4f2595c16d4d4 (patch) | |
tree | e3b5330ebb85b28c4e755ef91f27da947c71e375 | |
parent | 7c3314129368fdfcf104e489f16538b531ed6d3d (diff) | |
download | ruby-dfca6a879935b5999a56c2a220d4f2595c16d4d4.tar.gz |
[ruby/fiddle] test: don't use power-assert
It seems that we can't use it in ruby/ruby.
https://github.com/ruby/fiddle/commit/e1221297fb
-rw-r--r-- | test/fiddle/test_closure.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/fiddle/test_closure.rb b/test/fiddle/test_closure.rb index 1726db7a78..13dfa5b76e 100644 --- a/test/fiddle/test_closure.rb +++ b/test/fiddle/test_closure.rb @@ -83,13 +83,9 @@ module Fiddle def test_free Closure.create(:int, [:void]) do |closure| - assert do - not closure.freed? - end + assert_false(closure.freed?) closure.free - assert do - closure.freed? - end + assert_true(closure.freed?) closure.free end end |