flow/flow_test.go

18 lines
277 B
Go
Raw Permalink Normal View History

package flow
import (
"testing"
"github.com/davecgh/go-spew/spew"
)
func TestFlowAdd(t *testing.T) {
flow := New("干洗")
flow.Add(&FlowNode{Name: "干洗01"})
flow.Add(&FlowNode{Name: "干洗02"})
flow.Add(&FlowNode{Name: "干洗03"})
t.Error(spew.Sdump(flow))
}