nushell/crates/nu-command/tests
Andrej Kolchin 5d5088b5d5
Match ++= capabilities with ++ (#11130)
Allow `++=` to work in all situations `++` does, namely for appending
single elements: `$list ++= 1`.

Resolve #11087

# Description

Bring `++=` to parity with `++`.

# User-Facing Changes

It is now possible to do `$list ++= 1` (appending a single element).
Similarly, this can be done:

```Nushell
~> mut a = [1]
~> $a ++= 2
~> a
╭───┬───╮
│ 0 │ 1 │
│ 1 │ 2 │
╰───┴───╯
```

# Tests + Formatting

Added two tests:

- `commands::assignment::append_assign::append_assign_single_element`
- `commands::assignment::append_assign::append_assign_to_single_element`
2023-12-07 05:46:37 +08:00
..
commands Match ++= capabilities with ++ (#11130) 2023-12-07 05:46:37 +08:00
format_conversions bump rust-toolchain to 1.72.1 (#11079) 2023-11-16 15:14:45 -06:00
main.rs Rename misused "deprecation" to removal (#10000) 2023-08-15 07:17:31 +12:00