test String#sum for bits=0..7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
129c02057e
commit
2bd403488d
@ -12,7 +12,7 @@ class TestString < Test::Unit::TestCase
|
|||||||
assert_equal(294, "abc".sum)
|
assert_equal(294, "abc".sum)
|
||||||
check_sum("abc")
|
check_sum("abc")
|
||||||
check_sum("\x80")
|
check_sum("\x80")
|
||||||
8.upto(70) {|bits|
|
0.upto(70) {|bits|
|
||||||
check_sum("xyz", bits)
|
check_sum("xyz", bits)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user