diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-14 08:04:28 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-14 08:04:28 +0000 |
commit | 6cf568f4b56dcafc5c0fe84df2c0d2491fb0c62b (patch) | |
tree | d38103e91a35989ac33514fe49d7875bd11d3e37 /test/ruby/test_econv.rb | |
parent | c81b224edca453ed8ea3030cc74b2ede5ac9e63a (diff) | |
download | ruby-6cf568f4b56dcafc5c0fe84df2c0d2491fb0c62b.tar.gz |
* bootstraptest/runner.rb: use safe navigation operator.
[fix GH-1142] Patch by @mlarraz
* test/openssl/test_pair.rb: ditto.
* test/ruby/test_econv.rb: ditto.
* test/ruby/test_settracefunc.rb: ditto.
* test/thread/test_queue.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_econv.rb')
-rw-r--r-- | test/ruby/test_econv.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_econv.rb b/test/ruby/test_econv.rb index 073355f319..5690ec75f2 100644 --- a/test/ruby/test_econv.rb +++ b/test/ruby/test_econv.rb @@ -18,8 +18,8 @@ class TestEncodingConverter < Test::Unit::TestCase def assert_errinfo(e_res, e_enc1, e_enc2, e_error_bytes, e_readagain_bytes, ec) assert_equal([e_res, e_enc1, e_enc2, - e_error_bytes && e_error_bytes.b, - e_readagain_bytes && e_readagain_bytes.b], + e_error_bytes&.b, + e_readagain_bytes&.b], ec.primitive_errinfo) end |