nushell/tests
Horasal 54394fe9af
Allow operator in constants (#10212)
This pr fixes https://github.com/nushell/nushell/issues/10200

# Description

Allow unary and binary operators in constants, e.g.

```bash
const a = 1 + 2
const b = [0, 1, 2, 3] ++ [4]
```

# User-Facing Changes

Now constants can contain operators.

# Tests + Formatting

- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting

None

---------

Co-authored-by: Horasal <horsal@horsal.dev>
2023-09-05 16:35:58 +02:00
..
assets/nu_json Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
const_ Allow operator in constants (#10212) 2023-09-05 16:35:58 +02:00
eval Exit early when encountering parsing errors (#10213) 2023-09-05 14:36:37 +02:00
fixtures Exit early when encountering parsing errors (#10213) 2023-09-05 14:36:37 +02:00
hooks Auto-expand table based on terminal width (#9934) 2023-08-08 05:47:23 -05:00
modules Recursively export constants from modules (#10049) 2023-08-20 14:51:35 +02:00
overlays Remove unnecessary cwd, pipeline(), r# from various tests (#9645) 2023-07-12 19:07:20 +02:00
parsing Remove unnecessary cwd, pipeline(), r# from various tests (#9645) 2023-07-12 19:07:20 +02:00
path Use pretty_assertions in the root crate (#8818) 2023-04-08 11:52:37 -07:00
plugins Disallow empty record with empty key,value pairs on ini format (#9722) 2023-07-18 22:14:18 +02:00
scope Add a few more fields to scope commands (#10045) 2023-08-18 20:47:38 +03:00
shell Allow exporting extern-wrapped (#10025) 2023-08-18 20:45:33 +03:00
main.rs prevent redefining fields in a record (#8705) 2023-04-02 06:09:33 +12:00