blob: c5a8efbdc5235be3de33b041ae3c91c5029a0ce4 [file]
require_relative "test_helper"
require "securerandom"
class SecureRandomSingletonTest < Test::Unit::TestCase
include TestHelper
library "securerandom"
testing "singleton(::SecureRandom)"
def test_bytes
assert_send_type "(::Integer) -> ::String",
SecureRandom, :bytes, 10
end
def test_uuid
assert_send_type "() -> ::String",
SecureRandom, :uuid
end
end