MSDUnitTest.test_msd()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
1
import unittest
2
3
from pyalgs.algorithms.strings.sorting import LSD, MSD, String3WayQuickSort
4
from tests.algorithms.strings.util import words3
5
6
7
class LSDUnitTest(unittest.TestCase):
8
    def test_lsd(self):
9
        words = words3()
10
        print(words)
11
        LSD.sort(words)
12
        print(words)
13
14
class MSDUnitTest(unittest.TestCase):
15
    def test_msd(self):
16
        words = 'more details are provided in the docs for implementation, complexities and further info'.split(' ')
17
        print(words)
18
        MSD.sort(words)
19
        print(words)
20
21
22
class String3WayQuickSortUnitTest(unittest.TestCase):
23
    def test_msd(self):
24
        words = 'more details are provided in the docs for implementation, complexities and further info'.split(' ')
25
        print(words)
26
        String3WayQuickSort.sort(words)
27
        print(words)
28
29
30
if __name__ == '__main__':
31
    unittest.main()