MCPcopy Create free account
hub / github.com/davidaurelio/hashids-python / test_single_number

Method test_single_number

test/test_hashids.py:113–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

111 assert Hashids().decode('') == ()
112
113 def test_single_number(self):
114 h = Hashids()
115 assert h.decode('j0gW') == (12345,)
116 assert h.decode('jR') == (1,)
117 assert h.decode('Lw') == (22,)
118 assert h.decode('Z0E') == (333,)
119 assert h.decode('w0rR') == (9999,)
120
121 def test_multiple_numbers(self):
122 h = Hashids()

Callers

nothing calls this directly

Calls 2

decodeMethod · 0.95
HashidsClass · 0.90

Tested by

no test coverage detected