summaryrefslogtreecommitdiff
path: root/tool/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-17 00:46:25 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-17 00:48:45 +0900
commit5de6e25144b5c5c72bb9ee1980b976704e07f3d3 (patch)
tree76df06574c2d62f9da65cf9a3658e826f05e9238 /tool/test
parentcc8ff8b50d445b0621fef9f3dce0da02ec3d406f (diff)
Replace unpack with unpack1
Diffstat (limited to 'tool/test')
-rw-r--r--tool/test/testunit/test_parallel.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/test/testunit/test_parallel.rb b/tool/test/testunit/test_parallel.rb
index 297ff414ed..8207e71868 100644
--- a/tool/test/testunit/test_parallel.rb
+++ b/tool/test/testunit/test_parallel.rb
@@ -99,7 +99,7 @@ module TestParallel
break if /^p (.+?)$/ =~ buf
end
assert_not_nil($1, "'p' was not found")
- assert_match(/TestA#test_nothing_test = \d+\.\d+ s = \.\n/, $1.chomp.unpack("m")[0])
+ assert_match(/TestA#test_nothing_test = \d+\.\d+ s = \.\n/, $1.chomp.unpack1("m"))
end
end
@@ -111,7 +111,7 @@ module TestParallel
end
assert_not_nil($1, "'done' was not found")
- result = Marshal.load($1.chomp.unpack("m")[0])
+ result = Marshal.load($1.chomp.unpack1("m"))
assert_equal(5, result[0])
pend "TODO: result[1] returns 17. We should investigate it" do
assert_equal(12, result[1])