KnuthShuffleUnitTest.test_shuffle()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 4

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 4
rs 10
1
import unittest
2
3
from pyalgs.algorithms.commons.shuffling import KnuthShuffle
4
5
6
class KnuthShuffleUnitTest(unittest.TestCase):
7
    def test_shuffle(self):
8
        a = [1, 2, 13, 22, 123]
9
        KnuthShuffle.shuffle(a)
10
        print(a)
11
12
if __name__ == '__main__':
13
    unittest.main()