diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fuzz/heredoc/gobang.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/fuzz/heredoc/gobang.go b/tests/fuzz/heredoc/gobang.go index e4cb9c6..c685391 100644 --- a/tests/fuzz/heredoc/gobang.go +++ b/tests/fuzz/heredoc/gobang.go @@ -10,7 +10,11 @@ import ( func fn(f *testing.F) { f.Fuzz(func(t *testing.T, s string) { - Heredoc(s) + out := Heredoc(s) + trimmedOut := out[:len(out) - 1] + if len(trimmedOut) > len(s) { + t.Errorf("bad length: %v, %v", len(trimmedOut), len(s)) + } }) } |