File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1986,8 +1986,7 @@ def test_from_structural_tag_with_structural_tag_instance(
19861986 stag_format : xgr .structural_tag .Format , instance : str , is_accepted : bool
19871987):
19881988 stag = xgr .StructuralTag (format = stag_format )
1989- grammar = xgr .Grammar .from_structural_tag (stag )
1990- assert _is_grammar_accept_string (grammar , instance ) == is_accepted
1989+ check_stag_with_instance_in_stag_style (stag , instance , is_accepted )
19911990
19921991
19931992@pytest .mark .parametrize (
@@ -1996,9 +1995,7 @@ def test_from_structural_tag_with_structural_tag_instance(
19961995def test_from_structural_tag_with_format_instance (
19971996 stag_format : xgr .structural_tag .Format , instance : str , is_accepted : bool
19981997):
1999- stag = xgr .StructuralTag (format = stag_format )
2000- grammar = xgr .Grammar .from_structural_tag (stag )
2001- assert _is_grammar_accept_string (grammar , instance ) == is_accepted
1998+ check_stag_with_instance_in_format_style (stag_format , instance , is_accepted )
20021999
20032000
20042001if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments