changeset: 22415:a338dbafcc09
>> test null-assign.tst
***** test
a = ones (3); b = []; fail ("subsasgn (a, substruct ('()', {':',1:2}), b)", ".");
!!!!! test failed
expected error <.> but got none
>> test __osmesa_print__.cc-tst
***** testif HAVE_OPENGL, HAVE_OSMESA, HAVE_GL2PS_H
if (isunix ())
hf = figure ("visible", "off");
fn = tempname ();
unwind_protect
sombrero ();
__osmesa_print__ (hf, fn, "svg");
assert (stat (fn).size, 2692270, -0.1);
img = __osmesa_print__ (hf);
assert (size (img), [get(hf, "position")([4, 3]), 3]);
## Use pixel sum per RGB channel as fingerprint
img_fp = squeeze (sum (sum (img), 2));
assert (img_fp, [52942515; 54167797; 56158178], -0.05);
unwind_protect_cleanup
close (hf);
unlink (fn);
end_unwind_protect
endif
!!!!! test failed
ASSERT errors for: assert (stat (fn).size,2692270,-0.1)
Location | Observed | Expected | Reason
() 2420056 2692270 Rel err 0.10111 exceeds tol 0.1