mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
test_date: Add test for quarter
This was fixed upstream in #7333, but it's a good idea to have a test here as well, especially as we're considering switching datetime library.
This commit is contained in:
parent
25e4410c3b
commit
19e08d5c11
1 changed files with 8 additions and 0 deletions
|
@ -169,6 +169,14 @@ fn test_date_format_y() {
|
|||
scene.ucmd().arg("+%y").succeeds().stdout_matches(&re);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_date_format_q() {
|
||||
let scene = TestScenario::new(util_name!());
|
||||
|
||||
let re = Regex::new(r"^[1-4]\n$").unwrap();
|
||||
scene.ucmd().arg("+%q").succeeds().stdout_matches(&re);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_date_format_m() {
|
||||
let scene = TestScenario::new(util_name!());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue