Open Source Developement course git assignment.
- course page: crocs-muni/open-source-development-course
- assignment description: Single-developer scenario
You can check out the application with:
$ python3 primezz 11 42
11
13
17
19
23
29
31
37
41
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
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