Commit aaba886
committed
test(server): update ParamsFromJsonCmpl expectations to b9739 schema behavior
b9739's server-schema validation changed two behaviors that the existing tests
encoded from an earlier llama.cpp:
- negative n_discard is now range-checked (0 <= value <= INT32_MAX) and throws,
instead of being silently clamped to 0; and
- every field-validation failure is wrapped in std::invalid_argument
("Field '<name>': ...", server-schema.cpp) rather than surfacing the inner
std::runtime_error.
Update the four affected assertions (NDiscard negative now expects a throw;
dry_sequence_breakers / lora / repeat_last_n expect std::invalid_argument) and
the descriptive comment block. With the prior server-schema.cpp test-link fix,
the full C++ suite passes locally (446/446).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SfvSZ76NW4e1qX1PjL4RKq1 parent 38be6db commit aaba886
1 file changed
Lines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1710 | 1710 | | |
1711 | 1711 | | |
1712 | 1712 | | |
1713 | | - | |
1714 | | - | |
1715 | | - | |
1716 | | - | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
1717 | 1717 | | |
1718 | 1718 | | |
1719 | 1719 | | |
| |||
1749 | 1749 | | |
1750 | 1750 | | |
1751 | 1751 | | |
1752 | | - | |
1753 | | - | |
1754 | | - | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
1755 | 1757 | | |
1756 | 1758 | | |
1757 | 1759 | | |
1758 | | - | |
| 1760 | + | |
1759 | 1761 | | |
1760 | 1762 | | |
1761 | 1763 | | |
1762 | | - | |
| 1764 | + | |
1763 | 1765 | | |
1764 | 1766 | | |
1765 | 1767 | | |
1766 | | - | |
| 1768 | + | |
1767 | 1769 | | |
1768 | 1770 | | |
1769 | 1771 | | |
| |||
0 commit comments