Changeset 99ae0c in git
 Timestamp:
 May 18, 2011, 12:45:57 AM (12 years ago)
 Branches:
 (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
 Children:
 3199ac3605af0f6ec91729ae32d5704af6105991
 Parents:
 9f1a52f982884b8e4dfc19ff4405ba086bd460e2
 gitauthor:
 Oleksandr Motsak <motsak@mathematik.unikl.de>20110518 00:45:57+02:00
 gitcommitter:
 Mohamed Barakat <mohamed.barakat@rwthaachen.de>20111109 12:36:08+01:00
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

libpolys/tests/coeffs_test.h
r9f1a52 r99ae0c 116 116 clog << endl; 117 117 118 number a = n_Init(66666, r); 118 number two = n_Init(2, r); 119 120 number t = n_Init(1, r); 121 ndInpAdd(t, t, r); 122 TS_ASSERT( n_Equal(two, t, r) ); 123 n_Delete(&t, r); 124 125 if( getCoeffType(r) == n_Q ) 126 { 127 number t = n_Init(1, r); 128 nlInpAdd(t, t, r); 129 TS_ASSERT( n_Equal(two, t, r) ); 130 n_Delete(&t, r); 131 } 132 133 134 135 136 const int N = 66666; 137 138 number a = n_Init(N, r); 119 139 120 140 clog<< "a: "; PrintSized(a, r); 121 141 122 number two = n_Init(2, r);123 142 124 143 clog<< "two: "; PrintSized(two, r); 144 145 number aa0 = n_Init(N*2, r); 125 146 126 147 number aa = n_Add(a, a, r); … … 168 189 169 190 TS_ASSERT( n_Equal(aa, aa1, r) ); 170 171 191 TS_ASSERT( n_Equal(aa, aa2, r) ); 172 173 192 TS_ASSERT( n_Equal(aa1, aa2, r) ); 174 193 194 TS_ASSERT( n_Equal(aa0, aa, r) ); 195 TS_ASSERT( n_Equal(aa0, aa1, r) ); 196 TS_ASSERT( n_Equal(aa0, aa2, r) ); 175 197 176 198 n_Delete(&aa, r); … … 178 200 n_Delete(&aa2, r); 179 201 202 n_Delete(&aa0, r); 180 203 181 204 clog << ( " >>> TEST DONE!" );
Note: See TracChangeset
for help on using the changeset viewer.