from exploits.geometry import convex_hull
from test.exploits.dummy_output import DummyOutput
from input.ints import IntGenerator


def test_small_convex_hull():
    output = DummyOutput()
    n_inputs = 10
    convex_hull.options['n_inputs'] = n_inputs
    convex_hull.run(IntGenerator(), output)
    assert len(output) == n_inputs


def test_large_convex_hull():
    output = DummyOutput()
    n_inputs = 100000
    convex_hull.options['n_inputs'] = n_inputs
    convex_hull.run(IntGenerator(), output)
    assert len(output) == n_inputs
