1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-08-25 06:52:06 +02:00

minor refactoring, dedupe default on

This commit is contained in:
Thomas Wilkerling
2025-04-06 18:38:07 +02:00
parent 91aff88510
commit 0abd307853
69 changed files with 1470 additions and 3991 deletions

View File

@@ -31,9 +31,14 @@ describe("Encoder: Charset", function(){
it("Should have been encoded properly: Default", function(){
const index = new Index({ encoder: Charset.Default });
let index = new Index({ encoder: Charset.Default });
expect(index.encoder.encode("Björn-Phillipp Mayer")).to.eql(
["bjorn", "phillipp", "mayer"]
["bjorn", "philip", "mayer"]
);
index = new Index();
expect(index.encoder.encode("Björn-Phillipp Mayer")).to.eql(
["bjorn", "philip", "mayer"]
);
});
@@ -51,7 +56,7 @@ describe("Encoder: Charset", function(){
const index = new Index({ encoder: Charset.Normalize });
expect(index.encoder.encode("Björn-Phillipp Mayer")).to.eql(
index.encoder.encode("bjorn/phillipp mayer")
index.encoder.encode("bjorn/philip mayer")
);
});