add test-writing helper, rawlines
add test-writing helper, rawlines

If you want to do a test like

assert foo_string(arg) == ans

and you want to have a nicely formatted answer, you can get
a string to copy by printing the rawlines of the output string:

>>> s = foo_string(arg)
>>> print rawlines(s)
(
    '1   100\n'
    '100 1  '
    )

Then copy that output and put it in the test suite (assuming it is
right):

assert foo_string(arg) == (
    '1   100\n'
    '100 1  '
    )

If there are not trailing spaces in the string and no characters that
need special escaping, then the answer may come back wrapped in dedent;

ans = dedent('''\
      1 100
    100   1''')
assert foo_string(arg) == ans

When the strings are formated this way, the whole indented block of lines
can be indented at will and when there is a dedent instance, if the last
line is "''')" then it can be position at will, too. For example:

>>> print rawlines(s)
dedent('''\
      1 100
    100   1
    ''')
>>> assert s==dedent('''\
...       1 100
...     100   1
... ''')
>>> assert s==dedent('''\
...       1 100
...     100   1
...     ''')

postvakje/sympy,Arafatk/sympy,lindsayad/sympy,jerli/sympy,maniteja123/sympy,emon10005/sympy,mcdaniel67/sympy,jbbskinny/sympy,souravsingh/sympy,abhiii5459/sympy,ahhda/sympy,Vishluck/sympy,jamesblunt/sympy,chaffra/sympy,Gadal/sympy,Titan-C/sympy,ChristinaZografou/sympy,cccfran/sympy,emon10005/sympy,sahilshekhawat/sympy,VaibhavAgarwalVA/sympy,lindsayad/sympy,meghana1995/sympy,amitjamadagni/sympy,hargup/sympy,shipci/sympy,vipulroxx/sympy,yukoba/sympy,pbrady/sympy,vipulroxx/sympy,pbrady/sympy,kaushik94/sympy,lidavidm/sympy,dqnykamp/sympy,MechCoder/sympy,moble/sympy,Mitchkoens/sympy,mafiya69/sympy,debugger22/sympy,sampadsaha5/sympy,asm666/sympy,kaichogami/sympy,Vishluck/sympy,jaimahajan1997/sympy,diofant/diofant,cswiercz/sympy,kaushik94/sympy,sahmed95/sympy,beni55/sympy,oliverlee/sympy,AkademieOlympia/sympy,jbbskinny/sympy,dqnykamp/sympy,skidzo/sympy,srjoglekar246/sympy,AkademieOlympia/sympy,debugger22/sympy,yukoba/sympy,souravsingh/sympy,farhaanbukhsh/sympy,wanglongqi/sympy,toolforger/sympy,sunny94/temp,saurabhjn76/sympy,jerli/sympy,jerli/sympy,cccfran/sympy,sahmed95/sympy,Sumith1896/sympy,MridulS/sympy,sahilshekhawat/sympy,mcdaniel67/sympy,pandeyadarsh/sympy,jaimahajan1997/sympy,emon10005/sympy,yashsharan/sympy,AkademieOlympia/sympy,Sumith1896/sympy,hargup/sympy,drufat/sympy,mafiya69/sympy,ChristinaZografou/sympy,hrashk/sympy,madan96/sympy,lindsayad/sympy,toolforger/sympy,iamutkarshtiwari/sympy,Davidjohnwilson/sympy,sahilshekhawat/sympy,atsao72/sympy,maniteja123/sympy,garvitr/sympy,kmacinnis/sympy,rahuldan/sympy,Shaswat27/sympy,AunShiLord/sympy,jaimahajan1997/sympy,Sumith1896/sympy,MechCoder/sympy,liangjiaxing/sympy,ga7g08/sympy,abloomston/sympy,Shaswat27/sympy,Vishluck/sympy,oliverlee/sympy,asm666/sympy,moble/sympy,kumarkrishna/sympy,meghana1995/sympy,MridulS/sympy,drufat/sympy,Mitchkoens/sympy,Titan-C/sympy,yukoba/sympy,garvitr/sympy,jamesblunt/sympy,abloomston/sympy,iamutkarshtiwari/sympy,mcdaniel67/sympy,VaibhavAgarwalVA/sympy,Arafatk/sympy,farhaanbukhsh/sympy,ahhda/sympy,kumarkrishna/sympy,Designist/sympy,sunny94/temp,maniteja123/sympy,Shaswat27/sympy,kevalds51/sympy,bukzor/sympy,skirpichev/omg,meghana1995/sympy,saurabhjn76/sympy,lidavidm/sympy,kaushik94/sympy,AunShiLord/sympy,sunny94/temp,wanglongqi/sympy,toolforger/sympy,postvakje/sympy,shikil/sympy,kumarkrishna/sympy,beni55/sympy,Mitchkoens/sympy,bukzor/sympy,iamutkarshtiwari/sympy,Davidjohnwilson/sympy,dqnykamp/sympy,bukzor/sympy,sahmed95/sympy,grevutiu-gabriel/sympy,Titan-C/sympy,kaichogami/sympy,Curious72/sympy,liangjiaxing/sympy,wyom/sympy,ga7g08/sympy,hargup/sympy,lidavidm/sympy,garvitr/sympy,abhiii5459/sympy,hrashk/sympy,yashsharan/sympy,liangjiaxing/sympy,grevutiu-gabriel/sympy,atreyv/sympy,aktech/sympy,asm666/sympy,Designist/sympy,sampadsaha5/sympy,shikil/sympy,wanglongqi/sympy,atreyv/sympy,madan96/sympy,atsao72/sympy,jbbskinny/sympy,vipulroxx/sympy,MechCoder/sympy,postvakje/sympy,shikil/sympy,aktech/sympy,pandeyadarsh/sympy,abhiii5459/sympy,sampadsaha5/sympy,wyom/sympy,moble/sympy,skidzo/sympy,Davidjohnwilson/sympy,drufat/sympy,kmacinnis/sympy,jamesblunt/sympy,kmacinnis/sympy,mafiya69/sympy,pbrady/sympy,flacjacket/sympy,Curious72/sympy,cswiercz/sympy,hrashk/sympy,abloomston/sympy,Designist/sympy,shipci/sympy,chaffra/sympy,amitjamadagni/sympy,farhaanbukhsh/sympy,chaffra/sympy,skidzo/sympy,VaibhavAgarwalVA/sympy,Curious72/sympy,atsao72/sympy,Gadal/sympy,ahhda/sympy,atreyv/sympy,wyom/sympy,MridulS/sympy,kaichogami/sympy,grevutiu-gabriel/sympy,kevalds51/sympy,aktech/sympy,oliverlee/sympy,pandeyadarsh/sympy,ga7g08/sympy,rahuldan/sympy,AunShiLord/sympy,saurabhjn76/sympy,shipci/sympy,debugger22/sympy,rahuldan/sympy,ChristinaZografou/sympy,beni55/sympy,souravsingh/sympy,Gadal/sympy,Arafatk/sympy,madan96/sympy,yashsharan/sympy,cswiercz/sympy,kevalds51/sympy,cccfran/sympy