Ticket #11604: 11604_doctest.patch

File 11604_doctest.patch, 925 bytes (added by jdemeyer, 9 years ago)

Doctest for the bug

  • sage/tests/parigp.py

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1311069965 -7200
    # Node ID e89fdb8abdc355fa87f55fb32efb6c2aa1e26a9c
    # Parent  9308aaa91fc10656aa347d62d11dd5bdfa502f9b
    Add doctest for PARI bug 1154
    
    diff -r 9308aaa91fc1 -r e89fdb8abdc3 sage/tests/parigp.py
    a b  
    2323    [0 0 0 0 0 0 0 0 1 0]
    2424    [0 0 0 0 0 0 0 0 0 1]
    2525
     26Check that ticket #11604 (PARI bug 1154) has been fixed::
     27
     28    sage: A = Matrix(ZZ,4,4,[32982266684193100, 1368614777139719, 224591013270052693, 276460184982223238,1368614777139719,  56791380087354, 9319512049770279, 11471848267545007,224591013270052693, 9319512049770279,1529340971891522140, 1882541434053596358,276460184982223238, 11471848267545007, 1882541434053596358, 2317313350044091414])
     29    sage: pari(A).qfminim(2,0)
     30    [0, 0, [;]]
    2631"""