jobjo / popper

Property-based testing at ease
ISC License
43 stars 1 forks source link

Fails with Should not return a non-failure #70

Open copy opened 2 years ago

copy commented 2 years ago

The following simplified test fails with Fatal error: exception Failure("Should not return a non-failure"):

let () =
  let open Popper in
  let open Sample.Syntax in
  run (test (fun () ->
      let* a = Sample.array Sample.int in
      let+ b = Sample.array Sample.int in
      let t1 = Array.append a b in
      let t2 = Array.append b a in
      Proposition.equal Comparator.(array int) t1 t2
    ))
jobjo commented 2 years ago

Thanks, will take a look.