summaryrefslogtreecommitdiffstats
path: root/t/P2.t
diff options
context:
space:
mode:
Diffstat (limited to 't/P2.t')
-rw-r--r--t/P2.t27
1 files changed, 27 insertions, 0 deletions
diff --git a/t/P2.t b/t/P2.t
index 41c2d8e..e7b7fdc 100644
--- a/t/P2.t
+++ b/t/P2.t
@@ -13,6 +13,19 @@ is($image->max_pixel_value, 255);
is_deeply($image->raw_pixel(1, 2), [78, 78, 78]);
is_deeply($image->pixel(0, 0), [1, 1, 1]);
+is($image->as_string('P1'), <<IMAGE);
+P1
+6 8
+0 0 0 0 0 0
+0 0 1 1 0 0
+0 1 0 0 1 0
+1 0 0 0 0 1
+1 1 1 1 1 1
+1 0 0 0 0 1
+1 0 0 0 0 1
+0 0 0 0 0 0
+IMAGE
+
is($image->as_string('P2'), <<IMAGE);
P2
6 8
@@ -27,4 +40,18 @@ P2
255 255 255 255 255 255
IMAGE
+is($image->as_string('P3'), <<IMAGE);
+P3
+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 78 78 78 78 78 78 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 54 54 54 54 54 54 54 54 54 54 54 54 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;