github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/lang/process/name_test.go (about) 1 package process_test 2 3 import ( 4 "testing" 5 6 "github.com/lmorg/murex/lang/process" 7 "github.com/lmorg/murex/test/count" 8 ) 9 10 func TestName(t *testing.T) { 11 count.Tests(t, 4) 12 13 name := new(process.Name) 14 15 name.Set("foo") 16 if name.String() != "foo" { 17 t.Errorf("Set and/or String failed. Didn't return 'foo'") 18 } 19 20 name.Append("bar") 21 if name.String() != "foobar" { 22 t.Errorf("Set and/or String failed. Didn't return 'foobar'") 23 } 24 }