xsebek / ossdev-02-469284

Open Source Developement course git assignment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ossdev-02-469284

Python application

Open Source Developement course git assignment.

Run

You can check out the application with:

$ python3 primezz 11 42
11
13
17
19
23
29
31
37
41

Install

If you want to list primes without switching directories, you can install the app:

$ pip install -e .
$ cd /your/other/working/dir
$ primezz -10 10
-7
-5
-3
-2
2
3
5
7

Test

The tests use the unittest framework, which should come preinstalled with your Python distribution:

$ python -m unittest -v tests/unit.py
test_fact (tests.unit.PrimeExamples) ... ok
test_primality_example (tests.unit.PrimeExamples) ... ok
test_prime_0 (tests.unit.PrimeExamples) ... ok
test_prime_1 (tests.unit.PrimeExamples) ... ok
test_prime_2 (tests.unit.PrimeExamples) ... ok
test_prime_minus_2 (tests.unit.PrimeExamples) ... ok
test_primes_500 (tests.unit.ReferencePrime) ... ok

----------------------------------------------------------------------
Ran 7 tests in 0.032s

OK

About

Open Source Developement course git assignment.

License:GNU Affero General Public License v3.0


Languages

Language:Python 100.0%