Whole file

bastikr/boolean.py

The author described this change as Fix absorption issue #113 #112 #111. It counts as a record because the check below fails on the code as it stood at 431e5226c and passes on 228f005f2, with nothing else changed between the two runs.

Fix saved2024-11-15
Sharing licenceBSD-2-Clause · LICENSE.txt
Change size+6 1

What the code was meant to do, written into the code itself as a save note

Fix absorption issue #113 #112 #111

The change

14911491 i -= 1
14921492 continue
14931493 else:
1494- args[j] = b
1494+ if b in args:
1495+ del args[j]
1496+ if j < i:
1497+ i -= 1
1498+ else:
1499+ args[j] = b
14951500 j += 1
14961501 continue
14971502

The check that tells the two apart

failpass·boolean/test_boolean.py::DualBaseTestCase::test_absorption_invariant_to_order

Check file boolean/test_boolean.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before it431e5226c269e4c863cc851b971ca5e89fda04d7
Broken version dated2022-06-04
Moduleboolean.boolean
Units changedDualBase
Fingerprint327ccfcf29deb3e4
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in bastikr/boolean.py