Question
#include ../gis.hpp #include catch/catch.hpp TEST_CASE(Testing container (GIS) operations) { GIS taxMap; SECTION(Check file availability) { REQUIRE(!taxMap.readFile(zzzzz.zzzz)); REQUIRE(taxMap.readFile(simple-polygons.txt)); } SECTION(Check point that isn't inside any of
#include "../gis.hpp"
#include "catch/catch.hpp"
TEST_CASE("Testing container (GIS) operations") {
GIS taxMap;
SECTION("Check file availability") {
REQUIRE(!taxMap.readFile("zzzzz.zzzz"));
REQUIRE(taxMap.readFile("simple-polygons.txt"));
}
SECTION("Check point that isn't inside any of the polygons") {
taxMap.readFile("simple-polygons.txt");
CHECK("Not Found" == taxMap.findParcelName(Point(-1, -1)));
}
SECTION("Check for point inside polygon") {
taxMap.readFile("simple-polygons.txt");
CHECK("squareParcel" == taxMap.findParcelName(Point(1, 1)));
CHECK("wideRectangleParcel" == taxMap.findParcelName(Point(5, 4)));
}
}
I have been having some trouble on how to read the classes to get from this test case, can anyone assist?
C++
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started