# Path: pyalgs/algorithms/commons/util.py
# def less(a, b):
#     return cmp(a, b) < 0
# 
# def exchange(a, i, j):
#     tmp = a[j]
#     a[j] = a[i]
#     a[i] = tmp


import unittest
from pyalgs.algorithms.commons.util import less, exchange



class UtilTest(unittest.TestCase):
    def test_less(self):
        self.assertTrue(less(4, 5))

# Path: pyalgs/algorithms/commons/util.py
# def less(a, b):
#     return cmp(a, b) < 0
# 
# def exchange(a, i, j):
#     tmp = a[j]
#     a[j] = a[i]
#     a[i] = tmp


# Path: tests/algorithms/commons/util_unit_test.py
import unittest
from pyalgs.algorithms.commons.util import less, exchange




class UtilTest(unittest.TestCase):
    def test_less(self):
        self.assertTrue(less(4, 5))

        self.assertFalse(less(4, 4))