9 #include <fei_macros.hpp>
11 #include <test_utils/test_Database.hpp>
12 #include <snl_fei_Utils.hpp>
13 #include <snl_fei_MapContig.hpp>
16 #define fei_file "test_Database.cpp"
18 #include <fei_ErrMacros.hpp>
20 test_Database::test_Database(MPI_Comm comm)
25 test_Database::~test_Database()
29 void test_MapContig_1()
31 FEI_COUT <<
"testing snl_fei::MapContig...";
35 std::pair<snl_fei::MapContig<int>::iterator,
bool> mpair = mc.insert(std::pair<int,int>(1, 2));
39 if ((*miter).second != 2) {
40 throw std::runtime_error(
"MapContig insert iter test 1 failed.");
43 mc.insert(std::pair<int,int>(0,1));
49 if ((*m_iter).first != 0) {
50 throw std::runtime_error(
"MapContig iter test 1 failed.");
53 if ((*m_iter).second != 1) {
54 throw std::runtime_error(
"MapContig iter test 2 failed.");
59 if ((*m_iter).first != 1) {
60 throw std::runtime_error(
"MapContig iter test 3 failed.");
63 if ((*m_iter).second != 2) {
64 throw std::runtime_error(
"MapContig iter test 4 failed.");
67 FEI_COUT <<
"ok"<<FEI_ENDL;
70 int test_Database::runtests()
72 if (numProcs_ > 1)
return(0);
88 int test_Database::test1()
93 int test_Database::test2()
98 int test_Database::test3()
103 int test_Database::test4()
109 int test_Database::test5()
115 int test_Database::test6()
121 int test_Database::test7()
127 int test_Database::test8()