Update VBA modules and test formatting

- Fix test result indicators encoding (use ?? instead of Unicode symbols)
- Add missing newlines at end of files
- Add new VBA module files for main functionality

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Misaka_Company
2026-04-24 10:20:00 +08:00
parent 88b85c47cf
commit c0f8d8163d
10 changed files with 1343 additions and 5 deletions

View File

@@ -47,10 +47,10 @@ Sub TestClassifierLogic()
If passed Then
passedCount = passedCount + 1
results = results & "[ PASS] Test " & (i + 1) & ": " & expected & vbCrLf
results = results & "[?? PASS] Test " & (i + 1) & ": " & expected & vbCrLf
Else
failedCount = failedCount + 1
results = results & "[ FAIL] Test " & (i + 1) & vbCrLf
results = results & "[?? FAIL] Test " & (i + 1) & vbCrLf
results = results & " Input: " & Left(CStr(testCases(i)(0)), 50) & "..." & vbCrLf
results = results & " Expected: " & expected & vbCrLf
results = results & " Actual: " & actual & vbCrLf & vbCrLf
@@ -160,7 +160,7 @@ Sub TestPerformance()
' Measure performance
startTime = Timer
For i = 1 To count
classifier.Classify(testStrings(i))
classifier.Classify (testStrings(i))
Next i
endTime = Timer
@@ -198,4 +198,4 @@ Sub TestSingleInput()
MsgBox "型号: " & inputStr & vbCrLf & _
"分类: " & result, vbInformation, "测试结果"
End If
End Sub
End Sub