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