Skip to content

Add unit tests for the "Richest Customer Wealth" problem. - #23

Merged
kobukuro merged 2 commits into
mainfrom
test/add-richest-customer-wealth-tests
Sep 9, 2025
Merged

kobukuro merged 2 commits into
mainfrom
test/add-richest-customer-wealth-tests

Conversation

@kobukuro

@kobukuro kobukuro commented Sep 9, 2025

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings September 9, 2025 03:48

This comment was marked as outdated.

…quals for better test failure reporting and IDE integration.
@kobukuro
kobukuro requested a review from Copilot September 9, 2025 03:53

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 adds comprehensive unit tests for the "Richest Customer Wealth" LeetCode problem solution and reorganizes the code structure by moving the implementation to the proper package structure and removing the old file.

  • Adds JUnit 5 test class with three test cases covering different scenarios
  • Moves the solution from root src directory to proper package structure under com.leetcode.easy
  • Removes the old implementation file that contained a main method for testing

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/test/java/com/leetcode/easy/RichestCustomerWealth1672Test.java New test class with comprehensive unit tests for the wealth calculation algorithm
src/main/java/com/leetcode/easy/RichestCustomerWealth1672.java Refactored solution with improved documentation and proper package structure
src/RichestCustomerWealth1672.java Removed old implementation file from root directory

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

@kobukuro
kobukuro merged commit 7c1c34b into main Sep 9, 2025
1 check passed
@kobukuro
kobukuro deleted the test/add-richest-customer-wealth-tests branch September 9, 2025 03:54
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