RosettaCodeData/Task/Assertions/PARI-GP/assertions-1.parigp
2023-07-01 13:44:08 -04:00

11 lines
201 B
Text

#include <assert.h>
#include <pari/pari.h>
void
test()
{
GEN a;
// ... input or change a here
assert(equalis(a, 42)); /* Aborts program if a is not 42, unless the NDEBUG macro was defined */
}