-
-
Notifications
You must be signed in to change notification settings - Fork 41
Add assert_line_count
#259
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
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
Chemaclass
left a comment
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>
Chemaclass
left a comment
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_countassertion function.refs #257
π Changes
assert_line_countβ To-do list
CHANGELOG.mdto reflect the new feature or fix