MCPcopy
hub / github.com/Textualize/rich / test_variant

Function test_variant

tests/test_emoji.py:27–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26
27def test_variant():
28 print(repr(Emoji.replace(":warning:")))
29 assert Emoji.replace(":warning:") == "⚠"
30 assert Emoji.replace(":warning-text:") == "⚠" + "\uFE0E"
31 assert Emoji.replace(":warning-emoji:") == "⚠" + "\uFE0F"
32 assert Emoji.replace(":warning-foo:") == ":warning-foo:"
33
34
35def test_variant_non_default():

Callers

nothing calls this directly

Calls 2

replaceMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected