We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d97d0b commit c750283Copy full SHA for c750283
src/test/java/com/thealgorithms/maths/AutomorphicNumberTest.java
@@ -0,0 +1,16 @@
1
+package com.thealgorithms.maths;
2
+
3
+import org.junit.jupiter.api.Test;
4
5
+import static org.assertj.core.api.Assertions.assertThat;
6
7
+public class AutomorphicNumberTest{
8
9
+ @Test
10
+ void testAutomorphicNumber(){
11
+ assertThat(AutomorphicNumber.isAutomorphic(625)).isTrue();
12
+ assertThat(AutomorphicNumber.isAutomorphic(144)).isFalse();
13
+ assertThat(AutomorphicNumber.isAutomorphic(9376)).isTrue();
14
+ assertThat(AutomorphicNumber.isAutomorphic(169)).isFalse();
15
+ }
16
+}
0 commit comments