Skip to content

Commit

Permalink
test: Add test to verify implementation of reverse integer method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishwajeet-29-pro committed Sep 12, 2024
1 parent ed05b18 commit 167c42a
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package org.practice.dsa.leet_code;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;

public class ReverseIntegerTest {
private final QuestionReverseInteger reverseInteger = new QuestionReverseInteger();

@Test
public void testReverseInteger() {
int input = 123;
int expected = 321;
int actual = reverseInteger.reverse(input);
assertEquals(expected, actual);
}
}

0 comments on commit 167c42a

Please sign in to comment.