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

Function test_inspect_integer_with_value

tests/test_inspect.py:218–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216
217
218def test_inspect_integer_with_value():
219 expected = "╭────── <class 'int'> ───────╮\n│ int([x]) -> integer │\n│ int(x, base=10) -> integer │\n│ │\n│ ╭────────────────────────╮ │\n│ │ 1 │ │\n│ ╰────────────────────────╯ │\n│ │\n│ denominator = 1 │\n│ imag = 0 │\n│ numerator = 1 │\n│ real = 1 │\n╰────────────────────────────╯\n"
220 value = render(1, value=True)
221 print(repr(value))
222 assert value == expected
223
224
225@skip_py310

Callers

nothing calls this directly

Calls 2

renderFunction · 0.70
printFunction · 0.50

Tested by

no test coverage detected