1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<problem name = "Hello Name">
<solution>
<![CDATA[
# Sample solution, used to generate test output
greeting = "Hello"
print " ".join([greeting, name])
]]>
</solution>
<!-- Alternatively, <solution src="all_input_test_soln.py" /> -->
<case name="Hello Dilshan">
<!-- Specify input -->
<var name="name" value="'Dilshan'" />
<function desc="Match case insensitive" default="ignore">
<stdout>str.lower</stdout>
</function>
<!-- Ensures that all outputs match exactly -->
<function desc="Match exactly" default="match"/>
</case>
<case name="Hello Matt">
<!-- Specify input -->
<var name="name" value="'Matt'" />
<function desc="Match case insensitive" default="ignore">
<stdout>lambda x:x.lower()</stdout>
</function>
<function desc="Match exactly" default="ignore">
<stdout/>
</function>
</case>
</problem>
|