Commit 5d31147
committed
feat(test): Add unit tests for FuzzyFinder
This commit introduces a new test file, `FuzzyFinderTest.kt`, to validate the string scoring logic of the `FuzzyFinder` utility.
Two main test cases have been added:
- `testAllFuzzyScenarios`: This test covers a range of matching scenarios, including exact, partial, consecutive, scattered, and acronym matches. It also tests handling of special characters and spacing.
- `testComparativeHeuristics`: This test specifically verifies that a consecutive character match (e.g., "app" in "application") scores higher than a scattered match (e.g., "app" in "a_p_p_lication"), ensuring the scoring heuristic behaves as expected.1 parent 56a076b commit 5d31147
File tree
1 file changed
+48
-0
lines changed- app/src/test/java/com/github/codeworkscreativehub/fuzzywuzzy
1 file changed
+48
-0
lines changedLines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
0 commit comments