Created
December 16, 2014 05:59
-
-
Save m2ym/96689f5f931718fd47f9 to your computer and use it in GitHub Desktop.
ppx_test for Async
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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