Skip to content

Commit 51b58c0

Browse files
committed
fix: Added @ignore to the tests
1 parent 157270a commit 51b58c0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

exercises/practice/affine-cipher/src/test/kotlin/AffineCipherTest.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import kotlin.test.Ignore
12
import kotlin.test.Test
23
import kotlin.test.assertEquals
34
import kotlin.test.assertFailsWith
@@ -7,52 +8,67 @@ class AffineCipherTest {
78
@Test
89
fun `encode yes`() = assertEquals("xbt", AffineCipher.encode("yes", 5, 7))
910

11+
@Ignore
1012
@Test
1113
fun `encode no`() = assertEquals("fu", AffineCipher.encode("no", 15, 18))
1214

15+
@Ignore
1316
@Test
1417
fun `encode OMG`() = assertEquals("lvz", AffineCipher.encode("OMG", 21, 3))
1518

19+
@Ignore
1620
@Test
1721
fun `encode O M G`() = assertEquals("hjp", AffineCipher.encode("O M G", 25, 47))
1822

23+
@Ignore
1924
@Test
2025
fun `encode mindblowingly`() = assertEquals("rzcwa gnxzc dgt", AffineCipher.encode("mindblowingly", 11, 15))
2126

27+
@Ignore
2228
@Test
2329
fun `encode numbers`() = assertEquals("jqgjc rw123 jqgjc rw", AffineCipher.encode("Testing,1 2 3, testing.", 3, 4))
2430

31+
@Ignore
2532
@Test
2633
fun `encode deep thought`() = assertEquals("iynia fdqfb ifje", AffineCipher.encode("Truth is fiction.", 5, 17))
2734

35+
@Ignore
2836
@Test
2937
fun `encode all letters`() = assertEquals("swxtj npvyk lruol iejdc blaxk swxmh qzglf", AffineCipher.encode("The quick brown fox jumps over the lazy dog.", 17, 33))
3038

39+
@Ignore
3140
@Test
3241
fun `encode with a not coprime to m`() {
3342
assertFailsWith<IllegalArgumentException>("a and m must be coprime.") {
3443
AffineCipher.encode("This is a test.", 6, 17)
3544
}
3645
}
3746

47+
@Ignore
3848
@Test
3949
fun `decode exercism`() = assertEquals("exercism", AffineCipher.decode("tytgn fjr", 3, 7))
4050

51+
@Ignore
4152
@Test
4253
fun `decode a sentence`() = assertEquals("anobstacleisoftenasteppingstone", AffineCipher.decode("qdwju nqcro muwhn odqun oppmd aunwd o", 19, 16))
4354

55+
@Ignore
4456
@Test
4557
fun `decode numbers`() = assertEquals("testing123testing", AffineCipher.decode("odpoz ub123 odpoz ub", 25, 7))
4658

59+
@Ignore
4760
@Test
4861
fun `decode all the letters`() = assertEquals("thequickbrownfoxjumpsoverthelazydog", AffineCipher.decode("swxtj npvyk lruol iejdc blaxk swxmh qzglf", 17, 33))
4962

63+
@Ignore
5064
@Test
5165
fun `decode with no spaces in input`() = assertEquals("thequickbrownfoxjumpsoverthelazydog", AffineCipher.decode("swxtjnpvyklruoliejdcblaxkswxmhqzglf", 17, 33))
5266

67+
@Ignore
5368
@Test
5469
fun `decode with too many spaces`() = assertEquals("jollygreengiant", AffineCipher.decode("vszzm cly yd cg qdp", 15, 16))
5570

71+
@Ignore
5672
@Test
5773
fun `decode with a not coprime to m`() {
5874
assertFailsWith<IllegalArgumentException>("a and m must be coprime.") {

0 commit comments

Comments
 (0)