Unit tests for the Kalshi C++ SDK.
| File | Tests |
|---|---|
test_main.cpp |
Test framework and runner |
test_signer.cpp |
RSA-PSS signing tests |
test_models.cpp |
Data model tests |
From this directory:
make testOr from the repository root:
make testUses a minimal built-in test framework with macros:
TEST(name)- Define a testASSERT_TRUE(expr)- Assert expression is trueASSERT_FALSE(expr)- Assert expression is falseASSERT_EQ(a, b)- Assert equalityASSERT_NE(a, b)- Assert inequality
- Create a new
test_*.cppfile - Include the test macros (see existing files)
- Add to
tests/CMakeLists.txt - Run
make test