-
Notifications
You must be signed in to change notification settings - Fork 0
π‘οΈ Sentinel: [CRITICAL] λνν ν둬ννΈμ μ λ ₯ κ°μ λ³ν ν¬λμ μ·¨μ½μ μμ #295
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| test_that("interactive prompt handles large numbers correctly without crashing", { | ||
| # We mock readline to return a huge number that coerces to NA | ||
| my_readline <- function(...) "9999999999999999999999999" | ||
| mockery::stub(aFIPC::autoFIPC, 'readline', my_readline) | ||
| mockery::stub(aFIPC::autoFIPC, 'interactive', TRUE) | ||
|
devin-ai-integration[bot] marked this conversation as resolved.
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| expect_error( | ||
| aFIPC::autoFIPC( | ||
| newformXData = data.frame(A=1), | ||
| oldformYData = data.frame(A=2), | ||
| newformCommonItemNames = c('A'), | ||
| oldformCommonItemNames = c('A') | ||
| ), | ||
| "Too many invalid common item confirmation attempts" | ||
|
Comment on lines
+4
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. π‘ Coercion test never exercises the prompt path
Prompt for agentsWas this helpful? React with π or π to provide feedback. |
||
| ) | ||
| }) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π Info: Stricter regex changes accept/reject behavior
The old
^[0-9]+$accepted any digit string, so inputs like01,3, or99reachedas.integerand either coerced to an accepted value or hit a downstream stop. The new^[12]$accepts only1or2and otherwise loops to the 3-attempt cap. This narrows accepted inputs, consistent with the fix's intent to prevent NA coercion.Was this helpful? React with π or π to provide feedback.