Skip to content

Commit ebb0620

Browse files
Add tests for default interface methods
1 parent 837be98 commit ebb0620

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

test/default_function_test.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using SymbolicIndexingInterface, Test
2+
3+
@test independent_variables(nothing) == []
4+
@test states(nothing) == []
5+
@test parameters(nothing) == []
6+
@test !is_indep_sym(nothing, :a)
7+
@test !is_state_sym(nothing, :a)
8+
@test !is_param_sym(nothing, :a)
9+
@test isnothing(state_sym_to_index(nothing, :a))
10+
@test isnothing(param_sym_to_index(nothing, :a))

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ using SymbolicIndexingInterface
22
using Test
33

44
@time begin @time @testset begin include("symbolcache.jl") end end
5+
@time begin @time @testset begin include("default_function_test.jl") end end

0 commit comments

Comments
 (0)