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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!