many changes :P
This commit is contained in:
29
tests/grid/GridImportance.cpp
Normal file
29
tests/grid/GridImportance.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user