Skip to content

Commit

Permalink
test/openssl/test_config: add missing test case for Config.parse_config
Browse files Browse the repository at this point in the history
  • Loading branch information
rhenium committed May 13, 2020
1 parent 9783d7f commit 9ce2ccf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/openssl/test_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,12 @@ def test_s_load
}
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)
Expand Down

0 comments on commit 9ce2ccf

Please sign in to comment.