diff options
Diffstat (limited to 'caddyconfig/caddyfile/formatter_test.go')
| -rw-r--r-- | caddyconfig/caddyfile/formatter_test.go | 9 | 
1 files changed, 7 insertions, 2 deletions
diff --git a/caddyconfig/caddyfile/formatter_test.go b/caddyconfig/caddyfile/formatter_test.go index 25bd7fa..6751eca 100644 --- a/caddyconfig/caddyfile/formatter_test.go +++ b/caddyconfig/caddyfile/formatter_test.go @@ -201,7 +201,7 @@ c  }  d { -	e #f +	e#f  	# g  } @@ -229,7 +229,7 @@ bar"  j {  "\"k\" l m"  }`, -			expect: `"a \"b\" " #c +			expect: `"a \"b\" "#c  d  e { @@ -305,6 +305,11 @@ bar "{\"key\":34}"`,  baz`,  		}, +		{ +			description: "hash within string is not a comment", +			input:       `redir / /some/#/path`, +			expect:      `redir / /some/#/path`, +		},  	} {  		// the formatter should output a trailing newline,  		// even if the tests aren't written to expect that  | 
