git-practice/check_cart.py
Kode n’amashusho y’umwimerere ya porogaramu bigumana ururimi rwabyo. Isomo ribisobanura mu rurimi wahisemo.
from cart import calc
assert calc({"type": "book", "price": 100}) == 90
assert calc({"type": "other", "price": 100}) == 100