[test-map] Add disabled tests with std::string

This commit is contained in:
Behdad Esfahbod 2022-01-13 13:34:22 -07:00
parent 985b63b3ee
commit bc0a5fdf43
1 changed files with 21 additions and 0 deletions

View File

@ -25,7 +25,9 @@
#include "hb.hh"
#include "hb-map.hh"
#include <string>
static const std::string invalid{"invalid"};
int
main (int argc, char **argv)
@ -108,5 +110,24 @@ main (int argc, char **argv)
assert (m3.get_population () == 0);
}
#if 0
{
hb_hashmap_t<int, int, int, int, 0, 0> m0;
hb_hashmap_t<std::string, int, const std::string*, int, &invalid, 0> m1;
hb_hashmap_t<int, std::string, int, const std::string*, 0, &invalid> m2;
hb_hashmap_t<std::string, std::string, const std::string*, const std::string*, &invalid, &invalid> m3;
std::string s;
for (unsigned i = 1; i < 1000; i++)
{
s += "x";
m0.set (i, i);
m1.set (s, i);
m2.set (i, s);
m3.set (s, s);
}
}
#endif
return 0;
}