MCPcopy Index your code
hub / github.com/lincolnloop/python-qrcode / test_commas

Function test_commas

qrcode/tests/test_script.py:92–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90
91
92def test_commas():
93 assert commas([]) == ""
94 assert commas(["A"]) == "A"
95 assert commas("AB") == "A or B"
96 assert commas("ABC") == "A, B or C"
97 assert commas("ABC", joiner="and") == "A, B and C"

Callers

nothing calls this directly

Calls 1

commasFunction · 0.90

Tested by

no test coverage detected