kyu_8.greek_sort package

Submodules

kyu_8.greek_sort.greek_comparator module

kyu_8.greek_sort.greek_comparator.greek_comparator(lhs: str, rhs: str) → int[source]

A custom comparison function of two arguments (iterable elements) which should return a negative, zero or positive number depending on whether the first argument is considered smaller than, equal to, or larger than the second argument :param lhs: :param rhs: :return:

kyu_8.greek_sort.test_greek_comparator module

class kyu_8.greek_sort.test_greek_comparator.GreekComparatorTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Testing greek_comparator function

test_greek_comparator()[source]

Testing greek_comparator function with various test inputs :return:

Module contents