* src/business/business-core/test/test-employee.c: fix the test

to reflect the change in Employee->Printable()


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8144 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2003-03-31 18:08:32 +00:00
parent 3d8b885108
commit c1818d3d2c
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-03-31 Derek Atkins <derek@ihtfp.com>
* src/business/business-core/test/test-employee.c: fix the test
to reflect the change in Employee->Printable()
2003-03-29 Christian Stimming <stimming@tuhh.de>
* src/report/standard-reports/daily-reports.scm: New report

View File

@ -94,8 +94,10 @@ test_employee (void)
{
const char *str = get_random_string();
const char *res;
GncAddress *addr;
gncEmployeeSetUsername (employee, str);
addr = gncEmployeeGetAddr (employee);
gncAddressSetName (addr, str);
res = gncObjectPrintable (GNC_EMPLOYEE_MODULE_NAME, employee);
do_test (res != NULL, "Printable NULL?");
do_test (safe_strcmp (str, res) == 0, "Printable equals");