Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(process-statics): cover comparisons and shifts in const blocks

Steven Enamakel25b909f74a37
diff --git a/scripts/__tests__/process-statics.test.mjs b/scripts/__tests__/process-statics.test.mjs
index a70a833392..d3affcc86b 100644
--- a/scripts/__tests__/process-statics.test.mjs
+++ b/scripts/__tests__/process-statics.test.mjs
@@ -121,6 +121,9 @@ test("const generic equality and function arrows do not terminate a type", () =>
"Wrapper<{1==1},fn()->usize>",
);
});
+test("comparisons and shifts inside const blocks are not generic brackets", () => {
+ assert.equal(scan("static X: Wrapper<{1 << 2}, {1 < 2}> = x;")[0].type, "Wrapper<{1<<2},{1<2}>");
+});
test("repository scan reads the merge base, enforces records, and fails without history", () => {
const root = mkdtempSync(join(tmpdir(), "process-statics-"));
const git = (...args) =>