Skip to content

Commit 7b477dc

Browse files
tests updated with the removal of SymPy testing
1 parent 751b13b commit 7b477dc

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

Project.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SymbolicNumericIntegration"
22
uuid = "78aadeae-fbc0-11eb-17b6-c7ec0477ba9e"
33
authors = ["Shahriar Iravanian <[email protected]>"]
4-
version = "0.8.6"
4+
version = "0.9.0"
55

66
[deps]
77
DataDrivenDiffEq = "2445eb08-9709-466a-b3fc-47e12bd697a2"
@@ -14,16 +14,12 @@ Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
1414
[compat]
1515
DataDrivenDiffEq = "0.8"
1616
DataStructures = "0.18"
17-
PyCall = "1"
1817
SymbolicUtils = "0.19"
1918
Symbolics = "4"
20-
SymPy = "1"
2119
julia = "1.6"
2220

2321
[extras]
24-
PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0"
25-
SymPy = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6"
2622
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2723

2824
[targets]
29-
test = ["PyCall", "SymPy", "Test"]
25+
test = ["Test"]

test/axiom.jl

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
@variables x a b c d e p t m n z
32

43
function convert_axiom(name::AbstractString)
@@ -104,7 +103,7 @@ function accept_integral(sol, ans, x; radius = 1.0, abstol = 1e-3, n = 5)
104103
return false
105104
end
106105

107-
function test_axiom(L, try_sympy = true; kwargs...)
106+
function test_axiom(L; kwargs...)
108107
n_ok = 0
109108
n_fail = 0
110109
n_diff = 0
@@ -120,7 +119,7 @@ function test_axiom(L, try_sympy = true; kwargs...)
120119
printstyled(eq, '\n'; color = :green)
121120
sol = integrate(eq, x; kwargs...)[1]
122121

123-
println(">>>>", sol)
122+
println(">>>>\t", sol)
124123

125124
if isequal(sol, 0)
126125
printstyled("\tFailure\n"; color = :red)
@@ -133,13 +132,6 @@ function test_axiom(L, try_sympy = true; kwargs...)
133132
n_diff += 1
134133
end
135134

136-
if try_sympy
137-
s = Symbolics.symbolics_to_sympy(s)
138-
s_x = Symbolics.symbolics_to_sympy(x)
139-
py = SymPy.integrate(s, s_x)
140-
printstyled("\tSymPy :\t", string(py)[10:end], '\n'; color = :magenta)
141-
end
142-
143135
printstyled("\tAnswer: \t", ans, '\n'; color = :blue)
144136
# catch e
145137
# printstyled(i, ": ", e, '\n'; color=:red)

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
using SymbolicNumericIntegration
2+
using SymbolicNumericIntegration: value
23
using Symbolics
34

45
using SymbolicUtils
56
using SymbolicUtils.Rewriters
67

78
using Test
8-
using PyCall, SymPy
99

1010
include("axiom.jl")
1111

0 commit comments

Comments
 (0)