Files
reasampler/tests/test_bank_model.cpp
T
daniel acfc9daabc Retire MPE scaffold; stand up reaper_reasampler pure-core skeleton
Rename CMake project/module to reaper_reasampler, delete mpe_model/mpe_view,
add minimal pure bank_model lib + placeholder CTest. main.cpp loads, logs to
console, keeps the action-registration seam commented with the forever-stable
CEREBELLUM_REASAMPLER_ action-id prefix.
2026-07-21 21:18:51 -04:00

25 lines
803 B
C++

// Standalone tests for reasampler::bank_model — no REAPER, no test framework.
// This is the point of splitting the model out: iterate the hard logic here with
// a fast build/run loop instead of restarting REAPER.
//
// Milestone 0 placeholder: a single assertion proving the pure lib links and
// runs under CTest. The real round-trip / dedup / tier / relative-path tests
// arrive with the Milestone 1 data model (see TODO.md, PLAN.md).
#include "../src/bank_model.h"
#include <cstdio>
using namespace reasampler;
static int g_fail = 0;
#define CHECK(cond) do { if(!(cond)) { \
std::printf("FAIL line %d: %s\n", __LINE__, #cond); ++g_fail; } } while(0)
int main()
{
CHECK(bankModelVersion() == 1);
if (g_fail == 0) std::printf("All tests passed.\n");
return g_fail ? 1 : 0;
}