Skip to content

Commit 636db07

Browse files
committed
fix failing tests
1 parent b9cdd52 commit 636db07

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

test/ijulia.jl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@ using Interact
1010

1111
profile = normpath(dirname(@__FILE__), "profile.json")
1212
IJulia.init([profile])
13-
redirect_stdout(IJulia.orig_STDOUT)
14-
redirect_stderr(IJulia.orig_STDERR)
13+
redirect_stdout(IJulia.orig_STDOUT[])
14+
redirect_stderr(IJulia.orig_STDERR[])
1515

1616
include(Interact.ijulia_setup_path)
1717

1818
sliderWidget = slider(1:5)
19+
@testset "ijulia.jl" begin
1920

20-
@test """Interact.Slider{Int64}(Signal{Int64}(3, nactions=0),"",3,1:5,"d",true)""" == stringmime("text/plain", sliderWidget)
21-
@test "3" == stringmime("text/plain", signal(sliderWidget))
21+
@test """Interact.Slider{Int64}(Signal{Int64}(3, nactions=1),\"\",3,1:5,\"horizontal\",true,\"d\",true)""" == stringmime("text/plain", sliderWidget)
22+
@test "3" == stringmime("text/plain", signal(sliderWidget))
2223

23-
@test "" == stringmime("text/html", sliderWidget)
24+
@test "" == stringmime("text/html", sliderWidget)
2425

2526

26-
close(IJulia.ctx)
27+
close(IJulia.ctx[])
28+
end

test/runtests.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,5 @@ else
55
const Test = BaseTestNext
66
end
77

8-
@testset "widgets.jl" begin
9-
include("widgets.jl")
10-
end
11-
12-
@testset "ijulia.jl" begin
13-
include("ijulia.jl")
14-
end
8+
include("widgets.jl")
9+
include("ijulia.jl")

0 commit comments

Comments
 (0)