Skip to content

Fix path sum test assertion for order-independent comparison. - #20

Merged
kobukuro merged 2 commits into
mainfrom
test/update-path-sum-comparison
Sep 6, 2025
Merged

kobukuro merged 2 commits into
mainfrom
test/update-path-sum-comparison

Conversation

@kobukuro

@kobukuro kobukuro commented Sep 6, 2025

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings September 6, 2025 09:25

This comment was marked as outdated.

@kobukuro
kobukuro requested a review from Copilot September 6, 2025 09:30

Copilot AI left a comment

Copy link
Copy Markdown

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 fixes a test assertion issue by implementing order-independent comparison for path sum results. The change ensures that the test assertion compares lists of paths without depending on the specific ordering returned by the algorithm.

  • Adds sorting logic to normalize the order of path results before assertion
  • Implements lexicographic comparison for consistent test behavior

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@kobukuro
kobukuro merged commit e1d9fad into main Sep 6, 2025
1 check passed
@kobukuro
kobukuro deleted the test/update-path-sum-comparison branch September 6, 2025 09:31
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