diff options
Diffstat (limited to 'test/pamflip1.test')
-rwxr-xr-x | test/pamflip1.test | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/test/pamflip1.test b/test/pamflip1.test index 840cac73..f8da3a74 100755 --- a/test/pamflip1.test +++ b/test/pamflip1.test @@ -1,15 +1,19 @@ -#! /bin/bash +#! /bin/sh # This script tests: pamflip -# Also requires: +# Also requires: pamseq +echo "Test 1. Should print 1350702313 12336" +pamseq 3 15 | pamflip -lr | cksum -# Test 1. Should print 2116496681 101484 -pamflip -lr testimg.ppm | cksum -# Test 2. Should print 217037000 101484 +echo "Test 2. Should print 1035759697 40048" +pamseq 4 9 | pamflip -tb | cksum + +echo "Test 3. Should print 217037000 101484" pamflip -cw testimg.ppm | cksum -# Test 3. Should print 2052917888 101484 -pamflip -tb testimg.ppm | cksum -# Test 4. Should print 3375384165 41 -pamflip -lr testgrid.pbm | cksum -# Test 5. Should print 604323149 41 -pamflip -tb testgrid.pbm | cksum + +echo "Test 4. Should print 1178735266 481" +pamflip -lr maze.pbm | cksum + +echo "Test 5. Should print 2339906255 481" +pamflip -tb maze.pbm | cksum + |