MilesCranmer commited on
Commit
d045586
1 Parent(s): 3af12da

Fix latex string tests

Browse files
Files changed (1) hide show
  1. pysr/test/test.py +3 -3
pysr/test/test.py CHANGED
@@ -838,13 +838,13 @@ class TestLaTeXTable(unittest.TestCase):
838
  x = sympy.Symbol("x")
839
  expr = x * 3232.324857384 - 1.4857485e-10
840
  self.assertEqual(
841
- to_latex(expr, prec=2), "3.2 \cdot 10^{3} x - 1.5 \cdot 10^{-10}"
842
  )
843
  self.assertEqual(
844
- to_latex(expr, prec=3), "3.23 \cdot 10^{3} x - 1.49 \cdot 10^{-10}"
845
  )
846
  self.assertEqual(
847
- to_latex(expr, prec=8), "3232.3249 x - 1.4857485 \cdot 10^{-10}"
848
  )
849
 
850
  def test_latex_break_long_equation(self):
 
838
  x = sympy.Symbol("x")
839
  expr = x * 3232.324857384 - 1.4857485e-10
840
  self.assertEqual(
841
+ to_latex(expr, prec=2), r"3.2 \cdot 10^{3} x - 1.5 \cdot 10^{-10}"
842
  )
843
  self.assertEqual(
844
+ to_latex(expr, prec=3), r"3.23 \cdot 10^{3} x - 1.49 \cdot 10^{-10}"
845
  )
846
  self.assertEqual(
847
+ to_latex(expr, prec=8), r"3232.3249 x - 1.4857485 \cdot 10^{-10}"
848
  )
849
 
850
  def test_latex_break_long_equation(self):