Porting 'char' command from nushell to engine-q (#500)

* Port 'char' command from nushell to engine-q

* fixed unit tests

* Actually fixed unit tests
This commit is contained in:
Matthew Auld
2021-12-15 18:08:12 -05:00
committed by GitHub
parent e289630920
commit 89e2169521
4 changed files with 268 additions and 0 deletions

View File

@ -18,6 +18,7 @@ pub fn test_examples(cmd: impl Command + 'static) {
// Try to keep this working set small to keep tests running as fast as possible
let mut working_set = StateWorkingSet::new(&*engine_state);
working_set.add_decl(Box::new(Str));
working_set.add_decl(Box::new(StrCollect));
working_set.add_decl(Box::new(From));
working_set.add_decl(Box::new(To));
working_set.add_decl(Box::new(Into));