2010-11-06 01:46:53 +02:00
|
|
|
#include <cstdio>
|
2010-10-29 09:26:37 +03:00
|
|
|
#include <cstdlib>
|
2010-06-28 22:01:18 +03:00
|
|
|
#include <iostream>
|
2010-10-29 09:26:37 +03:00
|
|
|
#include <string>
|
|
|
|
|
2011-05-16 02:47:42 +03:00
|
|
|
#include "mph_map.h"
|
2012-06-03 03:47:18 +03:00
|
|
|
#include "map_tester.h"
|
|
|
|
#include "test.h"
|
2011-05-16 02:47:42 +03:00
|
|
|
|
2012-06-03 03:47:18 +03:00
|
|
|
using namespace cxxmph;
|
|
|
|
|
|
|
|
typedef MapTester<mph_map> Tester;
|
|
|
|
|
|
|
|
CXXMPH_CXX_TEST_CASE(small_insert, Tester::small_insert);
|
|
|
|
CXXMPH_CXX_TEST_CASE(large_insert, Tester::large_insert);
|
|
|
|
CXXMPH_CXX_TEST_CASE(small_search, Tester::small_search);
|
|
|
|
CXXMPH_CXX_TEST_CASE(default_search, Tester::default_search);
|
|
|
|
CXXMPH_CXX_TEST_CASE(large_search, Tester::large_search);
|
|
|
|
CXXMPH_CXX_TEST_CASE(string_search, Tester::string_search);
|
2012-06-03 04:29:46 +03:00
|
|
|
CXXMPH_CXX_TEST_CASE(rehash_zero, Tester::rehash_zero);
|
|
|
|
CXXMPH_CXX_TEST_CASE(rehash_size, Tester::rehash_size);
|
|
|
|
CXXMPH_CXX_TEST_CASE(erase_value, Tester::erase_value);
|
|
|
|
CXXMPH_CXX_TEST_CASE(erase_iterator, Tester::erase_iterator);
|