restructure project + unit tests
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user