mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-11 16:42:33 -06:00
cb2e9119aa
Signed-off-by: namgyalangmo <75657887+namgyalangmo@users.noreply.github.com>
21 lines
415 B
Go
21 lines
415 B
Go
// Copyright (c) The OpenTofu Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
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)
|
|
}
|
|
}
|