Add expected result to test (#7031)

This commit is contained in:
Dan Davison 2022-11-06 12:09:56 -05:00 committed by GitHub
parent 766d1ef374
commit 9a1cedfd08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,10 @@ impl Command for SubCommand {
Example { Example {
description: "Format a given date using a given format string.", description: "Format a given date using a given format string.",
example: r#""2021-10-22 20:00:12 +01:00" | date format "%Y-%m-%d""#, example: r#""2021-10-22 20:00:12 +01:00" | date format "%Y-%m-%d""#,
result: None, result: Some(Value::String {
val: "2021-10-22".to_string(),
span: Span::test_data(),
}),
}, },
] ]
} }