Skip to content

Commit b70a97d

Browse files
author
Jon Vegard Venås
committed
Modify tests of Base.show to test against its definition
1 parent 5955f9c commit b70a97d

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

test/test_interactivity.jl

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,13 @@ case, model, m, gui = run_case()
3232
@testset "Test functionality" verbose = true begin
3333
# Test print functionalities of GUI structures to the REPL
3434
@testset "Test Base.show() functions" begin
35-
Base.show(gui)
3635
design = EMGUI.get_design(gui)
37-
Base.show(design)
38-
components = EMGUI.get_components(design)
39-
connections = EMGUI.get_connections(design)
40-
Base.show(components[1])
41-
Base.show(connections[1])
42-
@test true
36+
component = EMGUI.get_components(design)[1]
37+
connection = EMGUI.get_connections(design)[1]
38+
@test Base.show(gui) == dump(gui; maxdepth = 1)
39+
@test Base.show(design) == dump(design; maxdepth = 1)
40+
@test Base.show(component) == dump(component; maxdepth = 1)
41+
@test Base.show(connection) == dump(connection; maxdepth = 1)
4342
end
4443

4544
@testset "Test customizing descriptive names" begin

0 commit comments

Comments
 (0)