ソースを参照

Fix count_analysis

feature/find_holes
Figg 7ヶ月前
コミット
8e74ec6a91
1個のファイルの変更5行の追加3行の削除
  1. 5
    3
      million/analyze/count_analysis.py

+ 5
- 3
million/analyze/count_analysis.py ファイルの表示

@@ -1,3 +1,5 @@
1
+import million.analyze.message_evaluation as msg_val
2
+
1 3
 def check_extra_or_missing_letter(word, reference):
2 4
     len_word = len(word)
3 5
     len_ref = len(reference)
@@ -32,10 +34,10 @@ def check_letter_swap(word, reference):
32 34
 
33 35
 def check_typo(word, reference):
34 36
     if len(reference) == len(word):
35
-        return _check_single_letter_differ(word, reference) or \
36
-            _check_letter_swap(word, reference)
37
+        return check_single_letter_differ(word, reference) or \
38
+            check_letter_swap(word, reference)
37 39
     else:
38
-        return _check_extra_or_missing_letter(word, reference)
40
+        return check_extra_or_missing_letter(word, reference)
39 41
 
40 42
 
41 43
 def find_value_around_index(messages, value, idx, amplitude) -> int:

読み込み中…
キャンセル
保存