mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-08-01 07:16:24 +08:00
Format code with prettier (#3375)
This commit is contained in:
@ -1,34 +1,32 @@
|
||||
package com.thealgorithms.maths;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class PronicNumberTest {
|
||||
|
||||
@Test
|
||||
void testForPronicNumber() {
|
||||
|
||||
//given
|
||||
int number = 30;
|
||||
|
||||
//when
|
||||
boolean result = PronicNumber.isPronic(number);
|
||||
|
||||
|
||||
//then
|
||||
assertTrue(result);
|
||||
}
|
||||
|
||||
@Test
|
||||
void testForNonPronicNumber() {
|
||||
|
||||
//given
|
||||
int number = 21;
|
||||
|
||||
//when
|
||||
boolean result = PronicNumber.isPronic(number);
|
||||
|
||||
|
||||
//then
|
||||
assertFalse(result);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user