This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Indoor/tests/floorplan/TestFloorplanFactorySVG.cpp
kazu cdf97322f8 added new data-structures
added new test-cases
added flexible dijkstra calculation
added debugging log
modified: plotting, grid-generation, grid-importance,
refactoring
2016-01-22 18:47:06 +01:00

28 lines
497 B
C++
Executable File

#ifdef WITH_TESTS
#include "../Tests.h"
#include "../../floorplan/FloorplanFactorySVG.h"
#include <cstdlib>
TEST(FloorplanFactorySVG, parse) {
const std::string filename = getDataFile("test.svg");
FloorplanFactorySVG factory(filename, 1.0);
Floor f1 = factory.getFloor("1");
ASSERT_EQ(30, f1.getObstacles().size());
Floor f2 = factory.getFloor("2");
ASSERT_EQ(30, f2.getObstacles().size());
Floor f3 = factory.getFloor("1_2");
ASSERT_EQ(12, f3.getObstacles().size());
}
#endif