add minimal test to test ANY lines in bash decoder/encoder

This commit is contained in:
Adrien Marquès 2018-11-18 21:56:50 +01:00
parent 3331970eb5
commit b752906d15
1 changed files with 1 additions and 0 deletions

View File

@ -165,6 +165,7 @@ func TestBashSetCreateEncode(t *testing.T) {
encoded string encoded string
}{ }{
{"ignore=xxx;\n", "key", `"newvalue"`, "ignore=xxx;\nkey=\"newvalue\";\n"}, {"ignore=xxx;\n", "key", `"newvalue"`, "ignore=xxx;\nkey=\"newvalue\";\n"},
{"#!/bin/bash\n\nfunc(){\n\techo \"something\";\n}\nignore=xxx;\n", "key", `"newvalue"`, "#!/bin/bash\nfunc(){\n\techo \"something\";\n}\nignore=xxx;\nkey=\"newvalue\";\n"},
} }
for i, test := range tests { for i, test := range tests {