MCPcopy Create free account
hub / github.com/pytorch/pytorch / test_str_to

Method test_str_to

test/test_jit_string.py:15–16  ·  view source on GitHub ↗
(s: str)

Source from the content-addressed store, hash-verified

13 s.isidentifier(), s.istitle(), s.isprintable()
14
15 def test_str_to(s: str) -> Tuple[str, str, str, str, str]:
16 return s.upper(), s.lower(), s.capitalize(), s.title(), s.swapcase()
17
18 def test_str_strip(s: str) -> Tuple[str, str, str]:
19 return (

Callers

nothing calls this directly

Calls 2

lowerMethod · 0.45
titleMethod · 0.45

Tested by

no test coverage detected