The retraction code was conceptually duplicated from the assertion code, but implemented pretty differently (when 99% of the time the only necessary difference was the false arg to flake/create). This was causing list retractions to fail b/c lists weren't handled in the retraction code.
This DRY's up the assert/retract code and fixes the list retraction issue. Ideally I would add a test in here for the list retraction issue, and I will attempt to do that. But I don't want to spend too much time on it. I do have an integration test in another project that went from failing to passing with these changes.
The retraction code was conceptually duplicated from the assertion code, but implemented pretty differently (when 99% of the time the only necessary difference was the
false
arg toflake/create
). This was causing list retractions to fail b/c lists weren't handled in the retraction code.This DRY's up the assert/retract code and fixes the list retraction issue. Ideally I would add a test in here for the list retraction issue, and I will attempt to do that. But I don't want to spend too much time on it. I do have an integration test in another project that went from failing to passing with these changes.