From 062b1b598adb43ca2a73c0fd5b89c485da90f347 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Fri, 2 Mar 2018 21:13:00 -0500 Subject: Adding unit test for zero-width indent Signed-off-by: Dave Henderson --- strings/strings_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'strings') 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")) -- cgit v1.2.3