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

[ruby/openssl] test/openssl/test_config: add missing test case for Config.parse_config

https://github.com/ruby/openssl/commit/9ce2ccf36d
This commit is contained in:
Kazuki Yamaguchi 2020-02-19 05:05:41 +00:00
parent 67f5847c61
commit ffc01afc47
Notes: git 2021-03-16 20:38:57 +09:00

View file

@ -177,6 +177,12 @@ __EOC__
}
end
def test_s_parse_config
ret = OpenSSL::Config.parse_config(@it.to_s)
assert_equal(@it.sections.sort, ret.keys.sort)
assert_equal(@it["default"], ret["default"])
end
def test_initialize
c = OpenSSL::Config.new
assert_equal("", c.to_s)