Skip to content

Commit

Permalink
Fix Markdown in test (#2572)
Browse files Browse the repository at this point in the history
Since JuliaLang/julia#38502, Markdown printed has changed slightly, making tests fail
on nightly.
  • Loading branch information
nalimilan authored Dec 6, 2020
1 parent 155b0b6 commit 0d909c1
Showing 1 changed file with 31 additions and 14 deletions.
45 changes: 31 additions & 14 deletions test/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -222,20 +222,37 @@ end
" * γ∞2∫αγ∞3∫αγ∞4∫αγ∞5∫αγ∞6∫αγ∞7∫αγ∞8∫αγ∞9∫αγ∞0"),
]
)
@test sprint(show, "text/plain", df) ==
"""
8×2 DataFrame
Row │ A B
│ Int64 MD…
─────┼──────────────────────────────────────────
1 │ 1 DataFrames.jl (http://juliadat…
2 │ 4 \\frac{x^2}{x^2+y^2}
3 │ 9 Header\\n ≡≡≡≡≡≡≡≡
4 │ 16 This is very, very, very, very…
5 │ 25
6 │ 36 ∫αγ∞1∫αγ∞2∫αγ∞3∫αγ∞4∫αγ∞5∫αγ∞6…
7 │ 49 ∫αγ∞1∫αγ∞\\n\\n • 2∫αγ∞3∫α…
8 │ 64 ∫αγ∞1∫αγ∞2∫αγ∞3∫αγ∞4∫αγ∞5∫αγ∞6…"""
if VERSION < v"1.6.0-DEV"
@test sprint(show, "text/plain", df) ==
"""
8×2 DataFrame
Row │ A B
│ Int64 MD…
─────┼──────────────────────────────────────────
1 │ 1 DataFrames.jl (http://juliadat…
2 │ 4 \\frac{x^2}{x^2+y^2}
3 │ 9 Header\\n ≡≡≡≡≡≡≡≡
4 │ 16 This is very, very, very, very…
5 │ 25
6 │ 36 ∫αγ∞1∫αγ∞2∫αγ∞3∫αγ∞4∫αγ∞5∫αγ∞6…
7 │ 49 ∫αγ∞1∫αγ∞\\n\\n • 2∫αγ∞3∫α…
8 │ 64 ∫αγ∞1∫αγ∞2∫αγ∞3∫αγ∞4∫αγ∞5∫αγ∞6…"""
else
@test sprint(show, "text/plain", df) ==
"""
8×2 DataFrame
Row │ A B
│ Int64 MD…
─────┼──────────────────────────────────────────
1 │ 1 DataFrames.jl (http://juliadat…
2 │ 4 \\frac{x^2}{x^2+y^2}
3 │ 9 Header\\n ≡≡≡≡≡≡≡≡
4 │ 16 This is very, very, very, very…
5 │ 25
6 │ 36 ∫αγ∞1∫αγ∞2∫αγ∞3∫αγ∞4∫αγ∞5∫αγ∞6…
7 │ 49 ∫αγ∞1∫αγ∞\\n\\n • 2∫αγ∞3∫αγ∞…
8 │ 64 ∫αγ∞1∫αγ∞2∫αγ∞3∫αγ∞4∫αγ∞5∫αγ∞6…"""
end

@test sprint(show, "text/csv", df) ==
"""
Expand Down

0 comments on commit 0d909c1

Please sign in to comment.