283
by dilshan_a
Fixed a bug where variables were persistent across test cases. |
1 |
<problem name = "Hello Name"> |
313
by mattgiuca
test/test_framework: Updated examples, a bit of better descriptions, sample |
2 |
<desc>You need to write <b>Hello</b> and then your name.</desc> |
3 |
<partial>
|
|
4 |
<![CDATA[
|
|
5 |
print "Hello <need to print the variable name>."
|
|
6 |
]]>
|
|
7 |
</partial>
|
|
282
by stevenbird
* changed spelling of varible to variable |
8 |
<solution>
|
9 |
<![CDATA[
|
|
10 |
# Sample solution, used to generate test output
|
|
11 |
greeting = "Hello"
|
|
12 |
print " ".join([greeting, name])
|
|
13 |
]]>
|
|
14 |
</solution>
|
|
15 |
<!-- Alternatively, <solution src="all_input_test_soln.py" /> -->
|
|
313
by mattgiuca
test/test_framework: Updated examples, a bit of better descriptions, sample |
16 |
<case name=""Hello Alice""> |
282
by stevenbird
* changed spelling of varible to variable |
17 |
<!-- Specify input -->
|
313
by mattgiuca
test/test_framework: Updated examples, a bit of better descriptions, sample |
18 |
<var name="name" value="'Alice'" /> |
282
by stevenbird
* changed spelling of varible to variable |
19 |
<function desc="Match case insensitive" default="ignore"> |
283
by dilshan_a
Fixed a bug where variables were persistent across test cases. |
20 |
<stdout>str.lower</stdout> |
21 |
</function>
|
|
22 |
<!-- Ensures that all outputs match exactly -->
|
|
23 |
<function desc="Match exactly" default="match"/> |
|
282
by stevenbird
* changed spelling of varible to variable |
24 |
</case>
|
313
by mattgiuca
test/test_framework: Updated examples, a bit of better descriptions, sample |
25 |
<case name=""Hello Bob""> |
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="'Bob'" /> |
282
by stevenbird
* changed spelling of varible to variable |
28 |
<function desc="Match case insensitive" default="ignore"> |
29 |
<stdout>lambda x:x.lower()</stdout> |
|
30 |
</function>
|
|
31 |
<function desc="Match exactly" default="ignore"> |
|
32 |
<stdout/>
|
|
33 |
</function>
|
|
34 |
</case>
|
|
35 |
</problem>
|