| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Testing the Code |
Hello Neil.
28 Jun 04 17:11, you wrote to all:
NH> 3. How many tests are required to give the full statement coverage
NH> testing the following code:
NH> if (x > 4) {
NH> // do something
NH> } else {
NH> // do something else
NH> }
Two, (one with x > 4 one with x <= 4)
or possibly fewer if your compiler optimises out the comments :-)
Jasen
--- GoldED+/LNX 1.1.4.7
* Origin: (3:640/1042)SEEN-BY: 633/267 270 @PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.