Skip to content

psytechno604/eko-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

eko-delivery-test

Program written as Console C++ application.

Catch2 library (https://github.com/catchorg/Catch2) used for unit tests.

Building

Windows

Solution and project were created in Visual Studio 2019 Preview (not tested with other versions).

Linux

Clone the repo, cd into eko-delivery folder, then

cmake .
make

Usage

Delivery cost for route:

<executable> [graph] [route]

e.g.

<executable> AB1,AC4,AD10,BE3,CD4,CF2,DE1,EB3,EA2,FD1 A-B-E

(without spaces between graph paths)

Number of routes:

<executable> [graph] [from] [to] [useSameRouteTwice] [maxSteps] [maxCost]

e.g.

<executable> AB1,AC4,AD10,BE3,CD4,CF2,DE1,EB3,EA2,FD1 E D false 4 INT_MAX

The cost of cheapest delivery route:

<executable> [graph] [from] [to]

e.g.

<executable> AB1,AC4,AD10,BE3,CD4,CF2,DE1,EB3,EA2,FD1 E D

To run pre-defined tests:

<executable> --test 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published