mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-08-01 10:15:32 +08:00
Format code with prettier (#3375)
This commit is contained in:
@ -4,24 +4,24 @@ import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class LeastCommonMultipleTest {
|
||||
|
||||
/*
|
||||
* Test for first number greater than second number
|
||||
*/
|
||||
@Test
|
||||
public void testForFirst() {
|
||||
int result = LeastCommonMultiple.lcm(6,8);
|
||||
int expected = 24;
|
||||
Assertions.assertEquals(result, expected);
|
||||
}
|
||||
|
||||
/*
|
||||
* Test for second number greater than first number
|
||||
*/
|
||||
@Test
|
||||
public void testForSecond() {
|
||||
int result = LeastCommonMultiple.lcm(8,6);
|
||||
int expected = 24;
|
||||
Assertions.assertEquals(result, expected);
|
||||
}
|
||||
* Test for first number greater than second number
|
||||
*/
|
||||
@Test
|
||||
public void testForFirst() {
|
||||
int result = LeastCommonMultiple.lcm(6, 8);
|
||||
int expected = 24;
|
||||
Assertions.assertEquals(result, expected);
|
||||
}
|
||||
|
||||
/*
|
||||
* Test for second number greater than first number
|
||||
*/
|
||||
@Test
|
||||
public void testForSecond() {
|
||||
int result = LeastCommonMultiple.lcm(8, 6);
|
||||
int expected = 24;
|
||||
Assertions.assertEquals(result, expected);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user