mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix assertion message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
10226f6505
commit
d255503f3b
1 changed files with 2 additions and 2 deletions
|
@ -584,10 +584,10 @@ class TestIntegerComb < Test::Unit::TestCase
|
|||
VS.reverse_each {|a|
|
||||
s = [a].pack(template)
|
||||
b = s.unpack(template)[0]
|
||||
assert_equal(a & mask, b & mask, "[#{a}].pack(#{template.dump}).unpack(#{template.dump}) & #{mask}")
|
||||
if min <= a && a <= max
|
||||
assert_equal(a, b, "[#{a}].pack(#{template.dump}).unpack(#{template.dump})")
|
||||
assert_equal(a, b, "[#{a}].pack(#{template.dump}).unpack(#{template.dump})[0]")
|
||||
end
|
||||
assert_equal(a & mask, b & mask, "[#{a}].pack(#{template.dump}).unpack(#{template.dump})[0] & #{mask}")
|
||||
}
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue