Skip to content
Snippets Groups Projects
Commit 5941000d authored by Jan Maximilian Michal's avatar Jan Maximilian Michal
Browse files

Fixed numeric error. Gap is now complete

parent 537948ce
No related branches found
No related tags found
No related merge requests found
......@@ -75,8 +75,6 @@ class GapQuestion:
f = response_num("gap_{}".format(gap_ident), self.gap_length, item[0][1], item[0][2])
gap_ident += 1
flow.append(f)
return root
############################################################################
......
......@@ -14,7 +14,7 @@ def xml_print(element, **kwargs):
import xml.dom.minidom
xml = xml.dom.minidom.parseString(et.tostring(element, encoding='utf8', method='xml')) # or xml.dom.minidom.parseString(xml_string)
print( xml.toprettyxml(), **kwargs )
print(xml.toprettyxml(), **kwargs)
def simple_element(name, text=None, attrib={}):
......@@ -147,7 +147,7 @@ def response_choice(ident, answers):
def response_num(ident, columns, _min, _max, numtype='Decimal'):
response_num = et.Element('response_num', attrib={'ident': ident, 'numtype': numtype, 'rcardinality': 'Single'})
render_fib = et.Element('render_fib', attrib={'columns': columns, 'fibtype': numtype, 'maxnumber': _min, 'minnumber': _max, 'prompt': "Box"})
render_fib = et.Element('render_fib', attrib={'columns': str(columns), 'fibtype': numtype, 'maxnumber': _max, 'minnumber': _min, 'prompt': "Box"})
response_num.append(render_fib)
return response_num
......
meta = {
'author': 'ILIAS Author',
'title': 'gap_test',
'type': 'gap',
'points': 0.0,
}
task = """[gap]LALAL2[/gap] KJAakjsfdaskdjfnalksdf
```java
class Auto {
final int tiers = [gap]4[/gap];
}
[select]
[3] `int n_ze = m.length;`
[ ] `int n_ze = m[0].length;`
[ ] `int n_ze = m.length();`
[ ] `int n_ze = m[0].length();`
[/select]
public static void main {
System.out.println("[gap]LALAL2[/gap]");
}
```
END"""
feedback = """ decription """
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment