add another couple of unit tests

This commit is contained in:
Richard Hughes 2008-05-28 18:52:05 +01:00
parent 90cbe59e6e
commit 7323e8044f

View File

@ -879,6 +879,23 @@ libst_common (LibSelfTest *test)
} }
g_free (text_safe); g_free (text_safe);
/************************************************************/
libst_title (test, "pk_strequal same argument");
temp = "dave";
if (pk_strequal (temp, temp)) {
libst_success (test, NULL);
} else {
libst_failed (test, "incorrect ret when both same");
}
/************************************************************/
libst_title (test, "pk_strequal both const");
if (pk_strequal ("dave", "dave")) {
libst_success (test, NULL);
} else {
libst_failed (test, "incorrect ret when both same");
}
/************************************************************ /************************************************************
**************** build var args ************** **************** build var args **************
************************************************************/ ************************************************************/