From: Massimiliano Mirra - bard Date: 2004-10-19T05:09:22+09:00 Subject: Re: documentation as source Eivind Eklund writes: > Could people (excepting Nathaniel) that is likely to use the proposed > syntax please speak up? (If there's a lot of people that would use > it, I'm probably wrong.) I'm for any syntax that favours a quick code-test-code cycle. With `quick' I don't mean `edit test file, save test file, switch to class file, edit class file, save test file, switch to shell, run tests', and an `extract parts of the test file' somewhere in between certainly doesn't make it quicker. By `quick' I mean `edit test part, edit class part, run tests'. Currently I do this by writing tests at the end of a class file, wrapped in a: if __FILE__ == $0 or (defined? $TESTING and $TESTING == true) require "test/unit" ... end Just hitting C-c-c in Emacs at any given time will run the current class's tests. Back in August (<87acwguxo7.fsf@prism.localnet>) I tried something similar to what Nathaniel proposes, so it's no surprise that I favour his approach. :-) Massimiliano