¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: [TDD] Unit tests and parameter validation


 

Hi Edwin -

So what's your opinion on what to actually do? ?What would the tests look like?

Thanks.

Ebenezer


On Tue, Oct 15, 2013 at 3:09 PM, Edwin Castro <egcastr@...> wrote:
On 10/15/13 11:42 AM, Eb wrote:
> Interesting perspective on contracts and the requirement to pass
> "correct" inputs (avoiding the use of the word valid here) to get
> correct results. ?How does a consumer know what is correct however?

A consumer must be told the specific semantics to expect. One way is to
read the code. In the absence of code you must rely on documentation.
Executable documentation in the form of code examples that also serve as
tests for validation is just one way to communicate the semantics.

--
Edwin G. Castro



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
? ?

<*> Your email settings:
? ? Individual Email | Traditional

<*> To change settings online go to:
? ?
? ? (Yahoo! ID required)

<*> To change settings via email:
? ? testdrivendevelopment-digest@...
? ? testdrivendevelopment-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
? ? testdrivendevelopment-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
? ?




--
blog:
twitter: @eikonne

Join [email protected] to automatically receive all group messages.