summaryrefslogtreecommitdiffstats
path: root/runtime/tests/maps/ist.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/tests/maps/ist.c')
-rw-r--r--runtime/tests/maps/ist.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/runtime/tests/maps/ist.c b/runtime/tests/maps/ist.c
index be3ca87d..2418a20c 100644
--- a/runtime/tests/maps/ist.c
+++ b/runtime/tests/maps/ist.c
@@ -1,13 +1,9 @@
#include "runtime.h"
/* test of maps with keys of int64 and value of stat */
-
+#define NEED_STAT_VALS
#define KEY1_TYPE INT64
#include "map-keys.c"
-
-#define VALUE_TYPE STAT
-#include "map-values.c"
-
#include "map.c"
int main ()
@@ -19,27 +15,27 @@ int main ()
_stp_map_key_int64 (map, 3);
for (i = 0; i < 100; i++)
for (j = 0; j <= i*10 ; j++ )
- _stp_map_add_int64_stat (map, i);
+ _stp_map_add_int64 (map, i);
_stp_map_key_int64 (map, 2);
for (i = 0; i < 10; i++)
for (j = 0; j < 10 ; j++ )
- _stp_map_add_int64_stat (map, j * i );
+ _stp_map_add_int64 (map, j * i );
_stp_map_key_int64 (map, 1);
for (i = 0; i < 100; i += 10)
for (j = 0; j < i/10 ; j++ )
- _stp_map_add_int64_stat (map, i);
+ _stp_map_add_int64 (map, i);
_stp_map_key_int64 (map2, 1);
for (i = 0; i < 128; i++)
for (j = 0; j < 128 ; j++ )
- _stp_map_add_int64_stat (map2, i);
+ _stp_map_add_int64 (map2, i);
_stp_map_key_int64 (map2, 2);
for (i = 0; i < 1024; i++)
for (j = 0; j < 1024 ; j++ )
- _stp_map_add_int64_stat (map2, i);
+ _stp_map_add_int64 (map2, i);
_stp_map_print (map, "map[%1d] = count:%C sum:%S avg:%A min:%m max:%M\n%H");
_stp_map_print (map2, "map2[%1d] = count:%C sum:%S avg:%A min:%m max:%M\n%H");