Skip to content

Alexey2312/Silteli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Silteli

A unit testing library for C++.

Example:

int sum(int a, int b)
{
    return a + b;
}

UNIT_TEST(sum)
{
    Silteli::expect(sum(2, 2) == 4);
}

int main()
{
    Silteli::TestManager::runTests();
}

Usage:

Silteli is a header-only library. Just include silteli.hpp to use.

Use the UNIT_TEST(name) macro to define a new test case.

Use Silteli::expect(bool expression) to verify your code's behavior. If the expression evaluates to false, the test will fail.

Call Silteli::TestManager::runTests() in your main() function to run all registered tests and see the summary.

About

A unit testing library for C++

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors