function () test()
or
function () test(ostream o)
depending on the needs of the test. This is OK in C. But the differing
type signatures translate poorly into both Java and Haskell which have
stricter behaviour in their normal definition of method/function
signatures.
I think its OK for tests to be required to always have the second
signature shown above.
Sure thing. You should add a test that tests that failing to match
signatures produces an error :-)
--
http://www.apache-ssl.org/ben.html http://www.links.org/
"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff