Skip to content

tbouvin/barrenLand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

barrenLand

Install golang: Go to web page and install golang for your platform: https://golang.org/dl/

To run: From command line, run: go run barrenLand.go

Example: go run barrenLand.go {"48 192 351 207", "48 392 351 407", "120 52 135 547", "260 52 275 547"}

Output: Sorted list of fertile regions in square meters

Example output: 22816 192608

Running unit tests: From command line, run: go test

Expected ouput from tests: Error validating coordinates INVCOORD Error validating coordinates INVCOORD Error validating coordinates OOBXS Error validating coordinates OOBYS Error validating coordinates OOBXE Error validating coordinates OOBYE Error validating coordinates INVCOORD 116800 116800 22816 192608 240000 Error validating coordinates OOBYE Error parsing arguments [48 192 351 207 48 392 351 407 120 52 135 547 260 52 275 1000] (OOBYE) PASS coverage: 99.0% of statements ok _/Users/tbouvin/barrenLand 0.997s

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages