Say I have two tasks t1 and t2. I would like to test whether the two tasks produced the same results. Current I implement it as a special Eq(_,_) task:

  perform-task(|nr):
    Eq(r, r) -> r
  
  task-is-combinator = ?Eq(_, _)
  
  task-create-eq(|ctx):
    (r1, r2) -> <new-task(|ctx)> Eq(r1, r2)

Is there a better way to do this?

Asked by Vlad Vergu on 5 December 2013 at 00:39