         if t.mustFlip r, s
           console.log "Delaunay condition fails for #{u},#{v},#{w},#{x})", ->
 
-test()
+#test()


test = ->
  rnd = -> Math.floor(Math.random() * 100)
  t = Sequence.range(1, 1000).reduce delaunayTriangulation(),  (s, i) ->
    s.plus new Point2d rnd(), rnd()

  Sequence.each t, (triangle) ->

      else
        t = @containingTriangle p
        [a, b, c] = t.vertices()
        seq([b, a], [c, b], [a, c]).reduce subdivide(this, t, p), (T, [u, v]) ->
          if T.sideOf(u, v, p) == 0
            w = T.third u, v
            if w?
              resolve doFlips flip(T, u, v), seq [u, w], [w, v]
            else
              T
          else
            resolve doFlips T, seq [u, v]

