test-lots.cpp (gnucash-5.0.tar.bz2) | : | test-lots.cpp (gnucash-5.1.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 81 | skipping to change at line 81 | |||
gnc_lot_set_notes (lot, "doc"); | gnc_lot_set_notes (lot, "doc"); | |||
g_assert_cmpstr (gnc_lot_get_notes (lot), ==, "doc"); | g_assert_cmpstr (gnc_lot_get_notes (lot), ==, "doc"); | |||
gnc_lot_set_notes (lot, "unset"); | gnc_lot_set_notes (lot, "unset"); | |||
g_assert_cmpstr (gnc_lot_get_notes (lot), ==, "unset"); | g_assert_cmpstr (gnc_lot_get_notes (lot), ==, "unset"); | |||
gnc_lot_set_notes (lot, NULL); | gnc_lot_set_notes (lot, NULL); | |||
g_assert_cmpstr (gnc_lot_get_notes (lot), ==, NULL); | g_assert_cmpstr (gnc_lot_get_notes (lot), ==, NULL); | |||
gnc_lot_destroy (lot); | gnc_lot_destroy (lot); | |||
qof_session_end (sess); | qof_session_destroy (sess); | |||
} | } | |||
static void | static void | |||
run_test (void) | run_test (void) | |||
{ | { | |||
QofSession *sess; | QofSession *sess; | |||
QofBook *book; | QofBook *book; | |||
Account *root; | Account *root; | |||
/* --------------------------------------------------------- */ | /* --------------------------------------------------------- */ | |||
skipping to change at line 110 | skipping to change at line 110 | |||
root = gnc_book_get_root_account (book); | root = gnc_book_get_root_account (book); | |||
xaccAccountTreeScrubLots (root); | xaccAccountTreeScrubLots (root); | |||
/* --------------------------------------------------------- */ | /* --------------------------------------------------------- */ | |||
/* In the second test, we create an account with unrealized gains, | /* In the second test, we create an account with unrealized gains, | |||
* and see if that gets fixed correctly, with the correct balances, | * and see if that gets fixed correctly, with the correct balances, | |||
* and etc. | * and etc. | |||
* XXX not implemented | * XXX not implemented | |||
*/ | */ | |||
success ("automatic lot scrubbing lightly tested and seem to work"); | success ("automatic lot scrubbing lightly tested and seem to work"); | |||
qof_session_end (sess); | qof_session_destroy (sess); | |||
} | } | |||
int | int | |||
main (int argc, char **argv) | main (int argc, char **argv) | |||
{ | { | |||
gint i; | gint i; | |||
qof_init(); | qof_init(); | |||
if (!cashobjects_register()) | if (!cashobjects_register()) | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |