Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FindNameByKanji should return None #15

Open
youpong opened this issue Feb 19, 2022 · 1 comment
Open

FindNameByKanji should return None #15

youpong opened this issue Feb 19, 2022 · 1 comment

Comments

@youpong
Copy link
Contributor

youpong commented Feb 19, 2022

バグの説明

以下の条件を同時に満たす引数に対して FindNameByKanji が None を返さない。

  • 存在しない last_name
  • 男性名にも女性名にも存在する first_name

再現手順

下記コードを実行する。

from gimei import Name

print(Name.find_name_by_kanji('未入力 太郎'))
print(Name.find_name_by_kanji('未入力 凛'))

下記の出力を得る。

None
['凛', '凛']

期待した振る舞い

2行目とも同じように None と表示される。

@youpong
Copy link
Contributor Author

youpong commented Feb 19, 2022

#6 を適用しても、上記のバグは再現します。
reproduce even if merge PR #6.

youpong added a commit to youpong/py-gimei that referenced this issue Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant