Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ test_elements
Method
test_elements
recipes/Python/578466_Shuffle/recipe-578466.py:16–18 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
14
self.actual = range(1, 53)
15
16
def
test_elements(self):
17
expected = shuffle(self.actual)
18
self.assertEqual(set(self.actual), set(expected))
19
20
if
__name__ ==
"__main__"
:
21
unittest.main()
Callers
nothing calls this directly
Calls
2
shuffle
Function · 0.70
set
Function · 0.50
Tested by
no test coverage detected