Skip to content
Snippets Groups Projects
Commit 5e7d3c9c authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Update tests for new function-call-printing

parent a1c374cc
Branches
Tags
1 merge request!96Add own implementation for printing an unknown function
...@@ -32,8 +32,7 @@ def test_cuda_but_not_c(): ...@@ -32,8 +32,7 @@ def test_cuda_but_not_c():
}) })
ast = pystencils.create_kernel(assignments, 'cpu') ast = pystencils.create_kernel(assignments, 'cpu')
code = str(pystencils.show_code(ast)) print(pystencils.show_code(ast))
assert "Not supported" in code
def test_cuda_unknown(): def test_cuda_unknown():
...@@ -46,4 +45,3 @@ def test_cuda_unknown(): ...@@ -46,4 +45,3 @@ def test_cuda_unknown():
ast = pystencils.create_kernel(assignments, 'gpu') ast = pystencils.create_kernel(assignments, 'gpu')
code = str(pystencils.show_code(ast)) code = str(pystencils.show_code(ast))
print(code) print(code)
assert "Not supported in CUDA" in code
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