@@ -11,8 +11,6 @@ use aztec::{
1111use token::Token ;
1212use uint_note::uint_note::PartialUintNote ;
1313
14- // Happy path tests
15-
1614#[test]
1715unconstrained fn create_order_happy_path () {
1816 let (mut env , orderbook_address , token0_address , token1_address , owner , _ ) =
@@ -133,8 +131,6 @@ unconstrained fn full_flow() {
133131 assert_eq (is_fulfilled , true );
134132}
135133
136- // Unhappy path tests for create_order
137-
138134#[test(should_fail_with = "ZERO_BID_AMOUNT")]
139135unconstrained fn create_order_zero_bid_amount () {
140136 let (mut env , orderbook_address , token0_address , token1_address , owner , _ ) =
@@ -144,7 +140,6 @@ unconstrained fn create_order_zero_bid_amount() {
144140 let ask_amount = 2000 as u128 ;
145141 let authwit_nonce = 1 ;
146142
147- // This should fail when creating the order due to zero bid amount
148143 let _order_id = env .call_private (
149144 owner ,
150145 Orderbook ::at (orderbook_address ).create_order (
@@ -166,7 +161,6 @@ unconstrained fn create_order_zero_ask_amount() {
166161 let ask_amount = 0 as u128 ;
167162 let authwit_nonce = 1 ;
168163
169- // This should fail when creating the order due to zero ask amount
170164 let _order_id = env .call_private (
171165 owner ,
172166 Orderbook ::at (orderbook_address ).create_order (
@@ -189,7 +183,6 @@ unconstrained fn create_order_invalid_bid_token() {
189183 let ask_amount = 2000 as u128 ;
190184 let authwit_nonce = 1 ;
191185
192- // This should fail due to invalid bid token
193186 let _order_id = env .call_private (
194187 owner ,
195188 Orderbook ::at (orderbook_address ).create_order (
@@ -212,7 +205,6 @@ unconstrained fn create_order_invalid_ask_token() {
212205 let ask_amount = 2000 as u128 ;
213206 let authwit_nonce = 1 ;
214207
215- // This should fail due to invalid ask token
216208 let _order_id = env .call_private (
217209 owner ,
218210 Orderbook ::at (orderbook_address ).create_order (
@@ -234,7 +226,6 @@ unconstrained fn create_order_same_tokens() {
234226 let ask_amount = 2000 as u128 ;
235227 let authwit_nonce = 1 ;
236228
237- // This should fail due to same bid and ask tokens
238229 let _order_id = env .call_private (
239230 owner ,
240231 Orderbook ::at (orderbook_address ).create_order (
0 commit comments