Skip to content

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

test: cover macro punctuation jointness ownership review

Steven Enamakel3a34b84f45d8
diff --git a/scripts/__tests__/process-statics.test.mjs b/scripts/__tests__/process-statics.test.mjs
index cd9fbbc8ec..777bfcb226 100644
--- a/scripts/__tests__/process-statics.test.mjs
+++ b/scripts/__tests__/process-statics.test.mjs
@@ -335,3 +335,12 @@ test("numeric and supplementary Unicode macro token boundaries remain distinct",
assert.equal(reviewChanges(before, after, []).length, 1);
}
});
+
+test("macro punctuation jointness cannot change without ownership review", () => {
+ for (const [left, right] of [["a.. =b", "a..=b"], [".. =", "..="], ["# $", "#$"], ["1e +2", "1e+2"]]) {
+ const before = scan(`static X: ty!(${left}) = x;`);
+ const after = scan(`static X: ty!(${right}) = x;`);
+ assert.notEqual(before[0].type, after[0].type, left);
+ assert.equal(reviewChanges(before, after, []).length, 1);
+ }
+});