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

Function test_width_only

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

Source from the content-addressed store, hash-verified

1397
1398 #[test]
1399 fn test_width_only() {
1400 let expected = Ok(FormatSpec {
1401 conversion: None,
1402 fill: None,
1403 align: None,
1404 sign: None,
1405 alternate_form: false,
1406 width: Some(33),
1407 grouping_option: None,
1408 precision: None,
1409 format_type: None,
1410 });
1411 assert_eq!(FormatSpec::parse("33"), expected);
1412 }
1413
1414 #[test]
1415 fn test_fill_and_width() {

Callers

nothing calls this directly

Calls 1

SomeClass · 0.50

Tested by

no test coverage detected