mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-08-01 18:49:39 +08:00
@ -1,13 +1,14 @@
|
||||
package com.thealgorithms.maths;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class HarshadNumberTest {
|
||||
|
||||
@Test
|
||||
public void harshadNumber() {
|
||||
|
||||
|
||||
assertTrue(HarshadNumber.isHarshad(18));
|
||||
assertFalse(HarshadNumber.isHarshad(-18));
|
||||
assertFalse(HarshadNumber.isHarshad(19));
|
||||
|
Reference in New Issue
Block a user