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

« back to all changes in this revision

Viewing changes to exercises/sample/hello.xml

  • Committer: stevenbird
  • Date: 2008-02-19 22:18:13 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:513
test/test_framework/*, exercises/sample/*
* changed root element to exercise (was problem)
* changed test code to call parse_exercise_file (was
    parse_tutorial_file)
* modified samples to show use of new exercise functionality

www/apps/tutorial*:
* consistent naming of methods (nothing talking about "problem" now)

doc/setup/install_proc.txt
* added apt-get for python-ldap, a new dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<problem name = "Hello Name">
 
1
<exercise name = "Hello Name">
2
2
    <desc>You need to write <b>Hello</b> and then your name.</desc>
3
3
    <partial>
4
4
<![CDATA[
16
16
    <case name="&quot;Hello Alice&quot;">
17
17
        <!-- Specify input -->
18
18
        <var name="name" value="'Alice'" />
19
 
        <function desc="Match case insensitive" default="ignore">
 
19
        <function pass="All letters are correct, ignoring case" fail="Output contains incorrect characters" default="ignore">
20
20
            <stdout>str.lower</stdout>
21
21
        </function>
 
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>
22
25
        <!-- Ensures that all outputs match exactly --> 
23
 
        <function desc="Match exactly" default="match"/>
24
 
    </case>
25
 
    <case name="&quot;Hello Bob&quot;">
26
 
        <!-- Specify input -->
27
 
        <var name="name" value="'Bob'" />
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>
 
26
        <function pass="Exact match" fail="Incorrect characters still" default="match"/>
 
27
    </case>
 
28
</exercise>
 
29