修复末日next open执行候选测试

This commit is contained in:
boris
2026-07-05 09:40:32 +08:00
parent ab31006d01
commit 61ad4119cf
+2 -9
View File
@@ -4934,7 +4934,7 @@ mod tests {
market(third, 14.0, 15.0),
],
vec![factor(first), factor(second)],
vec![candidate(first), candidate(second)],
vec![candidate(first), candidate(second), candidate(third)],
vec![benchmark(first), benchmark(second), benchmark(third)],
)
.expect("dataset");
@@ -4960,14 +4960,7 @@ mod tests {
.run()
.expect("backtest run");
assert_eq!(
result.fills.len(),
1,
"orders={:?}; equity={:?}; process={:?}",
result.order_events,
result.equity_curve,
result.process_events
);
assert_eq!(result.fills.len(), 1);
assert_eq!(result.fills[0].date, third);
assert_eq!(result.fills[0].decision_date, Some(second));
assert_eq!(result.fills[0].execution_date, Some(third));