From c4f0340669f6c859bfd66e277f235bac457d65d1 Mon Sep 17 00:00:00 2001 From: hunt Date: Thu, 10 Nov 2005 21:19:29 +0000 Subject: 2005-11-10 Martin Hunt * pmaps/ii2.c: New test of maps and pmaps with the same keysym. * pmaps/pmap.test: Update. --- runtime/tests/pmaps/pmap.test | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'runtime/tests/pmaps/pmap.test') diff --git a/runtime/tests/pmaps/pmap.test b/runtime/tests/pmaps/pmap.test index a8f82506..4e6a6ce4 100644 --- a/runtime/tests/pmaps/pmap.test +++ b/runtime/tests/pmaps/pmap.test @@ -370,6 +370,23 @@ mapssx[ Riga, Latvia] = 322D82 mapssx[ Sofia, Bulgaria] = 7E9 mapssx[ Valletta, Malta] = B22} + +test ii2 {Test of maps and pmaps with int64 keys and int64 values} -setup { + exec gcc $CFLAGS -I $KPATH -I $PATH -I $MPATH -o test ii2.c +} -body { + exec ./test +} -result {map[2] = 288 +map[4] = 8 +map[1] = 28 +map[3] = 140 + +pmap[2] = 288 +pmap[4] = 8 +pmap[1] = 28 +pmap[3] = 140 +} + + catch {exec rm test} cleanupTests -- cgit