Skip to content

Commit 99cdbe2

Browse files
committed
Add more tests.
1 parent 6718ede commit 99cdbe2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/utils/test_directives.py

+3
Original file line numberDiff line numberDiff line change
@@ -348,3 +348,6 @@ def test_add_present_openacc():
348348
preprocessor = ["#define cols 18\n", "#define rows 14\n"]
349349
expected_f90 = "!$acc parallel async num_workers(16) present(matrix(:14,:18))\n"
350350
assert add_present_openacc(code_f90, acc_f90, data, preprocessor, None) == expected_f90
351+
dimensions = {"cols": 18, "rows": 14}
352+
assert add_present_openacc(code_f90, acc_f90, data, user_dimensions=dimensions) == expected_f90
353+
assert add_present_openacc(code_f90, acc_f90, data, preprocessor=[], user_dimensions=dimensions) == expected_f90

0 commit comments

Comments
 (0)