You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make C and Python FFI tests fail on incorrect numerical results #4
Meson registers the C and Python examples as FFI tests, but those programs only print numerical results and exit successfully. A wrong addition, mean, or factorial can therefore pass both tests, and the exported dot product is not exercised.
Scope
Assert expected addition, factorial, mean, and dot-product results in meaningful C and Python integration coverage.
Cover the existing factorial range sentinel and documented null/empty array behavior.
Use explicit tolerances where floating-point results require them and make failures exit nonzero with useful diagnostics.
Keep each process's RTS lifecycle valid and guarantee cleanup on ordinary failure paths.
Preserve readable examples while ensuring Meson runs real result checks.
Completion criteria
meson test -C builddir --print-errorlogs succeeds for the correct library. Controlled incorrect results cause the relevant test to fail; successful output alone is not treated as correctness evidence.
Compatibility
Test existing exported contracts first. New error models and additional foreign APIs belong to the C ABI tracking issue.
Activity