about summary refs log tree commit diff
path: root/test/fiasco-roundtrip.test
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2017-12-30 20:35:00 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2017-12-30 20:35:00 +0000
commit8c46a4c67e321801d99078a7fb22af6a20e4aa7b (patch)
treeba5d6e4eceb646d9892859b384f78d579a75bb66 /test/fiasco-roundtrip.test
parenta24369691a810b5cb4f929618b080d82c8200938 (diff)
downloadnetpbm-mirror-8c46a4c67e321801d99078a7fb22af6a20e4aa7b.tar.gz
netpbm-mirror-8c46a4c67e321801d99078a7fb22af6a20e4aa7b.tar.xz
netpbm-mirror-8c46a4c67e321801d99078a7fb22af6a20e4aa7b.zip
Copy Development as new Advanced
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3104 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/fiasco-roundtrip.test')
-rwxr-xr-xtest/fiasco-roundtrip.test7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/fiasco-roundtrip.test b/test/fiasco-roundtrip.test
index 6fd43432..8325a37d 100755
--- a/test/fiasco-roundtrip.test
+++ b/test/fiasco-roundtrip.test
@@ -7,7 +7,7 @@
 # TODO: As in jpeg-rountrip.test the threshold has been determined
 # without much thought.
 
-# Should print 3 1 1 1
+# Should print 3 1000.00 1000.00 1000.00
 
 tmpdir=${tmpdir:-/tmp}
 padded_ppm=${tmpdir}/padded.ppm
@@ -15,6 +15,9 @@ padded_ppm=${tmpdir}/padded.ppm
 pnmpad --black --bottom 1 --left 1 testimg.ppm > ${padded_ppm} &&
 pnmtofiasco --progress-meter 0 ${padded_ppm} | fiascotopnm | \
     pnmpsnr -machine - ${padded_ppm} | \
-    awk '{printf("%3d %1d %1d %1d",NF,$1>14.0,$2>21.0,$3>$29.0)}'
+    awk '{printf("%3d %.2f %.2f %.2f", NF,
+                  $1>14.0 ? 1000.00 : $1,
+                  $2>21.0 ? 1000.00 : $2,
+                  $3>29.0 ? 1000.00 : $3) }'
 
 rm ${padded_ppm}
\ No newline at end of file