restructure project + unit tests

This commit is contained in:
2026-04-13 11:44:26 +02:00
parent 50550a1f06
commit 1fb4d30407
9 changed files with 217 additions and 122 deletions
+22 -1
View File
@@ -1,7 +1,28 @@
## anf.py
# boolean-tools
## install
```
python -m venv .venv
source .venv/bin/activate
pip install -e .
```
## unit tests
```
pip install pytest
pytest
```
### anf.py
Takes a boolean expression with 'not' (!) 'and' (AND) and 'or' (OR) in input and outputs its simplified ANF form (with XOR (⊕) and AND (⸱)).
#### run:
```
anf
```
#### example:
input: