From 08e50374c109abaadc4672a3f932f9548b3b7752 Mon Sep 17 00:00:00 2001 From: Katy Huff Date: Thu, 16 Feb 2012 18:06:36 -0600 Subject: [PATCH] Uniform headings W. Trevor King: I dropped everything from the original f7bd97a except for the Python-10-Testing-your-program.rest modification. Conflicts: Python-5:-Strings-and-File-I-O.rest Python-6:-Object-oriented-programming.rest Python2-ListsDictsSetsTuples.rest Python3-FlowControl.rest Python4-FunctionsAndStandardModules.rest --- Python-10-Testing-your-program.rest | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Python-10-Testing-your-program.rest b/Python-10-Testing-your-program.rest index a21e953..d9ab32d 100644 --- a/Python-10-Testing-your-program.rest +++ b/Python-10-Testing-your-program.rest @@ -1,3 +1,13 @@ + + +[[Back To NumPy | Python9-NumPy]] - [[Forward To Home | Home]] + +---- + +**Presented By Tommy Guy** + +**Based on materials by Katy Huff and Rachel Slaybaugh** + **What is testing?** Software testing is a process by which one or more expected behaviors and results from a piece of software are exercised and confirmed. Well chosen tests will confirm expected code behavior for the extreme boundaries of the input domains, output ranges, parametric combinations, and other behavioral edge cases. @@ -236,4 +246,4 @@ There are a few tests for the mean function that we listed in this lesson. What Some people develop code by writing the tests first. -If you write your tests comprehensively enough, the expected behaviors that you define in your tests will be the necessary and sufficient set of behaviors your code must perform. Thus, if you write the tests first and program until the tests pass, you will have written exactly enough code to perform the behavior your want and no more. Furthermore, you will have been forced to write your code in a modular enough way to make testing easy now. This will translate into easier testing well into the future. \ No newline at end of file +If you write your tests comprehensively enough, the expected behaviors that you define in your tests will be the necessary and sufficient set of behaviors your code must perform. Thus, if you write the tests first and program until the tests pass, you will have written exactly enough code to perform the behavior your want and no more. Furthermore, you will have been forced to write your code in a modular enough way to make testing easy now. This will translate into easier testing well into the future. -- 2.26.2