File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 11name = " StructHelpers"
22uuid = " 4093c41a-2008-41fd-82b8-e3f9d02b504f"
33authors = [" Jan Weidner <jw3126@gmail.com> and contributors" ]
4- version = " 1.1.1 "
4+ version = " 1.1.2 "
55
66[deps ]
77ConstructionBase = " 187b0558-2788-49d3-abe0-74a17ed4e7c9"
Original file line number Diff line number Diff line change @@ -236,9 +236,9 @@ macro batteries(T, kw...)
236236 return esc (ret)
237237end
238238
239- function error_parse_single_macro_kw (kw; comment= nothing )
239+ function error_parse_macro_kw (kw; comment= nothing )
240240 msg = """
241- Excepted a keyword argument of the form name = value.
241+ Expected a keyword argument of the form name = value.
242242 Got $(kw) instead.
243243 """
244244 if comment != = nothing
Original file line number Diff line number Diff line change @@ -89,10 +89,11 @@ struct SNoIsEqual; a; end
8989 @test Empty1 () != = Empty2 ()
9090 @test Empty1 () != Empty2 ()
9191 @test hash (Empty1 ()) != hash (Empty2 ())
92-
93- @test_throws Exception @macroexpand @batteries SErrors kwconstructor= " true"
94- @test_throws Exception @macroexpand @batteries SErrors nonsense= true
95- @macroexpand @batteries SErrors kwconstructor= true
92+
93+ @test_throws " Bad keyword argument value:" @macroexpand @batteries SErrors kwconstructor= " true"
94+ @test_throws " Unsupported keyword" @macroexpand @batteries SErrors kwconstructor= true nonsense= true
95+ @test_throws " Expected a keyword argument of the form name = value" @macroexpand @batteries SErrors nonsense
96+
9697
9798 @testset " typesalt" begin
9899 @test hash (Salt1 ()) === hash (Salt1b ())
You can’t perform that action at this time.
0 commit comments