From 3a5600b285bd23c47953081a294ccf0bb5a96eb5 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 1 Mar 2019 12:22:00 +0100 Subject: tests: Add test image for invalid XPM data --- tests/test-images/fail/issue-95-too-narrow.xpm | 34 ++++++++++++++++++++++++++ tests/test-images/fail/issue-95-too-short.xpm | 34 ++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 tests/test-images/fail/issue-95-too-narrow.xpm create mode 100644 tests/test-images/fail/issue-95-too-short.xpm (limited to 'tests') diff --git a/tests/test-images/fail/issue-95-too-narrow.xpm b/tests/test-images/fail/issue-95-too-narrow.xpm new file mode 100644 index 000000000..d5b53100e --- /dev/null +++ b/tests/test-images/fail/issue-95-too-narrow.xpm @@ -0,0 +1,34 @@ +/* XPM */ +static char * plaid[] = { +/* plaid pixmap + * width height ncolors chars_per_pixel */ +"220 220 4 2 ", +/* colors */ +" c red m white s light_color ", +"Y c green m black s lines_in_mix ", +"+ c yellow m white s lines_in_dark ", +"x m black s dark_color ", +/* pixels */ +"x x x x x x x x x x x x + x x x x x ", +" x x x x x x x x x x x x x x x x ", +"x x x x x x x x x x x x + x x x x x ", +" x x x x x x x x x x x x x x x x ", +"x x x x x x x x x x x x + x x x x x ", +"Y Y Y Y Y x Y Y Y Y Y + x + x + x + x + x + ", +"x x x x x x x x x x x x + x x x x x ", +" x x x x x x x x x x x x x x x x ", +"x x x x x x x x x x x x + x x x x x ", +" x x x x x x x x x x x x x x x x ", +"x x x x x x x x x x x x + x x x x x ", +" x x x x Y x x x ", +" x x x Y x x ", +" x x x x Y x x x ", +" x x x Y x x ", +" x x x x Y x x x ", +"x x x x x x x x x x x x x x x x x x x x x x ", +" x x x x Y x x x ", +" x x x Y x x ", +" x x x x Y x x x ", +" x x x Y x x ", +" x x x x Y x x x " +} ; diff --git a/tests/test-images/fail/issue-95-too-short.xpm b/tests/test-images/fail/issue-95-too-short.xpm new file mode 100644 index 000000000..a378c1f93 --- /dev/null +++ b/tests/test-images/fail/issue-95-too-short.xpm @@ -0,0 +1,34 @@ +/* XPM */ +static char * plaid[] = { +/* plaid pixmap + * width height ncolors chars_per_pixel */ +"22 220 4 2 ", +/* colors */ +" c red m white s light_color ", +"Y c green m black s lines_in_mix ", +"+ c yellow m white s lines_in_dark ", +"x m black s dark_color ", +/* pixels */ +"x x x x x x x x x x x x + x x x x x ", +" x x x x x x x x x x x x x x x x ", +"x x x x x x x x x x x x + x x x x x ", +" x x x x x x x x x x x x x x x x ", +"x x x x x x x x x x x x + x x x x x ", +"Y Y Y Y Y x Y Y Y Y Y + x + x + x + x + x + ", +"x x x x x x x x x x x x + x x x x x ", +" x x x x x x x x x x x x x x x x ", +"x x x x x x x x x x x x + x x x x x ", +" x x x x x x x x x x x x x x x x ", +"x x x x x x x x x x x x + x x x x x ", +" x x x x Y x x x ", +" x x x Y x x ", +" x x x x Y x x x ", +" x x x Y x x ", +" x x x x Y x x x ", +"x x x x x x x x x x x x x x x x x x x x x x ", +" x x x x Y x x x ", +" x x x Y x x ", +" x x x x Y x x x ", +" x x x Y x x ", +" x x x x Y x x x " +} ; -- cgit v1.2.1