mirror of
https://github.com/nushell/nushell.git
synced 2024-12-02 05:13:56 +01:00
19 lines
492 B
Rust
19 lines
492 B
Rust
use quickcheck_macros::quickcheck;
|
|
|
|
mod commands;
|
|
mod format_conversions;
|
|
|
|
use nu_engine::EvaluationContext;
|
|
|
|
#[quickcheck]
|
|
fn quickcheck_parse(data: String) -> bool {
|
|
let (tokens, err) = nu_parser::lex(&data, 0, nu_parser::NewlineMode::Normal);
|
|
let (lite_block, err2) = nu_parser::parse_block(tokens);
|
|
|
|
if err.is_none() && err2.is_none() {
|
|
let context = EvaluationContext::basic();
|
|
let _ = nu_parser::classify_block(&lite_block, &context.scope);
|
|
}
|
|
true
|
|
}
|