Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Proost
Manage
Activity
Members
Labels
Plan
Issues
33
Issue boards
Milestones
Code
Merge requests
18
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
loutr
Proost
Merge requests
!56
Resolve "panic when entering "a""
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "panic when entering "a""
71-panic-when-entering-a
into
main
Overview
0
Commits
2
Pipelines
3
Changes
1
Merged
aalbert
requested to merge
71-panic-when-entering-a
into
main
2 years ago
Overview
0
Commits
2
Pipelines
3
Changes
1
Expand
Closes
#71 (closed)
👍
0
👎
0
Merge request reports
Viewing commit
c03cb62b
Prev
Next
Show latest version
1 file
+
9
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
c03cb62b
feat(proost): add test for is_command behavior with 1 letter
· c03cb62b
aalbert
authored
2 years ago
proost/src/main.rs
+
9
−
0
Options
@@ -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
(
" "
));
Loading