Skip to content

Make Column Names Comparison Case Insensitive #234

@adamsma

Description

@adamsma

My database transforms all column names to lower case. This causes a failure when comparing to generated tables with upper case letters, i.e. iris dataset. I'm not sure how this affects all the other tests but options could be:

  1. in get_iris change all columns to lower case
    names(datasets_iris) <- tolower(names(datasets_iris))
  2. make similar transformation to lower case for all data.frame comparisons
  3. use testthat::expected_equivalent which ignores attributes
  4. allow for tweak that makes column names lower case

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions