Skip to content

assert files are equal #322

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

Closed
staabm opened this issue Sep 12, 2024 · 1 comment · Fixed by #326
Closed

assert files are equal #322

staabm opened this issue Sep 12, 2024 · 1 comment · Fixed by #326
Assignees
Labels
enhancement New feature or request

Comments

@staabm
Copy link
Contributor

staabm commented Sep 12, 2024

I wonder whether there is a assertion which allows me to compare a file which contains the expected content with one containing the actual content?

@staabm staabm added the enhancement New feature or request label Sep 12, 2024
@Chemaclass
Copy link
Member

We don't have that right now, but it should be easy to include! Very nice idea.
If you want to do it: check the existing https://bashunit.typeddevs.com/assertions#assert-is-file works, and you can implement a similar for assert_file_equals or similar. Otherwise, I can work on it this weekend

@Chemaclass Chemaclass self-assigned this Sep 13, 2024
@Chemaclass Chemaclass moved this to In Progress in bashunit Sep 13, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in bashunit Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants