Add rst to mass test

This commit is contained in:
Lafrite 2015-06-21 16:07:56 +02:00
parent bc4bb91555
commit d268bd405a

16
test/trop_de_tests.rst Normal file
View File

@ -0,0 +1,16 @@
Faire tous les cas de figures
=============================
Tester toutes les multiplications possibles
-------------------------------------------
.. code-block:: python
>>> from itertools import permutations
>>> coefs_p = [[(i-2),(j-2)] for i,j in permutations(range(5),2)]
>>> coefs_q = [[2*(i-2),2*(j-2)] for i,j in permutations(range(5),2)]
>>> l_p = [Polynom(i) for i in coefs_p]
>>> l_q = [Polynom(i) for i in coefs_q]
>>> operations = [Expression([l_p[i],l_q[j],op.mul]) for i,j in permutations(range(len(coefs_p)),2)]
>>> for i in operations:
... print(i)