File: shiftlr.decTest

package info (click to toggle)
mpdecimal 4.0.1-5
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,232 kB
  • sloc: ansic: 17,917; cpp: 6,508; sh: 4,236; makefile: 621; lisp: 502; python: 85; asm: 18
file content (19 lines) | stat: -rw-r--r-- 759 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- Selected test cases to reduce both the archive size and runtime.  For the
-- large test suite, download the separate mpdecimal-testdata distribution and
-- replace the testdata_dist directory.

shlx0  shiftleft  0  0  ->  0
shlx1  shiftleft  0  1  ->  0
shlx2  shiftleft  0  2  ->  0
shlx3  shiftleft  0  3  ->  0

shlx190  shiftleft  1  90  ->  1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

shlx200  shiftleft  12  0  ->  12
shlx201  shiftleft  12  1  ->  120
shlx209  shiftleft  12  9  ->  12000000000

shlr4800  shiftright  12123456789  0  ->  12123456789
shlr4801  shiftright  12123456789  1  ->  1212345678
shlr4802  shiftright  12123456789  2  ->  121234567
shlr4810  shiftright  12123456789  10  ->  1