-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
abe8a5e
commit 3c52770
Showing
2 changed files
with
46 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import unittest | ||
from arknights_mower.utils.character_recognize import paddle_guess_agent | ||
|
||
|
||
class TestPaddleGuessAgent(unittest.TestCase): | ||
def test_one_match(self): | ||
self.assertEqual(paddle_guess_agent("子"), None) | ||
self.assertEqual(paddle_guess_agent("森"), None) | ||
self.assertEqual(paddle_guess_agent("叶"), None) | ||
|
||
def test_two_match_two(self): | ||
self.assertEqual(paddle_guess_agent("愧影"), "傀影") | ||
|
||
def test_two_match_three(self): | ||
self.assertEqual(paddle_guess_agent("白面"), "白面鸮") | ||
|
||
def test_three_match_three(self): | ||
self.assertEqual(paddle_guess_agent("白面鹃"), "白面鸮") | ||
|
||
def long_match(self): | ||
self.assertEqual(paddle_guess_agent("罗比塔"), "罗比菈塔") | ||
self.assertEqual(paddle_guess_agent("屯艾雅法拉"), "纯烬艾雅法拉") | ||
self.assertEqual(paddle_guess_agent("屯炽艾雅法拉"), "纯烬艾雅法拉") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters