Sfoglia il codice sorgente

Fix count_analysis

feature/find_holes
Figg 9 mesi fa
parent
commit
8e74ec6a91
1 ha cambiato i file con 5 aggiunte e 3 eliminazioni
  1. 5
    3
      million/analyze/count_analysis.py

+ 5
- 3
million/analyze/count_analysis.py Vedi File

@@ -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:

Loading…
Annulla
Salva