Skip to content

Commit c4b6789

Browse files
test: test new parameter indexing, SymbolCache, ParameterTimeseriesCollection
1 parent 1394255 commit c4b6789

File tree

6 files changed

+524
-139
lines changed

6 files changed

+524
-139
lines changed

test/example_test.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ sys = SystemMockup(true, [:x, :y, :z], [:a, :b, :c], :t)
7171
@test all(.!is_parameter.((sys,), [:x, :y, :z, :t, :p, :q, :r]))
7272
@test all(parameter_index.((sys,), [:c, :a, :b]) .== [3, 1, 2])
7373
@test all(parameter_index.((sys,), [:x, :y, :z, :t, :p, :q, :r]) .=== nothing)
74+
@test all(.!is_timeseries_parameter.((sys,), [:x, :y, :z, :t, :p, :q, :r])) # fallback even if not implemented
75+
@test all(timeseries_parameter_index.((sys,), [:x, :y, :z, :t, :p, :q, :r]) .=== nothing) # fallback
7476
@test is_independent_variable(sys, :t)
7577
@test all(.!is_independent_variable.((sys,), [:x, :y, :z, :a, :b, :c, :p, :q, :r]))
7678
@test all(is_observed.((sys,), [:x, :y, :z, :a, :b, :c, :t]))
@@ -88,6 +90,7 @@ sys = SystemMockup(true, [:x, :y, :z], [:a, :b, :c], :t)
8890
@test independent_variable_symbols(sys) == [:t]
8991
@test all_variable_symbols(sys) == [:x, :y, :z]
9092
@test sort(all_symbols(sys)) == [:a, :b, :c, :t, :x, :y, :z]
93+
@test default_values(sys) == Dict() # fallback even if not implemented
9194

9295
sys = SystemMockup(true, [:x, :y, :z], [:a, :b, :c], nothing)
9396

0 commit comments

Comments
 (0)