-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add assert_line_count
#259
Conversation
if [ -z "$actual" ]; then | ||
local actual_line_count=0 | ||
else | ||
local actual_line_count=$(echo "$actual" | wc -l | tr -d '[:blank:]') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on my macos, wc -l
returns a number prepended by whitespaces. therefore I used tr
to strip them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool! Just some minor comments
Co-authored-by: Jose Maria Valera Reales <chemaclass@outlook.es>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
π Description
Implement new
assert_line_count
assertion function.refs #257
π Changes
assert_line_count
β To-do list
CHANGELOG.md
to reflect the new feature or fix