I get many compilation errors when I compile greedy.c.
However, my mario.c
and greedy.c
programs with 2 and 3 residual appear to pass check50
tests!
jharvard@appliance (~/Dropbox/pset1): check50 2014/x/pset1/greedy greedy.c
:) greedy.c exists
:( greedy.c compiles
\ expected an exit code of 0, not standard error of "greedy.c:7:4: error: expected identifie..."
:| input of 0.41 yields output of 4
\ can't check until a frown turns upside down
:| input of 0.01 yields output of 1
\ can't check until a frown turns upside down
:| input of 0.15 yields output of 2
\ can't check until a frown turns upside down
:| input of 1.6 yields output of 7
\ can't check until a frown turns upside down
:| input of 23 yields output of 92
\ can't check until a frown turns upside down
:| input of 4.2 yields output of 18
\ can't check until a frown turns upside down
:| rejects a negative input like -.1
\ can't check until a frown turns upside down
:| rejects a non-numeric input of "foo"
\ can't check until a frown turns upside down
:| rejects a non-numeric input of ""
\ can't check until a frown turns upside down
I was wondering, if there are compilation errors, check50
will not even permit running that program with residual compilation errors. Am I right or wrong?