summaryrefslogtreecommitdiff
path: root/test/ruby/test_string_memory.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_string_memory.rb')
-rw-r--r--test/ruby/test_string_memory.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_string_memory.rb b/test/ruby/test_string_memory.rb
index 3b4694f36f..3952d10343 100644
--- a/test/ruby/test_string_memory.rb
+++ b/test/ruby/test_string_memory.rb
@@ -30,7 +30,7 @@ class TestStringMemory < Test::Unit::TestCase
string.byteslice(0, 50_000)
end
- assert_equal 1, allocations.size
+ assert_equal 1, allocations.size, "One object allocation is expected, but allocated: #{ allocations.inspect }"
end
def test_byteslice_postfix
@@ -40,7 +40,7 @@ class TestStringMemory < Test::Unit::TestCase
string.byteslice(50_000, 100_000)
end
- assert_equal 1, allocations.size
+ assert_equal 1, allocations.size, "One object allocation is expected, but allocated: #{ allocations.inspect }"
end
def test_byteslice_postfix_twice
@@ -50,6 +50,6 @@ class TestStringMemory < Test::Unit::TestCase
string.byteslice(50_000, 100_000).byteslice(25_000, 50_000)
end
- assert_equal 2, allocations.size
+ assert_equal 2, allocations.size, "Two object allocations are expected, but allocated: #{ allocations.inspect }"
end
end