Jim's
Tutorials

Fall 2012
course
navigation

oct 23, testing!

I've put together a testing system for my project. My system traverses the directory tree for files of the form *.test.* or of the form /tests/* and runs each of them using node. The test files themselves all include a JavaScript module I've made which tests an array of pairs for equality, displays any failures and then displays how many succeeded. You can run my tests using:
$ git pull $ ./testRunner.rb
Currently I've built up a fair bit of infrastructure in the form of a type system and I was suffering from not being able to test things because the details of my interpreter are still somewhat in flux. The testing has alleviated this somewhat and I will hopefully be getting getting my interpreter to actually function soon.

parsing

I believe I have found the flaw in my earlier recursive descent parser and intend to make a better version this week. I've also been looking at the CYK and Shunting Yard parsing algorithms and thinking it would be interesting to try implement them.
http://cs.marlboro.edu/ courses/ fall2012/jims_tutorials/ sam/ oct_23,_testing!
last modified Tuesday October 23 2012 12:50 pm EDT