-
Notifications
You must be signed in to change notification settings - Fork 0
refactor(autoFIPC): superseded by tested canonical contract #324 #283
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 변경된 계산식을 직접 검증하는 회귀 테스트를 추가하세요. 제공된 코딩 가이드라인의 🤖 Prompt for AI AgentsSource: Coding guidelines |
||
| ) { | ||
| 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.
📝 Info: Equivalence guard and doc still cite the old idiom
The code now uses
sum(!is.na(unique(x))), but the pinned regression guard (test-optimization-equivalence.R) and the linking doc (fixed-parameter-item-calibration.md) still describe the idiom aslength(na.omit(unique(x))). Both idioms are equivalent so the test passes, but it no longer pins the actual expression in the code.Was this helpful? React with 👍 or 👎 to provide feedback.