Sign in
third-party-mirror
/
terraform
/
80d4fe1e39aa758c5488269a446e7147cc3ca50f
/
.
/
v1.4.7
/
internal
/
logging
/
indent_test.go
blob: 46b12a42caf57797b57b9fe7cfe7ee32022d704d [
file
] [
log
] [
blame
]
package logging
import (
"testing"
)
func TestIndent(t *testing.T) {
s := "hello\n world\ngoodbye\n moon"
got := Indent(s)
want := " hello\n world\n goodbye\n moon"
if got != want {
t.Errorf("wrong result\ngot:\n%s\n\nwant:\n%s", got, want)
}
}