Command tests (#922)

* WIP command tests

* Finish marking todo tests

* update

* update

* Windows cd test ignoring
This commit is contained in:
JT
2022-02-03 21:01:45 -05:00
committed by GitHub
parent ac0b331f00
commit a008f1aa80
139 changed files with 10298 additions and 348 deletions

View File

@ -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 },

View File

@ -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,
)?;