Skip to content

Instantly share code, notes, and snippets.

@m2ym
Created December 16, 2014 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m2ym/96689f5f931718fd47f9 to your computer and use it in GitHub Desktop.
Save m2ym/96689f5f931718fd47f9 to your computer and use it in GitHub Desktop.
ppx_test for Async
module Test = struct
include Ppx_test.Test
let eval = Async_unix.Thread_safe.block_on_async_exn
let test_unit loc name deferred =
test_unit loc name (fun () -> eval deferred)
let test loc name deferred =
test loc name (fun () -> eval deferred)
end
open Core.Std
open Async.Std
module PTest = Ppx_test_async.Test
let%TEST test = return true
let () = PTest.collect ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment