-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bea164
commit 859e130
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
using SymbolicIndexingInterface | ||
using Test | ||
|
||
@testset begin | ||
@testset "Interface test" begin | ||
@time include("example_test.jl") | ||
end | ||
@testset "Trait test" begin | ||
@time include("trait_test.jl") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using SymbolicUtils | ||
using Symbolics | ||
using SymbolicIndexingInterface | ||
using Test | ||
|
||
@test all(issymbolic.([Int, Float64, String, Bool, UInt, Complex{Float64}]) .== | ||
(NotSymbolic(),)) | ||
@test all(issymbolic.([Symbol, SymbolicUtils.BasicSymbolic, Symbolics.Num]) .== | ||
(Symbolic(),)) | ||
@variables x | ||
@test issymbolic(x) == Symbolic() | ||
@variables y[1:3] | ||
@test issymbolic(y) == NotSymbolic() | ||
@test all(issymbolic.(collect(y)) .== (Symbolic(),)) |