forked from extern/nushell
Add long options for platform and random (#10776)
This commit is contained in:
@ -2,7 +2,7 @@ use nu_test_support::nu;
|
||||
|
||||
#[test]
|
||||
fn test_ansi_shows_error_on_escape() {
|
||||
let actual = nu!(r"ansi -e \");
|
||||
let actual = nu!(r"ansi --escape \");
|
||||
|
||||
assert!(actual.err.contains("no need for escape characters"))
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ use nu_test_support::nu;
|
||||
#[test]
|
||||
fn generates_chars_of_specified_length() {
|
||||
let actual = nu!(r#"
|
||||
random chars -l 15 | size | get chars
|
||||
random chars --length 15 | size | get chars
|
||||
"#);
|
||||
|
||||
let result = actual.out;
|
||||
|
@ -3,7 +3,7 @@ use nu_test_support::nu;
|
||||
#[test]
|
||||
fn rolls_4_roll() {
|
||||
let actual = nu!(r#"
|
||||
random dice -d 4 -s 10 | length
|
||||
random dice --dice 4 --sides 10 | length
|
||||
"#);
|
||||
|
||||
assert_eq!(actual.out, "4");
|
||||
|
Reference in New Issue
Block a user