Source

TracMathJaxPlugin / tests.py

Diff from to

File tests.py

         result1 = re.findall(tracmathjax.WIKI_RE, test_str1)
         self.assertEqual(result1, [r'$$ \alpha $$'])
 
+    def test_displaymath_brackets(self):
+        test_str1 = r"foo \[ \alpha \] bar"
+        result1 = re.findall(tracmathjax.WIKI_RE, test_str1)
+        self.assertEqual(result1, [r'\[ \alpha \]'])
+
 if __name__ == "__main__":
     unittest.main()