(s: string)
| 2 | import { splitForStream, type Piece } from '../src/bot/chunk.ts'; |
| 3 | |
| 4 | const balancedFences = (s: string) => (s.match(/```/g)?.length ?? 0) % 2 === 0; |
| 5 | const totalConsumed = (ps: Piece[]) => ps.reduce((n, p) => n + p.consumed, 0); |
| 6 | |
| 7 | describe('splitForStream', () => { |