修复末日next open执行候选测试
This commit is contained in:
@@ -4934,7 +4934,7 @@ mod tests {
|
|||||||
market(third, 14.0, 15.0),
|
market(third, 14.0, 15.0),
|
||||||
],
|
],
|
||||||
vec![factor(first), factor(second)],
|
vec![factor(first), factor(second)],
|
||||||
vec![candidate(first), candidate(second)],
|
vec![candidate(first), candidate(second), candidate(third)],
|
||||||
vec![benchmark(first), benchmark(second), benchmark(third)],
|
vec![benchmark(first), benchmark(second), benchmark(third)],
|
||||||
)
|
)
|
||||||
.expect("dataset");
|
.expect("dataset");
|
||||||
@@ -4960,14 +4960,7 @@ mod tests {
|
|||||||
.run()
|
.run()
|
||||||
.expect("backtest run");
|
.expect("backtest run");
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(result.fills.len(), 1);
|
||||||
result.fills.len(),
|
|
||||||
1,
|
|
||||||
"orders={:?}; equity={:?}; process={:?}",
|
|
||||||
result.order_events,
|
|
||||||
result.equity_curve,
|
|
||||||
result.process_events
|
|
||||||
);
|
|
||||||
assert_eq!(result.fills[0].date, third);
|
assert_eq!(result.fills[0].date, third);
|
||||||
assert_eq!(result.fills[0].decision_date, Some(second));
|
assert_eq!(result.fills[0].decision_date, Some(second));
|
||||||
assert_eq!(result.fills[0].execution_date, Some(third));
|
assert_eq!(result.fills[0].execution_date, Some(third));
|
||||||
|
|||||||
Reference in New Issue
Block a user