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

version» Context lines:

pike.git/src/modules/Image/testsuite.in:478:   test_do( img()->color(128,128,255) )      test_do( img()->copy() )   test_do( img()->copy(5,5,45,45) )   test_do( img()->copy(-5,-5,55,55) )   test_do( img()->copy(-5,-5,55,55,255,0,0) )   test_do( img()->copy(-5,-5,55,55,255,0,0,99) )      test_do( Image.Image() )   test_do( Image.Image(100,100) ) - test_do( Image.Image(100,100, Image.Color("red")) ) - test_do( Image.Image(100,100, "red") ) - test_do( Image.Image(100,100, "grey", 128) ) - test_do( Image.Image(100,100, "rgb", 11,22,33) ) - test_do( Image.Image(100,100, "cmyk", 10,20,30,40) ) + test_eq( (string)Image.Image(1,1, Image.Color("red")), "\377\0\0" ) + test_eq( (string)Image.Image(1,1, "red"), "\377\0\0" ) + test_eq( (string)Image.Image(1,1, "grey", 128), "\200\200\200") + test_eq( (string)Image.Image(1,1, "rgb", 11,22,33), "\v\26!" ) + test_eq( (string)Image.Image(1,1, "cmyk", 10,20,30,40), "\316\306\275" )   test_do( Image.Image(100,100, "test") )   test_do( Image.Image(100,100, "gradients") )   test_do( Image.Image(100,100, "noise",    ({0, ({0,0,0}), 0.8, ({255,255,255}) }) ) )   test_do( Image.Image(100,100, "turbulence",    ({0, ({0,0,0}), 0.8, ({255,255,255}) }) ) )   test_do( Image.Image(100,100, "random") )   test_do( Image.Image(100,100, "randomgrey") )   test_do( Image.Image(100,100, "tuned_box",    ({ Image.Color.black, Image.Color.black,    Image.Color.white, Image.Color.white}) ) )   test_eval_error( Image.Image(100,100, "bacon") ) - test_do( Image.Image(100,100, 255,255,0) ) + test_eq( (string)Image.Image(1,1, 255,255,0), "\377\377\0" )   dnl test_do( Image.Image(100,100, 255,255,0,40) ) - test_do( Image.Image(Image.Image(100,100,"test")) ) + test_eq( (string)Image.Image(Image.Image(1,1,"red")), "\377\0\0" )      test_do( img()->dct(100,100) )      test_do( img()->distancesq() )   test_do( img()->distancesq(0,255,255) )      // find_autocrop above      // MISSING TEST: find_max   // MISSING TEST: find_min