Add long options for platform and random (#10776)

This commit is contained in:
Hofer-Julian
2023-10-19 22:04:33 +02:00
committed by GitHub
parent 030e55acbf
commit 4fd2b702ee
9 changed files with 12 additions and 12 deletions

View File

@ -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;

View File

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