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

Method test_single_number

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

Source from the content-addressed store, hash-verified

18 assert Hashids().encode(1, 2, 3) == 'o2fXhV'
19
20 def test_single_number(self):
21 h = Hashids()
22 assert h.encode(12345) == 'j0gW'
23 assert h.encode(1) == 'jR'
24 assert h.encode(22) == 'Lw'
25 assert h.encode(333) == 'Z0E'
26 assert h.encode(9999) == 'w0rR'
27
28 def test_multiple_numbers(self):
29 h = Hashids()

Callers

nothing calls this directly

Calls 2

encodeMethod · 0.95
HashidsClass · 0.90

Tested by

no test coverage detected