about summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-09-28 01:32:12 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-09-28 01:32:12 +0000
commit74972256fffd43d1f1e16f0d4bc373e93aaed444 (patch)
treef55b20f29a2ae848261924a8582444c4a4356be9 /test
parenta8b009ef04ee1689c6cb60c1453c8196a00eaeba (diff)
downloadnetpbm-mirror-74972256fffd43d1f1e16f0d4bc373e93aaed444.tar.gz
netpbm-mirror-74972256fffd43d1f1e16f0d4bc373e93aaed444.tar.xz
netpbm-mirror-74972256fffd43d1f1e16f0d4bc373e93aaed444.zip
Copy Development as new Advanced
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2830 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test')
-rwxr-xr-xtest/pbmtext.test10
-rwxr-xr-xtest/pnmquantall.test2
2 files changed, 8 insertions, 4 deletions
diff --git a/test/pbmtext.test b/test/pbmtext.test
index 20c9b285..064b1660 100755
--- a/test/pbmtext.test
+++ b/test/pbmtext.test
@@ -6,9 +6,13 @@ tmpdir=${tmpdir:-/tmp}
 
 # Test 1:
 
+# Should print 3898818212 967 twice
+
 pbmtext UNIX Philosophy: Do one thing and do it well. | cksum
 echo -n "UNIX Philosophy: Do one thing and do it well." | pbmtext | cksum
 
+# Should print 2506052117 1354 twice
+
 pbmtext -builtin fixed \
     For truth is always strange. Stranger than fiction. Lord Byron | cksum
 echo -n "For truth is always strange. Stranger than fiction. Lord Byron" | \
@@ -76,13 +80,13 @@ rm ${fontRectangle_txt} ${font_pbm}
 # Test 5: Print all characters defined in the built-in bdf font
 
 # One long row
-# Should print
+# Should print 3233136020 4535
 awk 'BEGIN { for (i=32; i<=125;++i) printf("%c",i);
              for (i=160;i<=255;++i) printf("%c",i); }' | \
     pbmtext -builtin bdf | cksum
 
 # One tall column
-# Should print
+# Should print 1216262214 5711
 awk 'BEGIN { for (i=32; i<=125;++i) printf("%c\n",i);
              for (i=160;i<=255;++i) printf("%c\n",i); }' | \
     pbmtext -nomargins -builtin bdf | cksum
@@ -94,7 +98,7 @@ awk 'BEGIN { for (i=32; i<=125;++i) printf("%c\n",i);
 font_bdf=${tmpdir}/font.bdf
 font_corrupt_bdf=${tmpdir}/fontcorrupt.bdf
 
-# Though this is BDF font file defines only three letters, it is valid.
+# Though this BDF font file defines only three letters, it is valid.
 
 cat > ${font_bdf} << EOF
 STARTFONT 2.1
diff --git a/test/pnmquantall.test b/test/pnmquantall.test
index f0f18ab0..7d9ddf82 100755
--- a/test/pnmquantall.test
+++ b/test/pnmquantall.test
@@ -14,4 +14,4 @@ done
 # Should print 1
 
 pnmcat testimg.red testimg.grn testimg.blu -tb | \
-    pgmhist -m | awk '$2>0 {s++}; END { print s<=20 }'
+    pgmhist -m | awk '$2>0 {s++}; END { print (s<=20) }'