github.com/chalford/terraform@v0.3.7-0.20150113080010-a78c69a8c81f/helper/hashcode/hashcode_test.go (about) 1 package hashcode 2 3 import ( 4 "testing" 5 ) 6 7 func TestString(t *testing.T) { 8 v := "hello, world" 9 expected := String(v) 10 for i := 0; i < 100; i++ { 11 actual := String(v) 12 if actual != expected { 13 t.Fatalf("bad: %#v", actual) 14 } 15 } 16 }