@@ -127,19 +127,19 @@ showerror(buf, m_error)
127127error_out3 = takebuf_string (buf)
128128
129129if Base. have_color
130- @test contains (error_out, " method_c6(; x)$cfile$(c6line + 1 ) \e [1m\e [31m got an unsupported keyword argument \" y\"\e [0m" )
130+ @test contains (error_out, " method_c6(; x)$cfile$(c6line + 1 ) \e [1m\e [31m got unsupported keyword argument \" y\"\e [0m" )
131131 @test contains (error_out, " method_c6(\e [1m\e [31m::Any\e [0m; y)$cfile$(c6line + 2 ) " )
132- @test contains (error_out1, " method_c6(::Any; y)$cfile$(c6line + 2 ) \e [1m\e [31m got an unsupported keyword argument \" x\"\e [0m" )
133- @test contains (error_out2, " method_c6_in_module(; x)$cfile$(c6mline + 2 ) \e [1m\e [31m got an unsupported keyword argument \" y\"\e [0m" )
132+ @test contains (error_out1, " method_c6(::Any; y)$cfile$(c6line + 2 ) \e [1m\e [31m got unsupported keyword argument \" x\"\e [0m" )
133+ @test contains (error_out2, " method_c6_in_module(; x)$cfile$(c6mline + 2 ) \e [1m\e [31m got unsupported keyword argument \" y\"\e [0m" )
134134 @test contains (error_out2, " method_c6_in_module(\e [1m\e [31m::Any\e [0m; y)$cfile$(c6mline + 3 ) " )
135- @test contains (error_out3, " method_c6_in_module(::Any; y)$cfile$(c6mline + 3 ) \e [1m\e [31m got an unsupported keyword argument \" x\"\e [0m" )
135+ @test contains (error_out3, " method_c6_in_module(::Any; y)$cfile$(c6mline + 3 ) \e [1m\e [31m got unsupported keyword argument \" x\"\e [0m" )
136136else
137- @test contains (error_out, " method_c6(; x)$cfile$(c6line + 1 ) got an unsupported keyword argument \" y\" " )
137+ @test contains (error_out, " method_c6(; x)$cfile$(c6line + 1 ) got unsupported keyword argument \" y\" " )
138138 @test contains (error_out, " method_c6(!Matched::Any; y)$cfile$(c6line + 2 ) " )
139- @test contains (error_out1, " method_c6(::Any; y)$cfile$(c6line + 2 ) got an unsupported keyword argument \" x\" " )
140- @test contains (error_out2, " method_c6_in_module(; x)$cfile$(c6mline + 2 ) got an unsupported keyword argument \" y\" " )
139+ @test contains (error_out1, " method_c6(::Any; y)$cfile$(c6line + 2 ) got unsupported keyword argument \" x\" " )
140+ @test contains (error_out2, " method_c6_in_module(; x)$cfile$(c6mline + 2 ) got unsupported keyword argument \" y\" " )
141141 @test contains (error_out2, " method_c6_in_module(!Matched::Any; y)$cfile$(c6mline + 3 ) " )
142- @test contains (error_out3, " method_c6_in_module(::Any; y)$cfile$(c6mline + 3 ) got an unsupported keyword argument \" x\" " )
142+ @test contains (error_out3, " method_c6_in_module(::Any; y)$cfile$(c6mline + 3 ) got unsupported keyword argument \" x\" " )
143143end
144144
145145c7line = @__LINE__ + 1
@@ -150,16 +150,16 @@ test_have_color(buf, "\e[0m\nClosest candidates are:\n method_c7(::Any, ::Any;
150150c8line = @__LINE__ + 1
151151method_c8 (a, b; y= 1 , w= 1 ) = a
152152Base. show_method_candidates (buf, MethodError (method_c8, (1 , 1 )), [(:x , 1 ), (:y , 2 ), (:z , 1 ), (:w , 1 )])
153- test_have_color (buf, " \e [0m\n Closest candidates are:\n method_c8(::Any, ::Any; y, w)$cfile$c8line \e [1m\e [31m got an unsupported keyword argument \" x\" , \" z\"\e [0m\e [0m" ,
154- " \n Closest candidates are:\n method_c8(::Any, ::Any; y, w)$cfile$c8line got an unsupported keyword argument \" x\" , \" z\" " )
153+ test_have_color (buf, " \e [0m\n Closest candidates are:\n method_c8(::Any, ::Any; y, w)$cfile$c8line \e [1m\e [31m got unsupported keyword arguments \" x\" , \" z\"\e [0m\e [0m" ,
154+ " \n Closest candidates are:\n method_c8(::Any, ::Any; y, w)$cfile$c8line got unsupported keyword arguments \" x\" , \" z\" " )
155155
156156ac15639line = @__LINE__
157157addConstraint_15639 (c:: Int32 ) = c
158158addConstraint_15639 (c:: Int64 ; uncset= nothing ) = addConstraint_15639 (Int32 (c), uncset= uncset)
159159
160160Base. show_method_candidates (buf, MethodError (addConstraint_15639, (Int32 (1 ),)), [(:uncset , nothing )])
161- test_have_color (buf, " \e [0m\n Closest candidates are:\n addConstraint_15639(::Int32)$cfile$(ac15639line + 1 ) \e [1m\e [31m got an unsupported keyword argument \" uncset\"\e [0m\n addConstraint_15639(\e [1m\e [31m::Int64\e [0m; uncset)$cfile$(ac15639line + 2 ) \e [0m" ,
162- " \n Closest candidates are:\n addConstraint_15639(::Int32)$cfile$(ac15639line + 1 ) got an unsupported keyword argument \" uncset\"\n addConstraint_15639(!Matched::Int64; uncset)$cfile$(ac15639line + 2 ) " )
161+ test_have_color (buf, " \e [0m\n Closest candidates are:\n addConstraint_15639(::Int32)$cfile$(ac15639line + 1 ) \e [1m\e [31m got unsupported keyword argument \" uncset\"\e [0m\n addConstraint_15639(\e [1m\e [31m::Int64\e [0m; uncset)$cfile$(ac15639line + 2 ) \e [0m" ,
162+ " \n Closest candidates are:\n addConstraint_15639(::Int32)$cfile$(ac15639line + 1 ) got unsupported keyword argument \" uncset\"\n addConstraint_15639(!Matched::Int64; uncset)$cfile$(ac15639line + 2 ) " )
163163
164164macro except_str (expr, err_type)
165165 return quote
0 commit comments