We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d06b931 commit f2890caCopy full SHA for f2890ca
test/runtests.jl
@@ -5,8 +5,6 @@ using Aqua,
5
StaticArrays,
6
Test,
7
Unitful
8
-p = Param(2.0, units = "k", bounds = (1, 2))
9
-@set p.val = 1
10
11
import BenchmarkTools
12
@@ -85,6 +83,17 @@ end
85
83
@test m[:newfield] == ntuple(x -> x, 8)
86
84
end
87
+@testset "show" begin
+ m = Model(s1)
88
+ sh = sprint(show, MIME"text/plain"(), m)
89
+ @test occursin("Model with parent", sh)
90
+ @test occursin("S1", sh)
91
+ @test occursin("Param", sh)
92
+ @test occursin("┌──────", sh)
93
+ @test occursin("component", sh)
94
+ @test occursin("100.0", sh)
95
+end
96
+
97
@testset "strip params from model" begin
98
m = Model(s1);
99
stripped = stripparams(m)
0 commit comments