turbonss/deps/cmph/cxxmph/mph_map_test.cc

26 lines
895 B
C++
Raw Normal View History

#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;
2012-06-16 00:09:54 +03:00
CXXMPH_CXX_TEST_CASE(empty_find, Tester::empty_find);
CXXMPH_CXX_TEST_CASE(empty_erase, Tester::empty_erase);
2012-06-03 03:47:18 +03:00
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);