Lines Matching refs:g_assert
269 g_assert (g_node_depth (root) == 1 && g_node_max_height (root) == 1);
273 g_assert (root->children == node_B);
281 g_assert (root->children->next == node_F);
291 g_assert (g_node_depth (root) == 1);
292 g_assert (g_node_max_height (root) == 4);
293 g_assert (g_node_depth (node_G->children->next) == 4);
294 g_assert (g_node_n_nodes (root, G_TRAVERSE_LEAFS) == 7);
295 g_assert (g_node_n_nodes (root, G_TRAVERSE_NON_LEAFS) == 4);
296 g_assert (g_node_n_nodes (root, G_TRAVERSE_ALL) == 11);
297 g_assert (g_node_max_height (node_F) == 3);
298 g_assert (g_node_n_children (node_G) == 4);
299 g_assert (g_node_find_child (root, G_TRAVERSE_ALL, C2P ('F')) == node_F);
300 g_assert (g_node_find (root, G_LEVEL_ORDER, G_TRAVERSE_NON_LEAFS, C2P ('I')) == NULL);
301 g_assert (g_node_find (root, G_IN_ORDER, G_TRAVERSE_LEAFS, C2P ('J')) == node_J);
306 g_assert (P2C (node->data) == ('C' + i));
310 g_assert (g_node_child_position (node_G, g_node_nth_child (node_G, i)) == i);
354 g_assert (g_node_n_nodes (root, G_TRAVERSE_ALL) == g_node_n_nodes (node, G_TRAVERSE_ALL));
355 g_assert (g_node_max_height (root) == g_node_max_height (node));
376 g_assert (g_node_max_height (root) > 100);
377 g_assert (g_node_n_nodes (root, G_TRAVERSE_ALL) == 1 + 2048);
521 g_assert (result == 3);
524 g_assert (result == 4);
527 g_assert (result == 0);
530 g_assert (result == 0);
665 g_assert (GUINT16_SWAP_LE_BE (gu16t1) == gu16t2);
666 g_assert (GUINT32_SWAP_LE_BE (gu32t1) == gu32t2);
667 g_assert (GUINT64_SWAP_LE_BE (gu64t1) == gu64t2);
699 g_assert (tmpdir != NULL);
701 g_assert (homedir != NULL);
703 g_assert (userdatadir != NULL);
705 g_assert (uconfdir != NULL);
707 g_assert (ucachedir != NULL);
710 g_assert (uddesktop != NULL);
844 g_assert (strcmp (string, "dir") == 0);
847 g_assert (strcmp (string, "file") == 0);
854 g_assert (strcmp (string, "dir") == 0);
857 g_assert (strcmp (string, "file") == 0);
1004 g_assert (gbarray->data[4*i] == 'a');
1005 g_assert (gbarray->data[4*i+1] == 'b');
1006 g_assert (gbarray->data[4*i+2] == 'c');
1007 g_assert (gbarray->data[4*i+3] == 'd');
1086 g_assert (! g_relation_exists (relation, data + i, data + i));
1087 g_assert (! g_relation_exists (relation, data + i, data + i + 2));
1088 g_assert (! g_relation_exists (relation, data + i, data + i - 2));
1093 g_assert (g_relation_exists (relation, data + i, data + i + 1));
1094 g_assert (g_relation_exists (relation, data + i, data + i - 1));
1099 g_assert (g_relation_count (relation, data + i, 0) == 2);
1100 g_assert (g_relation_count (relation, data + i, 1) == 2);
1103 g_assert (g_relation_count (relation, data, 0) == 0);
1105 g_assert (g_relation_count (relation, data + 42, 0) == 2);
1106 g_assert (g_relation_count (relation, data + 43, 1) == 2);
1107 g_assert (g_relation_count (relation, data + 41, 1) == 2);
1109 g_assert (g_relation_count (relation, data + 42, 0) == 0);
1110 g_assert (g_relation_count (relation, data + 43, 1) == 1);
1111 g_assert (g_relation_count (relation, data + 41, 1) == 1);
1115 g_assert (tuples->len == 2);
1126 g_assert (g_relation_exists (relation, data + 300, data + 301));
1128 g_assert (!g_relation_exists (relation, data + 300, data + 301));
1149 g_assert (strcmp ("hi pete!", string1->str) == 0);
1192 g_assert (strcmp (string1->str, "firsthalflasthalf") == 0);
1198 g_assert (strcmp (string1->str, "firsthalflasthalf") == 0);
1204 g_assert (strcmp (string1->str, "firsthalflasthalf") == 0);
1210 g_assert (strcmp (string1->str, "firsthalflasthalf") == 0);
1216 g_assert (strcmp (string1->str, "firstmiddlelast") == 0);
1222 g_assert (strcmp (string1->str, "firstmiddlelast") == 0);
1228 g_assert (strcmp (string1->str, "firstmiddlelast") == 0);
1234 g_assert (strcmp (string1->str, "firstlast") == 0);
1240 g_assert (strcmp (string1->str, "firstlast") == 0);
1246 g_assert (! g_string_equal(string1, string2));
1248 g_assert (g_string_equal(string1, string2));
1257 g_assert (g_string_equal(string1, string2));
1259 g_assert (! g_string_equal(string1, string2));
1261 g_assert (g_string_equal(string1, string2));
1264 g_assert (! g_string_equal(string1, string2));
1265 g_assert (string1->len == 8);
1267 g_assert (string1->len == 12);
1268 g_assert ( memcmp(string1->str, "fiddle\0xyzzy", 13) == 0);
1270 g_assert ( memcmp(string1->str, "fQEDiddle\0xyzzy", 16) == 0);
1293 g_assert (tmp_string_2 != tmp_string && strcmp (tmp_string_2, tmp_string) == 0);
1295 g_assert (tmp_string_2 == tmp_string);
1324 g_assert (g_time_val_from_iso8601 (REF_INVALID1, &date) == FALSE);
1325 g_assert (g_time_val_from_iso8601 (REF_INVALID2, &date) == FALSE);
1326 g_assert (g_time_val_from_iso8601 (REF_STR_UTC, &date) != FALSE);
1331 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec);
1333 g_assert (g_time_val_from_iso8601 (REF_STR_CEST, &date) != FALSE);
1338 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec);
1340 g_assert (g_time_val_from_iso8601 (REF_STR_EST, &date) != FALSE);
1345 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec);
1347 g_assert (g_time_val_from_iso8601 (REF_STR_NST, &date) != FALSE);
1352 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec);
1355 g_assert (g_time_val_from_iso8601 (REF_STR_USEC_UTC, &date) != FALSE);
1360 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec);
1362 g_assert (g_time_val_from_iso8601 (REF_STR_USEC_CEST, &date) != FALSE);
1367 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec);
1369 g_assert (g_time_val_from_iso8601 (REF_STR_USEC_EST, &date) != FALSE);
1374 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec);
1376 g_assert (g_time_val_from_iso8601 (REF_STR_USEC_NST, &date) != FALSE);
1381 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec);
1388 g_assert (date_str != NULL);
1391 g_assert (strcmp (date_str, REF_STR_UTC) == 0);
1396 g_assert (date_str != NULL);
1399 g_assert (strcmp (date_str, REF_STR_USEC_UTC) == 0);
1404 g_assert (g_ascii_strcasecmp ("FroboZZ", "frobozz") == 0);
1405 g_assert (g_ascii_strcasecmp ("frobozz", "frobozz") == 0);
1406 g_assert (g_ascii_strcasecmp ("frobozz", "FROBOZZ") == 0);
1407 g_assert (g_ascii_strcasecmp ("FROBOZZ", "froboz") > 0);
1408 g_assert (g_ascii_strcasecmp ("", "") == 0);
1409 g_assert (g_ascii_strcasecmp ("!#%&/()", "!#%&/()") == 0);
1410 g_assert (g_ascii_strcasecmp ("a", "b") < 0);
1411 g_assert (g_ascii_strcasecmp ("a", "B") < 0);
1412 g_assert (g_ascii_strcasecmp ("A", "b") < 0);
1413 g_assert (g_ascii_strcasecmp ("A", "B") < 0);
1414 g_assert (g_ascii_strcasecmp ("b", "a") > 0);
1415 g_assert (g_ascii_strcasecmp ("b", "A") > 0);
1416 g_assert (g_ascii_strcasecmp ("B", "a") > 0);
1417 g_assert (g_ascii_strcasecmp ("B", "A") > 0);
1421 g_assert (g_strdup (NULL) == NULL);
1423 g_assert (string != NULL);
1424 g_assert (strcmp(string, GLIB_TEST_STRING) == 0);
1430 g_assert (string != NULL);
1431 g_assert (strcmp (string, GLIB_TEST_STRING) == 0);
1435 g_assert (string != NULL);
1436 g_assert (strcmp (string, GLIB_TEST_STRING GLIB_TEST_STRING
1448 g_assert (g_strlcpy(string, "" , 5) == 0);
1449 g_assert ( *string == '\0' );
1451 g_assert (g_strlcpy(string, "abc" , 5) == 3);
1452 g_assert ( *(string + 3) == '\0' );
1453 g_assert (g_str_equal(string, "abc"));
1454 g_assert (g_strlcpy(string, "abcd" , 5) == 4);
1455 g_assert ( *(string + 4) == '\0' );
1456 g_assert ( *(string + 5) == 'Z' );
1457 g_assert (g_str_equal(string, "abcd"));
1458 g_assert (g_strlcpy(string, "abcde" , 5) == 5);
1459 g_assert ( *(string + 4) == '\0' );
1460 g_assert ( *(string + 5) == 'Z' );
1461 g_assert (g_str_equal(string, "abcd"));
1462 g_assert (g_strlcpy(string, "abcdef" , 5) == 6);
1463 g_assert ( *(string + 4) == '\0' );
1464 g_assert ( *(string + 5) == 'Z' );
1465 g_assert (g_str_equal(string, "abcd"));
1468 g_assert (g_strlcpy(string, "Hello" , 0) == 5);
1469 g_assert (*string == 'Y');
1471 g_assert (g_strlcat(string, "123" , 5) == 3);
1472 g_assert ( *(string + 3) == '\0' );
1473 g_assert (g_str_equal(string, "123"));
1474 g_assert (g_strlcat(string, "" , 5) == 3);
1475 g_assert ( *(string + 3) == '\0' );
1476 g_assert (g_str_equal(string, "123"));
1477 g_assert (g_strlcat(string, "4", 5) == 4);
1478 g_assert (g_str_equal(string, "1234"));
1479 g_assert (g_strlcat(string, "5", 5) == 5);
1480 g_assert ( *(string + 4) == '\0' );
1481 g_assert (g_str_equal(string, "1234"));
1482 g_assert ( *(string + 5) == 'Z' );
1485 g_assert (g_strlcat(string, "123" , 0) == 3);
1486 g_assert (*string == 'Y');
1489 g_assert (g_strlcpy(string, "hi", 5) == 2);
1490 g_assert (g_str_equal(string, "hi"));
1491 g_assert (g_strlcat(string, "t", 5) == 3);
1492 g_assert (g_str_equal(string, "hit"));
1498 g_assert (string != NULL);
1499 g_assert (strcmp(string, "00021 test ") == 0);