-
Notifications
You must be signed in to change notification settings - Fork 0
refactor(autoFIPC): superseded by tested distinct-count contract #324 #318
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
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 |
|---|---|---|
|
|
@@ -770,8 +770,8 @@ autoFIPC <- | |
| if ( | ||
| !is.na(newFormItemName) && | ||
| !is.na(oldFormItemName) && | ||
| (length(stats::na.omit(unique(newFormModel@Data$data[, newFormItemName]))) == | ||
| length(stats::na.omit(unique(oldFormModel@Data$data[, oldFormItemName])))) | ||
| (sum(!is.na(unique(newFormModel@Data$data[, newFormItemName]))) == | ||
| sum(!is.na(unique(oldFormModel@Data$data[, oldFormItemName])))) | ||
|
Comment on lines
+773
to
+774
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. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 새 계산식을 직접 실행하는 회귀 테스트를 추가하세요.
수정 예시 new_idiom <- vapply(
vecs,
- function(x) length(na.omit(unique(x))),
+ function(x) sum(!is.na(unique(x))),
integer(1)
)
legacy_idiom <- vapply(
vecs,
- function(x) length(levels(as.factor(x))),
+ function(x) length(stats::na.omit(unique(x))),
integer(1)
)🤖 Prompt for AI Agents |
||
| ) { | ||
| message( | ||
| 'applying ', | ||
|
|
||
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.
🔍 Equivalence guard misses new expression
The
category-count guardstill evaluatesna.omit, not the newsum(!is.na())expression. This refactor lacks its mandated regression coverage.Was this helpful? React with 👍 or 👎 to provide feedback.