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

283 by dilshan_a
Fixed a bug where variables were persistent across test cases.
1
<problem name = "Hello Name">
357 by stevenbird
fixed syntax error
2
    <desc>You need to write <b>Hello</b> and then your name, using the variable 'name'.</desc>
367 by stevenbird
added example to demonstrate regexp pattern on stdout
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>
313 by mattgiuca
test/test_framework: Updated examples, a bit of better descriptions, sample
12
    <partial>
13
<![CDATA[
14
print "Hello &lt;need to print the variable name&gt;."
15
]]>
16
    </partial>
282 by stevenbird
* changed spelling of varible to variable
17
    <solution>
18
<![CDATA[
19
# Sample solution, used to generate test output
20
greeting = "Hello"
21
print " ".join([greeting, name])
22
]]>
23
    </solution>
24
    <!-- Alternatively, <solution src="all_input_test_soln.py" /> -->
313 by mattgiuca
test/test_framework: Updated examples, a bit of better descriptions, sample
25
    <case name="&quot;Hello Alice&quot;">
282 by stevenbird
* changed spelling of varible to variable
26
        <!-- Specify input -->
313 by mattgiuca
test/test_framework: Updated examples, a bit of better descriptions, sample
27
        <var name="name" value="'Alice'" />
282 by stevenbird
* changed spelling of varible to variable
28
        <function desc="Match case insensitive" default="ignore">
283 by dilshan_a
Fixed a bug where variables were persistent across test cases.
29
            <stdout>str.lower</stdout>
30
    	</function>
367 by stevenbird
added example to demonstrate regexp pattern on stdout
31
        <function desc="Ensure name is alphabetic" default="ignore">
32
            <stdout type="norm">alphabetic</stdout>
33
    	</function>
283 by dilshan_a
Fixed a bug where variables were persistent across test cases.
34
    	<!-- Ensures that all outputs match exactly -->	
35
    	<function desc="Match exactly" default="match"/>
282 by stevenbird
* changed spelling of varible to variable
36
    </case>
313 by mattgiuca
test/test_framework: Updated examples, a bit of better descriptions, sample
37
    <case name="&quot;Hello Bob&quot;">
282 by stevenbird
* changed spelling of varible to variable
38
        <!-- Specify input -->
313 by mattgiuca
test/test_framework: Updated examples, a bit of better descriptions, sample
39
        <var name="name" value="'Bob'" />
282 by stevenbird
* changed spelling of varible to variable
40
        <function desc="Match case insensitive" default="ignore">
357 by stevenbird
fixed syntax error
41
            <stdout type="check">str.__eq__</stdout>
282 by stevenbird
* changed spelling of varible to variable
42
    	</function>
43
        <function desc="Match exactly" default="ignore">
44
            <stdout/>
45
    	</function>
46
    </case>
47
</problem>