Rev 4075 | Rev 4350 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4075 | Rev 4332 | ||
---|---|---|---|
Line 128... | Line 128... | ||
128 | TEST( "add kara 8 eok", char_map_add( & cm, "kara", 0, 8 ), EOK ); |
128 | TEST( "add kara 8 eok", char_map_add( & cm, "kara", 0, 8 ), EOK ); |
129 | TEST( "find kara 8", char_map_find( & cm, "kara", 0 ), 8 ); |
129 | TEST( "find kara 8", char_map_find( & cm, "kara", 0 ), 8 ); |
130 | TEST( "add nic 9 eok", char_map_add( & cm, "nic", 0, 9 ), EOK ); |
130 | TEST( "add nic 9 eok", char_map_add( & cm, "nic", 0, 9 ), EOK ); |
131 | TEST( "find nic 9", char_map_find( & cm, "nic", 0 ), 9 ); |
131 | TEST( "find nic 9", char_map_find( & cm, "nic", 0 ), 9 ); |
132 | TEST( "find blabla 5", char_map_find( & cm, "blabla", 0 ), 5 ); |
132 | TEST( "find blabla 5", char_map_find( & cm, "blabla", 0 ), 5 ); |
- | 133 | TEST( "add micnicnic 5 9 eok", char_map_add( & cm, "micnicnic", 5, 9 ), EOK ); |
|
- | 134 | TEST( "find micni 9", char_map_find( & cm, "micni", 0 ), 9 ); |
|
- | 135 | TEST( "find micnicn 5 9", char_map_find( & cm, "micnicn", 5 ), 9 ); |
|
- | 136 | TEST( "add 10.0.2.2 4 15 eok", char_map_add( & cm, "\x10\x0\x2\x2", 4, 15 ), EOK ); |
|
- | 137 | TEST( "find 10.0.2.2 4 15", char_map_find( & cm, "\x10\x0\x2\x2", 4 ), 15 ); |
|
133 | printf( "\n\tdestroy" ); |
138 | printf( "\n\tdestroy" ); |
134 | char_map_destroy( & cm ); |
139 | char_map_destroy( & cm ); |
135 | TEST( "update ucho 3 einval", char_map_update( & cm, "ucho", 0, 3 ), EINVAL ); |
140 | TEST( "update ucho 3 einval", char_map_update( & cm, "ucho", 0, 3 ), EINVAL ); |
136 | printf( "\nOK" ); |
141 | printf( "\nOK" ); |
137 | 142 |