2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-15 21:48:29 +00:00
nushell/tests
Stefan Holderbach bbf0b45c59
Update internal use of decimal to float ()
# Description
We made the decision that our floating point type should be referred to
as `float` over `decimal`.
Commands were updated by  and 

Now make the internal codebase consistent in referring to this data type
as `float`.

Work for 

# User-Facing Changes

`decimal` has been removed as a type name/symbol. 

Instead of 
```nushell
def foo [bar: decimal] decimal -> decimal {}
```
use 
```nushell
def foo [bar: float] float -> float {}
```

Potential effect of `SyntaxShape`'s `Display` implementation now also
referring to `float` instead of `decimal`

# Details
- Rename `SyntaxShape::Decimal` to `Float`
- Update `Display for SyntaxShape` to `float`
- Update error message + fn name in dataframe code
- Fix docs in command examples
- Rename tests that are float specific
- Update doccomment on `SyntaxShape`
- Update comment in script

# Tests + Formatting
Updates the names of some tests
2023-09-13 23:53:55 +02:00
..
assets/nu_json Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
const_ Remove python-like string multiplication () 2023-09-13 19:52:04 +12:00
eval Exit early when encountering parsing errors () 2023-09-05 14:36:37 +02:00
fixtures use uutils/coreutils cp command in place of nushell's cp command () 2023-09-08 13:57:38 -05:00
hooks Auto-expand table based on terminal width () 2023-08-08 05:47:23 -05:00
modules Recursively export constants from modules () 2023-08-20 14:51:35 +02:00
overlays Remove unnecessary cwd, pipeline(), r# from various tests () 2023-07-12 19:07:20 +02:00
parsing Remove unnecessary cwd, pipeline(), r# from various tests () 2023-07-12 19:07:20 +02:00
path Deref &String arguments to &str where appropriate () 2023-09-12 14:06:56 +08:00
plugins Disallow empty record with empty key,value pairs on ini format () 2023-07-18 22:14:18 +02:00
scope Add a few more fields to scope commands () 2023-08-18 20:47:38 +03:00
shell Update internal use of decimal to float () 2023-09-13 23:53:55 +02:00
main.rs prevent redefining fields in a record () 2023-04-02 06:09:33 +12:00