]> www.ginac.de Git - cln.git/blob - tests/test_I_plus1.cc
* src/base/digitseq/cl_DS.h: #undef DS, needed for i386-Solaris.
[cln.git] / tests / test_I_plus1.cc
1 #include "test_I.h"
2
3 int test_I_plus1 (int iterations)
4 {
5         int error = 0;
6         int i;
7         // Check against "+".
8         for (i = iterations; i > 0; i--) {
9                 cl_I a = testrandom_I();
10                 ASSERT1(plus1(a) == 1+a, a);
11         }
12         return error;
13 }