Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Examples

basic

Demonstrates TEST_CASE, CHECK, and REQUIRE with arithmetic, string, and container checks.

exceptions

Demonstrates CHECK_THROWS, CHECK_THROWS_AS, CHECK_CATCHES_AS, and CHECK_NOTHROW using a small parse_int function that throws on bad input.

helpers

Shows how CHECK and REQUIRE can be called from helper functions outside the TEST_CASE body. On failure the framework prints a stacktrace of user-code frames so the call site is easy to find.