~azzar1/unity/add-show-desktop-key

Viewing all changes in revision 507.

  • Committer: stevenbird
  • Date: 2008-02-19 07:59:12 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:507
Extended code test framework to support tests on the code string, rather
than just its outputs.  This makes it possible to check the method being
used by the code to do its work.  For example, if the exercise is to
write code that computes 10! using multiplication, a response that
simply prints 3628800 produces the correct output, but using the
incorrect method.  A regular expression that tests the code could check
for the presence of a multiplication operation.  The XML format is:
<code type="check"> lambda x,y: '*' in y </code>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: