This commit is contained in:
Macbook
2026-06-12 23:52:08 +09:00
parent 4a6be82c15
commit 2c0570c95e
10 changed files with 733 additions and 47 deletions
@@ -55,13 +55,17 @@ class CandleRangeWindowRuleTest {
}
@Test
void legacyCandleRangeFour_treatedAsExistsIn() throws Exception {
void legacyCandleRangeWithoutMode_treatedAsCurrent() throws Exception {
Rule rule = toGtRule("""
"candleRange": 4
""");
Rule explicit = toGtRule("""
"candleRangeMode": "CURRENT",
"candleRange": 4
""");
int idx = series.getEndIndex();
assertTrue(rule.isSatisfied(idx, null),
"candleRangeMode 미설정 + candleRange=4 → EXISTS_IN 호환");
assertEquals(explicit.isSatisfied(idx, null), rule.isSatisfied(idx, null),
"candleRangeMode 미설정 + candleRange=4 → CURRENT (윈도우 미적용)");
}
@Test