summaryrefslogtreecommitdiff
path: root/test/test_securerandom.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_securerandom.rb')
-rw-r--r--test/test_securerandom.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_securerandom.rb b/test/test_securerandom.rb
index f3e1bf0afc..f3c9a1af92 100644
--- a/test/test_securerandom.rb
+++ b/test/test_securerandom.rb
@@ -111,6 +111,10 @@ end
end
end
+ def test_hex_encoding
+ assert_equal(Encoding::US_ASCII, @it.hex.encoding)
+ end
+
def test_s_base64
assert_equal(16, @it.base64.unpack('m*')[0].size)
17.times do |idx|