Commit a9da000e by Lyla Fischer Committed by Tom Giannattasio

added several problem types

parent caff651c
...@@ -638,14 +638,13 @@ class CapaDescriptor(RawDescriptor): ...@@ -638,14 +638,13 @@ class CapaDescriptor(RawDescriptor):
stores_state = True stores_state = True
has_score = True has_score = True
template_dir_name = 'problem'
# Capa modules have some additional metadata: # Capa modules have some additional metadata:
# TODO (vshnayder): do problems have any other metadata? Do they # TODO (vshnayder): do problems have any other metadata? Do they
# actually use type and points? # actually use type and points?
metadata_attributes = RawDescriptor.metadata_attributes + ('type', 'points') metadata_attributes = RawDescriptor.metadata_attributes + ('type', 'points')
template_dir_name = 'problem'
# VS[compat] # VS[compat]
# TODO (cpennington): Delete this method once all fall 2012 course are being # TODO (cpennington): Delete this method once all fall 2012 course are being
# edited in the cms # edited in the cms
......
...@@ -12,9 +12,7 @@ data: | ...@@ -12,9 +12,7 @@ data: |
python script embedded within the problem. python script embedded within the problem.
</p> </p>
<script type="loncapa/python"> <script type="loncapa/python">def test_add(expect,ans):
def test_add(expect,ans):
(a1,a2) = map(float,ans) (a1,a2) = map(float,ans)
return (a1+a2)==10 return (a1+a2)==10
......
...@@ -21,9 +21,7 @@ data: | ...@@ -21,9 +21,7 @@ data: |
on the problem author to specify the allowed variables in the expression, and the on the problem author to specify the allowed variables in the expression, and the
numerical ranges over which the variables must be sampled to test for correctness.</p> numerical ranges over which the variables must be sampled to test for correctness.</p>
<script type="loncapa/python"> <script type="loncapa/python">I = "m*c^2"</script>
I = "m*c^2"
</script>
<text> <text>
<br/> <br/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment