Closed 3ddiehead closed 3 years ago
Tests finished. We should talk about some of the conventions to follow when we start on compiling the tests in .js files into a single file. I've thought on some potential problems and solutions.
The auto testing wasn't passing because we didn't have a newline at the end of whatever js file preceded treeTrimmingTest.js in the build file, so the first line with the function declaration ended up appended to the end of a commented out line!
Also in order to have the test actually execute from the command line, we need to put a call to it at the end of the .js file.
Added definition of Match-Phrase from Elfner 2012 and changed "removes silent nodes" to "removes silent terminals."