Skip to content

Commit 24449f7

Browse files
committed
🚨 [Text] Improve file organization
1 parent e35e02c commit 24449f7

File tree

3 files changed

+41
-48
lines changed

3 files changed

+41
-48
lines changed

test/backends/text/markdown.jl

Lines changed: 0 additions & 46 deletions
This file was deleted.

test/backends/text/special_cells.jl

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,47 @@
55
############################################################################################
66

77
@testset "Special Cells" verbose = true begin
8+
@testset "Markdown" begin
9+
data_md = [
10+
1 md"**bold**"
11+
2 md"""# Title
12+
13+
Paragraph
14+
15+
code
16+
"""
17+
]
18+
19+
expected = """
20+
┌────────┬──────────────────────────────────────────────┐
21+
│ Col. 1 │ Col. 2 │
22+
├────────┼──────────────────────────────────────────────┤
23+
│ 1 │ bold │
24+
│ 2 │ Title\\n ≡≡≡≡≡\\n\\n Paragraph\\n\\n code │
25+
└────────┴──────────────────────────────────────────────┘
26+
"""
27+
28+
result = pretty_table(String, data_md; alignment = [:r, :l])
29+
@test result == expected
30+
31+
expected = """
32+
┌────────┬─────────────┐
33+
│ Col. 1 │ Col. 2 │
34+
├────────┼─────────────┤
35+
│ 1 │ bold │
36+
│ 2 │ Title │
37+
│ │ ≡≡≡≡≡ │
38+
│ │ │
39+
│ │ Paragraph │
40+
│ │ │
41+
│ │ code │
42+
└────────┴─────────────┘
43+
"""
44+
45+
result = pretty_table(String, data_md; alignment = [:r, :l], line_breaks = true)
46+
@test result == expected
47+
end
48+
849
@testset "Undefined Cells" begin
950
v = Vector{Any}(undef, 5)
1051
v[1] = undef
@@ -38,5 +79,4 @@
3879

3980
@test result == expected
4081
end
41-
4282
end

test/runtests.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ end
8282
include("./backends/text/horizontal_lines.jl")
8383
include("./backends/text/issues.jl")
8484
include("./backends/text/line_breaks.jl")
85-
include("./backends/text/markdown.jl")
8685
include("./backends/text/offset_arrays.jl")
8786
include("./backends/text/renderers.jl")
8887
include("./backends/text/special_cells.jl")

0 commit comments

Comments
 (0)