()
| 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() { |