Commit ba4b8b4a authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

rmv / and introduced test

parent a7294544
......@@ -23,7 +23,7 @@ string VtuPlot::plotLineBreak(int i, int limit, int indent) {
}
void VtuPlot::createVtu(const string &filename) {
string filepath = Config::getDataPath() + string("/vtk/") + filename + string(".vtu");
string filepath = Config::getDataPath() + string("vtk/") + filename + string(".vtu");
ofstream out(filepath.c_str());
// == Header ==
......
#include "gtest/gtest.h"
#include "plot/VtuPlot.h"
#include <memory>
#include "m++.h"
using namespace ::testing;
class TestSerialVtuPlot : public ::Test {
protected:
SerialVtuPlot *plot;
Meshes *meshes;
};
TEST_F(TestSerialVtuPlot, TestConstructor) {
meshes = new Meshes("UnitSquare", 0, 1);
plot = new SerialVtuPlot((*meshes)[0]);
}
int main(int argc, char **argv) {
InitGoogleTest(&argc, argv);
Config::setSearchPath("../../tests/");
Config::setConfigFileName("m++.conf");
DPO dpo(&argc, argv);
TestEventListeners &listeners = UnitTest::GetInstance()->listeners();
if (!PPM->master()) {
delete listeners.Release(listeners.default_result_printer());
}
return RUN_ALL_TESTS();
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment