# HG changeset patch # User Rik # Date 1451191309 28800 # Node ID 3ec8332e0e01da0d99c1347914dfa7d46d407939 # Parent fc9cca99b2de6754ed46800618ff59b6103b1794 maint: Use two newlines between endfunction and start of BIST tests. * im2double.m, imread.m, iscolormap.m, ntsc2rgb.m: Use two newlines between endfunction and start of BIST tests. diff -r fc9cca99b2de -r 3ec8332e0e01 scripts/image/im2double.m --- a/scripts/image/im2double.m Sat Dec 26 18:59:45 2015 -0800 +++ b/scripts/image/im2double.m Sat Dec 26 20:41:49 2015 -0800 @@ -86,6 +86,7 @@ endif endfunction + %!assert (im2double ([1 2 3]), [1 2 3]) %!assert (im2double (single ([1 2 3])), [1 2 3]) %!assert (im2double (uint8 ([0 127 128 255])), [0 127/255 128/255 1]) diff -r fc9cca99b2de -r 3ec8332e0e01 scripts/image/imread.m --- a/scripts/image/imread.m Sat Dec 26 18:59:45 2015 -0800 +++ b/scripts/image/imread.m Sat Dec 26 20:41:49 2015 -0800 @@ -108,6 +108,7 @@ endfunction + %!testif HAVE_MAGICK %! vpng = [ ... %! 137, 80, 78, 71, 13, 10, 26, 10, 0, 0, ... diff -r fc9cca99b2de -r 3ec8332e0e01 scripts/image/iscolormap.m --- a/scripts/image/iscolormap.m Sat Dec 26 18:59:45 2015 -0800 +++ b/scripts/image/iscolormap.m Sat Dec 26 20:41:49 2015 -0800 @@ -45,6 +45,7 @@ endfunction + %!assert (iscolormap (jet (64))) %!assert (iscolormap ({0 1 0}), false) %!assert (iscolormap ([0 1i 0]), false) diff -r fc9cca99b2de -r 3ec8332e0e01 scripts/image/ntsc2rgb.m --- a/scripts/image/ntsc2rgb.m Sat Dec 26 18:59:45 2015 -0800 +++ b/scripts/image/ntsc2rgb.m Sat Dec 26 20:41:49 2015 -0800 @@ -84,6 +84,7 @@ rgb = colorspace_conversion_revert (rgb, sz, is_im, is_nd); endfunction + %!shared trans %! trans = [ 1.0, 1.0, 1.0; %! 0.95617, -0.27269, -1.10374;