Permalink
Browse files

Fixed corner case in dmp_sqf_list_include()

  • Loading branch information...
1 parent 021a6b0 commit a274767ac14af06e6e9706fa3ec195f9d60d6121 @mattpap mattpap committed with rlamy Jan 3, 2011
Showing with 4 additions and 0 deletions.
  1. +1 −0 sympy/polys/sqfreetools.py
  2. +3 −0 sympy/polys/tests/test_sqfreetools.py
@@ -4,6 +4,7 @@
dup_strip,
dup_LC, dmp_ground_LC,
dmp_zero_p,
+ dmp_ground,
dup_degree, dmp_degree,
dmp_raise, dmp_inject,
dup_convert)
@@ -126,6 +126,9 @@ def test_dmp_sqf():
assert dup_sqf_list([], ZZ) == (ZZ(0), [])
assert dup_sqf_list_include([], ZZ) == [([], 1)]
+ assert dmp_sqf_list([[ZZ(3)]], 1, ZZ) == (ZZ(3), [])
+ assert dmp_sqf_list_include([[ZZ(3)]], 1, ZZ) == [([[ZZ(3)]], 1)]
+
f = [-1,1,0,0,1,-1]
assert dmp_sqf_list(f, 0, ZZ) == \

0 comments on commit a274767

Please sign in to comment.