File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -729,6 +729,18 @@ def test_disallowed_grouping__empty_group_on_right(self):
729729 )
730730 self .assertIn (msg , out )
731731
732+ def test_disallowed_grouping__no_matching_bracket (self ):
733+ out = self .parse_function_should_fail ("""
734+ module foo
735+ foo.empty_group
736+ param: int
737+ ]
738+ group2: int
739+ ]
740+ """ )
741+ msg = "Function empty_group has a ] without a matching [."
742+ self .assertIn (msg , out )
743+
732744 def test_no_parameters (self ):
733745 function = self .parse_function ("""
734746 module foo
@@ -808,6 +820,18 @@ def test_single_slash(self):
808820 )
809821 self .assertIn (msg , out )
810822
823+ def test_double_slash (self ):
824+ out = self .parse_function_should_fail ("""
825+ module foo
826+ foo.bar
827+ a: int
828+ /
829+ b: int
830+ /
831+ """ )
832+ msg = "Function bar uses '/' more than once."
833+ self .assertIn (msg , out )
834+
811835 def test_mix_star_and_slash (self ):
812836 out = self .parse_function_should_fail ("""
813837 module foo
You can’t perform that action at this time.
0 commit comments