nushell/crates/nu-command/tests/commands/random/dice.rs
2023-10-19 22:04:33 +02:00

11 lines
177 B
Rust

use nu_test_support::nu;
#[test]
fn rolls_4_roll() {
let actual = nu!(r#"
random dice --dice 4 --sides 10 | length
"#);
assert_eq!(actual.out, "4");
}