Completed
Push — master ( 03eb77...9029ba )
by Xianshun
01:25
created

String3WayQuickSortUnitTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_msd() 0 5 1
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()