Skip to content

Commit

Permalink
Revert "Update comment in `VTerminalLookAndFeel.clampDimensionToTileM…
Browse files Browse the repository at this point in the history
…ultiples(Dimension)` Delete edge case test in `VTerminalLookAndFeelTest`"

This reverts commit 2dec7d7
  • Loading branch information
Valkryst committed Nov 13, 2024
1 parent 45b6230 commit bdaea15
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,17 @@ public void canClampDimensionWidthToHigherMultiple() {
Assertions.assertEquals(tileWidth * 2, dimension.width);
}

@Test
public void canClampDimensionWidthToHigherMultipleWhenWidthIsNearMaxInt() {
final var laf = VTerminalLookAndFeel.getInstance();

var dimension = new Dimension(Integer.MAX_VALUE, tileHeight);
dimension = laf.clampDimensionToTileMultiples(dimension);

Assertions.assertEquals(tileHeight, dimension.height);
Assertions.assertEquals(2147483640, dimension.width);
}

@Test
public void canClampDimensionWidthToLowerMultiple() {
final var laf = VTerminalLookAndFeel.getInstance();
Expand Down

0 comments on commit bdaea15

Please sign in to comment.