Skip to content

Improve tests #179

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

Merged
merged 2 commits into from
May 24, 2025
Merged

Improve tests #179

merged 2 commits into from
May 24, 2025

Conversation

jiegec
Copy link
Contributor

@jiegec jiegec commented May 24, 2025

No description provided.

jiegec added 2 commits May 24, 2025 09:24
Some tests generate a long operand list, which is hard to read under the
default assertion error output. Use pretty_assertions to display the
difference in a neat way.
@jiegec jiegec requested a review from Copilot May 24, 2025 01:41
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances the test suite by adding a new assertion library to improve test failure diffs.

  • Introduce pretty_assertions as a development dependency for richer output in test failures.
Comments suppressed due to low confidence (1)

capstone-rs/Cargo.toml:25

  • [nitpick] You’ve added pretty_assertions to improve test diffs but haven’t updated any tests to use it yet. Consider replacing standard assert_eq! calls in critical tests with pretty_assert_eq! so you can benefit from the enhanced output.
pretty_assertions = "1.4.1"

@jiegec jiegec merged commit 14d42f6 into master May 24, 2025
29 checks passed
@jiegec jiegec deleted the improve-tests branch May 24, 2025 01:42
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.

1 participant