Skip to content

Commit

Permalink
Update tests for latest controlsystems
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Sep 23, 2020
1 parent 666ea2b commit d83611c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test_deconstruct.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ using MonteCarloMeasurements
using Test, LinearAlgebra, Statistics, Random
import MonteCarloMeasurements: ±,
using MonteCarloMeasurements: nakedtypeof, build_container, build_mutable_container, has_particles, particle_paths
using ControlSystems, Test
ControlSystems.TransferFunction(matrix::Array{<:ControlSystems.SisoRational,2}, Ts::Float64, ::Int64, ::Int64) = TransferFunction(matrix,Ts)
using ControlSystems, Test, GenericLinearAlgebra
ControlSystems.TransferFunction(matrix::Array{<:ControlSystems.SisoRational,2}, Ts, ::Int64, ::Int64) = TransferFunction(matrix,Ts)


@testset "deconstruct" begin
Expand Down Expand Up @@ -40,10 +40,10 @@ ControlSystems.TransferFunction(matrix::Array{<:ControlSystems.SisoRational,2},

@test nakedtypeof(P) == TransferFunction
@test nakedtypeof(typeof(P)) == TransferFunction
@test typeof(P) == TransferFunction{ControlSystems.SisoRational{StaticParticles{Float64,N}}}
@test typeof(P) == TransferFunction{ControlSystems.Continuous, ControlSystems.SisoRational{StaticParticles{Float64,N}}}
P2 = build_container(P)
@test typeof(P2) == TransferFunction{ControlSystems.SisoRational{Float64}}
@test typeof(build_mutable_container(P)) == TransferFunction{ControlSystems.SisoRational{Particles{Float64,N}}}
@test typeof(P2) == TransferFunction{ControlSystems.Continuous, ControlSystems.SisoRational{Float64}}
@test typeof(build_mutable_container(P)) == TransferFunction{ControlSystems.Continuous, ControlSystems.SisoRational{Particles{Float64,N}}}
@test has_particles(P)
@test has_particles(P.matrix)
@test has_particles(P.matrix[1])
Expand Down

0 comments on commit d83611c

Please sign in to comment.