From 5b8eaee8fa86c4e9bf41fcec03ac479c1fa7ed12 Mon Sep 17 00:00:00 2001 From: Mario Antonioletti Date: Mon, 6 May 2013 18:31:41 +0100 Subject: [PATCH] A number of small changes to the testing files. --- testing/Conclusion.md | 4 +++- testing/RealWorld.md | 2 +- testing/TDD.md | 2 +- testing/Writing.md | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/testing/Conclusion.md b/testing/Conclusion.md index ad4012e..687d3c2 100755 --- a/testing/Conclusion.md +++ b/testing/Conclusion.md @@ -6,7 +6,9 @@ Testing * Gives us confidence that our code does what we want and expect it to. * Promotes trust that our code, and so our research, is correct. -If in doubt, remember [Geoffrey Chang](http://en.wikipedia.org/wiki/Geoffrey_Chang) and in the words of Bruce Eckel, in [Thinking in Java, 3rd Edition](http://www.mindview.net/Books/TIJ/), "If it's not tested, it's broken". +If in doubt, remember [Geoffrey Chang](http://en.wikipedia.org/wiki/Geoffrey_Chang) and in the words of Bruce Eckel, in [Thinking in Java, 3rd Edition](http://www.mindview.net/Books/TIJ/): + + If it's not tested, it's broken. ## Find out more... diff --git a/testing/RealWorld.md b/testing/RealWorld.md index c61b858..d9bbce7 100755 --- a/testing/RealWorld.md +++ b/testing/RealWorld.md @@ -4,7 +4,7 @@ The example we've looked at is based on one function. Suppose we have a complex * Run the code on a set of inputs. * Save the outputs. -* Refactor the code e.g. to optimise it or parallelise it. +* Refactor the code, e.g. to optimise it or parallelise it. * Run the code on the inputs. * Check that the outputs match the saved outputs. diff --git a/testing/TDD.md b/testing/TDD.md index 370137a..e064dd4 100755 --- a/testing/TDD.md +++ b/testing/TDD.md @@ -1,6 +1,6 @@ ## Test-driven development -Given a DNA sequence consisting of A, C, T and G, we can create its *complement*, cDNA, by applying a mapping to each nucleotide in turn, +Given a DNA sequence consisting of A, C, T and G, we can create its *complement*, cDNA, which is DNA synthesized from a messenger RNA template by applying a mapping to each nucleotide in turn, * A => T * C => G diff --git a/testing/Writing.md b/testing/Writing.md index 1432f4a..eca8c03 100755 --- a/testing/Writing.md +++ b/testing/Writing.md @@ -139,7 +139,7 @@ nosetests can output an "xUnit" test report, This is a standard format that that is supported by a number of xUnit frameworks which can then be converted to HTML and presented online. -`nose` defines additional functions which can be used to check for a rich range of conditions e.g.. +`nose` defines additional functions which can be used to check for a rich range of conditions, e.g. $ python >>> from nose.tools import * -- 2.26.2