mirror of
https://github.com/nushell/nushell.git
synced 2024-12-11 17:51:50 +01:00
79359598db
should close https://github.com/nushell/nushell/issues/9774 # Description given the help page of `into datetime`, ``` Parameters: ...rest <cellpath>: for a data structure input, convert data at the given cell paths ``` it looks like `into datetime` should accept tables as input 🤔 this PR - adds the `table -> table` signature to `into datetime` - adds a test to make sure the behaviour stays there
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"));
|
|
}
|