-
Notifications
You must be signed in to change notification settings - Fork 30
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
Showing
10 changed files
with
236 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// Generated by ReScript, PLEASE EDIT WITH CARE | ||
|
||
import * as Test from "./Test.mjs"; | ||
import * as Caml_obj from "rescript/lib/es6/caml_obj.js"; | ||
import * as Core__Option from "../src/Core__Option.mjs"; | ||
|
||
var eq = Caml_obj.equal; | ||
|
||
Test.run([ | ||
[ | ||
"OptionTests.res", | ||
5, | ||
20, | ||
25 | ||
], | ||
"all" | ||
], Core__Option.all([]), eq, []); | ||
|
||
Test.run([ | ||
[ | ||
"OptionTests.res", | ||
6, | ||
20, | ||
25 | ||
], | ||
"all" | ||
], Core__Option.all([ | ||
1, | ||
2, | ||
3 | ||
]), eq, [ | ||
1, | ||
2, | ||
3 | ||
]); | ||
|
||
Test.run([ | ||
[ | ||
"OptionTests.res", | ||
7, | ||
20, | ||
25 | ||
], | ||
"all" | ||
], Core__Option.all([ | ||
1, | ||
undefined | ||
]), eq, undefined); | ||
|
||
export { | ||
eq , | ||
} | ||
/* Not a pure module */ |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
open RescriptCore | ||
|
||
let eq = (a, b) => a == b | ||
|
||
Test.run(__POS_OF__("all"), Option.all([]), eq, Some([])) | ||
Test.run(__POS_OF__("all"), Option.all([Some(1), Some(2), Some(3)]), eq, Some([1, 2, 3])) | ||
Test.run(__POS_OF__("all"), Option.all([Some(1), None]), eq, None) |
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