Skip to content

Commit

Permalink
fix: Improve suggestions when using weights. (#2387)
Browse files Browse the repository at this point in the history
- updated test Dutch dictionary
- fixed number of suggestions returned.
- Add a compound symbol so it is possible to show compound breaks.

* refactor: remove duplicate test code.
* Update walker.test.ts
* Test word separation and CompoundWordsMethod
* Util: add replaceAll function
* Take compound words into account when sorting.
* fix: fix number of suggestions returned
* Update Reader.test.ts
* Update suggestionsEmitter.test.ts.snap
* Update find.dutch.test.ts
  • Loading branch information
Jason3S committed Feb 3, 2022
1 parent 377f9d0 commit c9d070d
Show file tree
Hide file tree
Showing 34 changed files with 127,606 additions and 88,753 deletions.
18 changes: 1 addition & 17 deletions .vscode/launch.json
@@ -1,17 +1 @@
{
"configurations": [
{
"name": "Launch Synlink",
"program": "${file}",
"args": [
"packages", "test-packages"
],
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"type": "pwa-node"
}
]

}
{}
2 changes: 1 addition & 1 deletion cspell.code-workspace
Expand Up @@ -63,7 +63,7 @@
"request": "launch",
"name": "Test: Jest current-file",
"program": "${fileWorkspaceFolder}/node_modules/.bin/jest",
"cwd": "${fileDirname}",
"cwd": "${fileWorkspaceFolder}",
"args": [
"--runInBand",
"${fileBasename}"
Expand Down

0 comments on commit c9d070d

Please sign in to comment.