From a75f0fb713418d4704d0ce9ea892ab939ce9f00f Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 31 May 2005 19:56:57 +0000 Subject: added formatting to _stp_map_print() and updated tests. --- runtime/tests/maps/iiss.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'runtime/tests/maps/iiss.c') diff --git a/runtime/tests/maps/iiss.c b/runtime/tests/maps/iiss.c index e1ec2407..dc034c94 100644 --- a/runtime/tests/maps/iiss.c +++ b/runtime/tests/maps/iiss.c @@ -25,26 +25,26 @@ int main () _stp_map_key_int64_int64_str (map, 7,8,"Oregon"); _stp_map_set_str (map, "Salem" ); - _stp_map_print (map, "map"); + _stp_map_print (map, "map[%1d, %2d, %3s] = %s"); _stp_map_key_int64_int64_str (map, -9,-10,"Nevada"); _stp_map_set_str (map, "Carson City" ); - _stp_map_print (map, "map"); + _stp_map_print (map, "map[%1d, %2d, %3s] = %s"); _stp_map_key_int64_int64_str (map, 5,6,"Washington"); _stp_map_set (map, "Olymp" ); - _stp_map_print (map, "map"); + _stp_map_print (map, "map[%1d, %2d, %3s] = %s"); _stp_map_add_str (map, "ia" ); - _stp_map_print (map, "map"); + _stp_map_print (map, "map[%1d, %2d, %3s] = %s"); _stp_map_key_int64_int64_str (map, -9,-10,"Nevada"); _stp_map_key_del (map); - _stp_map_print (map, "map"); + _stp_map_print (map, "map[%1d, %2d, %3s] = %s"); _stp_map_key_int64_int64_str (map, 0,0,""); _stp_map_set_str (map, "XX" ); - _stp_map_print (map, "map"); + _stp_map_print (map, "map[%1d, %2d, %3s] = %s"); _stp_map_del (map); return 0; -- cgit