Made changes to the code to correct the Logic of Armstrong Number (#4619)

* Made changes to the code to correct the Logic of Armstrong Number

* Resolved the issues

* Trying to resolve the Linter error by changing Variable name

* Changed Variable Names : trying to resolve Clang error
This commit is contained in:
Appari Satya Barghav
2023-10-04 20:02:49 +05:30
committed by GitHub
parent 4fab7adfaa
commit a3a2d845d5
2 changed files with 25 additions and 16 deletions

View File

@ -5,8 +5,8 @@ import static org.assertj.core.api.Assertions.assertThat;
import org.junit.jupiter.api.Test;
/**
* @author Vivek
* @since 15/03/22
* @author satyabarghav
* @since 4/10/2023
*/
class ArmstrongTest {
@ -17,7 +17,9 @@ class ArmstrongTest {
assertThat(armstrong.isArmstrong(1)).isTrue();
assertThat(armstrong.isArmstrong(153)).isTrue();
assertThat(armstrong.isArmstrong(371)).isTrue();
assertThat(armstrong.isArmstrong(1634)).isFalse();
assertThat(armstrong.isArmstrong(1634)).isTrue();
assertThat(armstrong.isArmstrong(200)).isFalse();
assertThat(armstrong.isArmstrong(548834)).isTrue();
assertThat(armstrong.isArmstrong(9474)).isTrue();
}
}