An open API service indexing awesome lists of open source software.

https://github.com/kfl/quickcheck-c-interface

Example code demonstrating how to use QuickCheck for Erlang to test C code
https://github.com/kfl/quickcheck-c-interface

Last synced: 10 months ago
JSON representation

Example code demonstrating how to use QuickCheck for Erlang to test C code

Awesome Lists containing this project

README

          

# Quickcheck for Erlang's C interface
Example code demonstrating how to use QuickCheck for Erlang via
Quviq's [QuickCheck CI](http://quickcheck-ci.com) service to check some C code.

[Build Status](http://quickcheck-ci.com/p/kfl/quickcheck-c-interface)

## Example(s)

The `src` directory contains a number of examples. (Right now there is
only one example, but the plan is that eventually there will be more.)

* The file `bsearch.c` contains a number of implementations of binary
search, many of them are buggy. The file `bsearch_eqc.erl` contains
a number of properties for testing the C functions. In particular
it shows how to use the `?SETUP` macro to compile the C file before
calling any functions and how to use `catch` to deal with
segmentation faults.