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/grid/GridImportance.cpp
kazu 5aedce47f1 removed gridSize from the template arguments
- not needed and code much cleaner
some minor changes
new test-cases
2016-01-25 15:53:12 +01:00

30 lines
487 B
C++

#ifdef WITH_TESTS
#include "../Tests.h"
#include "../../grid/factory/GridImportance.h"
#include "../../grid/factory/GridFactory.h"
#include "../../floorplan/FloorplanFactorySVG.h"
#include "Plot.h"
TEST(GridImportance, a) {
Grid<GP> g(20);
GridFactory<GP> gf(g);
FloorplanFactorySVG fpf(getDataFile("fp1.svg"), 6);
Floor f1 = fpf.getFloor("1");
gf.addFloor(f1, 20);
gf.removeIsolated();
GridImportance gi;
gi.addImportance(g, 20);
Plot p; p.build(g).fire();
}
#endif