The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(process-statics): cover numeric token boundaries around exponent signs
Steven Enamakel1bc4aee27012
diff --git a/scripts/__tests__/process-statics.test.mjs b/scripts/__tests__/process-statics.test.mjsindex 777bfcb226..bfdb498417 100644--- a/scripts/__tests__/process-statics.test.mjs+++ b/scripts/__tests__/process-statics.test.mjs@@ -344,3 +344,12 @@ test("macro punctuation jointness cannot change without ownership review", () =>assert.equal(reviewChanges(before, after, []).length, 1);}});++test("numeric token boundaries after exponent signs and before suffixes remain distinct", () => {+ for (const [left, right] of [["1e+ 2", "1e+2"], ["1e- 2", "1e-2"], ["1. e2", "1.e2"]]) {+ 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);+ }+});