Skip to content

AaronRobson/spans

Repository files navigation

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

Releases

No releases published

Packages

No packages published