mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-25 16:31:10 -06:00
6ca477f042
remove a dead code file too
16 lines
266 B
Go
16 lines
266 B
Go
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)
|
|
}
|
|
}
|