Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions

Question

=+ Are unions company-wide, regional, or national?

Answered: 1 week ago