Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coooodeer/parse-rust
/ test_center
Function
test_center
tests/test_parse.py:84–87 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
82
83
84
def
test_center():
85
# pull center-aligned text out of string
86
r = parse.parse(
"hello {:^} world"
,
"hello there world"
)
87
assert r.fixed == (
"there"
,)
88
89
90
def
test_typed():
Callers
nothing calls this directly
Calls
1
parse
Method · 0.45
Tested by
no test coverage detected