Site: shorter test comment; comment check covers the site
This commit is contained in:
2 files changed
+7
-1
No files matched your search
@@ -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 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);
|
const drawn = order(list);
|
||||||
assert.equal(drawn[0], 0, "the desk is drawn first");
|
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));
|
assert.ok(drawn.indexOf(3) < drawn.indexOf(1));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,11 @@ PATTERNS = [
|
|||||||
"patches/**/*.patch",
|
"patches/**/*.patch",
|
||||||
"tests/**/*.swift",
|
"tests/**/*.swift",
|
||||||
"apps/*/web/src/**/*.js",
|
"apps/*/web/src/**/*.js",
|
||||||
|
"site/src/**/*.ts",
|
||||||
|
"site/src/**/*.css",
|
||||||
|
"site/test/**/*.ts",
|
||||||
|
"site/video/**/*.py",
|
||||||
|
"site/video/**/*.sh",
|
||||||
]
|
]
|
||||||
LINE_COMMENT = {
|
LINE_COMMENT = {
|
||||||
".rs": re.compile(r"^\s*//[!/]?\s?(.*)$"),
|
".rs": re.compile(r"^\s*//[!/]?\s?(.*)$"),
|
||||||
@@ -29,6 +34,8 @@ LINE_COMMENT = {
|
|||||||
".nsi": re.compile(r"^\s*;\s?(.*)$"),
|
".nsi": re.compile(r"^\s*;\s?(.*)$"),
|
||||||
".swift": re.compile(r"^\s*//\s?(.*)$"),
|
".swift": re.compile(r"^\s*//\s?(.*)$"),
|
||||||
".js": re.compile(r"^\s*(?://\s?(.*)|/\*\*?\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*\*/$"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user