From 1f6e9aab9dd5fd858cb6cd3fcd61027e4d8e8f33 Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Fri, 28 Jan 2022 17:12:08 +0100 Subject: [PATCH] Add tests for discrete feedback closes #304 --- test/test_synthesis.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_synthesis.jl b/test/test_synthesis.jl index 0f5beb8a3..bc669454f 100644 --- a/test/test_synthesis.jl +++ b/test/test_synthesis.jl @@ -133,4 +133,10 @@ end #L ≈ [0.5890881713787511 0.7118839434795103] end +@testset "issue #304" begin + @test feedback(ss(0.5, 1, 1, 0, 1), 1) == ss(-0.5, 1, 1, 0, 1) + @test feedback(1, ss(0.5, 1, 1, 0, 1)) == ss(-0.5, 1, -1, 1, 1) + @test [ss(1,1,1,0,1) 1] == ss(1, [1 0], 1, [0 1], 1) +end + end