30 lines
473 B
C++
30 lines
473 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<20, GP> g;
|
|
GridFactory<20, 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(g);
|
|
|
|
}
|
|
|
|
#endif
|