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

About

Printing page spans 1,2,3 to 1-3.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published