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

« back to all changes in this revision

Viewing changes to test/test_framework/hello_text.xml

  • Committer: mattgiuca
  • Date: 2008-01-25 06:20:32 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:313
test/test_framework: Updated examples, a bit of better descriptions, sample
    partial solutions, etc.

Added all sample subject material.
This has been copied from test/test_framework and modified slightly.
There is now a subject "sample" with 2 worksheets. The 1st worksheet has 3
exercises. These work in IVLE by default.

setup.py: Added code to install subjects into the designated directory. This
means that installing IVLE will result in the sample subjects being
immediately available.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<problem name = "Hello Name">
 
2
    <desc>You need to write <b>Hello</b> and then your name.</desc>
 
3
    <partial>
 
4
<![CDATA[
 
5
print "Hello &lt;need to print the variable name&gt;."
 
6
]]>
 
7
    </partial>
2
8
    <solution>
3
9
<![CDATA[
4
10
# Sample solution, used to generate test output
7
13
]]>
8
14
    </solution>
9
15
    <!-- Alternatively, <solution src="all_input_test_soln.py" /> -->
10
 
    <case name="Hello Dilshan">
 
16
    <case name="&quot;Hello Alice&quot;">
11
17
        <!-- Specify input -->
12
 
        <var name="name" value="'Dilshan'" />
 
18
        <var name="name" value="'Alice'" />
13
19
        <function desc="Match case insensitive" default="ignore">
14
20
            <stdout>str.lower</stdout>
15
21
        </function>
16
22
        <!-- Ensures that all outputs match exactly --> 
17
23
        <function desc="Match exactly" default="match"/>
18
24
    </case>
19
 
    <case name="Hello Matt">
 
25
    <case name="&quot;Hello Bob&quot;">
20
26
        <!-- Specify input -->
21
 
        <var name="name" value="'Matt'" />
 
27
        <var name="name" value="'Bob'" />
22
28
        <function desc="Match case insensitive" default="ignore">
23
29
            <stdout>lambda x:x.lower()</stdout>
24
30
        </function>