Skip to content

Add unit tests for the "Container With Most Water" problem. - #34

Merged
kobukuro merged 1 commit into
mainfrom
test/add-container-with-most-water-tests
Nov 12, 2025
Merged

kobukuro merged 1 commit into
mainfrom
test/add-container-with-most-water-tests

Conversation

@kobukuro

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings November 12, 2025 01:47

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 unit tests for the "Container With Most Water" problem (LeetCode #11) and refactors the main implementation by replacing the main method with proper JUnit tests. The changes also improve documentation by converting single-line comments to proper Javadoc format.

  • Adds comprehensive unit test coverage with JUnit 5
  • Removes the main method from the implementation class in favor of proper unit tests
  • Converts comment-style complexity annotations to proper Javadoc format

Reviewed Changes

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

File Description
ContainerWithMostWater11Test.java New test class with two test cases covering the basic examples from LeetCode
ContainerWithMostWater11.java Refactored to remove main method, improved Javadoc formatting, and added tag comments

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kobukuro
kobukuro merged commit 1766ec1 into main Nov 12, 2025
7 checks passed
@kobukuro
kobukuro deleted the test/add-container-with-most-water-tests branch November 12, 2025 01:51
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