Skip to content

Test suite issues in version 1.1.5 #159

@tillea

Description

@tillea

Hi,
I wanted to upgrade the repr package in Debian. Unfortunately there are some admittedly strange issues where diff creates some differences that do not really look like different strings. The test suite output starts with

══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test_escaping.r:49'): LaTeX escaping in matrices works ────────────
repr_latex(matrix(c("[", "{", "%", "#"), 2, 2, TRUE)) (`actual`) not identical to "A matrix: 2 × 2 of type chr\n\\begin{tabular}{ll}\n\t {[} & \\{\\\\\n\t \\% &                     \\#\\\\\n\\end{tabular}\n" (`expected`).
    lines(actual)                 | lines(expected)
[1] "A matrix: 2 x 2 of type chr" - "A matrix: 2 × 2 of type chr" [1]
[2] "\\begin{tabular}{ll}"        | "\\begin{tabular}{ll}"        [2]
[3] "\t {[} & \\{\\\\"            | "\t {[} & \\{\\\\"            [3]
[4] "\t \\% & \\#\\\\"            | "\t \\% & \\#\\\\"            [4]
── Failure ('test_escaping.r:56'): LaTeX escaping in matrices works ────────────
repr_latex(...) (`actual`) not identical to "A matrix: 2 × 2 of type chr\n\\begin{tabular}{r|ll}\n  & \\% & \\textbar{}\\\\\n\\hline\n\t\\$ & {]} & \\}\\\\\n\t\\# & \\& &           \\_\\\\\n\\end{tabular}\n" (`expected`).
    lines(actual)                 | lines(expected)
[1] "A matrix: 2 x 2 of type chr" - "A matrix: 2 × 2 of type chr" [1]
[2] "\\begin{tabular}{r|ll}"      | "\\begin{tabular}{r|ll}"      [2]
[3] "  & \\% & \\textbar{}\\\\"   | "  & \\% & \\textbar{}\\\\"   [3]
[4] "\\hline"                     | "\\hline"                     [4]
── Failure ('test_escaping.r:68'): HTML escaping in matrices works ─────────────
repr_html(matrix(c("[", "{", "%", "#"), 2, 2, TRUE)) (`actual`) not identical to "<table class=\"dataframe\">\n<caption>A matrix: 2 × 2 of type chr</caption>\n<tbody>\n\t<tr><td>[</td><td>{</td></tr>\n\t<tr><td>%</td><td>#</td></tr>\n</tbody>\n</table>\n" (`expected`).
lines(actual)[1:5] vs lines(expected)[1:5]
  "<table class=\"dataframe\">"
- "<caption>A matrix: 2 x 2 of type chr</caption>"
+ "<caption>A matrix: 2 × 2 of type chr</caption>"
  "<tbody>"
  "\t<tr><td>[</td><td>{</td></tr>"
  "\t<tr><td>%</td><td>#</td></tr>"

Feel free to find the full build log in the Debian CI.
Kind regards, Andreas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions