Changeset 5558
- Timestamp:
- 06/01/08 23:13:47 (4 months ago)
- Files:
-
- libwired/trunk/test/tests/wi-plist-test.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libwired/trunk/test/tests/wi-plist-test.c
r5549 r5558 34 34 void wi_test_plist(void) { 35 35 #ifdef WI_LIBXML2 36 wi_string_t *string1, *string2;37 wi_ hash_t *hash1, *hash2;36 wi_string_t *string1, *string2; 37 wi_dictionary_t *dictionary1, *dictionary2; 38 38 39 39 string1 = wi_autorelease(wi_string_init_with_contents_of_file(wi_string_alloc(), WI_STR("test/fixture/wi-plist-tests-1.plist"))); 40 40 41 hash1 = wi_plist_instance_for_string(string1);41 dictionary1 = wi_plist_instance_for_string(string1); 42 42 43 WI_TEST_ASSERT_NOT_NULL( hash1, "%m");43 WI_TEST_ASSERT_NOT_NULL(dictionary1, "%m"); 44 44 45 hash2 = wi_hash_with_data_and_keys(45 dictionary2 = wi_dictionary_with_data_and_keys( 46 46 WI_STR("hello world"), 47 47 WI_STR("string"), … … 58 58 wi_data_with_base64(wi_string_base64(WI_STR("hello world"))), 59 59 WI_STR("data"), 60 wi_ hash_with_data_and_keys(WI_STR("value1"), WI_STR("key1"), WI_STR("value2"), WI_STR("key2"), NULL),60 wi_dictionary_with_data_and_keys(WI_STR("value1"), WI_STR("key1"), WI_STR("value2"), WI_STR("key2"), NULL), 61 61 WI_STR("dict"), 62 62 wi_array_with_data(WI_STR("value1"), WI_STR("value2"), NULL), … … 64 64 NULL); 65 65 66 WI_TEST_ASSERT_EQUAL_INSTANCES( hash1, hash2, "");66 WI_TEST_ASSERT_EQUAL_INSTANCES(dictionary1, dictionary2, ""); 67 67 68 string2 = wi_plist_string_for_instance( hash2);68 string2 = wi_plist_string_for_instance(dictionary2); 69 69 70 70 WI_TEST_ASSERT_EQUAL_INSTANCES(string1, string2, "");
