Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MortenSchou authored Oct 14, 2023
1 parent 6341191 commit aa2d48d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A minimalist C unit testing framework

**mtest** is a simple, C-only unit testing framework inspired by [CuTest](https://cutest.sourceforge.net/) with some modern features inspired by [doctest](https://github.com/doctest/doctest).

For more mature and feature-complete C/C++ testing frameworks, take a look at: [Boost.Test](https://github.com/boostorg/test), [Catch2](https://github.com/catchorg/Catch2), [doctest](https://github.com/doctest/doctest), or [Google Test](https://github.com/google/googletest).
For mature and feature-complete C/C++ testing frameworks, take a look at [Boost.Test](https://github.com/boostorg/test), [Catch2](https://github.com/catchorg/Catch2), [doctest](https://github.com/doctest/doctest), or [Google Test](https://github.com/google/googletest).

## Installation (CMake)
Recommended installation using CMake's FetchContent:
Expand Down Expand Up @@ -34,8 +34,8 @@ Example test file [`my_test.c`](example/my_test.c):

TEST_CASE(my_first_test_case, {
int i = 42;
CHECK_EQ_INT(1, i); // Test fails but test case continues.
REQUIRE_GT_INT(i, 0); // Test succeeds.
CHECK_EQ_INT(1, i); // Test fails, but we continue running.
REQUIRE_GT_INT(i, 0); // This test is executed and succeeds, but the test case failed due to the previous line.
})

TEST_CASE(my_other_test_case, {
Expand Down

0 comments on commit aa2d48d

Please sign in to comment.