From a3766583866e0b436cd13a36054c8613755f36f3 Mon Sep 17 00:00:00 2001 From: Ray Miller Date: Wed, 10 May 2023 17:00:37 +0100 Subject: [PATCH] Add test case for comments lines in config --- main_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main_test.go b/main_test.go index 841eb3e..f4f2690 100644 --- a/main_test.go +++ b/main_test.go @@ -29,6 +29,10 @@ func TestParseConfig(t *testing.T) { input: "version_prefix=v\ngit_sign=t\n", expect: config{versionPrefix: "v", sign: true}, }, + { + input: "# My config\nversion_prefix=v\ngit_sign=t\n", + expect: config{versionPrefix: "v", sign: true}, + }, { input: "VERSION_PREFIX=v\nGIT_SIGN=false\n", expect: config{versionPrefix: "v", sign: false},