X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=tests%2Foutput%2Frender.at;h=c12cb91753d737d9da759c60fd7499f1bfd72836;hb=aa047128eb8dab357f51837942540b14cb07c78f;hp=230299223f349bb62738cbf2cac6ae34daa8043a;hpb=929c4c1db21356da304f3ec2602651d5e322648c;p=pspp diff --git a/tests/output/render.at b/tests/output/render.at index 230299223f..c12cb91753 100644 --- a/tests/output/render.at +++ b/tests/output/render.at @@ -1831,3 +1831,32 @@ AT_CHECK([render-test --width=15 --length=15 input], [0], [dnl +-+-+-----+ ]) AT_CLEANUP + +# There was a bug that, when multiple cells spanned a single column +# (or row), only the dimensions of the cell nearest the bottom of the +# table were actually considered. This checks for regression. (This +# problem was most easily observed with SYSFILE INFO, which uses lots +# of spanned cells). +# +# Without the fix, the output looks like this: +# +-------+ +# | A long| +# | text| +# |string.| +# +-------+ +# |shorter| +AT_SETUP([multiple spanned cells all contribute to dimensions]) +AT_KEYWORDS([render rendering]) +AT_DATA([input], [dnl +2 2 +1*2 @A long text string. +1*2 @shorter +]) +AT_CHECK([render-test --width=30 --length=15 input], [0], [dnl ++-------------------+ +|A long text string.| ++-------------------+ +| shorter| ++-------------------+ +]) +AT_CLEANUP