feat: ConnectAI structural hardening and retrieval precision improvements
This commit is contained in:
+10
-2
@@ -77,10 +77,18 @@ describe('Scoring Engine Unit Tests (v2.72.0)', () => {
|
||||
|
||||
// Language boundary split should handle alternating chars
|
||||
expect(tokens).toContain('astra');
|
||||
expect(tokens).toContain('v2');
|
||||
expect(tokens).toContain('v2.0'); // [Structural Fix] 점(.)이 포함된 버전 번호 보존 확인
|
||||
expect(tokens).toContain('한');
|
||||
expect(tokens).toContain('글');
|
||||
// Symbols should be filtered out
|
||||
|
||||
// [New Feature] 기술 기호 보존 확인 (C++, C#, .net)
|
||||
const techText = 'I love C++ and C# programming on .net platform.';
|
||||
const techTokens = tokenize(techText);
|
||||
expect(techTokens).toContain('c++');
|
||||
expect(techTokens).toContain('c#');
|
||||
expect(techTokens).toContain('.net');
|
||||
|
||||
// Symbols should be filtered out (except the preserved ones)
|
||||
expect(tokens.some(t => /^[!@#$]+$/.test(t))).toBe(false);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user