--- tests/check_money.1.c 2006-11-21 18:19:14.000000000 -0500 +++ tests/check_money.2.c 2006-11-21 18:19:14.000000000 -0500 @@ -1,3 +1,18 @@ +#include +#include "../src/money.h" + +START_TEST (test_money_create) +{ + Money *m; + m = money_create (5, "USD"); + fail_unless (money_amount (m) == 5, + "Amount not set correctly on creation"); + fail_unless (strcmp (money_currency (m), "USD") == 0, + "Currency not set correctly on creation"); + money_free (m); +} +END_TEST + int main (void) {