pike.git / src / modules / Image / testsuite.in.in

version» Context lines:

pike.git/src/modules/Image/testsuite.in.in:1:   #module Image.image   {   //----------------------------------------------------------------------- - #chapter testuite + #chapter testsuite      #test Image.PNM.decode, ==    object img1=Image.PNM.decode("P1\n5 5\n0 1 1 1 1\n1 0 1 1 1\n1 1 0 1 1\n1 1 1 0 1\n1 1 1 1 0");    object img2=Image.PNM.decode("P4\n5 5\nx¸Øèð");    if (img1!=img2) fail("differ\n");    ok();      #test MIME.decode_base64    if ("hejsan, hoppsan" != MIME.decode_base64("aGVqc2FuLCBob3Bwc2Fu\n"))    fail("differ");
pike.git/src/modules/Image/testsuite.in.in:84:    ok();      #test Image.image->clone    object img=Image.image(100,100)->test();    if (img!=img->clone()) fail("differ");    img->setpixel(2,2,0,255,0);    if (img->clone()==img->invert()->clone()) fail("clone of other doesn't differ");    ok();      //----------------------------------------------------------------------- - #chapter testuite III + #chapter testsuite III      #test equal, copy_value    array a=({0,0,0});    array b=copy_value(a); b[0]=17; b[1]=42; b[2]=128;    if (!equal( ({0,0,0}), a)) fail("differ (1)");    if (!equal( ({17,42,128}), b)) fail("differ (2)");    ok();      #test Image.image->max()    if (!equal( ({0,0,0}),