Skip to content

Commit

Permalink
Merge pull request #979 from JuliaSymbolics/s/fix-ci
Browse files Browse the repository at this point in the history
update tests for SU 1.4 changes
  • Loading branch information
shashi authored Sep 27, 2023
2 parents cebef6d + 73806f8 commit 05d8646
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ SciMLBase = "1.8, 2"
Setfield = "0.7, 0.8, 1"
SpecialFunctions = "0.7, 0.8, 0.9, 0.10, 1.0, 2"
StaticArrays = "1.1"
SymbolicUtils = "1.0.1"
SymbolicUtils = "1.4"
TreeViews = "0.3"
julia = "1.6"

Expand Down
2 changes: 1 addition & 1 deletion test/build_function_tests/stencil-extents-inplace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
ˍ₋out_2 = (view)(ˍ₋out, 2:4, 2:4)
for (j, j′) = zip(2:4, reset_to_one(2:4))
for (i, i′) = zip(2:4, reset_to_one(2:4))
ˍ₋out_2[i′, j′] = (+)(ˍ₋out_2[i′, j′], (*)(1//2, (+)((+)((+)((getindex)(x, i, (+)(1, j)), (getindex)(x, i, (+)(-1, j))), (getindex)(x, (+)(-1, i), j)), (getindex)(x, (+)(1, i), j))))
ˍ₋out_2[i′, j′] = (+)(ˍ₋out_2[i′, j′], (*)(1//2, (+)((+)((+)((getindex)(x, (+)(-1, i), j), (getindex)(x, (+)(1, i), j)), (getindex)(x, i, (+)(-1, j))), (getindex)(x, i, (+)(1, j)))))
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/build_function_tests/stencil-extents-outplace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
ˍ₋out_2 = (view)(ˍ₋out, 2:4, 2:4)
for (j, j′) = zip(2:4, reset_to_one(2:4))
for (i, i′) = zip(2:4, reset_to_one(2:4))
ˍ₋out_2[i′, j′] = (+)(ˍ₋out_2[i′, j′], (*)(1//2, (+)((+)((+)((getindex)(x, i, (+)(1, j)), (getindex)(x, i, (+)(-1, j))), (getindex)(x, (+)(-1, i), j)), (getindex)(x, (+)(1, i), j))))
ˍ₋out_2[i′, j′] = (+)(ˍ₋out_2[i′, j′], (*)(1//2, (+)((+)((+)((getindex)(x, (+)(-1, i), j), (getindex)(x, (+)(1, i), j)), (getindex)(x, i, (+)(-1, j))), (getindex)(x, i, (+)(1, j)))))
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/latexify_refs/frac2.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
\begin{equation}
\frac{\left( z - z^{2} \right) \left( 3 x - 7 z^{23} y \right)}{x}
\frac{\left( 3 x - 7 z^{23} y \right) \left( z - z^{2} \right)}{x}
\end{equation}
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ limit(a, N) = a == N + 1 ? 1 : a == 0 ? N : a
if GROUP == "All" || GROUP == "Core"
@safetestset "Macro Test" begin include("macro.jl") end
@safetestset "Arrays" begin include("arrays.jl") end
@safetestset "Arrays" begin include("stencils.jl") end
@safetestset "View-setting" begin include("stencils.jl") end
@safetestset "Complex" begin include("complex.jl") end
@safetestset "Semi-polynomial" begin include("semipoly.jl") end
@safetestset "Fuzz Arrays" begin include("fuzz-arrays.jl") end
Expand Down
2 changes: 1 addition & 1 deletion test/solver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ using LambertW
@test correctAns(solve_single_eq(exp(x^2)~7,x),[-sqrt(log(7.0)),sqrt(log(7.0))])
@test correctAns(solve_single_eq(sin(x+3)~1//3,x),[asin(1.0/3.0)-3.0])
#strange
@test correctAns(solve_single_eq(sin(x+2//5)+cos(x+2//5)~1//2,x),[acos(0.5/sqrt(2.0))+3.141592653589793/4.0-(2.0/5.0)])
@test_broken correctAns(solve_single_eq(sin(x+2//5)+cos(x+2//5)~1//2,x),[acos(0.5/sqrt(2.0))+3.141592653589793/4.0-(2.0/5.0)])
#product
@test correctAns(solve_single_eq((x^2-4)*(x+1)~0,x),[-2.0,-1.0,2.0])
end
Expand Down
2 changes: 1 addition & 1 deletion test/target_functions/issue123.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <math.h>
void diffeqf(double* du, const double* RHS1) {
du[0] = u * (M[0] * qd[0] + M[6] * qd[1]) * qd[0];
du[0] = (M[0] * qd[0] + M[6] * qd[1]) * qd[0] * u;
}
2 changes: 1 addition & 1 deletion test/target_functions/scalar2.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <math.h>
void diffeqf(double* du, const double* RHS1, const double* RHS2, const double RHS3) {
du[0] = 1.0 + 2 * RHS3 * 1 + pow(RHS1[0], 2) + 1 / RHS1[1] + pow(sin(RHS2[0]), 3.5);
du[0] = 1.0 + 2 * RHS3 * 1 + 1 / RHS1[1] + pow(RHS1[0], 2) + pow(sin(RHS2[0]), 3.5);
}

0 comments on commit 05d8646

Please sign in to comment.