jared-hughes / DesThree

Desmos bindings for three.js
3 stars 0 forks source link

Add testing #19

Closed jared-hughes closed 3 years ago

jared-hughes commented 3 years ago

Shouldn't be too difficult — can fetch a list of graph states to test from URLs like http://saved-work.desmos.com/calc-states/production/znvwjvv8wg from the README then call Calc.setState(state) on each. Generate test rig code that can be pasted into the browser console or maybe load desmos.com in an iframe.

Main desire would be to get 100% line coverage from tests. A few days back, I pushed a commit that accidentally renamed Dodecahedron to Dodeahedron; that would be caught by a test that covers the DodecahedronGeometry class by drawing a dodecahedron.