From e96bea98d3d39f540f58d99683e9791e2c6659cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Thu, 8 Oct 2026 23:17:01 -0400 Subject: [PATCH] Site: shorter test comment; comment check covers the site --- site/test/order.test.ts | 1 - tests/scripts/comments.py | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/site/test/order.test.ts b/site/test/order.test.ts index 2deca19..7a30c24 100644 --- a/site/test/order.test.ts +++ b/site/test/order.test.ts @@ -9,7 +9,6 @@ test("blocks apart on screen add no constraint, so no false cycle", () => { const list = [desk, box(0, 2, 0.5, 1, 1, 1), box(1, 0, 0.5, 2, 1, 1), box(0, 1, 0.5, 2, 1, 1)]; const drawn = order(list); assert.equal(drawn[0], 0, "the desk is drawn first"); - // C (index 3) covers A (index 1) only from behind A. assert.ok(drawn.indexOf(3) < drawn.indexOf(1)); }); diff --git a/tests/scripts/comments.py b/tests/scripts/comments.py index af3c78f..a85a59e 100755 --- a/tests/scripts/comments.py +++ b/tests/scripts/comments.py @@ -21,6 +21,11 @@ PATTERNS = [ "patches/**/*.patch", "tests/**/*.swift", "apps/*/web/src/**/*.js", + "site/src/**/*.ts", + "site/src/**/*.css", + "site/test/**/*.ts", + "site/video/**/*.py", + "site/video/**/*.sh", ] LINE_COMMENT = { ".rs": re.compile(r"^\s*//[!/]?\s?(.*)$"), @@ -29,6 +34,8 @@ LINE_COMMENT = { ".nsi": re.compile(r"^\s*;\s?(.*)$"), ".swift": re.compile(r"^\s*//\s?(.*)$"), ".js": re.compile(r"^\s*(?://\s?(.*)|/\*\*?\s?(.*?)\s*\*/)$"), + ".ts": re.compile(r"^\s*(?://\s?(.*)|/\*\*?\s?(.*?)\s*\*/)$"), + ".css": re.compile(r"^\s*/\*\s?(.*?)\s*\*/$"), }