mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +02:00
changed to-float to to-decimal (#1926)
* changed to-float to to-decimal * changed to-float to to-decimal
This commit is contained in:
@ -101,13 +101,13 @@ fn converts_to_int() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn converts_to_float() {
|
||||
fn converts_to_decimal() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats", pipeline(
|
||||
r#"
|
||||
echo "3.1, 0.0415"
|
||||
| split row ","
|
||||
| str to-float
|
||||
| str to-decimal
|
||||
| sum
|
||||
"#
|
||||
));
|
||||
|
Reference in New Issue
Block a user