from pathlib import Path
import json,sys
sys.path.insert(0,str(Path(__file__).parent))
from evaluator import evaluate
cs=json.loads((Path(__file__).parent/'fixtures/cases.json').read_text())['fixtures']
checks=0
for c in cs:
    got=evaluate(c); assert got==c['expected'],(c['id'],got,c['expected']); checks+=6
print(f'PASS {checks}/48')
