Fix reading/writing bigint and bigdecimal (#2893)

This commit is contained in:
Jonathan Turner
2021-01-09 12:53:59 +13:00
committed by GitHub
parent 5356cb9fbd
commit 99117ff2ef
3 changed files with 33 additions and 22 deletions

View File

@@ -332,6 +332,30 @@ fn string_interpolation_with_it_column_path() {
assert_eq!(actual.out, "sammie");
}
#[test]
fn bignum_large_integer() {
let actual = nu!(
cwd: ".",
r#"
echo 91231720741731287123917
"#
);
assert_eq!(actual.out, "91231720741731287123917");
}
#[test]
fn bignum_large_decimal() {
let actual = nu!(
cwd: ".",
r#"
echo 91231720741731287123917.1
"#
);
assert_eq!(actual.out, "91231720741731287123917.1");
}
#[test]
fn run_custom_command() {
let actual = nu!(