@@ -853,7 +853,7 @@ Base.copy(entry::TestRuleEntryInputSpecification) = TestRuleEntryInputSpecificat
853853Base. values (entry:: TestRuleEntryInputSpecification ) = Base. Generator ((arg) -> arg. second, entry. arguments)
854854
855855# Convert the `TestRuleEntryInputSpecification` back into the `Expr` form, e.g `(m_x = ..., q_y = ..., meta = ...)`
856- function Base . convert ( :: Type{Expr} , test_entry:: TestRuleEntryInputSpecification )
856+ function rule_macro_convert_to_expr ( test_entry:: TestRuleEntryInputSpecification )
857857 tuple = Expr (:tuple )
858858 tuple. args = map ((arg) -> Expr (:(= ), arg. first, arg. second), test_entry. arguments)
859859 if ! isnothing (test_entry. meta)
@@ -889,8 +889,8 @@ struct TestRuleEntry
889889end
890890
891891# Convert the `TestRuleEntry` back into the `Expr` form, e.g `(input = ..., output = ...)`
892- function Base . convert ( :: Type{Expr} , test_entry:: TestRuleEntry )
893- return Expr (:tuple , Expr (:(= ), :input , convert (Expr, test_entry. input)), Expr (:(= ), :output , test_entry. output))
892+ function rule_macro_convert_to_expr ( test_entry:: TestRuleEntry )
893+ return Expr (:tuple , Expr (:(= ), :input , rule_macro_convert_to_expr ( test_entry. input)), Expr (:(= ), :output , test_entry. output))
894894end
895895
896896# This function takes a `test` parameter which is expected to be an expression of single test entry.
937937
938938function test_rules_generate_testset (test_entry:: TestRuleEntry , invoke_test_fn, call_macro_fn, rule_specification, configuration)
939939 # `nothing` here is a `LineNumberNode`, macrocall expects a `line` number, but we do not have it here
940- actual_inputs = convert (Expr, test_entry. input)
941- actual_output = Expr (:macrocall , call_macro_fn, nothing , rule_specification, convert (Expr, actual_inputs) )
940+ actual_inputs = rule_macro_convert_to_expr ( test_entry. input)
941+ actual_output = Expr (:macrocall , call_macro_fn, nothing , rule_specification, actual_inputs)
942942 expected_output = test_entry. output
943943 rule_spec_str = " $rule_specification "
944944 rule_inputs_str = " $actual_inputs "
0 commit comments