github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/igm/sockjs-go.v2/sockjs/frame_test.go (about) 1 package sockjs 2 3 import "testing" 4 5 func TestCloseFrame(t *testing.T) { 6 cf := closeFrame(1024, "some close text") 7 if cf != "c[1024,\"some close text\"]" { 8 t.Errorf("Wrong close frame generated '%s'", cf) 9 } 10 }