changed to-float to to-decimal (#1926)

* changed to-float to to-decimal

* changed to-float to to-decimal
This commit is contained in:
Rohan Rout
2020-06-02 02:32:57 +05:30
committed by GitHub
parent ac22319a5d
commit ae72593831
5 changed files with 12 additions and 12 deletions

View File

@ -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
"#
));