summaryrefslogtreecommitdiff
path: root/replacer_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'replacer_test.go')
-rw-r--r--replacer_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/replacer_test.go b/replacer_test.go
index 42e9ee1..4b56194 100644
--- a/replacer_test.go
+++ b/replacer_test.go
@@ -67,6 +67,11 @@ func TestReplacer(t *testing.T) {
input: `{{}`,
expect: "",
},
+ {
+ input: `{unknown}`,
+ empty: "-",
+ expect: "-",
+ },
} {
actual := rep.ReplaceAll(tc.input, tc.empty)
if actual != tc.expect {