1 ------------------------------------------------------------------------ 2 -- testall.decTest -- run all general decimal arithmetic testcases -- 3 -- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. -- 4 ------------------------------------------------------------------------ 5 -- Please see the document "General Decimal Arithmetic Testcases" -- 6 -- at http://www2.hursley.ibm.com/decimal for the description of -- 7 -- these testcases. -- 8 -- -- 9 -- These testcases are experimental ('beta' versions), and they -- 10 -- may contain errors. They are offered on an as-is basis. In -- 11 -- particular, achieving the same results as the tests here is not -- 12 -- a guarantee that an implementation complies with any Standard -- 13 -- or specification. The tests are not exhaustive. -- 14 -- -- 15 -- Please send comments, suggestions, and corrections to the author: -- 16 -- Mike Cowlishaw, IBM Fellow -- 17 -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- 18 -- mfc (a] uk.ibm.com -- 19 ------------------------------------------------------------------------ 20 version: 2.59 21 22 -- core tests (using Extended: 1) -------------------------------------- 23 dectest: base 24 25 dectest: abs 26 dectest: add 27 dectest: and 28 dectest: clamp 29 dectest: class 30 dectest: compare 31 dectest: comparesig 32 dectest: comparetotal 33 dectest: comparetotmag 34 dectest: copy 35 dectest: copyabs 36 dectest: copynegate 37 dectest: copysign 38 dectest: divide 39 dectest: divideint 40 dectest: exp 41 dectest: fma 42 dectest: inexact 43 dectest: invert 44 dectest: ln 45 dectest: logb 46 dectest: log10 47 dectest: max 48 dectest: maxmag 49 dectest: min 50 dectest: minmag 51 dectest: minus 52 dectest: multiply 53 dectest: nextminus 54 dectest: nextplus 55 dectest: nexttoward 56 dectest: or 57 dectest: plus 58 dectest: power 59 dectest: powersqrt 60 dectest: quantize 61 dectest: randoms 62 dectest: reduce -- [was called normalize] 63 dectest: remainder 64 dectest: remaindernear 65 dectest: rescale -- [obsolete] 66 dectest: rotate 67 dectest: rounding 68 dectest: samequantum 69 dectest: scaleb 70 dectest: shift 71 dectest: squareroot 72 dectest: subtract 73 dectest: tointegral 74 dectest: tointegralx 75 dectest: trim 76 dectest: xor 77 78 -- The next are for the Strawman 4d concrete representations and 79 -- tests at those sizes [including dsEncode, ddEncode, and dqEncode, 80 -- which replace decimal32, decimal64, and decimal128] 81 dectest: decSingle 82 dectest: decDouble 83 dectest: decQuad 84 85 -- General 31->33-digit boundary tests 86 dectest: randombound32 87 88