Updated to new PipeLineData and made the tests run

This commit is contained in:
Luccas Mateus de Medeiros Gomes
2021-10-25 20:56:22 -03:00
parent 3a5b943d11
commit 017b1d8996
3 changed files with 45 additions and 27 deletions

View File

@ -5,7 +5,7 @@ use nu_protocol::{
PipelineData,
};
use super::{From, Into, Split};
use super::{From, Into, Split, Math};
pub fn test_examples(cmd: impl Command + 'static) {
let examples = cmd.examples();
@ -18,6 +18,7 @@ pub fn test_examples(cmd: impl Command + 'static) {
working_set.add_decl(Box::new(From));
working_set.add_decl(Box::new(Into));
working_set.add_decl(Box::new(Split));
working_set.add_decl(Box::new(Math));
// Adding the command that is being tested to the working set
working_set.add_decl(Box::new(cmd));