[test-map] Add disabled tests with std::string
This commit is contained in:
parent
985b63b3ee
commit
bc0a5fdf43
|
@ -25,7 +25,9 @@
|
||||||
|
|
||||||
#include "hb.hh"
|
#include "hb.hh"
|
||||||
#include "hb-map.hh"
|
#include "hb-map.hh"
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
static const std::string invalid{"invalid"};
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
|
@ -108,5 +110,24 @@ main (int argc, char **argv)
|
||||||
assert (m3.get_population () == 0);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue