Skip to content

Commit

Permalink
fix: replace ゔ with う゛ (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Jul 27, 2020
1 parent 1723d0d commit 95e359b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def hiraganafy(keyword):


def add_word_to_dict(emoji, keyword, emoji_dict):
word = f':{keyword}\t{emoji}\t記号\t'
valid_keyword = keyword.replace('ゔ', 'う゛')
word = f':{valid_keyword}\t{emoji}\t記号\t'
emoji_dict.append(word)


Expand Down
4 changes: 4 additions & 0 deletions main_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import unittest
import main


class TestStringMethods(unittest.TestCase):

def test_hiraganafy(self):
Expand All @@ -16,6 +17,9 @@ def test_add_word_to_dict(self):
main.add_word_to_dict('🇯🇵', 'にっぽん', emoji_dict)
expected_row = f':にっぽん\t🇯🇵\t記号\t'
self.assertEqual(expected_row, emoji_dict[0])
main.add_word_to_dict('🆚', 'ゔぁーさす', emoji_dict)
valid_row = f':う゛ぁーさす\t🆚\t記号\t'
self.assertEqual(valid_row, emoji_dict[1])


if __name__ == '__main__':
Expand Down
18 changes: 9 additions & 9 deletions tsv/emoji.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@
:あめりか 🗽 記号
:あめりかがっしゅうこく 🇺🇸 記号
:あめりかたいりく 🌎 記号
:あめりかりょうう゛ぁーじんしょしま 🇻🇮 記号
:あめりかりょうさもあ 🇦🇸 記号
:あめりかりょうゔぁーじんしょしま 🇻🇮 記号
:あめりかんふっとぼーる 🏈 記号
:あめーば 🦠 記号
:あらいぐま 🦝 記号
Expand Down Expand Up @@ -394,7 +394,7 @@
:いかりのふきだし 🗯 記号
:いぎりす 🇬🇧 記号
:いぎりすりょういんどひろしちいき 🇮🇴 記号
:いぎりすりょうゔぁーじんしょしま 🇻🇬 記号
:いぎりすりょうう゛ぁーじんしょしま 🇻🇬 記号
:いざかや 🍺 記号
:いざかや 🏮 記号
:いし 👨‍⚕ 記号
Expand Down Expand Up @@ -611,6 +611,12 @@
:うんち 💩 記号
:うんち 💩 記号
:うんめい 🔮 記号
:う゛ぁーさす 🆚 記号
:う゛ぃえす 🆚 記号
:う゛ぃおら 🎻 記号
:う゛ぃらん 🦹 記号
:う゛ぃらん 🦹‍♀ 記号
:う゛ぃらん 🦹‍♂ 記号
:うーん 🤔 記号
:え 🉐 記号
:え 🎨 記号
Expand Down Expand Up @@ -3559,6 +3565,7 @@
:すうじ 🔢 記号
:すうじのにゅうりょく 🔢 記号
:すうじのにゅうりょく 🔢 記号
:すう゛ぁーるばるしょしまおよびやんまいえんしま 🇸🇯 記号
:すかいだいびんぐ 🪂 記号
:すかる ☠ 記号
:すかる 💀 記号
Expand Down Expand Up @@ -3802,7 +3809,6 @@
:すわる 🧎 記号
:すわる 🧎‍♀ 記号
:すわる 🧎‍♂ 記号
:すゔぁーるばるしょしまおよびやんまいえんしま 🇸🇯 記号
:すーだん 🇸🇩 記号
:すーつ 🕴 記号
:すーつけーす 🛄 記号
Expand Down Expand Up @@ -8253,9 +8259,3 @@
:わーい 😃 記号
:わーい 😄 記号
:わーい 😝 記号
:ゔぁーさす 🆚 記号
:ゔぃえす 🆚 記号
:ゔぃおら 🎻 記号
:ゔぃらん 🦹 記号
:ゔぃらん 🦹‍♀ 記号
:ゔぃらん 🦹‍♂ 記号

0 comments on commit 95e359b

Please sign in to comment.