from random import shuffle
import pytest

from quick_sort import quick_srt


def test_quick_srt():
    expected = range(20)
    actual = expected[:]
    shuffle(actual)
    quick_srt(actual)
    assert expected == actual


def test_quick_srt_with_duplicates():
    expected = [1, 3, 3, 6, 7, 8, 8, 8]
    actual = expected[:]
    shuffle(actual)
    quick_srt(actual)
    assert expected == actual


def test_quick_sort_wrong_type():
    with pytest.raises(TypeError):
        quick_srt(15)


Add basic tests for quick sort
Add basic tests for quick sort
