Skip to content

Add unit tests for the "House Robber" problem. - #18

Merged
kobukuro merged 1 commit into
mainfrom
test/add-house-robber-tests
Sep 6, 2025
Merged

kobukuro merged 1 commit into
mainfrom
test/add-house-robber-tests

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 01:33

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 "House Robber" problem implementation. The changes include creating a new test class and making minor improvements to the existing solution code.

  • Added unit test class with two test cases covering the main examples
  • Updated code comments and formatting in the main solution class
  • Removed the main method from the solution class in favor of proper unit testing

Reviewed Changes

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

File Description
src/test/java/com/leetcode/medium/HouseRobber198Test.java New test class with unit tests for the robTabulation method
src/main/java/com/leetcode/medium/HouseRobber198.java Minor comment updates, formatting improvements, and removal of main method

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

@kobukuro
kobukuro merged commit 591b2bb into main Sep 6, 2025
1 check passed
@kobukuro
kobukuro deleted the test/add-house-robber-tests branch September 6, 2025 01:34
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