Unit test examples from "Understanding and Using C Pointers"
Before setting up this project, ensure you have the following installed:
clang --version
cmake --version
brew --version
brew install cmake ninja criterionpointers/
├── CMakeLists.txt
├── src/
│ └── chapter02/
│ ├── dynamic_alloc.c
│ └── dynamic_alloc.h
└── tests/
└── chapter02/
└── test_dynamic_alloc.c
From the build folder, build the project and run the unit tests with verbose output:
ninja && ./test_dynamic_alloc --verbose