dot_test.go 437 B

1234567891011121314151617181920212223
  1. package svg
  2. import (
  3. "fmt"
  4. "os"
  5. "testing"
  6. )
  7. func Test_dot(t *testing.T) {
  8. dot := NewDot()
  9. dotcode := dot.StartDot().AddTokenBinds(tk1, tk2).
  10. AddFlow(flow1, flow2, flow3, flow4, flow5, flow6, flow7).
  11. AddTransitions(tran1, tran2, tran3).
  12. AddDirections(dir1, dir2, dir3, dir4, dir5, dir6, dir7, dir8, dir9).
  13. End()
  14. nv := NewNetView()
  15. nv.SetDot(dot)
  16. t.Log(nv.Execute(os.Stdout, nv.Data))
  17. fmt.Println(dotcode)
  18. t.Fail()
  19. }