source: git/libpolys/tests/polys_test.h @ 4f684a

spielwiese
Last change on this file since 4f684a was 4f684a, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: unit tests for polys
  • Property mode set to 100644
File size: 552 bytes
Line 
1
2#include "config.h"
3#include <misc/auxiliary.h>
4#include <omalloc/omalloc.h>
5
6#include <reporter/reporter.h>
7
8#include <coeffs/coeffs.h>
9#include <coeffs/numbers.h>
10
11
12#include <polys/monomials/ring.h>
13
14#include "common.h"
15using namespace std;
16
17
18
19class PolysTestSuite : public CxxTest::TestSuite
20{
21public:
22   void test_1()
23   {
24     char* n = "x";
25     ring r = rDefault( 11, 1, &n);
26     TS_ASSERT_DIFFERS( r, NULLp );
27
28     clog << "RING: Z/11 [x]: " << endl;
29     rWrite(r);
30#ifdef  RDEBUG
31     rDebugPrint(r);
32#endif
33     
34     rKill(r);
35   }
36};
37
Note: See TracBrowser for help on using the repository browser.