@@ -4,9 +4,7 @@ use alloc::{collections::BTreeSet, vec::Vec};
44use proptest:: prelude:: * ;
55
66use super :: { Felt , Rpx256 } ;
7- use crate :: {
8- ONE , Word , ZERO , hash:: algebraic_sponge:: AlgebraicSponge , rand:: test_utils:: rand_value,
9- } ;
7+ use crate :: { ONE , Word , ZERO , rand:: test_utils:: rand_value} ;
108
119// The number of iterations to run the `ext_round_matches_reference_many` test.
1210#[ cfg( all(
@@ -59,33 +57,6 @@ fn merge_vs_merge_in_domain() {
5957 assert_ne ! ( merge_result, merge_in_domain_result) ;
6058}
6159
62- #[ test]
63- fn hash_elements_vs_merge_with_int ( ) {
64- let tmp = [ Felt :: new ( rand_value ( ) ) ; 4 ] ;
65- let seed = Word :: new ( tmp) ;
66-
67- // ----- value fits into a field element ------------------------------------------------------
68- let val: Felt = Felt :: new ( rand_value ( ) ) ;
69- let m_result = <Rpx256 as AlgebraicSponge >:: merge_with_int ( seed, val. as_canonical_u64 ( ) ) ;
70-
71- let mut elements = seed. as_elements ( ) . to_vec ( ) ;
72- elements. push ( val) ;
73- let h_result = Rpx256 :: hash_elements ( & elements) ;
74-
75- assert_eq ! ( m_result, h_result) ;
76-
77- // ----- value does not fit into a field element ----------------------------------------------
78- let val = Felt :: ORDER + 2 ;
79- let m_result = <Rpx256 as AlgebraicSponge >:: merge_with_int ( seed, val) ;
80-
81- let mut elements = seed. as_elements ( ) . to_vec ( ) ;
82- elements. push ( Felt :: new ( val) ) ;
83- elements. push ( ONE ) ;
84- let h_result = Rpx256 :: hash_elements ( & elements) ;
85-
86- assert_eq ! ( m_result, h_result) ;
87- }
88-
8960#[ test]
9061fn hash_padding ( ) {
9162 // adding a zero bytes at the end of a byte string should result in a different hash
0 commit comments