@@ -87,11 +87,11 @@ mod dynamic_array {
8787 assert_eq (expected_slot , dynamic_array (slot , 2 , 7 ));
8888 }
8989
90- // #[test(should_fail_with = "Attempt to add with overflow")]
91- // fn fail_overflow() {
92- // let slot = from_field(6);
93- // let _ = dynamic_array(slot, 2, MAX_FIELD_VALUE);
94- // }
90+ #[test(should_fail_with = "Attempt to add with overflow")]
91+ fn fail_overflow () {
92+ let slot = from_field (6 );
93+ let _ = dynamic_array (slot , 2 , MAX_FIELD_VALUE );
94+ }
9595}
9696
9797mod dynamic_array_with_precalculated_slot {
@@ -121,11 +121,11 @@ mod dynamic_array_with_precalculated_slot {
121121 assert_eq (expected_slot , dynamic_array_with_precalculated_slot (slot , 10 , 1 _000 _000 _000 ));
122122 }
123123
124- // #[test(should_fail_with = "Attempt to add with overflow")]
125- // fn fail_overflow() {
126- // let slot = from([0xfe; 32]);
127- // let _ = dynamic_array_with_precalculated_slot(slot, 2, MAX_FIELD_VALUE);
128- // }
124+ #[test(should_fail_with = "Attempt to add with overflow")]
125+ fn fail_overflow () {
126+ let slot = from ([0xfe ; 32 ]);
127+ let _ = dynamic_array_with_precalculated_slot (slot , 2 , MAX_FIELD_VALUE );
128+ }
129129}
130130
131131mod struct_slot {
@@ -142,9 +142,9 @@ mod struct_slot {
142142 assert_eq (expected_slot , struct_slot (slot , 256 ));
143143 }
144144
145- // #[test(should_fail_with = "Attempt to add with overflow")]
146- // fn overflow() {
147- // let slot = from([0xff; 32]);
148- // let _ = struct_slot(slot, 256);
149- // }
145+ #[test(should_fail_with = "Attempt to add with overflow")]
146+ fn overflow () {
147+ let slot = from ([0xff ; 32 ]);
148+ let _ = struct_slot (slot , 256 );
149+ }
150150}
0 commit comments