mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 17:03:12 +02:00
git-subtree-dir: Programming/ECRYPT_PROJECT git-subtree-mainline:be962d0c35git-subtree-split:0191d102d1
15 lines
346 B
Python
15 lines
346 B
Python
import pandas as pd
|
|
import pytest
|
|
from .project import sieve_of_eratosthenes
|
|
|
|
def test_positives(prime, primes_obtained):
|
|
assert prime in primes_obtained
|
|
|
|
|
|
def test_composites(composite, primes_obtained):
|
|
assert composite not in primes_obtained
|
|
|
|
|
|
def test_negatives():
|
|
with pytest.raises(ValueError):
|
|
sieve_of_eratosthenes(-1) |