MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_fill_and_width

Function test_fill_and_width

crates/common/src/format.rs:1415–1428  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1413
1414 #[test]
1415 fn test_fill_and_width() {
1416 let expected = Ok(FormatSpec {
1417 conversion: None,
1418 fill: Some('<'.into()),
1419 align: Some(FormatAlign::Right),
1420 sign: None,
1421 alternate_form: false,
1422 width: Some(33),
1423 grouping_option: None,
1424 precision: None,
1425 format_type: None,
1426 });
1427 assert_eq!(FormatSpec::parse("<>33"), expected);
1428 }
1429
1430 #[test]
1431 fn test_all() {

Callers

nothing calls this directly

Calls 1

SomeClass · 0.50

Tested by

no test coverage detected