-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tests, fix heartbeat to compute sums correctly, unclear if its th…
…e correct heartbeat
- Loading branch information
1 parent
81fd50d
commit 368335b
Showing
5 changed files
with
145 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
(executable | ||
(public_name heartbeat) | ||
(name main) | ||
(link_flags -linkall) | ||
(libraries heartbeat)) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
(library | ||
(libraries domainslib saturn) | ||
(libraries ppx_mica domainslib saturn ppx_inline_test base_quickcheck ppx_quick_test core_bench) | ||
(inline_tests) | ||
(preprocess (pps ppx_mica ppx_deriving.show ppx_jane ppx_inline_test ppx_quick_test)) | ||
(name heartbeat)) |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
type 'a t | ||
type t | ||
[@@deriving show] | ||
|
||
val empty : 'a t | ||
val node : 'a -> 'a t -> 'a t -> 'a t | ||
val size : 'a t -> int | ||
val empty : t | ||
val node : int -> t -> t -> t | ||
val size : t -> int | ||
|
||
val view : 'a t -> ('a * 'a t * 'a t) option | ||
val view : t -> (int * t * t) option | ||
|
||
val quickcheck_generator_t : t Core.Quickcheck.Generator.t |
This file contains 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