ECE-492-SnakesAndAdders / python-interpreter

C3Python is an entirely custom-made Python interpreter designed to run on proprietary hardware.
Creative Commons Attribution 4.0 International
0 stars 0 forks source link

First Batch of Tests is Complete and All Pass #8

Closed ijoffe closed 8 months ago

ijoffe commented 8 months ago

I have written unit tests for each and every operator (~40 for each of the ~25 operators). The interpreter seems to match the output of the standard Python shell on each test. Through this process, I found and fixed a few bugs.

We can add more unit tests later if I missed any cases. I will also add integration tests in the future that combine multiple operators into one expression to tests things like associativity and precedence. But, I think it's good to get this set of tests on main for now.

ijoffe commented 8 months ago

No merge conflicts