eighthill / Slime_Mold_Simulation

A student project simulating smile mold🧫
MIT License
6 stars 0 forks source link

Unit tests #71

Closed eighthill closed 8 months ago

eighthill commented 8 months ago

Added Unit Tests to a new file in another folder: tests/test_simulation.py

Tests are running properly and the import issue has been resolved. I had to make a small adjustment to the rotate_towards_sensor() method. We now normalize the angles so they don't turn into negative values, this led to problems in testing before. Also I had to comment out numba, as numba and pytest supposedly both rewrite the bytecode. I recommend that we keep numba in the code for using the actual program and just comment it out whenever we need to rerun tests.