summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSutou Kouhei <kou@clear-code.com>2022-09-15 06:40:31 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-10-07 15:18:52 +0900
commitdfca6a879935b5999a56c2a220d4f2595c16d4d4 (patch)
treee3b5330ebb85b28c4e755ef91f27da947c71e375
parent7c3314129368fdfcf104e489f16538b531ed6d3d (diff)
downloadruby-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.rb8
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