Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiIto committed Oct 31, 2019
1 parent 34dbdf3 commit 2a4eff9
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions test/converter_test.rb
Expand Up @@ -9,38 +9,38 @@ def test_to_chars

def test_help
converter = Pokeberu::Converter.new
expected = <<~TABLE.chomp
|-------------------------------------------------|
| ア | イ | ウ | エ | オ | A | B | C | D | E |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 10 |
|-------------------------------------------------|
| カ | キ | ク | ケ | コ | F | G | H | I | J |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 20 |
|-------------------------------------------------|
| サ | シ | ス | セ | ソ | K | L | M | N | O |
| 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 30 |
|-------------------------------------------------|
| タ | チ | ツ | テ | ト | P | Q | R | S | T |
| 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 40 |
|-------------------------------------------------|
| ナ | ニ | ヌ | ネ | ノ | U | V | W | X | Y |
| 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 50 |
|-------------------------------------------------|
| ハ | ヒ | フ | ヘ | ホ | Z | ? | ! | - | / |
| 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 60 |
|-------------------------------------------------|
| マ | ミ | ム | メ | モ | ¥ | & | 🕒 |☎️ |☕️ |
| 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 70 |
|-------------------------------------------------|
| ヤ | ( | ユ | ) | ヨ | * | # | | ? | ? |
| 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 80 |
|-------------------------------------------------|
| ラ | リ | ル | レ | ロ | 1 | 2 | 3 | 4 | 5 |
| 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 90 |
|-------------------------------------------------|
| ワ | ヲ | ン | ゛ | ゜ | 6 | 7 | 8 | 9 | 0 |
| 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 00 |
|-------------------------------------------------|
expected = <<-TABLE.chomp
|-------------------------------------------------|
| ア | イ | ウ | エ | オ | A | B | C | D | E |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 10 |
|-------------------------------------------------|
| カ | キ | ク | ケ | コ | F | G | H | I | J |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 20 |
|-------------------------------------------------|
| サ | シ | ス | セ | ソ | K | L | M | N | O |
| 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 30 |
|-------------------------------------------------|
| タ | チ | ツ | テ | ト | P | Q | R | S | T |
| 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 40 |
|-------------------------------------------------|
| ナ | ニ | ヌ | ネ | ノ | U | V | W | X | Y |
| 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 50 |
|-------------------------------------------------|
| ハ | ヒ | フ | ヘ | ホ | Z | ? | ! | - | / |
| 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 60 |
|-------------------------------------------------|
| マ | ミ | ム | メ | モ | ¥ | & | 🕒 |☎️ |☕️ |
| 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 70 |
|-------------------------------------------------|
| ヤ | ( | ユ | ) | ヨ | * | # | | ? | ? |
| 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 80 |
|-------------------------------------------------|
| ラ | リ | ル | レ | ロ | 1 | 2 | 3 | 4 | 5 |
| 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 90 |
|-------------------------------------------------|
| ワ | ヲ | ン | ゛ | ゜ | 6 | 7 | 8 | 9 | 0 |
| 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 00 |
|-------------------------------------------------|
TABLE
assert_equal expected, converter.help
end
Expand Down

0 comments on commit 2a4eff9

Please sign in to comment.