From 333ee39e1f587ba9d6a946e446a930b647288a80 Mon Sep 17 00:00:00 2001 From: xxc3nsoredxx Date: Fri, 7 May 2021 11:37:15 -0500 Subject: Create test script Posts test/test.txt onto any pastebins it can. Downloads the resulting pate into a temp dir as /tmp/wgetpaste_test.XXXXX/.txt. Runs diff(1) (ignoring trailing whitespace) to compare the download with the test data. --- test/test.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 test/test.txt (limited to 'test/test.txt') diff --git a/test/test.txt b/test/test.txt new file mode 100644 index 0000000..ad1f2f0 --- /dev/null +++ b/test/test.txt @@ -0,0 +1,26 @@ +wgetpaste test data + +test common string escapes used in programming languages +#include + +int main (void) { + printf("test bell\a\n"); + printf("test backspace\bE\n"); + printf("test escape\e[31m red text\e[m end red text\n"); + printf("test form feed\f"); + printf("test newline\n"); + printf("test carriage return\rA\n"); + printf("test tab\tend tab\n"); + printf("test vertical tab\vend vertical tab\n"); + printf("test backslash\\\n"); + printf("test single quote\'\n"); + printf("test double quote\"\n"); + printf("test question mark\?\n"); + printf("test octal (A) \101\n"); + printf("test octal (null)\n\0not printed"); + printf("test hex (A) \x41\n"); + printf("test unocpde < 0x1000 (acute A) \u00c1\n"); + printf("test unicode (acute A) \U000000c1\n"); + + printf("test literal tab end tab\n"); +} -- cgit v1.2.3