513
by stevenbird
test/test_framework/*, exercises/sample/* |
1 |
<exercise name = "Hello Name"> |
1067
by wagrant
Make at least one of the default worksheet exercises look reasonable. |
2 |
<desc>You need to write "Hello" and then your name.</desc> |
512
by stevenbird
Renaming of problems to exercises (initial commit). |
3 |
<partial>
|
4 |
<![CDATA[
|
|
1067
by wagrant
Make at least one of the default worksheet exercises look reasonable. |
5 |
print "Hello <print the contents of the variable 'name' here>"
|
512
by stevenbird
Renaming of problems to exercises (initial commit). |
6 |
]]>
|
7 |
</partial>
|
|
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" /> -->
|
|
16 |
<case name=""Hello Alice""> |
|
17 |
<!-- Specify input -->
|
|
18 |
<var name="name" value="'Alice'" /> |
|
513
by stevenbird
test/test_framework/*, exercises/sample/* |
19 |
<function pass="All letters are correct, ignoring case" fail="Output contains incorrect characters" default="ignore"> |
512
by stevenbird
Renaming of problems to exercises (initial commit). |
20 |
<stdout>str.lower</stdout> |
21 |
</function>
|
|
513
by stevenbird
test/test_framework/*, exercises/sample/* |
22 |
<function pass="Program contains a print statement" fail="You need to use a print statement" default="ignore"> |
23 |
<code type="check">lambda x,y: 'print' in y</code> |
|
24 |
</function>
|
|
512
by stevenbird
Renaming of problems to exercises (initial commit). |
25 |
<!-- Ensures that all outputs match exactly -->
|
1031
by wagrant
Example worksheets: Fix the element names in worksheet 1 to be actually |
26 |
<function pass="Exact match" fail="Incorrect characters still" default="ignore"> |
27 |
<stdout type="norm">str.strip</stdout> |
|
28 |
</function>
|
|
513
by stevenbird
test/test_framework/*, exercises/sample/* |
29 |
</case>
|
30 |
</exercise>
|
|
31 |