Add a unit test framework for C code, to test e.g. ObjInt_UInt, ObjInt_Int8, ObjInt_Int #1917
Labels
kind: enhancement
Label for issues suggesting enhancements; and for pull requests implementing enhancements
topic: kernel
topic: tests
issues or PRs related to tests
It would be good to have a C unit test framework where we can test dedicated kernel functions without having to come up in a "natural" way. Right now, the best one can seems to be to write C functions
FuncTEST_SOME_CODE
, export them to GAP, and then call them from there.A general framework could also do that, but with a single function, which then is responsible for executing the whole test suite(s).
Or perhaps some other way would do -- whatever, in the end, it just would be nice to have tests for things like
ObjInt_Int8
, which used to have bugs for edge cases in the past; so it would be really good to be able to add systematic tests for such relatively self-contained functions.See also PR #1909 for some more relevant C functions.
The text was updated successfully, but these errors were encountered: