Commit 79e1647
committed
test(dialect): update assertions for new honest-stats API
PR MemPalace#147 renamed compression_stats fields (ratio -> size_ratio,
compressed_chars -> summary_chars) and switched count_tokens to a
word-based heuristic, but the test_dialect tests from PR MemPalace#131 still
assert the old API and fail on main.
Bring TestCompressionStats.test_stats in line with the current dict
keys (size_ratio, summary_chars, summary_tokens_est) and update
test_count_tokens to match the word-based formula, with extra
coverage for the empty and single-word edge cases around max(1, ...).
This unblocks CI on main, which currently fails on these two tests.1 parent 68e3414 commit 79e1647
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| |||
0 commit comments