You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fun`encode deep thought`() = assertEquals("iynia fdqfb ifje", AffineCipher.encode("Truth is fiction.", 5, 17))
27
34
35
+
@Ignore
28
36
@Test
29
37
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))
30
38
39
+
@Ignore
31
40
@Test
32
41
fun`encode with a not coprime to m`() {
33
42
assertFailsWith<IllegalArgumentException>("a and m must be coprime.") {
fun`decode all the letters`() = assertEquals("thequickbrownfoxjumpsoverthelazydog", AffineCipher.decode("swxtj npvyk lruol iejdc blaxk swxmh qzglf", 17, 33))
49
62
63
+
@Ignore
50
64
@Test
51
65
fun`decode with no spaces in input`() = assertEquals("thequickbrownfoxjumpsoverthelazydog", AffineCipher.decode("swxtjnpvyklruoliejdcblaxkswxmhqzglf", 17, 33))
52
66
67
+
@Ignore
53
68
@Test
54
69
fun`decode with too many spaces`() = assertEquals("jollygreengiant", AffineCipher.decode("vszzm cly yd cg qdp", 15, 16))
55
70
71
+
@Ignore
56
72
@Test
57
73
fun`decode with a not coprime to m`() {
58
74
assertFailsWith<IllegalArgumentException>("a and m must be coprime.") {
0 commit comments