summaryrefslogtreecommitdiffstats
path: root/runtime/tests/maps/is2.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/tests/maps/is2.c')
-rw-r--r--runtime/tests/maps/is2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/tests/maps/is2.c b/runtime/tests/maps/is2.c
index b6537f06..3008f702 100644
--- a/runtime/tests/maps/is2.c
+++ b/runtime/tests/maps/is2.c
@@ -41,15 +41,15 @@ int main ()
_stp_map_print(map,"map[%1d] = %s");
- /* check that unset values are 0 */
- if (_stp_map_get_is(map, 5))
- printf("ERROR: unset key has nonzero value\n");
+ /* check that unset values are "" */
+ if (*_stp_map_get_is(map, 5))
+ printf("ERROR: unset key has nonempty value\n");
/* map[5] = "five" */
_stp_map_set_is (map, 5, "five");
_stp_map_print(map,"map[%1d] = %s");
- /* test empty string */
+ /* test empty string (should delete)*/
_stp_map_set_is (map, 5, "");
_stp_map_print(map,"map[%1d] = %s");