Skip to content

pylover/cutest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cutest

C single header file testing framework.

Usage

#include "cutest.h"


void
test_demo() {
    /* Integer */
    eqint(7, 7);
    
    /* Bool */
    eqbool(true, true);
    istrue(true);
    isfalse(false);
  
    /* Character */
    eqchr('a', 'a');
    eqstr("foo", "foo");
    eqnstr("foo", "foo", 3);
  
    /* Binary */
    eqbin("foo\0bar", "foo\0bar");
}


int main() {
    test_demo();
    return EXIT_SUCCESS;
}

Build & Install

mkdir build
cd build
cmake ..
make

Install with makefile

cd build
make install

Create debian package

cd build
cpack

After that, libcutest-*.deb will be generated insode the build directory.

Install using debian package

cd build
sudo dpkg -i libcutest-*.deb
Uninstall
sudo dpkg -P libcutest

Or

sudo apt remove libcutest

About

C single header file testing framework.

Resources

License

Stars

Watchers

Forks

Packages

No packages published