mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-30 17:00:23 +08:00
fix: 把误删的 test 加回 1.1.70
恢复 bash/identity/override 三份测试,补上 boot-locate,并按当前 ChatML 布局改断言。版本仍是 1.1.70。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
a5dcbb02d8
commit
55f1431a38
3 files changed
+38
-7
No files matched your search
@@ -7,6 +7,7 @@ import {
|
||||
ALL_PATCHES,
|
||||
commitOverrideOnApply,
|
||||
defaultOverrideText,
|
||||
groupPatchesForDisplay,
|
||||
looksLikePluginDefault,
|
||||
seedPromptInjectAtBoot,
|
||||
} from "../lib/core.js";
|
||||
@@ -100,3 +101,17 @@ test("patch 87 normalizes hang needle to LF", () => {
|
||||
assert.match(joined, /replace\(\/\\r\\n\/g/);
|
||||
assert.match(joined, /\[dsh-purge-87\]/);
|
||||
});
|
||||
|
||||
test("dead hang and official phase-1 rows are not separate patches", () => {
|
||||
assert.equal(ALL_PATCHES.some((item) => item.id === 81), false);
|
||||
assert.equal(ALL_PATCHES.some((item) => item.id === 89), false);
|
||||
});
|
||||
|
||||
test("display grouping collapses hang 87+88 into one row", () => {
|
||||
const rows = groupPatchesForDisplay(ALL_PATCHES, { 87: "applied", 88: "applied" });
|
||||
const hang = rows.find((row) => row.id === 87);
|
||||
assert.ok(hang);
|
||||
assert.deepEqual(hang.ids, [87, 88]);
|
||||
assert.equal(hang.status, "applied");
|
||||
assert.equal(rows.some((row) => row.id === 88), false);
|
||||
});
|
||||
Reference in new issue
Block a user