test/base32_test.rb in base32-0.1.3 vs test/base32_test.rb in base32-0.2.0
- old
+ new
@@ -23,16 +23,14 @@
class TestBase32 < Test::Unit::TestCase
def assert_decoding(encoded, plain)
decoded = Base32.decode(encoded)
assert_equal(plain, decoded)
- assert_equal(decoded.size, Base32Test.strlen(decoded))
end
def assert_encoding(encoded, plain)
actual = Base32.encode(plain)
assert_equal(encoded, actual)
- assert_equal(actual.size, Base32Test.strlen(actual))
end
def assert_encode_and_decode(encoded, plain)
assert_encoding(encoded, plain)
assert_decoding(encoded, plain)