mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* pack.c: consider DYNAMIC_ENDIAN. refactored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c942417791
commit
e599c936d8
4 changed files with 477 additions and 436 deletions
|
@ -587,6 +587,8 @@ class TestIntegerComb < Test::Unit::TestCase
|
|||
if min <= a && a <= max
|
||||
assert_equal(a, b, "[#{a}].pack(#{template.dump}).unpack(#{template.dump})[0]")
|
||||
end
|
||||
assert_operator(min, :<=, b)
|
||||
assert_operator(b, :<=, max)
|
||||
assert_equal(a & mask, b & mask, "[#{a}].pack(#{template.dump}).unpack(#{template.dump})[0] & #{mask}")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue