Skip to content
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

Fix tests to run correctly using MacOS wc #106

Merged
merged 1 commit into from
Mar 13, 2022

Conversation

isen0011
Copy link
Contributor

As noticed in #105, MacOS wc -l produces extra whitespace padding at
the front of the word count. This makes it so that running the tests on
MacOS produces false negatives.

The fix here is to add a new function that calls wc -l then uses sed
to strip out the extra whitespace. This is only used in the tests.
After running this on a MacOS machine, all tests pass as expected.

Note: this doesn't address the bug listed in #105. This just fixes the problem
with running the tests.

As noticed in mfaerevaag#105, MacOS `wc -l` produces extra whitespace padding at
the front of the word count.  This makes it so that running the tests on
MacOS produces false negatives.

The fix here is to add a new function that calls `wc -l` then uses `sed`
to strip out the extra whitespace.  This is only used in the tests.
After running this on a MacOS machine, all tests pass as expected.
@alpha-tango-kilo alpha-tango-kilo merged commit 5db678c into mfaerevaag:master Mar 13, 2022
@alpha-tango-kilo
Copy link
Collaborator

Looks simple enough, thanks for fixing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants