nushell/crates/nu-command/tests
Oscar 0a8f27f6f2
Allow empty list inputs in group-by and return empty record (#10730)
# 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 #10713 

# 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 (#10730) 2023-10-19 12:20:52 +02:00
format_conversions Add long options for formats (#10645) 2023-10-08 19:07:09 +02:00
main.rs Rename misused "deprecation" to removal (#10000) 2023-08-15 07:17:31 +12:00