X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/24e866347ec2355c35e0e39e317946b9b833d2ed..87fb552dd37301bc0834afc09aa99cadd6310b98:/texfilter_test.py diff --git a/texfilter_test.py b/texfilter_test.py index 8b603a3..66144e8 100644 --- a/texfilter_test.py +++ b/texfilter_test.py @@ -13,11 +13,14 @@ class TestTexFilters(unittest.TestCase): def testStripNBSP(self) -> None: self.assertEqual( - ApplyTexFilters("FixBareEmph", b'\\emph{Yes?}'), + ApplyTexFilters("FixBareNesting", b'\\emph{Yes?}'), b'\\hspace{0pt}\\emph{Yes?}') self.assertEqual( - ApplyTexFilters("FixBareEmph", b'Reassuring.\n\n\\emph{Yes?}'), + ApplyTexFilters("FixBareNesting", b'Reassuring.\n\n\\emph{Yes?}'), b'Reassuring.\n\n\\hspace{0pt}\\emph{Yes?}') + self.assertEqual( + ApplyTexFilters("FixBareNesting", b'\\st{Nope}'), + b'\\hspace{0pt}\\st{Nope}') if __name__ == '__main__':