@@ -152,20 +152,20 @@ mod rlp_fragment {
152152
153153 #[test]
154154 fn success () {
155- fragment .assert_eq_u8 ("Field" , encoded_value , value as u8 )
155+ fragment .assert_eq_num ::< 5 , 1 , 1 , u8 > ("Field" , encoded_value , value as u8 )
156156 }
157157
158158 #[test(should_fail_with = "Field: Invalid RLP length")]
159159 fn invalid_length () {
160160 let mut invalid_length_fragment = fragment ;
161161 invalid_length_fragment .length = 2 ;
162162
163- invalid_length_fragment .assert_eq_u8 ("Field" , encoded_value , value )
163+ invalid_length_fragment .assert_eq_num ::< 5 , 1 , 1 , u8 > ("Field" , encoded_value , value )
164164 }
165165
166166 #[test(should_fail_with = "Field: Invalid RLP value")]
167167 fn invalid_value () {
168- fragment .assert_eq_u8 ("Field" , encoded_value , value + 1 )
168+ fragment .assert_eq_num ::< 5 , 1 , 1 , u8 > ("Field" , encoded_value , value + 1 )
169169 }
170170 }
171171
@@ -179,18 +179,18 @@ mod rlp_fragment {
179179
180180 #[test]
181181 fn success () {
182- fragment .assert_eq_u32 ("Field" , encoded_value , value )
182+ fragment .assert_eq_num ::< 5 , 4 , 4 , u32 > ("Field" , encoded_value , value )
183183 }
184184
185185 #[test(should_fail_with = "Field: Invalid RLP length")]
186186 fn invalid_length () {
187187 let short_value = 0x10 ;
188- fragment .assert_eq_u32 ("Field" , encoded_value , short_value )
188+ fragment .assert_eq_num ::< 5 , 4 , 4 , u32 > ("Field" , encoded_value , short_value )
189189 }
190190
191191 #[test(should_fail_with = "Field: Invalid RLP value")]
192192 fn invalid_value () {
193- fragment .assert_eq_u32 ("Field" , encoded_value , value + 1 )
193+ fragment .assert_eq_num ::< 5 , 4 , 4 , u32 > ("Field" , encoded_value , value + 1 )
194194 }
195195 }
196196
@@ -205,18 +205,18 @@ mod rlp_fragment {
205205
206206 #[test]
207207 fn success () {
208- fragment .assert_eq_u64 ("Field" , encoded_value , value )
208+ fragment .assert_eq_num ::< 5 , 8 , 8 , u64 > ("Field" , encoded_value , value )
209209 }
210210
211211 #[test(should_fail_with = "Field: Invalid RLP length")]
212212 fn invalid_length () {
213213 let short_value = 0x10 ;
214- fragment .assert_eq_u64 ("Field" , encoded_value , short_value )
214+ fragment .assert_eq_num ::< 5 , 8 , 8 , u64 > ("Field" , encoded_value , short_value )
215215 }
216216
217217 #[test(should_fail_with = "Field: Invalid RLP value")]
218218 fn invalid_value () {
219- fragment .assert_eq_u64 ("Field" , encoded_value , value + 1 )
219+ fragment .assert_eq_num ::< 5 , 8 , 8 , u64 > ("Field" , encoded_value , value + 1 )
220220 }
221221 }
222222
@@ -233,18 +233,18 @@ mod rlp_fragment {
233233
234234 #[test]
235235 fn success () {
236- fragment .assert_eq_u128 ("Field" , encoded_value , value )
236+ fragment .assert_eq_num ::< 5 , 16 , 16 , u128 > ("Field" , encoded_value , value )
237237 }
238238
239239 #[test(should_fail_with = "Field: Invalid RLP length")]
240240 fn invalid_length () {
241241 let short_value = 0x10 as u128 ;
242- fragment .assert_eq_u128 ("Field" , encoded_value , short_value )
242+ fragment .assert_eq_num ::< 5 , 16 , 16 , u128 > ("Field" , encoded_value , short_value )
243243 }
244244
245245 #[test(should_fail_with = "Field: Invalid RLP value")]
246246 fn invalid_value () {
247- fragment .assert_eq_u128 ("Field" , encoded_value , value + 1 )
247+ fragment .assert_eq_num ::< 5 , 16 , 16 , u128 > ("Field" , encoded_value , value + 1 )
248248 }
249249 }
250250
0 commit comments