mirror of
https://github.com/nushell/nushell.git
synced 2024-12-12 02:02:32 +01:00
42531e017c
- **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 #13498 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.
12 lines
204 B
Rust
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());
|
|
}
|