search/filter_kanji: keep order when deduplicating
All checks were successful
Build and test / evals (push) Successful in 13m33s

This commit is contained in:
2026-03-02 17:37:45 +09:00
parent bb44bf786a
commit d14e3909d4
2 changed files with 32 additions and 1 deletions

View File

@@ -26,4 +26,27 @@ void main() {
expect(result.join(), '漢字地字');
});
test('Filter kanji - deduplicate', () async {
final connection = await setupDatabaseConnection();
final result = await connection.filterKanji([
'a',
'b',
'c',
'',
'',
'',
'',
'',
'',
'.',
'!',
'@',
';',
'',
], deduplicate: true);
expect(result.join(), '漢字地');
});
}