mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 20:19:01 +02:00
Fix reading/writing bigint and bigdecimal (#2893)
This commit is contained in:
@@ -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!(
|
||||
|
Reference in New Issue
Block a user