Skip to content

Commit 93dd6c1

Browse files
committed
Fix failing test
1 parent 43026f0 commit 93dd6c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

symengine/tests/test_printing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def test_ccode():
99
assert ccode(x**3) == "pow(x, 3)"
1010
assert ccode(x**(y**3)) == "pow(x, pow(y, 3))"
1111
assert ccode(x**-1.0) == "pow(x, -1.0)"
12-
assert ccode(Max(x, x*x)) == "max(x, pow(x, 2))"
12+
assert ccode(Max(x, x*x)) == "fmax(x, pow(x, 2))"
1313
assert ccode(sin(x)) == "sin(x)"
1414
assert ccode(Integer(67)) == "67"
1515
assert ccode(Integer(-1)) == "-1"
@@ -24,4 +24,4 @@ def test_CCodePrinter():
2424
assert myprinter.doprint(MutableDenseMatrix(1, 2, [x, y]), "larry") == "larry[0] = x;\nlarry[1] = y;"
2525
raises(TypeError, lambda: myprinter.doprint(sin(x), Integer))
2626
raises(RuntimeError, lambda: myprinter.doprint(MutableDenseMatrix(1, 2, [x, y])))
27-
27+

0 commit comments

Comments
 (0)