In this thread we pick up innocent programs and tank the shit out of them.
#include <stdio.h>
int main () {
int n1, n2;
printf("First integer:");
scanf("%d", &n1);
printf("Second integer:");
scanf("%d", &n2);
printf("Sum = %d\n", n1+n2);
return 0;
}
Name:
Anonymous2008-10-24 3:26
>>40
Fuck your test cases and enterprise best practices.
Name:
Anonymous2008-10-24 6:20
What the fuck /prog/??
You should prove your programs correct before you write even a single line of production code!!
Name:
Anonymous2008-10-24 14:15
I have a scheme macro that automatically creates all possible test cases for me. Unfortunately I created it at work and I signed a non-disclosure agreement with my boss, so I can't share it with the world forever.