test(budget): a collapsed sub-group last in its group keeps its subtotal (#446)
Review 25487, point 2 (R13): [A, z, Vide] gives z, Vide, A; dropping the subtotal of an empty block at the final flush turned no test red. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0df60f6042
commit
a2c4fd4685
1 changed files with 5 additions and 0 deletions
|
|
@ -86,6 +86,11 @@ describe("reorderRows — subtotals at the bottom (issue #424)", () => {
|
|||
expect(names(reorderRows(rows, false))).toEqual(["Vide", "z", "A"]);
|
||||
});
|
||||
|
||||
it("a collapsed sub-group last in its group keeps its subtotal, before the group's own", () => {
|
||||
const rows: Row[] = [sub("A", 0), leaf("z", 1), sub("Vide", 1)];
|
||||
expect(names(reorderRows(rows, false))).toEqual(["z", "Vide", "A"]);
|
||||
});
|
||||
|
||||
it("the same block, followed by a sibling root: the root closes after its own rows", () => {
|
||||
const block: Row[] = [sub("A", 0), sub("Vide", 1), leaf("z", 1)];
|
||||
// A root group...
|
||||
|
|
|
|||
Loading…
Reference in a new issue