https://github.com/clarus/coq-cunit
Convenience functions for unit testing in Coq.
https://github.com/clarus/coq-cunit
Last synced: about 1 month ago
JSON representation
Convenience functions for unit testing in Coq.
- Host: GitHub
- URL: https://github.com/clarus/coq-cunit
- Owner: clarus
- License: mit
- Created: 2014-11-10T13:59:13.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-26T17:18:05.000Z (over 9 years ago)
- Last Synced: 2025-02-16T14:25:16.000Z (4 months ago)
- Language: Coq
- Homepage:
- Size: 6.84 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#  CUnit
Convenience functions for unit testing in Coq.Require Import Coq.Lists.List.
Require Import CUnit.All.Import ListNotations.
Definition test_plus : List.map_pair plus
[(0, 0); (0, 3); (4, 0); (4, 3)] =
[0; 3; 4; 7] :=
eq_refl.## Install
### With OPAM
Install the [Coq repository](http://coq.io/opam/):opam repo add coq-released https://coq.inria.fr/opam/released
and run:
opam install coq-cunit
### From the sources
Run:./configure.sh
make
make install## Reference
### List
* `List.map_pair {A B C} (f : A -> B -> C) (l : list (A * B)) : list C`
* `List.map_triple {A B C D} (f : A -> B -> C -> D) (l : list (A * B * C)) : list D`
* `List.map_quad {A B C D E} (f : A -> B -> C -> D -> E) (l : list (A * B * C * D)) : list E`