mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-25 18:30:23 -06:00
[test-qofbook.c] add test for gnc_features_set_unused
This commit is contained in:
parent
1516bb18b0
commit
f2354d6b2a
@ -782,6 +782,10 @@ test_book_features (Fixture *fixture, gconstpointer pData)
|
||||
g_assert_null (gnc_features_test_unknown (fixture->book));
|
||||
g_assert_true (gnc_features_check_used (fixture->book, "Credit Notes"));
|
||||
|
||||
gnc_features_set_unused (fixture->book, "Credit Notes");
|
||||
g_assert_null (gnc_features_test_unknown (fixture->book));
|
||||
g_assert_false (gnc_features_check_used (fixture->book, "Credit Notes"));
|
||||
|
||||
/* cannot set an unknown feature: it bails out. */
|
||||
/* gnc_features_set_used (fixture->book, "Nanotech"); */
|
||||
/* g_assert_nonnull (gnc_features_test_unknown (fixture->book)); */
|
||||
|
Loading…
Reference in New Issue
Block a user