Skip to content
Snippets Groups Projects
Commit 679bf618 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

extend printing test

parent e12bef27
Branches
Tags
No related merge requests found
...@@ -34,5 +34,10 @@ def test_basic_kernel(): ...@@ -34,5 +34,10 @@ def test_basic_kernel():
printer = CPrinter() printer = CPrinter()
code = printer.print(func) code = printer.print(func)
assert code.find("u_data[ctr] = u_data[ctr + 1] + u_data[ctr - 1]") >= 0 paramlist = func.get_parameters()
params_str = ", ".join(f"{p.dtype} {p.name}" for p in paramlist)
assert code.find("(" + params_str + ")") >= 0
assert code.find("u_data[ctr] = u_data[ctr - 1] + u_data[ctr + 1];") >= 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment