Deleted Added
full compact
test_base.c (226031) test_base.c (226128)
1/*
2 * Copyright (c) 2010 Kungliga Tekniska H��gskolan
3 * (Royal Institute of Technology, Stockholm, Sweden).
4 * All rights reserved.
5 *
6 * Portions Copyright (c) 2010 Apple Inc. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 113 unchanged lines hidden (view full) ---

122test_string(void)
123{
124 heim_string_t s1, s2;
125 const char *string = "hejsan";
126
127 s1 = heim_string_create(string);
128 s2 = heim_string_create(string);
129
1/*
2 * Copyright (c) 2010 Kungliga Tekniska H��gskolan
3 * (Royal Institute of Technology, Stockholm, Sweden).
4 * All rights reserved.
5 *
6 * Portions Copyright (c) 2010 Apple Inc. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 113 unchanged lines hidden (view full) ---

122test_string(void)
123{
124 heim_string_t s1, s2;
125 const char *string = "hejsan";
126
127 s1 = heim_string_create(string);
128 s2 = heim_string_create(string);
129
130 if (heim_cmp(s1, s2) != 0)
131 errx(1, "the same string is not the same");
130 if (heim_cmp(s1, s2) != 0) {
131 printf("the same string is not the same\n");
132 exit(1);
133 }
132
134
133
134 heim_release(s1);
135 heim_release(s2);
136
137 return 0;
138}
139
140int
141main(int argc, char **argv)
142{
143 int res = 0;
144
145 res |= test_memory();
146 res |= test_dict();
147 res |= test_auto_release();
148 res |= test_string();
149
150 return res;
151}
135 heim_release(s1);
136 heim_release(s2);
137
138 return 0;
139}
140
141int
142main(int argc, char **argv)
143{
144 int res = 0;
145
146 res |= test_memory();
147 res |= test_dict();
148 res |= test_auto_release();
149 res |= test_string();
150
151 return res;
152}