Skip to content

Commit

Permalink
test: avoid @inbounds in stencil tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Dec 25, 2024
1 parent 1502d7f commit d7c635f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/stencils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using SymbolicUtils.Code: toexpr, LiteralExpr

_repr(x) = repr(toexpr(LiteralExpr(x)) |> Base.remove_linenums!)
function test_funcs(name, f, args...; broken=false)
outplace, inplace = build_function(f, args...)
outplace, inplace = build_function(f, args...; checkbounds = true)
if broken
@test_broken open(x->read(x, String), "build_function_tests/$name-outplace.jl") == _repr(outplace)
@test_broken open(x->read(x, String), "build_function_tests/$name-inplace.jl") == _repr(outplace)
Expand Down

0 comments on commit d7c635f

Please sign in to comment.