config root man

Current Path : /usr/local/share/examples/check-0.9.6/tests/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/share/examples/check-0.9.6/tests/check_money.2.c

#include <check.h>
#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)
{
  return 0;
}

Man Man