-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bbbc1f
commit 1b7083f
Showing
5 changed files
with
2 additions
and
37 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
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
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,13 +1 @@ | ||
let yojson = Alcotest.testable Yojson.Safe.pp Yojson.Safe.equal | ||
|
||
let variant_kind_pp fmt = function | ||
| `Square_bracket -> Format.fprintf fmt "`Square_bracket" | ||
| `Double_quote -> Format.fprintf fmt "`Double_quote" | ||
|
||
let variant_kind_equal a b = | ||
match (a, b) with | ||
| `Square_bracket, `Square_bracket -> true | ||
| `Double_quote, `Double_quote -> true | ||
| _ -> false | ||
|
||
let variant_kind = Alcotest.testable variant_kind_pp variant_kind_equal |
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,2 +1 @@ | ||
val yojson : Yojson.Safe.t Alcotest.testable | ||
val variant_kind : Yojson.Safe.variant_kind Alcotest.testable |