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

Test: Console output in a loop with short pauses in R #4849

Open
DavisVaughan opened this issue Sep 30, 2024 · 0 comments
Open

Test: Console output in a loop with short pauses in R #4849

DavisVaughan opened this issue Sep 30, 2024 · 0 comments
Assignees
Labels
testing Unit, extension-level, and smoke tests

Comments

@DavisVaughan
Copy link
Contributor

DavisVaughan commented Sep 30, 2024

Issue: #4519
PR: #4848

Reprex:

tokens <- c(
  "",
  "Why",
  " do",
  " programmers",
  " prefer",
  " dark",
  " mode",
  "?\n\n",
  "Because",
  " light",
  " attracts",
  " bugs",
  "!"
)

for(token in tokens) {
  cat(token)
  Sys.sleep(0.01)
}

See the before/after videos for expected behavior:
#4848 (comment)

Mostly I'd like to get a test added to ensure that our Console isn't "dropping" any output in this particular case. The Sys.sleep(0.01) is important here!

@DavisVaughan DavisVaughan added the testing Unit, extension-level, and smoke tests label Sep 30, 2024
@testlabauto testlabauto self-assigned this Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Unit, extension-level, and smoke tests
Projects
None yet
Development

No branches or pull requests

2 participants