mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-04 13:17:43 -06:00
17 lines
234 B
Go
17 lines
234 B
Go
package hashcode
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestString(t *testing.T) {
|
|
v := "hello, world"
|
|
expected := String(v)
|
|
for i := 0; i < 100; i++ {
|
|
actual := String(v)
|
|
if actual != expected {
|
|
t.Fatalf("bad: %#v", actual)
|
|
}
|
|
}
|
|
}
|