Skip to content

Latest commit

 

History

History
52 lines (43 loc) · 1.02 KB

README.md

File metadata and controls

52 lines (43 loc) · 1.02 KB

spans

Build Status CircleCI Coverage Status

Getting started

This program is designed to print out a list of numbers with any ranges simplified out. For instance you could ask your printer to print the first 5 pages of a document like this: 1,2,3,4,5 or like this: 1-5

Download

git clone https://github.com/AaronRobson/spans.git
cd spans

Install python packages

make install-packages

Lint

make check

Test

make test

Running

Via Make

make run args="1 2 3 5-7 10"

Directly

python3 spans.py 1 2 3 5-7 10

Expected result

Either of the two forms should return:

1-3, 5-7, 10