mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-05 08:17:33 +08:00
16 lines
373 B
Java
16 lines
373 B
Java
package com.thealgorithms.maths;
|
|
|
|
import static org.assertj.core.api.Assertions.assertThat;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
public class TestArmstrong {
|
|
|
|
@Test
|
|
public void testArmstrong() {
|
|
Armstrong armstrong = new Armstrong();
|
|
assertThat(armstrong.isArmstrong(371)).isTrue();
|
|
assertThat(armstrong.isArmstrong(200)).isFalse();
|
|
}
|
|
}
|