File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -730,6 +730,18 @@ def test_disallowed_grouping__empty_group_on_right(self):
730
730
)
731
731
self .assertIn (msg , out )
732
732
733
+ def test_disallowed_grouping__no_matching_bracket (self ):
734
+ out = self .parse_function_should_fail ("""
735
+ module foo
736
+ foo.empty_group
737
+ param: int
738
+ ]
739
+ group2: int
740
+ ]
741
+ """ )
742
+ msg = "Function empty_group has a ] without a matching [."
743
+ self .assertIn (msg , out )
744
+
733
745
def test_no_parameters (self ):
734
746
function = self .parse_function ("""
735
747
module foo
@@ -809,6 +821,18 @@ def test_single_slash(self):
809
821
)
810
822
self .assertIn (msg , out )
811
823
824
+ def test_double_slash (self ):
825
+ out = self .parse_function_should_fail ("""
826
+ module foo
827
+ foo.bar
828
+ a: int
829
+ /
830
+ b: int
831
+ /
832
+ """ )
833
+ msg = "Function bar uses '/' more than once."
834
+ self .assertIn (msg , out )
835
+
812
836
def test_mix_star_and_slash (self ):
813
837
out = self .parse_function_should_fail ("""
814
838
module foo
You can’t perform that action at this time.
0 commit comments