Skip to content

Commit 9ce2ccf

Browse files
committed
test/openssl/test_config: add missing test case for Config.parse_config
1 parent 9783d7f commit 9ce2ccf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/openssl/test_config.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,12 @@ def test_s_load
177177
}
178178
end
179179

180+
def test_s_parse_config
181+
ret = OpenSSL::Config.parse_config(@it.to_s)
182+
assert_equal(@it.sections.sort, ret.keys.sort)
183+
assert_equal(@it["default"], ret["default"])
184+
end
185+
180186
def test_initialize
181187
c = OpenSSL::Config.new
182188
assert_equal("", c.to_s)

0 commit comments

Comments
 (0)