Skip to content

Commit

Permalink
Updated test for tick state value
Browse files Browse the repository at this point in the history
  • Loading branch information
crnbarr93 committed Mar 14, 2024
1 parent 6b56aa8 commit 9022be5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/sumtree-orderbook/src/tests/test_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,14 +308,14 @@ fn test_place_limit() {
format_test_name(test.name)
);
assert_eq!(
state.effective_total_amount_swapped,
Decimal256::zero(),
state.cumulative_total_limits,
Decimal256::from_ratio(test.quantity, Uint256::one()),
"{}",
format_test_name(test.name)
);
assert_eq!(
state.cumulative_total_limits,
Decimal256::one(),
state.effective_total_amount_swapped,
Decimal256::zero(),
"{}",
format_test_name(test.name)
);
Expand Down

0 comments on commit 9022be5

Please sign in to comment.