mirror of
https://github.com/nushell/nushell.git
synced 2025-06-20 18:08:36 +02:00
fix test into_datetime_from_record_defaults
This commit is contained in:
parent
44fea3e00e
commit
55e2dd6160
@ -16,9 +16,9 @@ fn into_datetime_from_record() {
|
||||
|
||||
#[test]
|
||||
fn into_datetime_from_record_defaults() {
|
||||
let actual = nu!(r#"{} | into datetime | into record"#);
|
||||
let actual = nu!(r#"{year: 2025} | into datetime | into record"#);
|
||||
let expected = nu!(
|
||||
r#"{year: 0, month: 1, day: 1, hour: 0, minute: 0, second: 0, millisecond: 0, microsecond: 0, nanosecond: 0, timezone: '+00:00'}"#
|
||||
r#"{year: 2025, month: 1, day: 1, hour: 0, minute: 0, second: 0, millisecond: 0, microsecond: 0, nanosecond: 0, timezone: '+00:00'}"#
|
||||
);
|
||||
|
||||
assert_eq!(expected.out, actual.out);
|
||||
|
Loading…
x
Reference in New Issue
Block a user