Skip to content

Commit

Permalink
Merge branch 'master' of github.com:linbox-team/givaro
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementPernet committed Jun 7, 2019
2 parents fc7f079 + 638ce4a commit dd88332
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions tests/test-regression.C
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,22 @@ bool testRationalDenom() {
QQ.add(c,a,b);
std::clog << "0: " << c << std::endl;
pass = pass && isZero(c);


std::clog << "[TRD] " << (pass?"PASSED.":"FAILED.") << std::endl;

return pass;

}



#include "givaro/modular.h"
bool testFieldInit() {
size_t p = 19;
Givaro::Modular<int64_t> F1(p);

// This is a compilation test,
// if it compiles, everything's fine
F1.write(std::clog << "[TFI] PASSED: ") << std::endl;
return true;
}

int main(int argc, char ** argv)
{
Expand All @@ -64,7 +71,7 @@ int main(int argc, char ** argv)


pass = pass && testRationalDenom ();

pass = pass && testFieldInit ();

return pass ? 0 : -1;
}
Expand Down

0 comments on commit dd88332

Please sign in to comment.