mirror of
https://github.com/logos-messaging/nim-ffi.git
synced 2026-07-02 14:19:31 +00:00
703 B
703 B
C end-to-end test
Builds the generated C bindings for the timer example (examples/timer/c_bindings)
and drives them against the real Nim dylib, asserting on every response. Run it
with:
nimble test_c_e2e
which regenerates the bindings, configures CMake, builds, and runs the test via
ctest. The test program (test_timer_e2e.c) exercises the constructor, the
sync and async methods, nested seq/Option payloads, multi-parameter
requests, the error channel, and the typed event listener.
test_timer_e2e.c is hand-written (it is the consumer of the bindings, not a
generated artifact). The bindings under examples/timer/c_bindings are
generated and must not be edited by hand.