Commit 6ce79d6
fix: Fix test failures in OVSM and AI service
Fixed two test failures:
1. **OVSM varargs test** (crates/ovsm/tests/varargs_tests.rs)
- Issue: Test used `product` as function name, which conflicts with built-in `product` function
- Fix: Renamed test function to `multiply-all` to avoid name collision
- Result: test_varargs_with_accumulator now passes
2. **AI service endpoint detection** (src/services/ai_service.rs)
- Issue: `with_api_url()` didn't check if custom URL is OpenAI-compatible
- Fix: Added OpenAI-compatibility check for custom URLs (contains "/v1/chat/completions" or "openai.com")
- Result: test_endpoint_detection now passes correctly
Test Results:
- OVSM: 14/14 varargs tests passing ✅
- OSVM lib: 456/456 tests passing ✅
- Total: 470 tests passing, 0 failures ✅
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 879e2f6 commit 6ce79d6
2 files changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
181 | 186 | | |
182 | 187 | | |
183 | 188 | | |
| |||
0 commit comments