[LON-CAPA-cvs] cvs: modules /jerf/tests/data blank.problem numerical.problem option.problem plot.problem radio.problem ranking.problem string.problem testhtml.html truefalse.problem

bowersj2 lon-capa-cvs@mail.lon-capa.org
Mon, 07 Jul 2003 20:38:12 -0000


bowersj2		Mon Jul  7 16:38:12 2003 EDT

  Added files:                 
    /modules/jerf/tests/data	blank.problem numerical.problem 
                            	option.problem plot.problem radio.problem 
                            	ranking.problem string.problem 
                            	testhtml.html truefalse.problem 
  Log:
  Test data for the test harness.
  
  

Index: modules/jerf/tests/data/blank.problem
+++ modules/jerf/tests/data/blank.problem
<problem>
</problem>

Index: modules/jerf/tests/data/numerical.problem
+++ modules/jerf/tests/data/numerical.problem
<problem>
<startouttext />Brain-dead numerical response problem. (0)<endouttext />
<numericalresponse answer="0">
	<textline />
</numericalresponse>
</problem>

Index: modules/jerf/tests/data/option.problem
+++ modules/jerf/tests/data/option.problem
<problem><startouttext />This is a brain-dead simple option response problem.<endouttext />
<optionresponse max="10">
    <foilgroup options="('Green','Red')">
<foil name="a" value="Red">
<startouttext />Red.<endouttext />
</foil>
    </foilgroup>
</optionresponse>
</problem>

Index: modules/jerf/tests/data/plot.problem
+++ modules/jerf/tests/data/plot.problem
<problem>

<script type="loncapa/perl"># Enter computations here
</script>

<gnuplot width="300" transparent="off" samples="100" grid="on" font="large" bgcolor="xffffff" height="300" align="left" fgcolor="x000000" border="on">
    <axis xmin="0" ymin="0" xmax="10" ymax="10" color="x000000" />
    <xlabel>Label X</xlabel>
    <ylabel>Label Y</ylabel>
    <curve linestyle="linespoints" name="My Plot" pointtype="0" color="x000000">
        <data>1,2,3,4,5,6,7,8,9</data>
        <data>1,2,3,4,5,6,7,8,9</data>
    </curve>
</gnuplot>

<startouttext />Enter Question Text Here.<endouttext />

<numericalresponse answer="">
    <responseparam name="tol" type="tolerance" description="Numerical Tolerance" default="5%" />
    <responseparam name="sig" type="int_range,0-16" description="Significant Figures" default="0,15" />
    <textline />
<hintgroup>
<startouttext />Enter the hint text here. <endouttext />
</hintgroup>
</numericalresponse>
</problem>


Index: modules/jerf/tests/data/radio.problem
+++ modules/jerf/tests/data/radio.problem
<problem>

<startouttext />This is a brain-dead simple radio response problem.
<endouttext />
<radiobuttonresponse max="10">

    <foilgroup>

<foil name="f1" value="true">
<startouttext />True.<endouttext />
</foil>

<foil name="f2" value="false">
<startouttext />False.<endouttext />
</foil>
    </foilgroup>
</radiobuttonresponse>
</problem>

Index: modules/jerf/tests/data/ranking.problem
+++ modules/jerf/tests/data/ranking.problem
<problem>
<startouttext />Braindead simple ranking problem.<endouttext />
<rankresponse max="10" randomize="yes">
    <foilgroup>
<foil location="random" value="1" name="f1"><startouttext />1<endouttext /></foil>
<foil location="random" value="2" name="f2"><startouttext />2<endouttext /></foil>
    </foilgroup>
</rankresponse>
</problem>

Index: modules/jerf/tests/data/string.problem
+++ modules/jerf/tests/data/string.problem
<problem><startouttext />This is a simple <b>test</b> string response.<endouttext />
<stringresponse answer="test" type="ci">
<textline>
</textline>
</stringresponse>
</problem>

Index: modules/jerf/tests/data/testhtml.html
+++ modules/jerf/tests/data/testhtml.html
<html><head><title>Braindead simple HTML</title></head>
<body>Braindead simple HTML example</body>
</html>

Index: modules/jerf/tests/data/truefalse.problem
+++ modules/jerf/tests/data/truefalse.problem
<problem><startouttext />This is a brain-dead simple true/false problem.<endouttext />
<optionresponse max="10">
    <foilgroup options="('True','False')">
<foil name="a" value="True">
<startouttext />True.<endouttext />
</foil>
    </foilgroup>
</optionresponse>
</problem>