Changeset 5558

Show
Ignore:
Timestamp:
06/01/08 23:13:47 (4 months ago)
Author:
morris
Message:

Update test

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libwired/trunk/test/tests/wi-plist-test.c

    r5549 r5558  
    3434void wi_test_plist(void) { 
    3535#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; 
    3838         
    3939        string1 = wi_autorelease(wi_string_init_with_contents_of_file(wi_string_alloc(), WI_STR("test/fixture/wi-plist-tests-1.plist"))); 
    4040 
    41         hash1 = wi_plist_instance_for_string(string1); 
     41        dictionary1 = wi_plist_instance_for_string(string1); 
    4242         
    43         WI_TEST_ASSERT_NOT_NULL(hash1, "%m"); 
     43        WI_TEST_ASSERT_NOT_NULL(dictionary1, "%m"); 
    4444         
    45         hash2 = wi_hash_with_data_and_keys( 
     45        dictionary2 = wi_dictionary_with_data_and_keys( 
    4646                WI_STR("hello world"), 
    4747                        WI_STR("string"), 
     
    5858                wi_data_with_base64(wi_string_base64(WI_STR("hello world"))), 
    5959                        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), 
    6161                        WI_STR("dict"), 
    6262                wi_array_with_data(WI_STR("value1"), WI_STR("value2"), NULL), 
     
    6464                NULL); 
    6565         
    66         WI_TEST_ASSERT_EQUAL_INSTANCES(hash1, hash2, ""); 
     66        WI_TEST_ASSERT_EQUAL_INSTANCES(dictionary1, dictionary2, ""); 
    6767         
    68         string2 = wi_plist_string_for_instance(hash2); 
     68        string2 = wi_plist_string_for_instance(dictionary2); 
    6969 
    7070        WI_TEST_ASSERT_EQUAL_INSTANCES(string1, string2, "");