Skip to content

Commit 94a1417

Browse files
committed
Cover another bit of untested code
1 parent a27a512 commit 94a1417

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Tests/DotEnvyTests/ParseTests.swift

+8
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ final class DotEnvyTests: XCTestCase {
2727
XCTAssertEqual(values, ["FOO": ""])
2828
}
2929

30+
func testKeyOnlyWithNewline() throws {
31+
let values = try DotEnvironment.parse(string: """
32+
FOO=
33+
34+
""")
35+
XCTAssertEqual(values, ["FOO": ""])
36+
}
37+
3038
func testLeadingSpace() throws {
3139
let values = try DotEnvironment.parse(string: " FOO=")
3240
XCTAssertEqual(values, ["FOO": ""])

0 commit comments

Comments
 (0)