mirror of
https://github.com/nushell/nushell
synced 2024-12-29 06:23:11 +00:00
9 lines
202 B
Rust
9 lines
202 B
Rust
|
use nu_test_support::nu;
|
||
|
|
||
|
#[test]
|
||
|
fn into_datetime_table_column() {
|
||
|
let actual = nu!(r#"[[date]; ["2022-01-01"] ["2023-01-01"]] | into datetime date"#);
|
||
|
|
||
|
assert!(actual.out.contains(" ago"));
|
||
|
}
|