]> git.scottworley.com Git - paperdoorknob/blobdiff - texfilter_test.py
Move per-thread processing stuff into Thread
[paperdoorknob] / texfilter_test.py
index 8b603a3282c3ebdaf03be4d669ccc3ba0d2a1ee6..66144e821656398ec53d1a4c2e5936c36ca8f578 100644 (file)
@@ -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__':