Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 1 | ------------------------------------------------------------------------ |
| 2 | -- testall.decTest -- run all general decimal arithmetic testcases -- |
Mark Dickinson | fe84cce | 2008-07-27 06:39:07 +0000 | [diff] [blame] | 3 | -- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. -- |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 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@uk.ibm.com -- |
| 19 | ------------------------------------------------------------------------ |
Mark Dickinson | 539bff4 | 2009-10-08 16:28:39 +0000 | [diff] [blame] | 20 | version: 2.59 |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 21 | |
| 22 | -- core tests (using Extended: 1) -------------------------------------- |
| 23 | dectest: base |
Facundo Batista | 353750c | 2007-09-13 18:13:15 +0000 | [diff] [blame] | 24 | |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 25 | dectest: abs |
| 26 | dectest: add |
Facundo Batista | 353750c | 2007-09-13 18:13:15 +0000 | [diff] [blame] | 27 | dectest: and |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 28 | dectest: clamp |
Facundo Batista | 353750c | 2007-09-13 18:13:15 +0000 | [diff] [blame] | 29 | dectest: class |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 30 | dectest: compare |
Facundo Batista | 353750c | 2007-09-13 18:13:15 +0000 | [diff] [blame] | 31 | dectest: comparesig |
| 32 | dectest: comparetotal |
| 33 | dectest: comparetotmag |
| 34 | dectest: copy |
| 35 | dectest: copyabs |
| 36 | dectest: copynegate |
| 37 | dectest: copysign |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 38 | dectest: divide |
| 39 | dectest: divideint |
Facundo Batista | 353750c | 2007-09-13 18:13:15 +0000 | [diff] [blame] | 40 | dectest: exp |
| 41 | dectest: fma |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 42 | dectest: inexact |
Facundo Batista | 353750c | 2007-09-13 18:13:15 +0000 | [diff] [blame] | 43 | dectest: invert |
| 44 | dectest: ln |
| 45 | dectest: logb |
| 46 | dectest: log10 |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 47 | dectest: max |
Facundo Batista | 353750c | 2007-09-13 18:13:15 +0000 | [diff] [blame] | 48 | dectest: maxmag |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 49 | dectest: min |
Facundo Batista | 353750c | 2007-09-13 18:13:15 +0000 | [diff] [blame] | 50 | dectest: minmag |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 51 | dectest: minus |
| 52 | dectest: multiply |
Facundo Batista | 353750c | 2007-09-13 18:13:15 +0000 | [diff] [blame] | 53 | dectest: nextminus |
| 54 | dectest: nextplus |
| 55 | dectest: nexttoward |
| 56 | dectest: or |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 57 | dectest: plus |
| 58 | dectest: power |
Facundo Batista | 353750c | 2007-09-13 18:13:15 +0000 | [diff] [blame] | 59 | dectest: powersqrt |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 60 | dectest: quantize |
| 61 | dectest: randoms |
Facundo Batista | 353750c | 2007-09-13 18:13:15 +0000 | [diff] [blame] | 62 | dectest: reduce -- [was called normalize] |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 63 | dectest: remainder |
| 64 | dectest: remaindernear |
| 65 | dectest: rescale -- [obsolete] |
Facundo Batista | 353750c | 2007-09-13 18:13:15 +0000 | [diff] [blame] | 66 | dectest: rotate |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 67 | dectest: rounding |
| 68 | dectest: samequantum |
Facundo Batista | 353750c | 2007-09-13 18:13:15 +0000 | [diff] [blame] | 69 | dectest: scaleb |
| 70 | dectest: shift |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 71 | dectest: squareroot |
| 72 | dectest: subtract |
| 73 | dectest: tointegral |
Facundo Batista | 353750c | 2007-09-13 18:13:15 +0000 | [diff] [blame] | 74 | dectest: tointegralx |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 75 | dectest: trim |
Facundo Batista | 353750c | 2007-09-13 18:13:15 +0000 | [diff] [blame] | 76 | dectest: xor |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 77 | |
Facundo Batista | 353750c | 2007-09-13 18:13:15 +0000 | [diff] [blame] | 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 |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 84 | |
| 85 | -- General 31->33-digit boundary tests |
Raymond Hettinger | 3ee3ed2 | 2004-08-17 06:42:13 +0000 | [diff] [blame] | 86 | dectest: randombound32 |
Raymond Hettinger | 7c85fa4 | 2004-07-01 11:01:35 +0000 | [diff] [blame] | 87 | |