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 @@ -729,6 +729,18 @@ def test_disallowed_grouping__empty_group_on_right(self):
729
729
)
730
730
self .assertIn (msg , out )
731
731
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
+
732
744
def test_no_parameters (self ):
733
745
function = self .parse_function ("""
734
746
module foo
@@ -808,6 +820,18 @@ def test_single_slash(self):
808
820
)
809
821
self .assertIn (msg , out )
810
822
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
+
811
835
def test_mix_star_and_slash (self ):
812
836
out = self .parse_function_should_fail ("""
813
837
module foo
You can’t perform that action at this time.
0 commit comments