@@ -115,9 +115,9 @@ impl Default for IntParametrizedChild {
115115
116116#[ test]
117117fn parametrized_struct_where_simple_property_test ( ) {
118- let prop = SimpleProperty :: new ( "test_prop" , 42 ) ;
118+ let prop = SimpleProperty :: new ( "test_prop" , 42isize ) ;
119119 assert_eq ! ( prop. name, "test_prop" ) ;
120- assert_eq ! ( prop. code, 42 ) ;
120+ assert_eq ! ( prop. code, 42isize ) ;
121121
122122 let prop2 = SimpleProperty :: new ( "another_prop" . to_string ( ) , -1_isize ) ;
123123 assert_eq ! ( prop2. name, "another_prop" ) ;
@@ -126,9 +126,9 @@ fn parametrized_struct_where_simple_property_test() {
126126
127127#[ test]
128128fn parametrized_struct_where_string_property_test ( ) {
129- let string_prop = ParametrizedProperty :: < String > :: new ( "string_prop" . to_string ( ) , 100 ) ;
129+ let string_prop = ParametrizedProperty :: < String > :: new ( "string_prop" . to_string ( ) , 100isize ) ;
130130 assert_eq ! ( string_prop. name, "string_prop" ) ;
131- assert_eq ! ( string_prop. code, 100 ) ;
131+ assert_eq ! ( string_prop. code, 100isize ) ;
132132
133133 let got = StringParametrizedChild :: former ( )
134134 . name ( "string_child" . to_string ( ) )
@@ -147,9 +147,9 @@ fn parametrized_struct_where_string_property_test() {
147147
148148#[ test]
149149fn parametrized_struct_where_int_property_test ( ) {
150- let int_prop = ParametrizedProperty :: < i32 > :: new ( 123 , 200 ) ;
150+ let int_prop = ParametrizedProperty :: < i32 > :: new ( 123 , 200isize ) ;
151151 assert_eq ! ( int_prop. name, 123 ) ;
152- assert_eq ! ( int_prop. code, 200 ) ;
152+ assert_eq ! ( int_prop. code, 200isize ) ;
153153
154154 let got = IntParametrizedChild :: former ( )
155155 . name ( "int_child" . to_string ( ) )
@@ -168,7 +168,7 @@ fn parametrized_struct_where_int_property_test() {
168168
169169#[ test]
170170fn parametrized_struct_where_generic_child_test ( ) {
171- let string_prop = ParametrizedProperty :: < String > :: new ( "generic_prop" . to_string ( ) , 300 ) ;
171+ let string_prop = ParametrizedProperty :: < String > :: new ( "generic_prop" . to_string ( ) , 300isize ) ;
172172
173173 let got = ParametrizedChild :: former ( )
174174 . name ( "generic_child" . to_string ( ) )
@@ -188,35 +188,35 @@ fn parametrized_struct_where_generic_child_test() {
188188#[ test]
189189fn parametrized_struct_where_complex_generics_test ( ) {
190190 // Test with bool parametrization
191- let bool_prop = ParametrizedProperty :: < bool > :: new ( true , 400 ) ;
191+ let bool_prop = ParametrizedProperty :: < bool > :: new ( true , 400isize ) ;
192192 let bool_child = ParametrizedChild :: former ( )
193193 . name ( "bool_child" . to_string ( ) )
194194 . properties ( vec ! [ bool_prop. clone( ) ] )
195195 . active ( false )
196196 . form ( ) ;
197197
198198 assert_eq ! ( bool_child. properties[ 0 ] . name, true ) ;
199- assert_eq ! ( bool_child. properties[ 0 ] . code, 400 ) ;
199+ assert_eq ! ( bool_child. properties[ 0 ] . code, 400isize ) ;
200200
201201 // Test with Option<String> parametrization
202- let option_prop = ParametrizedProperty :: < Option < String > > :: new ( Some ( "optional" . to_string ( ) ) , 500 ) ;
202+ let option_prop = ParametrizedProperty :: < Option < String > > :: new ( Some ( "optional" . to_string ( ) ) , 500isize ) ;
203203 let option_child = ParametrizedChild :: former ( )
204204 . name ( "option_child" . to_string ( ) )
205205 . properties ( vec ! [ option_prop. clone( ) ] )
206206 . active ( true )
207207 . form ( ) ;
208208
209209 assert_eq ! ( option_child. properties[ 0 ] . name, Some ( "optional" . to_string( ) ) ) ;
210- assert_eq ! ( option_child. properties[ 0 ] . code, 500 ) ;
210+ assert_eq ! ( option_child. properties[ 0 ] . code, 500isize ) ;
211211}
212212
213213#[ test]
214214fn parametrized_struct_where_multiple_properties_test ( ) {
215215 // Test struct with multiple parametrized properties
216216 let props = vec ! [
217- ParametrizedProperty :: <String >:: new( "prop1" . to_string( ) , 1 ) ,
218- ParametrizedProperty :: <String >:: new( "prop2" . to_string( ) , 2 ) ,
219- ParametrizedProperty :: <String >:: new( "prop3" . to_string( ) , 3 ) ,
217+ ParametrizedProperty :: <String >:: new( "prop1" . to_string( ) , 1isize ) ,
218+ ParametrizedProperty :: <String >:: new( "prop2" . to_string( ) , 2isize ) ,
219+ ParametrizedProperty :: <String >:: new( "prop3" . to_string( ) , 3isize ) ,
220220 ] ;
221221
222222 let got = StringParametrizedChild :: former ( )
@@ -240,38 +240,38 @@ fn parametrized_struct_where_comprehensive_validation_test() {
240240 // Test comprehensive parametrized struct functionality without complex bounds
241241
242242 // Create various property types
243- let simple_prop = SimpleProperty :: new ( "simple" , 1000 ) ;
244- let string_prop = ParametrizedProperty :: < String > :: new ( "string" . to_string ( ) , 2000 ) ;
245- let int_prop = ParametrizedProperty :: < i32 > :: new ( 42 , 3000 ) ;
243+ let simple_prop = SimpleProperty :: new ( "simple" , 1000isize ) ;
244+ let string_prop = ParametrizedProperty :: < String > :: new ( "string" . to_string ( ) , 2000isize ) ;
245+ let int_prop = ParametrizedProperty :: < i32 > :: new ( 42 , 3000isize ) ;
246246
247247 // Create children with different parametrizations
248248 let string_child = StringParametrizedChild :: former ( )
249249 . name ( "comprehensive_string" . to_string ( ) )
250- . properties ( vec ! [ ParametrizedProperty :: <String >:: new( "comp_str" . to_string( ) , 4000 ) ] )
250+ . properties ( vec ! [ ParametrizedProperty :: <String >:: new( "comp_str" . to_string( ) , 4000isize ) ] )
251251 . active ( true )
252252 . form ( ) ;
253253
254254 let int_child = IntParametrizedChild :: former ( )
255255 . name ( "comprehensive_int" . to_string ( ) )
256- . properties ( vec ! [ ParametrizedProperty :: <i32 >:: new( 999 , 5000 ) ] )
256+ . properties ( vec ! [ ParametrizedProperty :: <i32 >:: new( 999 , 5000isize ) ] )
257257 . active ( false )
258258 . form ( ) ;
259259
260260 // Validate all work independently
261261 assert_eq ! ( simple_prop. name, "simple" ) ;
262- assert_eq ! ( simple_prop. code, 1000 ) ;
262+ assert_eq ! ( simple_prop. code, 1000isize ) ;
263263
264264 assert_eq ! ( string_prop. name, "string" ) ;
265- assert_eq ! ( string_prop. code, 2000 ) ;
265+ assert_eq ! ( string_prop. code, 2000isize ) ;
266266
267267 assert_eq ! ( int_prop. name, 42 ) ;
268- assert_eq ! ( int_prop. code, 3000 ) ;
268+ assert_eq ! ( int_prop. code, 3000isize ) ;
269269
270270 assert_eq ! ( string_child. name, "comprehensive_string" ) ;
271271 assert_eq ! ( string_child. properties[ 0 ] . name, "comp_str" ) ;
272- assert_eq ! ( string_child. properties[ 0 ] . code, 4000 ) ;
272+ assert_eq ! ( string_child. properties[ 0 ] . code, 4000isize ) ;
273273
274274 assert_eq ! ( int_child. name, "comprehensive_int" ) ;
275275 assert_eq ! ( int_child. properties[ 0 ] . name, 999 ) ;
276- assert_eq ! ( int_child. properties[ 0 ] . code, 5000 ) ;
276+ assert_eq ! ( int_child. properties[ 0 ] . code, 5000isize ) ;
277277}
0 commit comments