KnuthShuffleUnitTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

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