Add long options for generators and math (#10752)

This commit is contained in:
Hofer-Julian
2023-10-19 18:17:42 +02:00
committed by GitHub
parent 5f2089a15b
commit 54bc662e0e
10 changed files with 16 additions and 16 deletions

View File

@ -9,21 +9,21 @@ fn can_round_very_large_numbers() {
#[test]
fn can_round_very_large_numbers_with_precision() {
let actual = nu!("18.13725447800741422899276654867720121457878988 | math round -p 10");
let actual = nu!("18.13725447800741422899276654867720121457878988 | math round --precision 10");
assert_eq!(actual.out, "18.137254478")
}
#[test]
fn can_round_integer_with_negative_precision() {
let actual = nu!("123 | math round -p -1");
let actual = nu!("123 | math round --precision -1");
assert_eq!(actual.out, "120")
}
#[test]
fn can_round_float_with_negative_precision() {
let actual = nu!("123.3 | math round -p -1");
let actual = nu!("123.3 | math round --precision -1");
assert_eq!(actual.out, "120")
}