package CamelCase
All checked builds pass sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
A simple OCaml test framework
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.3.0.tar.gz
sha256=114b054ba1584ebf40de27b9ca71a2942399647df3b92181ee5471830b5e4c47
sha512=b4d0f02bf4d7a49a764b2c497559bf7d5a07a63c8bba9ee810d6b1fdd486057a9c7d4d76485b6866440000746dc6d4a749cd25540898a3cc69cfe57d30820d9d
Description
A simple OCaml test framework
README
CamelCase
A simple OCaml test framework
Install
Opam (recommended)
Opam Url: https://opam.ocaml.org/packages/CamelCase/
(package
(name my_package)
(depends CamelCase))Pin the package in dune
(package
(name my_package)
(depends CamelCase))
; add this line to your dune-project
(pin (package (name CamelCase)) (url "git+https://github.com/atomicptr/CamelCase"))Usage
open CamelCase
let safeDiv a = function
| 0 -> None
| b -> Some a / b
let () = run [
test "test if 2 + 2 = 4" (fun () -> IntValue.expect_equals 4 (2 + 2));
test "test safeDiv: 2 / 0 = None" (fun () -> expect_none (safeDiv 2 0);
test "test safeDiv: several cases" (fun () ->
expect_some (safeDiv 10 2) >>
IntValue.expect_equals 5 (10 / 2) >>
expect_some (safeDiv 5 1) >>
IntValue.expect_equals 1 (5 / 1));
]License
MIT
Dependencies (3)
- ocamlformat
-
ocaml
>= "5.0" -
dune
>= "3.17"
Dev Dependencies (1)
-
odoc
with-doc
Used by
None
Conflicts
None
Build status
Results of building CamelCase with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.3.0 (this version) | n/a | n/a | good | good | good |
| 0.2.0 | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page