Commit e1c560a6 authored by Lucas Bourneuf's avatar Lucas Bourneuf

new test that needs to be implemented

parent 891bfd4b
......@@ -128,6 +128,14 @@ def test_python_builder_with_complex_args():
assert script.run_on('') == 'nb(12).'
assert script.options == (('a_range', range(12, 16, 2), 12, ''),)
def test_complex_parsing():
mod = biseau.module_loader.build_script_from_json({
'name': 'test',
'ASP': 'test((a,b,c)). test(test((a,b,c))). a(a(a((2,)),(2,3))).'
context = mod.run_on('')
assert context == 'test((a,b,c)). test(test((a,b,c))). a(a(a((2,)),(2,3))).'
# assert False, "TODO: prouver qu'ASP gère les trucs style a(a(a((2,)),(2,3)))"
def test_script_sorting():
one = biseau.module_loader.build_script_from_json({
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