(text: string)
| 525 | const parts = splitObjcpp(source)!; |
| 526 | expect(parts).not.toBeNull(); |
| 527 | const newlines = (text: string): number[] => [...text].flatMap((ch, k) => (ch === '\n' ? [k] : [])); |
| 528 | for (const part of [parts.cpp, withoutObjcppItems(source, parts.items), parts.sends ?? source]) { |
| 529 | expect(part.length).toBe(source.length); |
| 530 | expect(newlines(part)).toEqual(newlines(source)); |