Closed timotheecour closed 11 years ago
I use main()
for much more than just testing import & compilation. Most of the time, I do the real testing there before moving it elsewhere. Does its presence bothers you?
nah, just that it's idiomatic to use --main for this kind of unittest purposes.
you can do this instead: rdmd --main -unittest pegged/grammar rdmd --main -unittest pegged/peg
or just make a pegged.tester.main that only imports, without needed a main() ; right now i think your pegged.tester.main will also call std.stdio's unittests