1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/openssl/*: added some tests from jruby-openssl.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nahi 2009-12-13 14:09:20 +00:00
parent 07e95b9493
commit c2e8a9ca94
13 changed files with 430 additions and 24 deletions

View file

@ -22,6 +22,16 @@ class OpenSSL::TestNSSPI < Test::Unit::TestCase
def teardown
end
def pr(obj, ind=0)
if obj.respond_to?(:value)
puts((" "*ind) + obj.class.to_s + ":")
pr(obj.value,(ind+1))
elsif obj.respond_to?(:each) && !(String===obj)
obj.each {|v| pr(v,ind+1) }
else
puts((" "*ind) + obj.inspect)
end
end
def test_build_data
key1 = OpenSSL::TestUtils::TEST_KEY_RSA1024