Skip to content

Latest commit

 

History

History

2019

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Prerequisites

  • Docker Desktop

Testing

Setup

docker run -v $(pwd):/app -w /app/test node npm install

Run all tests

docker run -it -v $(pwd):/app -w /app/test node npm test

Template

cat ./template/sample.in | docker run -i -v $(pwd):/app -w /app/template node node index.js

to run the tests:

docker run -it -v $(pwd):/app -w /app/test node npm test template.test.js

Qualification

Foregone Solution

cat ./qualifying/foregone-solution/sample.in | docker run -i -v $(pwd):/app -w /app/qualifying/foregone-solution node node index.js

to run the tests:

docker run -it -v $(pwd):/app -w /app/test node npm test qualifying/foregone-solution.test.js