test-qofbook.c (gnucash-5.0.tar.bz2) | : | test-qofbook.c (gnucash-5.1.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 786 | skipping to change at line 786 | |||
g_assert_false (gnc_features_check_used (fixture->book, "Credit Notes")); | g_assert_false (gnc_features_check_used (fixture->book, "Credit Notes")); | |||
gnc_features_set_used (fixture->book, "Credit Notes"); | gnc_features_set_used (fixture->book, "Credit Notes"); | |||
g_assert_null (gnc_features_test_unknown (fixture->book)); | g_assert_null (gnc_features_test_unknown (fixture->book)); | |||
g_assert_true (gnc_features_check_used (fixture->book, "Credit Notes")); | g_assert_true (gnc_features_check_used (fixture->book, "Credit Notes")); | |||
gnc_features_set_unused (fixture->book, "Credit Notes"); | gnc_features_set_unused (fixture->book, "Credit Notes"); | |||
g_assert_null (gnc_features_test_unknown (fixture->book)); | g_assert_null (gnc_features_test_unknown (fixture->book)); | |||
g_assert_false (gnc_features_check_used (fixture->book, "Credit Notes")); | g_assert_false (gnc_features_check_used (fixture->book, "Credit Notes")); | |||
qof_book_set_feature(fixture->book, "Use a Book-Currency", "Random string, d | ||||
oesn't matter"); | ||||
g_assert_null (gnc_features_test_unknown (fixture->book)); | ||||
g_assert_false (gnc_features_check_used (fixture->book, "Use a Book-Currency | ||||
")); | ||||
/* cannot use gnc_features_set_used to set an unknown feature: it bails out. | /* cannot use gnc_features_set_used to set an unknown feature: it bails out. | |||
* use qof_book_set_feature instead. */ | * use qof_book_set_feature instead. */ | |||
qof_book_set_feature (fixture->book, "Nanotech", "With Quantum Computing"); | qof_book_set_feature (fixture->book, "Nanotech", "With Quantum Computing"); | |||
g_assert_true (gnc_features_check_used (fixture->book, "Nanotech")); | g_assert_true (gnc_features_check_used (fixture->book, "Nanotech")); | |||
msg = gnc_features_test_unknown (fixture->book); | msg = gnc_features_test_unknown (fixture->book); | |||
g_assert_cmpstr (msg, ==, "This Dataset contains features not \ | g_assert_cmpstr (msg, ==, "This Dataset contains features not \ | |||
supported by this version of GnuCash. You must use a newer version \ | supported by this version of GnuCash. You must use a newer version \ | |||
of GnuCash in order to support the following features:\n* With Quantum Computing "); | of GnuCash in order to support the following features:\n* With Quantum Computing "); | |||
g_free (msg); | g_free (msg); | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 6 lines changed or added |