1
0
mirror of https://github.com/nushell/nushell.git synced 2025-03-26 15:26:51 +01:00
nushell/crates/nu-command/tests/commands/random/uuid.rs
Stefan Holderbach 42531e017c
Clippy fixes from stable and nightly ()
- **Doccomment style fixes**
- **Forgotten stuff in `nu-pretty-hex`**
- **Don't `for` around an `Option`**
- and more

I think the suggestions here are a net positive, some of the suggestions
moved into  feel somewhat arbitrary, I also raised
https://github.com/rust-lang/rust-clippy/issues/13188 as the nightly
`byte_char_slices` would require either a global allow or otherwise a
ton of granular allows or possibly confusing bytestring literals.
2024-07-31 20:37:40 +02:00

12 lines
204 B
Rust

use nu_test_support::nu;
use uuid::Uuid;
#[test]
fn generates_valid_uuid4() {
let actual = nu!("random uuid");
let result = Uuid::parse_str(actual.out.as_str());
assert!(result.is_ok());
}