Skip to content
Snippets Groups Projects
Verified Commit c03cb62b authored by aalbert's avatar aalbert
Browse files

feat(proost): add test for is_command behavior with 1 letter

parent b738691e
No related branches found
No related tags found
1 merge request!56Resolve "panic when entering "a""
Pipeline #11897 passed with stages
in 6 minutes and 20 seconds
......@@ -88,6 +88,15 @@ fn is_command(input: &str) -> bool {
#[cfg(test)]
mod tests {
#[test]
fn is_command_no_crash() {
assert!(!super::is_command(""));
assert!(super::is_command("a"));
assert!(super::is_command("aa"));
assert!(super::is_command("aaa"));
assert!(super::is_command("aaaa"));
}
#[test]
fn is_command_false() {
assert!(!super::is_command(" "));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment