@@ -139,7 +139,7 @@ let test_semantic_analysis () =
139139 (" var arr: bool[2] = [true]" , " Boolean fill should work" );
140140 ] in
141141
142- List. iter (fun (input , description ) ->
142+ List. iter (fun (input , _description ) ->
143143 let program_text = Printf. sprintf {|
144144@ xdp fn test(ctx: *xdp_md ) -> xdp_action {
145145 % s
@@ -150,7 +150,7 @@ let test_semantic_analysis () =
150150 let ast = Kernelscript.Parse. parse_string program_text in
151151 let symbol_table = Kernelscript.Symbol_table. build_symbol_table ast in
152152 let (_typed_ast, _) = Kernelscript.Type_checker. type_check_and_annotate_ast ~symbol_table: (Some symbol_table) ast in
153- check bool description true true
153+ ()
154154 with
155155 | e -> fail (" Semantic analysis failed for " ^ input ^ " : " ^ Printexc. to_string e)
156156 ) test_cases
@@ -162,7 +162,7 @@ let test_error_cases () =
162162 (" var arr: u32[4] = [1, true, 3]" , " Array elements must have consistent type" );
163163 ] in
164164
165- List. iter (fun (input , expected_error ) ->
165+ List. iter (fun (input , _expected_error ) ->
166166 let program_text = Printf. sprintf {|
167167@ xdp fn test(ctx: *xdp_md ) -> xdp_action {
168168 % s
@@ -175,7 +175,7 @@ let test_error_cases () =
175175 let (_typed_ast, _) = Kernelscript.Type_checker. type_check_and_annotate_ast ~symbol_table: (Some symbol_table) ast in
176176 fail (" Expected error for " ^ input ^ " but compilation succeeded" )
177177 with
178- | _ -> check bool expected_error true true
178+ | _ -> ()
179179 ) test_cases
180180
181181let () =
0 commit comments