diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2018-03-02 21:13:00 -0500 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2018-03-02 21:13:00 -0500 |
| commit | 062b1b598adb43ca2a73c0fd5b89c485da90f347 (patch) | |
| tree | 11cb3bc0c7bd4cc1ed50f35281b34174a358bb4f /strings | |
| parent | 73f2ea0d517a20058ba2d31c86036c44052e651d (diff) | |
Adding unit test for zero-width indent
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'strings')
| -rw-r--r-- | strings/strings_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/strings/strings_test.go b/strings/strings_test.go index 03338cd8..6ee4064d 100644 --- a/strings/strings_test.go +++ b/strings/strings_test.go @@ -9,6 +9,7 @@ import ( func TestIndent(t *testing.T) { actual := "hello\nworld\n!" expected := " hello\n world\n !" + assert.Equal(t, actual, Indent(0, " ", actual)) assert.Equal(t, expected, Indent(1, " ", actual)) assert.Equal(t, "\n", Indent(1, " ", "\n")) assert.Equal(t, " foo\n", Indent(1, " ", "foo\n")) |
