FOR CS50 STAFF ACTION:
When I ran check50 against resize, I got a very confusing result. I've seen that others have seen the exact same result. Here's the problem - the output is giving negative results but saying that the output is correct.
In reality, the bitmap is correct in the file, but there are header errors.
STAFF: Can you please correct this issue to indicate the error instead of indicating that it is working 'correctly'? Perhaps you could separate the tests into two phases - one to check the header data and another to validate the bitmap data.
Here is the misleading result:
check50 2014/x/pset4/resize bmp.h resize.c
:) resize.c and bmp.h exist
:) resize.c compiles
:) doesn't resize 1x1-pixel BMP when n is 1
:( resizes 1x1-pixel BMP to 2x2 correctly when n is 2
:( resizes 1x1-pixel BMP to 3x3 correctly when n is 3
:( resizes 1x1-pixel BMP to 4x4 correctly when n is 4
:( resizes 1x1-pixel BMP to 5x5 correctly when n is 5
:( resizes 2x2-pixel BMP to 4x4 correctly when n is 2
As you can see, the last 5 cases say something is wrong, but only tells what is right. My first thought was that there was a bug in CHECK50.
Interestingly, here's a good run. The only difference is the smiley face vs. frown face.
jharvard@appliance (~/Dropbox/pset4/bmp): check50 2014.fall.pset4.resize bmp.h resize.c
:) resize.c and bmp.h exist
:) resize.c compiles
:) doesn't resize 1x1-pixel BMP when n is 1
:) resizes 1x1-pixel BMP to 2x2 correctly when n is 2
:) resizes 1x1-pixel BMP to 3x3 correctly when n is 3
:) resizes 1x1-pixel BMP to 4x4 correctly when n is 4
:) resizes 1x1-pixel BMP to 5x5 correctly when n is 5
:) resizes 2x2-pixel BMP to 4x4 correctly when n is 2
thanks, Cliff