Merge claudedo/15357b9c652545eda0a1226042d7ebc9
This commit is contained in:
@@ -1829,6 +1829,24 @@ public sealed class ExternalMcpServiceTests : IDisposable
|
||||
Assert.Empty(result.PossibleDuplicates);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task AddTask_TitlesSharingOnlyOneWordPlusTheGermanStopwordFuer_AreNotReportedAsDuplicates()
|
||||
{
|
||||
// Regression for the "fur" (never-transliterated) stopword typo: NormalizeTitleWords
|
||||
// transliterates "für" -> "fuer" before the stopword check, so a stopword list containing
|
||||
// "fur" can never filter it. Before the fix these two titles shared "report" and "fuer"
|
||||
// (2 words, 50% of the shorter title) and cleared the duplicate threshold undeservedly;
|
||||
// with "fuer" correctly filtered as filler only "report" remains shared (1 word).
|
||||
var listId = await SeedListAsync();
|
||||
await SeedTaskAsync(listId, "Neuer Report für Bestand", TaskStatus.Idle);
|
||||
var sut = NewService();
|
||||
|
||||
var result = await sut.AddTask(
|
||||
listId, "Anderer Report für Kunden", cancellationToken: CancellationToken.None);
|
||||
|
||||
Assert.Empty(result.PossibleDuplicates);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task AddTask_MoreThanThreeMatches_CapsPossibleDuplicatesAtThree()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user