mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
nu-cli: Remove crates not needed. (#3716)
This commit is contained in:
committed by
GitHub
parent
e8c06b7152
commit
c36d356f4e
@ -1,5 +1,18 @@
|
||||
extern crate nu_command;
|
||||
extern crate nu_test_support;
|
||||
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
|
||||
}
|
||||
|
Reference in New Issue
Block a user