From 4703be9828abcc2b453913720b92e5f7aadd3c4d Mon Sep 17 00:00:00 2001 From: Okiki Ojo Date: Sat, 7 Mar 2026 23:56:28 -0500 Subject: [PATCH] test(TextSource): clarify delegation behavior in custom implementation tests Signed-off-by: Okiki Ojo --- text_source_test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/text_source_test.ts b/text_source_test.ts index 9413ee2..b8dbd46 100644 --- a/text_source_test.ts +++ b/text_source_test.ts @@ -179,6 +179,9 @@ describe('TextSource — custom implementation', () => { this.length = str.length; } + // These methods intentionally delegate straight to the backing string so + // the tests stay focused on interface conformance, not on inventing a new + // text model with subtly different semantics. charCodeAt(index: number): number { return this._str.charCodeAt(index); } -- 2.51.2