Skip to content

Commit c566993

Browse files
committed
more tests
1 parent 5daaa10 commit c566993

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

test/runtests.jl

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
using TableView
22
using Test, WebIO
33

4-
version = readchomp(joinpath(@__DIR__, "..", "ag-grid.version"))
5-
6-
@test isfile(joinpath(@__DIR__, "..", "deps", "ag-grid-$(version)", "ag-grid.js"))
7-
8-
nttable = [
9-
(a = 2.0, b = 3),
10-
(a = 3.0, b = 12)
11-
]
12-
@test showtable(nttable) isa WebIO.Scope
4+
@testset "installation" begin
5+
version = readchomp(joinpath(@__DIR__, "..", "ag-grid.version"))
6+
@test isfile(joinpath(@__DIR__, "..", "deps", "ag-grid-$(version)", "ag-grid.js"))
7+
end
8+
@testset "named tuple table" begin
9+
nttable = [
10+
(a = 2.0, b = 3),
11+
(a = 3.0, b = 12)
12+
]
13+
@test showtable(nttable) isa WebIO.Scope
14+
end
15+
@testset "named tuple table with missing and nothing" begin
16+
nttable = [
17+
(a = 2.0, b = 3, c = missing),
18+
(a = 3.0, b = 12, c = nothing)
19+
]
20+
@test showtable(nttable) isa WebIO.Scope
21+
end

0 commit comments

Comments
 (0)