Branch: Tag:

1999-06-14

1999-06-14 21:23:39 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

testsuite bugfix

Rev: src/modules/Image/module_testsuite.in:1.10
Rev: src/modules/Image/testsuite.in.in:1.18

278:    fail("didn't get two colors (black and white): "+((array(string))c)*", ");    if ((z[0]!=Image.Color.black || z[1]!=Image.Color.white) &&    (z[1]!=Image.Color.black || z[0]!=Image.Color.white)) -  fail("didn't get black and white: "+((array(string))c)*", "); +  fail("didn't get black and white: "+((array(string))z)*", ");    ok();      #test colortable - black/white normal
287:    img=c*img;    array z=(array)Image.Colortable(img);    if (sizeof(z)!=2) -  fail("didn't get two colors (black and white): "+((array(string))c)*", "); -  if ((z[0]!=Image.Color.black || z[1]!=Image.Color.white) && +  fail("didn't get two colors (black and white): "+((array(string))z)*", "); +  if ((z[0]!=Image.Color.black || z1]!=Image.Color.white) &&    (z[1]!=Image.Color.black || z[0]!=Image.Color.white)) -  fail("didn't get black and white: "+((array(string))c)*", "); +  fail("didn't get black and white: "+((array(string))z)*", ");    ok();      #test colortable - black/white floyd-steinberg
300:    img=c*img;    array z=(array)Image.Colortable(img);    if (sizeof(z)!=2) -  fail("didn't get two colors (black and white): "+((array(string))c)*", "); +  fail("didn't get two colors (black and white): "+((array(string))z)*", ");    if ((z[0]!=Image.Color.black || z[1]!=Image.Color.white) &&    (z[1]!=Image.Color.black || z[0]!=Image.Color.white)) -  fail("didn't get black and white: "+((array(string))c)*", "); +  fail("didn't get black and white: "+((array(string))z)*", ");    ok();      #test colortable - black/white ordered
313:    img=c*img;    array z=(array)Image.Colortable(img);    if (sizeof(z)!=2) -  fail("didn't get two colors (black and white): "+((array(string))c)*", "); +  fail("didn't get two colors (black and white): "+((array(string))z)*", ");    if ((z[0]!=Image.Color.black || z[1]!=Image.Color.white) &&    (z[1]!=Image.Color.black || z[0]!=Image.Color.white)) -  fail("didn't get black and white: "+((array(string))c)*", "); +  fail("didn't get black and white: "+((array(string))z)*", ");    ok();      #test colortable - standard