(t *testing.T)
| 25 | ) |
| 26 | |
| 27 | func TestIndent(t *testing.T) { |
| 28 | assert.Equal(t, "", Indent("", 0)) |
| 29 | assert.Equal(t, " ", Indent("", 3)) |
| 30 | assert.Equal(t, " A", Indent("A", 3)) |
| 31 | assert.Equal(t, " A\n B", Indent("A\nB", 3)) |
| 32 | assert.Equal(t, " A\n B", Indent("A\nB\n", 3)) |
| 33 | } |