summaryrefslogtreecommitdiffstats
path: root/t/P3.t
diff options
context:
space:
mode:
Diffstat (limited to 't/P3.t')
-rw-r--r--t/P3.t26
1 files changed, 13 insertions, 13 deletions
diff --git a/t/P3.t b/t/P3.t
index 3c75def..1b8e663 100644
--- a/t/P3.t
+++ b/t/P3.t
@@ -5,26 +5,26 @@ use Test::More;
use Image::PNM;
-my $image = Image::PNM->new('t/data/P3.pnm');
+my $image = Image::PNM->new('t/data/P3.ppm');
-is($image->width, 8);
+is($image->width, 6);
is($image->height, 8);
is($image->max_pixel_value, 255);
-is_deeply($image->raw_pixel(1, 3), [0, 84, 255]);
-is_deeply($image->pixel(4, 2), [1, 0, 0]);
+is_deeply($image->raw_pixel(1, 2), [0, 84, 255]);
+is_deeply($image->pixel(4, 1), [1, 0, 0]);
is($image->as_string('P3'), <<IMAGE);
P3
-8 8
+6 8
255
-255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
-255 255 255 255 255 255 255 255 255 0 84 255 0 84 255 255 255 255 255 255 255 255 255 255
-255 255 255 255 255 255 0 0 0 255 255 255 255 255 255 0 0 0 255 255 255 255 255 255
-255 255 255 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 255 255 255
-255 255 255 0 0 0 255 0 0 255 0 0 255 0 0 255 0 0 0 0 0 255 255 255
-255 255 255 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 255 255 255
-255 255 255 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 255 255 255
-255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
+255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
+255 255 255 255 255 255 0 84 255 0 84 255 255 255 255 255 255 255
+255 255 255 0 0 0 255 255 255 255 255 255 0 0 0 255 255 255
+0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0
+0 0 0 255 0 0 255 0 0 255 0 0 255 0 0 0 0 0
+0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0
+0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0
+255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
IMAGE
done_testing;