Skip to content

Commit 4e2189d

Browse files
[utest-Transaction.cpp] xaccTransGetDocLink with NULL doclink is NOP
1 parent d8c68cc commit 4e2189d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libgnucash/engine/test/utest-Transaction.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1844,8 +1844,12 @@ test_xaccTransSetDocLink (Fixture *fixture, gconstpointer pData)
18441844
xaccTransSetDocLink (trans, "");
18451845
g_assert_cmpstr (xaccTransGetDocLink (trans), ==, NULL);
18461846

1847+
xaccTransSetDocLink (trans, "reset");
1848+
g_assert_cmpstr (xaccTransGetDocLink (trans), ==, "reset");
1849+
1850+
// calling xaccTransSetDocLink with doclink==null is currently NOP
18471851
xaccTransSetDocLink (trans, NULL);
1848-
g_assert_cmpstr (xaccTransGetDocLink (trans), ==, NULL);
1852+
g_assert_cmpstr (xaccTransGetDocLink (trans), ==, "reset");
18491853
}
18501854

18511855
static void

0 commit comments

Comments
 (0)