File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,12 @@ isclock(c) = isa(c, TimeDomain) && @match c begin
45
45
_ => false
46
46
end
47
47
48
- issolverstepclock (c) = @match c begin
48
+ issolverstepclock (c) = isa (c, TimeDomain) && @match c begin
49
49
SolverStepClock () => true
50
50
_ => false
51
51
end
52
52
53
- iscontinuous (c) = @match c begin
53
+ iscontinuous (c) = isa (c, TimeDomain) && @match c begin
54
54
ContinuousClock () => true
55
55
_ => false
56
56
end
Original file line number Diff line number Diff line change @@ -24,10 +24,12 @@ using MLStyle: @match
24
24
@test ! issolverstepclock (PeriodicClock (; dt = 1.0 ))
25
25
@test ! issolverstepclock (Continuous ())
26
26
@test issolverstepclock (SolverStepClock ())
27
+ @test ! issolverstepclock (nothing )
27
28
28
29
@test ! iscontinuous (PeriodicClock (; dt = 1.0 ))
29
30
@test iscontinuous (Continuous ())
30
31
@test ! iscontinuous (SolverStepClock ())
32
+ @test ! iscontinuous (nothing )
31
33
32
34
@test is_discrete_time_domain (PeriodicClock (; dt = 1.0 ))
33
35
@test ! is_discrete_time_domain (Continuous ())
You can’t perform that action at this time.
0 commit comments