Done module-bash#3
Conversation
| esac | ||
| echo "Error.." | ||
| exit 1 | ||
|
|
There was a problem hiding this comment.
Two flags input test not passed
| else | ||
| echo "Hello, $1!" | ||
| fi | ||
|
|
| else | ||
| echo the searched PATH is unexisting | ||
| fi | ||
| done |
There was a problem hiding this comment.
2 existing paths 2 existing FILES tests are failed
There was a problem hiding this comment.
The outputs are identical, though don't need to do anything
| else | ||
| exit 1 | ||
| fi | ||
|
|
| basename $files | ||
| grep -n $pattern $files | cut -f1 -d":" | ||
| exit 0 | ||
| fi |
There was a problem hiding this comment.
No args and Without first arg tests are failed
There was a problem hiding this comment.
The test is wrong, need to update!!
|
|
||
| } | ||
|
|
||
| map ${@} |
| else | ||
| head -$1 resourses/surnames.txt | grep -v 'Q-Chem' | sed 's/-//;s/.$//' | ||
| exit 0 | ||
| fi |
There was a problem hiding this comment.
Test on 0 lines returns error and Test on 2 lines return empty string are failed
| grep '^[a-zA-Z0-9]\+@[a-zA-Z0-9]\+\.[a-z]\{2,\}' $2 | ||
| ;; | ||
|
|
||
| esac |
| echo $(awk 'END{print NR}' $1) $1 | ||
| exit 0 | ||
| fi | ||
| exit 1 |
There was a problem hiding this comment.
with directory and with 2 files tests are failed
| arr[$i]=$(grep -o $i $1 | wc -l) | ||
| result+=' '${arr[$i]}' '${nums[$i]} | ||
| done | ||
| echo $result |
There was a problem hiding this comment.
All tests except first one are failed, fixed test is here https://github.com/vpetrusenko/module-bash/pull/4/files#diff-3e35ef4d05c4325d58bedc87bb4e27eb
No description provided.