@@ -25,16 +25,36 @@ class TestCase:
2525 filename : str
2626 semantic : bool
2727 cleanups : bool
28+ smartquotes : bool
2829
2930 test_cases : list [TestCase ] = [
3031 TestCase (
31- name = "plain" , filename = "testdoc.expected.plain.md" , semantic = False , cleanups = False
32+ name = "plain" ,
33+ filename = "testdoc.expected.plain.md" ,
34+ semantic = False ,
35+ cleanups = False ,
36+ smartquotes = False ,
3237 ),
3338 TestCase (
34- name = "semantic" , filename = "testdoc.expected.semantic.md" , semantic = True , cleanups = False
39+ name = "semantic" ,
40+ filename = "testdoc.expected.semantic.md" ,
41+ semantic = True ,
42+ cleanups = False ,
43+ smartquotes = False ,
3544 ),
3645 TestCase (
37- name = "cleaned" , filename = "testdoc.expected.cleaned.md" , semantic = True , cleanups = True
46+ name = "cleaned" ,
47+ filename = "testdoc.expected.cleaned.md" ,
48+ semantic = True ,
49+ cleanups = True ,
50+ smartquotes = False ,
51+ ),
52+ TestCase (
53+ name = "auto" ,
54+ filename = "testdoc.expected.auto.md" ,
55+ semantic = True ,
56+ cleanups = True ,
57+ smartquotes = True ,
3858 ),
3959 ]
4060
@@ -44,7 +64,12 @@ class TestCase:
4464 test_doc = testdoc_dir / case .filename
4565 expected = test_doc .read_text ()
4666
47- actual = fill_markdown (orig_content , semantic = case .semantic , cleanups = case .cleanups )
67+ actual = fill_markdown (
68+ orig_content ,
69+ semantic = case .semantic ,
70+ cleanups = case .cleanups ,
71+ smartquotes = case .smartquotes ,
72+ )
4873 if actual != expected :
4974 actual_path = testdoc_dir / f"testdoc.actual.{ case .name } .md"
5075 print (f"actual was different from expected for { case .name } !" )
0 commit comments