summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Other changes concerning the memory limit for the tests.vlefevre2016-06-093-6/+16
| | | | | | | | | | * Export the tests_memory_limit variable so that it can be accessed in test programs (e.g. read by tversion as mentioned below, or modified by a test program when executed with particular arguments). * In tversion, print a warning when the memory limit has been modified (with the MPFR_TESTS_MEMORY_LIMIT environment variable). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10460 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/memory.c] The MPFR_TESTS_MEMORY_LIMIT environment variable canvlefevre2016-06-091-4/+17
| | | | | | | now contain an integer specifying the memory limit for the tests, or 0 for unlimited, the default still being 2^22 = 4 MB. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10459 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsum.c] Improved check3:vlefevre2016-06-081-29/+40
| | | | | | | | * Also do the tests with output precision MPFR_PREC_MIN; this completes the value coverage for tsum. * Also compare the flags. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10457 280ebfd0-de03-0410-8827-d642c229c3f4
* Value coverage for tsum: After r9984 to differentiate sq > MPFR_PREC_MINvlefevre2016-06-081-1/+1
| | | | | | | | and sq == MPFR_PREC_MIN, 42 tests were not done for sq == MPFR_PREC_MIN on a 64-bit machine. In the check4 test, changed a 2 to MPFR_PREC_MIN. This reduces to 12 tests that are not done. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10456 280ebfd0-de03-0410-8827-d642c229c3f4
* Merged the latest change from the trunk (r10449).vlefevre2016-06-071-6/+4
|\ | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10450 280ebfd0-de03-0410-8827-d642c229c3f4
| * [tests/tprintf.c] Removed tests of native %'g and %'f (from r8292)vlefevre2016-06-071-6/+4
| | | | | | | | | | | | | | as the ' flag is an extension from Single UNIX Specification and in particular, they fail with MinGW under Wine. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10449 280ebfd0-de03-0410-8827-d642c229c3f4
* | Merged the latest changes from the trunk.vlefevre2016-06-071-0/+22
|\ \ | |/ | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10448 280ebfd0-de03-0410-8827-d642c229c3f4
| * [tests/tlgamma.c] Typo in comment.vlefevre2016-06-071-1/+1
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10447 280ebfd0-de03-0410-8827-d642c229c3f4
| * [tests/tlgamma.c] Corrected updated comment from r10444.vlefevre2016-06-071-2/+4
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10445 280ebfd0-de03-0410-8827-d642c229c3f4
| * [tests/tlgamma.c] Updated comment of the test added in r10442.vlefevre2016-06-061-1/+2
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10444 280ebfd0-de03-0410-8827-d642c229c3f4
| * [tests/tlgamma.c] Added a test causing a "too much memory" error withvlefevre2016-06-061-0/+19
| | | | | | | | | | | | | | tcc 0.9.27~git20151227.933c223-1 (there's already one in special(), but this one is a simpler, standalone test). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10442 280ebfd0-de03-0410-8827-d642c229c3f4
* | Merged the latest changes from the trunk.vlefevre2016-06-061-7/+30
|\ \ | |/ | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10439 280ebfd0-de03-0410-8827-d642c229c3f4
| * [tests/tset_float128.c] Take into account failures in division by 0vlefevre2016-06-031-7/+30
| | | | | | | | | | | | | | and absence of signed zeros. Also fixed the code checking the sign of 0 (mpfr_sgn cannot be used for that since it returns 0 for ±0). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10429 280ebfd0-de03-0410-8827-d642c229c3f4
* | Merged the latest changes from the trunk (C++ compatibility).vlefevre2016-06-032-22/+22
|\ \ | |/ | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10425 280ebfd0-de03-0410-8827-d642c229c3f4
| * [tests/tset_float128.c] C++ compatibility.vlefevre2016-06-031-21/+21
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10424 280ebfd0-de03-0410-8827-d642c229c3f4
| * [tests/tlog.c] Added a cast to mpfr_rnd_t for C++ compatibility.vlefevre2016-06-031-1/+1
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10423 280ebfd0-de03-0410-8827-d642c229c3f4
* | [tests/tfmma.c] Forgot a cast to mpfr_rnd_t for C++ compatibility.vlefevre2016-06-031-1/+1
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10422 280ebfd0-de03-0410-8827-d642c229c3f4
* | [tests/tfmma.c] Correction.vlefevre2016-06-031-1/+1
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10420 280ebfd0-de03-0410-8827-d642c229c3f4
* | [tests/tfmma.c] Test (1/2)x + (1/2)x = x near underflow.vlefevre2016-06-031-1/+60
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10419 280ebfd0-de03-0410-8827-d642c229c3f4
* | [tests/tfmma.c] Replaced precision 64 by GMP_NUMB_BITS (to make surevlefevre2016-06-031-4/+4
| | | | | | | | | | | | | | | | that the add1sp and sub1sp conditions are satisfied with the current src code, these tests may rely on the fact that there are no trailing bits, i.e. that the precision is a multiple of GMP_NUMB_BITS). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10418 280ebfd0-de03-0410-8827-d642c229c3f4
* | [tests/tfmma.c] Added test cases where the precision of the resultvlefevre2016-06-021-46/+63
| | | | | | | | | | | | | | is twice the precision of each input, which can currently involve add1sp.c and sub1sp.c code. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10403 280ebfd0-de03-0410-8827-d642c229c3f4
* | Merged the latest changes (in particular the fix in sub1.c) from thevlefevre2016-05-306-20/+224
|\ \ | |/ | | | | | | | | trunk. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10388 280ebfd0-de03-0410-8827-d642c229c3f4
| * [tests/tsub.c] Added comments for check_max_almosteven (latestvlefevre2016-05-301-0/+23
| | | | | | | | | | | | test case, added in r10383). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10386 280ebfd0-de03-0410-8827-d642c229c3f4
| * [src/sub1.c] Fixed bug in mpfr_sub1 (real subtraction b - c, |b| > |c|):vlefevre2016-05-291-0/+130
| | | | | | | | | | | | | | | | | | | | | | In MPFR_RNDN (rounding to nearest), when |b| is the midpoint between the maximum number and 2^emax (the maximum number + 1 ulp) and c is small, the obtained result is an infinity (with overflow) instead of ± the maximum number (no overflow). The cause is that an overflow is generated too early (in the rounding code). [tests/tsub.c] Added test cases. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10383 280ebfd0-de03-0410-8827-d642c229c3f4
| * added commentzimmerma2016-05-251-0/+3
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10373 280ebfd0-de03-0410-8827-d642c229c3f4
| * [tests/tlog_ui.c] Improved a test function.vlefevre2016-05-241-3/+7
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10365 280ebfd0-de03-0410-8827-d642c229c3f4
| * use rounding to nearest by default in "tconst_log2 prec"zimmerma2016-05-241-3/+2
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10361 280ebfd0-de03-0410-8827-d642c229c3f4
| * minor changes to allow ./tlog xxx preczimmerma2016-05-241-6/+5
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10360 280ebfd0-de03-0410-8827-d642c229c3f4
| * added generic tests for mpfr_log_ui + compare with mpfr_logzimmerma2016-05-242-11/+57
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10359 280ebfd0-de03-0410-8827-d642c229c3f4
* | [tests/tfmma.c] Forgot a \n in printf.vlefevre2016-05-291-3/+3
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10382 280ebfd0-de03-0410-8827-d642c229c3f4
* | [tests/tfmma.c] Added overflow tests that trigger an assertion failurevlefevre2016-05-291-9/+50
| | | | | | | | | | | | in sub1.c (because UBF support is not complete yet). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10381 280ebfd0-de03-0410-8827-d642c229c3f4
* | Merged the latest changes from the trunk and removed the remainingvlefevre2016-05-244-53/+79
|\ \ | |/ | | | | | | | | _MPFR_PROTO of UBF functions. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10357 280ebfd0-de03-0410-8827-d642c229c3f4
| * Removed _MPFR_PROTO with the following Perl script on the .h files.vlefevre2016-05-241-37/+37
| | | | | | | | | | | | | | | | while (<>) { if ($c) { die if /_MPFR_PROTO/; s/^( {$c}) */$1/; s/\) *\)/)/ and undef $c } elsif (s/^(.*)(_MPFR_PROTO *\()\(/$1(/) { s/\) *\)/)/ or $c = 1 + length $1 } print } git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10356 280ebfd0-de03-0410-8827-d642c229c3f4
| * [tests/tfpif.c] Correction on r10338: use src_fopen instead of fopenvlefevre2016-05-241-1/+7
| | | | | | | | | | | | and check fp (just like with FILE_NAME_R). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10342 280ebfd0-de03-0410-8827-d642c229c3f4
| * added new (read-only) test file for mpfr_fpif_importzimmerma2016-05-242-1/+1
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10339 280ebfd0-de03-0410-8827-d642c229c3f4
| * added tests for mpfr_fpif_import with precision > MPFR_PREC_MAXzimmerma2016-05-241-15/+35
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10338 280ebfd0-de03-0410-8827-d642c229c3f4
* | [tests/tfmma.c] Completed near_overflow_tests (there's still a crash,vlefevre2016-05-241-8/+7
| | | | | | | | | | | | this time really in fmma.c). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10341 280ebfd0-de03-0410-8827-d642c229c3f4
* | [tests/tfmma.c] Added near_overflow_tests, which crashes.vlefevre2016-05-241-2/+81
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10340 280ebfd0-de03-0410-8827-d642c229c3f4
* | Merged the latest changes from the trunk.vlefevre2016-05-244-8/+104
|\ \ | |/ | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10337 280ebfd0-de03-0410-8827-d642c229c3f4
| * Minor comment & coding style corrections on r10327.vlefevre2016-05-231-22/+24
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10328 280ebfd0-de03-0410-8827-d642c229c3f4
| * Added shared cache support (from a patch by Patrick Pélissier).vlefevre2016-05-233-2/+85
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10327 280ebfd0-de03-0410-8827-d642c229c3f4
| * added tests for mpfr_fpif in precision 1zimmerma2016-05-231-6/+17
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10326 280ebfd0-de03-0410-8827-d642c229c3f4
* | [tests/tfmma.c] Added max_tests.vlefevre2016-05-231-0/+46
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10324 280ebfd0-de03-0410-8827-d642c229c3f4
* | Also reverse-merge r9958, r9961 and r9962 (due to the previous ones).vlefevre2016-05-235-61/+25
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10316 280ebfd0-de03-0410-8827-d642c229c3f4
* | First, reverse-merge r9975 and r9957 (whose only purpose was for fmma,vlefevre2016-05-231-8/+0
|/ | | | | | but changed the exponent range and still had various issues). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10315 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tfmma.c] Corrections and improvements in random_test.vlefevre2016-05-221-12/+18
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10307 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tfmma.c] Replaced mpfr_cmp by the stronger mpfr_equal_p.vlefevre2016-05-221-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10306 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests]vlefevre2016-05-222-1/+3
| | | | | | | * tadd_ui.c: clean-up (a boolean test doesn't need "!= 0"). * tsub_ui.c: check that the NaN flag is set on NaN. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10303 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Check NaN argument, mainly in order to check the NaNvlefevre2016-05-201-10/+27
| | | | | | | flag when the result is NaN (almost all cases). This makes both tadd_ui (ignoring the new test done in r10298) and tsub_ui fail. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10299 280ebfd0-de03-0410-8827-d642c229c3f4
* added test case for bug reported by Rob (sisyphus1@optusnet.com.au)zimmerma2016-05-191-0/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10298 280ebfd0-de03-0410-8827-d642c229c3f4