diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-09-26 23:52:08 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-09-26 23:52:08 +0000 |
commit | 4c361c0a7638b4f068e8b524e4ff43374a286018 (patch) | |
tree | 0aef192966a1ae996a9f2a0364f3ccbb15d512c7 /test/pamarith.ok | |
parent | cd7f17a619a0421a1dfb2ceb09f4af60ead8ad5f (diff) | |
download | netpbm-mirror-4c361c0a7638b4f068e8b524e4ff43374a286018.tar.gz netpbm-mirror-4c361c0a7638b4f068e8b524e4ff43374a286018.tar.xz netpbm-mirror-4c361c0a7638b4f068e8b524e4ff43374a286018.zip |
Promote Development to Advanced
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3972 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pamarith.ok')
-rw-r--r-- | test/pamarith.ok | 182 |
1 files changed, 182 insertions, 0 deletions
diff --git a/test/pamarith.ok b/test/pamarith.ok new file mode 100644 index 00000000..782637d3 --- /dev/null +++ b/test/pamarith.ok @@ -0,0 +1,182 @@ +Test 1 +P2 +16 2 +15 +0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 +2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 +-add +P2 16 1 15 2 3 4 5 6 7 8 9 10 11 12 13 14 15 15 15 +1927712885 59 +1927712885 59 +1927712885 59 +-subtract +P2 16 1 15 0 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 +622443613 59 +622443613 59 +622443613 59 +-multiply +P2 16 1 15 0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 +1589721418 59 +1589721418 59 +1589721418 59 +-divide +P2 16 1 15 0 8 15 15 15 15 15 15 15 15 15 15 15 15 15 15 +321546811 59 +321546811 59 +321546811 59 +-difference +P2 16 1 15 2 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 +590140907 59 +590140907 59 +590140907 59 +-minimum +P2 16 1 15 0 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 +3746423180 59 +3746423180 59 +3746423180 59 +-maximum +P2 16 1 15 2 2 2 3 4 5 6 7 8 9 10 11 12 13 14 15 +201376294 59 +201376294 59 +201376294 59 +-mean +P2 16 1 15 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 +1456675831 59 +1456675831 59 +1456675831 59 +-compare +P2 16 1 2 0 0 1 2 2 2 2 2 2 2 2 2 2 2 2 2 +196115582 58 +196115582 58 +196115582 58 +-and +P2 16 1 15 0 0 2 2 0 0 2 2 0 0 2 2 0 0 2 2 +3660405045 59 +3660405045 59 +3660405045 59 +-or +P2 16 1 15 2 3 2 3 6 7 6 7 10 11 10 11 14 15 14 15 +157317791 59 +157317791 59 +157317791 59 +-nand +P2 16 1 15 15 15 13 13 15 15 13 13 15 15 13 13 15 15 13 13 +1625584307 59 +1625584307 59 +1625584307 59 +-nor +P2 16 1 15 13 12 13 12 9 8 9 8 5 4 5 4 1 0 1 0 +3014218009 59 +3014218009 59 +3014218009 59 +-xor +P2 16 1 15 2 3 0 1 6 7 4 5 10 11 8 9 14 15 12 13 +3227090877 59 +3227090877 59 +3227090877 59 +-shiftleft +P2 16 1 15 0 4 8 12 0 4 8 12 0 4 8 12 0 4 8 12 +952940636 59 +952940636 59 +952940636 59 +-shiftright +P2 16 1 15 0 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3 +2898922266 59 +2898922266 59 +2898922266 59 +Test 2 PBM +P1 +8 2 +01010101 +00001111 +-add +P1 8 1 00000101 +-subtract +P1 8 1 11110101 +-multiply +P1 8 1 01011111 +-divide +P1 8 1 01010000 +-difference +P1 8 1 10100101 +-minimum +P1 8 1 01011111 +-maximum +P1 8 1 00000101 +-mean +P1 8 1 00000101 +-compare +P2 8 1 2 1 0 1 0 2 1 2 1 +-and +P1 8 1 01011111 +-or +P1 8 1 00000101 +-nand +P1 8 1 10100000 +-nor +P1 8 1 11111010 +-xor +P1 8 1 10100101 +-shiftleft +P1 8 1 11110101 +-shiftright +P1 8 1 11110101 +Test 3 (input = output) +cksum is 2425386270 41 or 2921940274 59 +input image +2425386270 41 +-minimum +2425386270 41 +-maximum +2425386270 41 +-mean +2425386270 41 +-and +2425386270 41 +-or +2425386270 41 +input image +2921940274 59 +-minimum +2921940274 59 +-maximum +2921940274 59 +-mean +2921940274 59 +-and +2921940274 59 +-or +2921940274 59 +Test 4 (blank output) +cksum is 2817549367 41 or 320101399 59 +-subtract +2817549367 41 +-difference +2817549367 41 +-xor +2817549367 41 +-subtract +320101399 59 +-difference +320101399 59 +-xor +320101399 59 +Test Invalid +Expected failure 1 1 +Expected failure 2 1 +Expected failure 3 1 +Expected failure 4 1 +Expected failure 5 1 +Expected failure 6 1 +Expected failure 7 1 +Expected failure 8 1 +Expected failure 9 1 +Expected failure 10 1 +Expected failure 11 1 +Expected failure 12 1 +Expected failure 13 1 +Expected failure 14 1 +Expected failure 15 1 +Expected failure 16 1 +Expected failure 17 1 +Expected failure 18 1 |