mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 15:44:59 +02:00
Command tests (#922)
* WIP command tests * Finish marking todo tests * update * update * Windows cd test ignoring
This commit is contained in:
@ -230,7 +230,7 @@ pub fn get_documentation(
|
||||
match decl.run(
|
||||
engine_state,
|
||||
stack,
|
||||
&Call::new(),
|
||||
&Call::new(Span::new(0, 0)),
|
||||
Value::String {
|
||||
val: example.example.to_string(),
|
||||
span: Span { start: 0, end: 0 },
|
||||
|
@ -164,7 +164,7 @@ fn eval_external(
|
||||
|
||||
let command = engine_state.get_decl(decl_id);
|
||||
|
||||
let mut call = Call::new();
|
||||
let mut call = Call::new(head.span);
|
||||
|
||||
call.positional.push(head.clone());
|
||||
|
||||
@ -484,7 +484,7 @@ pub fn eval_block(
|
||||
let table = engine_state.get_decl(decl_id).run(
|
||||
engine_state,
|
||||
stack,
|
||||
&Call::new(),
|
||||
&Call::new(Span::new(0, 0)),
|
||||
input,
|
||||
)?;
|
||||
|
||||
|
Reference in New Issue
Block a user