Skip to content

Commit 4f13a99

Browse files
Adding multiline tests.
1 parent ff7bb9a commit 4f13a99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

harness/variables_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ func TestDeleteOutput(t *testing.T) {
307307
t.Errorf("Expected file to be empty, got: %s", string(content))
308308
}
309309
}
310-
311310
func TestParseKeyValue(t *testing.T) {
312311
tests := []struct {
313312
line string
@@ -324,6 +323,8 @@ func TestParseKeyValue(t *testing.T) {
324323
{"key", ".env", "key", ""},
325324
{"key=multi word value", ".env", "key", "multi word value"},
326325
{"key= spaced value ", ".env", "key", "spaced value"},
326+
{"key=first line\nsecond line", ".env", "key", "first line\nsecond line"},
327+
{"key=first line\nsecond line\nthird line", ".env", "key", "first line\nsecond line\nthird line"},
327328

328329
// .out cases
329330
{"key value", ".out", "key", "value"},

0 commit comments

Comments
 (0)