Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tab as literal to cudf::test::to_string output #13993

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

davidwendt
Copy link
Contributor

Description

Adds escaped \\t to the cudf::test::to_string() output.
Found this while working on #13891 where the output included tabs but was shown as a various number of spaces in the console when using cudf::test::print().
Also added \\b for good measure as well as a gtest for all the supported escape sequences.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@davidwendt davidwendt added 3 - Ready for Review Ready for review by team libcudf Affects libcudf (C++/CUDA) code. improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Aug 29, 2023
@davidwendt davidwendt requested a review from a team as a code owner August 29, 2023 16:15
@davidwendt davidwendt self-assigned this Aug 29, 2023
Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidwendt
Copy link
Contributor Author

Any other candidates from this list? https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences

Ah, your googling is better than mine. I will add a few more.

@davidwendt
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit ed754da into rapidsai:branch-23.10 Aug 30, 2023
@davidwendt davidwendt deleted the cudftest-print-tabs branch August 30, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants