mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
fix: reconcile hidden walls during Optimize
Issue: #296 User-Visible: yes
This commit is contained in:
committed by
claude[bot]
parent
033ad11bf7
commit
89ac96a8af
@@ -87,9 +87,6 @@ test('issue 281 disables the old zero-range handle and enables it after Optimize
|
||||
|
||||
test('issue 281 leaves unsafe outer duplicates as hard stops', () => {
|
||||
const variants = [];
|
||||
const partial = clone(source);
|
||||
partial.spaces[0].partitions[0].b = [0.4, 0];
|
||||
variants.push(partial);
|
||||
const unknown = clone(source);
|
||||
unknown.spaces[0].partitions[0].future_semantics = true;
|
||||
variants.push(unknown);
|
||||
@@ -109,6 +106,14 @@ test('issue 281 leaves unsafe outer duplicates as hard stops', () => {
|
||||
}
|
||||
});
|
||||
|
||||
test('issue 296 removes a shorter outer duplicate which is entirely hidden', () => {
|
||||
const partial = clone(source);
|
||||
partial.spaces[0].partitions[0].b = [0.4, 0];
|
||||
const result = optimizePlans(partial, {});
|
||||
assert.equal(result.config.spaces[0].partitions
|
||||
?.some((partition) => partition.id === 'top-left') ?? false, false);
|
||||
});
|
||||
|
||||
test('issue 281 private exact fixture has no enabled zero-range handle', (t) => {
|
||||
const path = 'C:\\Temp\\44.json';
|
||||
if (!existsSync(path)) return t.skip('private #281 fixture is not present');
|
||||
|
||||
Reference in New Issue
Block a user