Просмотр исходного кода

atbash-cipher: update test suite

Samuel Warner 8 лет назад
Родитель
Сommit
17b377249a
2 измененных файлов: 4 добавлений и 2 удалений
  1. 1
    0
      exercises/atbash-cipher/.meta/version
  2. 3
    2
      exercises/atbash-cipher/src/test/java/AtbashTest.java

+ 1
- 0
exercises/atbash-cipher/.meta/version Просмотреть файл

1
+1.0.0

+ 3
- 2
exercises/atbash-cipher/src/test/java/AtbashTest.java Просмотреть файл

21
         @Parameters(name = "{index}: expected plaintext \"{0}\" to encode to ciphertext \"{1}\".")
21
         @Parameters(name = "{index}: expected plaintext \"{0}\" to encode to ciphertext \"{1}\".")
22
         public static Collection<Object[]> data() {
22
         public static Collection<Object[]> data() {
23
             return Arrays.asList(new Object[][]{
23
             return Arrays.asList(new Object[][]{
24
-                    {"no", "ml"},
25
                     {"yes", "bvh"},
24
                     {"yes", "bvh"},
25
+                    {"no", "ml"},
26
                     {"OMG", "lnt"},
26
                     {"OMG", "lnt"},
27
+                    {"O M G", "lnt"},
27
                     {"mindblowingly", "nrmwy oldrm tob"},
28
                     {"mindblowingly", "nrmwy oldrm tob"},
28
-                    {"Testing, 1 2 3, testing.", "gvhgr mt123 gvhgr mt"},
29
+                    {"Testing,1 2 3, testing.", "gvhgr mt123 gvhgr mt"},
29
                     {"Truth is fiction.", "gifgs rhurx grlm"},
30
                     {"Truth is fiction.", "gifgs rhurx grlm"},
30
                     {"The quick brown fox jumps over the lazy dog.", "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt"}
31
                     {"The quick brown fox jumps over the lazy dog.", "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt"}
31
             });
32
             });