Skip to content

Commit

Permalink
fix: Added @ignore to the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DerSimeon committed Oct 14, 2024
1 parent 157270a commit 8617893
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,35 +1,42 @@
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
import kotlin.test.assertTrue
import kotlin.test.assertFalse
import kotlin.test.Ignore

class ArmstrongNumberTest {

@Test
fun `zero is an armstrong number`() = assertTrue(ArmstrongNumber.check(0))

@Ignore
@Test
fun `single digit numbers are armstrong numbers`() = assertTrue(ArmstrongNumber.check(5))

@Ignore
@Test
fun `there are no 2 digit armstrong numbers`() = assertFalse(ArmstrongNumber.check(10))

@Ignore
@Test
fun `three digit number that is an armstrong number`() = assertTrue(ArmstrongNumber.check(153))

@Ignore
@Test
fun `three digit number that is not an armstrong number`() = assertFalse(ArmstrongNumber.check(100))

@Ignore
@Test
fun `four digit number that is an armstrong number`() = assertTrue(ArmstrongNumber.check(9474))

@Ignore
@Test
fun `four digit number that is not an armstrong number`() = assertFalse(ArmstrongNumber.check(9475))

@Ignore
@Test
fun `seven digit number that is an armstrong number`() = assertTrue(ArmstrongNumber.check(9926315))

@Ignore
@Test
fun `seven digit number that is not an armstrong number`() = assertFalse(ArmstrongNumber.check(9926314))
}

0 comments on commit 8617893

Please sign in to comment.