Skip to content

Commit

Permalink
add test, fix 1.6 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jverzani committed Sep 9, 2024
1 parent 8cf73f7 commit 033f34c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ julia = "1.6"
[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
SymbolicUtils = "d1185830-fcd6-423d-90d6-eec64667417b"
TermInterface = "8ea1fca8-c5ef-4a55-8b96-4e9afe9c9a3c"

[targets]
test = ["SymbolicUtils", "Test"]
test = ["SymbolicUtils", "TermInterface", "Test"]
8 changes: 8 additions & 0 deletions test/test-SymbolicUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ using Test
using SymEngine
import SymbolicUtils: simplify, @rule, @acrule, Chain, Fixpoint

import TermInterface
@testset "TermInterface" begin
@vars x
@test !TermInterface.iscall(x)
@test TermInterface.iscall(x^2)
@test TermInterface.operation(sin(x)) == sin
@test TermInterface.arguments(sin(x)) == [x]
end

@testset "SymbolicUtils" begin
# from SymbolicUtils.jl docs
Expand Down

0 comments on commit 033f34c

Please sign in to comment.