MCPcopy Create free account
hub / github.com/coooodeer/parse-rust / test_sign

Function test_sign

tests/test_parse.py:98–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97
98def test_sign():
99 # sign is ignored
100 r = parse.parse("Pi = {:.7f}", "Pi = 3.1415926")
101 assert r.fixed == (3.1415926,)
102 r = parse.parse("Pi = {:+.7f}", "Pi = 3.1415926")
103 assert r.fixed == (3.1415926,)
104 r = parse.parse("Pi = {:-.7f}", "Pi = 3.1415926")
105 assert r.fixed == (3.1415926,)
106 r = parse.parse("Pi = {: .7f}", "Pi = 3.1415926")
107 assert r.fixed == (3.1415926,)
108
109
110def test_precision():

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected