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

wc: pass GNU test wc-files0-from.pl #5582

Merged
merged 2 commits into from Nov 27, 2023
Merged

Conversation

zhitkoff
Copy link
Contributor

Pass the GNU tests/wc/wc-files0-from.pl test

Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/wc/wc-files0-from is no longer failing!
GNU test failed: tests/tail/inotify-dir-recreate. tests/tail/inotify-dir-recreate is passing on 'main'. Maybe you have to rebase?

@@ -167,7 +167,7 @@ impl<'a> Inputs<'a> {
None => Ok(Self::Files0From(input)),
}
}
(Some(_), Some(_)) => Err(WcError::FilesDisabled.into()),
(Some(mut files), Some(_)) => Err(WcError::files_disabled(files.next()).into()),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be cleaner to do the unwrap() here because here it is obvious why it is safe to do. In files_disabled the context is missing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cakebaker updated

Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/wc/wc-files0-from is no longer failing!

@cakebaker cakebaker merged commit 55d931e into uutils:main Nov 27, 2023
51 of 53 checks passed
@cakebaker
Copy link
Contributor

Thanks :)

@zhitkoff zhitkoff deleted the wc-files branch February 9, 2024 16:11
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.

None yet

2 participants