Skip to content

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

Merged
rapids-bot[bot] merged 2 commits into
NVIDIA:branch-23.10from
davidwendt:cudftest-print-tabs
Aug 30, 2023
Merged

Add tab as literal to cudf::test::to_string output#13993
rapids-bot[bot] merged 2 commits into
NVIDIA:branch-23.10from
davidwendt:cudftest-print-tabs

Conversation

@davidwendt

Copy link
Copy Markdown
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

@bdice bdice left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@davidwendt

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

/merge

@rapids-bot
rapids-bot Bot merged commit ed754da into NVIDIA: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