added a bunch of tests

This commit is contained in:
2026-02-18 23:54:25 -05:00
parent d77c2f39b8
commit 8354ad400d
14 changed files with 2595 additions and 53 deletions

View File

@@ -2,6 +2,8 @@ use getopt::{get_opts, get_opts_from_tokens};
use parse::NdRule;
use tests::get_nodes;
use crate::builtin::echo::ECHO_OPTS;
use super::super::*;
#[test]
@@ -19,7 +21,7 @@ fn getopt_from_argv() {
panic!()
};
let (words, opts) = get_opts_from_tokens(argv);
let (words, opts) = get_opts_from_tokens(argv, &ECHO_OPTS);
insta::assert_debug_snapshot!(words);
insta::assert_debug_snapshot!(opts)
}