Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tbennun committed Nov 10, 2024
1 parent a6a0a23 commit c5ac200
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/npbench/misc/mandelbrot1_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def run_mandelbrot1(device_type: dace.dtypes.DeviceType):
Z, N = sdfg(xmin, xmax, ymin, ymax, maxiter, horizon)

# Compute ground truth and validate
Z_ref, N_ref = ground_truth(xmin, xmax, ymin, ymax, xn, yn, maxiter)
Z_ref, N_ref = ground_truth(xmin, xmax, ymin, ymax, XN, YN, maxiter)
assert np.allclose(Z, Z_ref)
assert np.allclose(N, N_ref)
return sdfg
Expand Down
2 changes: 1 addition & 1 deletion tests/npbench/misc/mandelbrot2_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def run_mandelbrot2(device_type: dace.dtypes.DeviceType):
Z, N = sdfg(xmin, xmax, ymin, ymax, maxiter, horizon)

# Compute ground truth and validate
Z_ref, N_ref = ground_truth(xmin, xmax, ymin, ymax, xn, yn, maxiter)
Z_ref, N_ref = ground_truth(xmin, xmax, ymin, ymax, XN, YN, maxiter)
assert np.allclose(Z, Z_ref)
assert np.allclose(N, N_ref)
return sdfg
Expand Down

0 comments on commit c5ac200

Please sign in to comment.