Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How much of your code do you test?
Message
From
21/11/2002 09:15:46
 
 
To
21/11/2002 08:36:14
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00721300
Message ID:
00725131
Views:
9
Tamar,
>
>Jim - I think you're missing Mike's point. Good programming practice says that, for example, every CASE has an OTHERWISE, even if you believe you've enumerated all possibilities in the other cases. There's no way to test that OTHERWISE case, but it's better code to have it there than to remove it.

You're right, and your addition clears up my misunderstanding.

I would think that the programmer would still ensure that such code lines are executed (especially in an interpreted language) even if it meant putting them temporarily into another CASE or doing some other contrivance to test their functionality. But I would agree that system/QA testers wouldn't ever (presumably) test those lines.

thanks

>
>Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform