2011-04-16 15:30:03 +00:00
|
|
|
#include <stdio.h>
|
2011-05-08 21:40:26 +00:00
|
|
|
#include <lib.h>
|
2011-04-16 15:30:03 +00:00
|
|
|
|
|
|
|
int main() {
|
2011-11-11 21:18:24 +00:00
|
|
|
if (psyc_matches(PSYC_C2ARG("_failure_delivery"),
|
|
|
|
PSYC_C2ARG("_failure_unsuccessful_delivery_death")))
|
|
|
|
return 1;
|
|
|
|
if (psyc_matches(PSYC_C2ARG("_failure"),
|
|
|
|
PSYC_C2ARG("_failure_unsuccessful_delivery_death")))
|
|
|
|
return 2;
|
|
|
|
if (psyc_matches(PSYC_C2ARG("_unsuccessful"),
|
|
|
|
PSYC_C2ARG("_failure_unsuccessful_delivery_death")))
|
|
|
|
return 3;
|
|
|
|
unless (psyc_matches(PSYC_C2ARG("_fail"),
|
|
|
|
PSYC_C2ARG("_failure_unsuccessful_delivery_death")))
|
|
|
|
return 4;
|
|
|
|
unless (psyc_matches(PSYC_C2ARG("_truthahn"),
|
|
|
|
PSYC_C2ARG("_failure_unsuccessful_delivery_death")))
|
|
|
|
return 5;
|
2011-04-16 15:30:03 +00:00
|
|
|
|
2011-11-11 21:18:24 +00:00
|
|
|
puts("psyc_matches passed all tests.");
|
2011-04-20 21:08:20 +00:00
|
|
|
|
2011-11-11 21:18:24 +00:00
|
|
|
unless (psyc_inherits(PSYC_C2ARG("_failure_delivery"),
|
|
|
|
PSYC_C2ARG("_failure_unsuccessful_delivery_death")))
|
|
|
|
return 11;
|
|
|
|
if (psyc_inherits(PSYC_C2ARG("_failure_unsuccessful"),
|
|
|
|
PSYC_C2ARG("_failure_unsuccessful_delivery_death")))
|
|
|
|
return 12;
|
|
|
|
unless (psyc_inherits(PSYC_C2ARG("_fail"),
|
|
|
|
PSYC_C2ARG("_failure_unsuccessful_delivery_death")))
|
|
|
|
return 13;
|
2011-04-20 21:08:20 +00:00
|
|
|
|
2011-11-11 21:18:24 +00:00
|
|
|
puts("psyc_inherits passed all tests.");
|
2011-04-20 21:08:20 +00:00
|
|
|
|
2011-11-11 21:18:24 +00:00
|
|
|
return 0; // passed all tests
|
2011-04-16 15:30:03 +00:00
|
|
|
}
|