diff options
author | xxc3nsoredxx <xxc3ncoredxx@gmail.com> | 2021-05-07 11:37:15 -0500 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2021-06-01 14:25:32 +0200 |
commit | 333ee39e1f587ba9d6a946e446a930b647288a80 (patch) | |
tree | c079bb45fe4dd660c86e11ca2badd2c691d8b276 /test/test.txt | |
parent | 8bac25377cf2c447c439c04837ea178d6a0f845c (diff) | |
download | wgetpaste-333ee39e1f587ba9d6a946e446a930b647288a80.tar.gz |
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/<service>.txt. Runs
diff(1) (ignoring trailing whitespace) to compare the download with the
test data.
Diffstat (limited to 'test/test.txt')
-rw-r--r-- | test/test.txt | 26 |
1 files changed, 26 insertions, 0 deletions
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 <stdio.h> + +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"); +} |