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

« back to all changes in this revision

Viewing changes to test/test_framework/hello_text.xml

  • Committer: stevenbird
  • Date: 2008-02-01 03:13:58 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:367
added example to demonstrate regexp pattern on stdout

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<problem name = "Hello Name">
2
2
    <desc>You need to write <b>Hello</b> and then your name, using the variable 'name'.</desc>
 
3
    <include>
 
4
<![CDATA[
 
5
import re
 
6
def alphabetic(x):
 
7
    if re.match(r'^[A-Za-z ]+$', x):
 
8
        return "True"
 
9
    return "False"
 
10
]]>
 
11
    </include>
3
12
    <partial>
4
13
<![CDATA[
5
14
print "Hello &lt;need to print the variable name&gt;."
19
28
        <function desc="Match case insensitive" default="ignore">
20
29
            <stdout>str.lower</stdout>
21
30
        </function>
 
31
        <function desc="Ensure name is alphabetic" default="ignore">
 
32
            <stdout type="norm">alphabetic</stdout>
 
33
        </function>
22
34
        <!-- Ensures that all outputs match exactly --> 
23
35
        <function desc="Match exactly" default="match"/>
24
36
    </case>