2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-03-05 15:58:17 +00:00
nushell/crates/nu-command/tests
Oscar 0a8f27f6f2
Allow empty list inputs in group-by and return empty record ()
# Description

Changed `group-by` behavior to accept empty list as input and return an
empty record instead of throwing an error. I also replaced
`errors_if_input_empty()` test to reflect the new expected behavior.

See  

# User-Facing Changes
`[] | group-by` or `[] | group-by a` now returns empty record


# Tests + Formatting
1 test for emptied table i.e. list

---------

Signed-off-by: Oscar <71343264+0scvr@users.noreply.github.com>
2023-10-19 12:20:52 +02:00
..
commands Allow empty list inputs in group-by and return empty record () 2023-10-19 12:20:52 +02:00
format_conversions Add long options for formats () 2023-10-08 19:07:09 +02:00
main.rs Rename misused "deprecation" to removal () 2023-08-15 07:17:31 +12:00