We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adb6a84 commit deb0b90Copy full SHA for deb0b90
test/complex.jl
@@ -0,0 +1,16 @@
1
+using ModelingToolkit
2
+using ModelingToolkit: t_nounits as t
3
+using Test
4
+
5
+@mtkmodel ComplexModel begin
6
+ @variables begin
7
+ x(t)
8
+ y(t)
9
+ z(t)::Complex
10
+ end
11
+ @equations begin
12
+ z ~ x + im*y
13
14
+end
15
+@named mixed = ComplexModel()
16
+@test length(equations(mixed)) == 2
test/runtests.jl
@@ -73,6 +73,7 @@ end
73
@safetestset "Initial Values Test" include("initial_values.jl")
74
@safetestset "Discrete System" include("discrete_system.jl")
75
@safetestset "Equation Type Accessors Test" include("equation_type_accessors.jl")
76
+ @safetestset "Equations with complex values" include("complex.jl")
77
end
78
79
0 commit comments