blob: 9ce939bdf53ad9990af0972d55bc1d96b67ab48c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env python3
import random
def test_approxsize():
from pharosvalidator.util import approxsize
assert approxsize(100, 95, 5) == True
assert approxsize(100, 105, 5) == True
assert approxsize(100, 94, 5) == False
assert approxsize(100, 106, 5) == False
|