remove redundant isVerbNonIndependent and consolidate test lanes

- drop always-true isVerbNonIndependent export; collapse shouldMerge branch
- remove node-compat exclusion list from bun-src-full lane
- simplify test:fast (drop test:runtime:compat), test:env, test:smoke:dist scripts
- rename test:launcher:env:src -> test:env in docs
This commit is contained in:
2026-07-14 19:57:50 -07:00
parent 9f4888293b
commit 8711cf1a48
6 changed files with 16 additions and 31 deletions
+7
View File
@@ -0,0 +1,7 @@
import assert from 'node:assert/strict';
import test from 'node:test';
import * as tokenMerger from './token-merger';
test('does not expose the redundant verb non-independent predicate', () => {
assert.equal('isVerbNonIndependent' in tokenMerger, false);
});
+1 -8
View File
@@ -94,10 +94,6 @@ export function isVerb(tok: Token): boolean {
return [PartOfSpeech.verb, PartOfSpeech.bound_auxiliary].includes(tok.partOfSpeech);
}
export function isVerbNonIndependent(): boolean {
return true;
}
export function canReceiveAuxiliary(tok: Token): boolean {
return [PartOfSpeech.verb, PartOfSpeech.bound_auxiliary, PartOfSpeech.i_adjective].includes(
tok.partOfSpeech,
@@ -127,10 +123,7 @@ export function shouldMerge(lastStandaloneToken: Token, token: Token): boolean {
if (isAuxVerb(token)) {
return true;
}
if (isContinuativeForm(lastStandaloneToken) && isVerbSuffix(token)) {
return true;
}
if (isVerbSuffix(token) && isVerbNonIndependent()) {
if (isVerbSuffix(token)) {
return true;
}
}