From 24da48a86bb542be247127258db5fcafab4ba011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 23 Oct 2020 02:08:13 +0200 Subject: release 1.1 --- test/indented-triple-pass/1=program.markdown | 34 +++++++++++++++++++++++++++ test/indented-triple-pass/2=program.markdown | 35 ++++++++++++++++++++++++++++ test/indented-triple-pass/EXP=program.c | 9 +++++++ test/indented-triple-pass/OUT=program.c | 9 +++++++ test/indented-triple-pass/build.bat | 6 +++++ test/indented-triple-pass/program.c | 1 + test/indented-triple-pass/program.markdown | 28 ++++++++++++++++++++++ test/truncation/EXP=test.txt | 3 +++ test/truncation/OUT=test.txt | 3 +++ test/truncation/build.bat | 4 ++++ test/truncation/in.txt | 7 ++++++ test/truncation/test.txt | 3 +++ 12 files changed, 142 insertions(+) create mode 100644 test/indented-triple-pass/1=program.markdown create mode 100644 test/indented-triple-pass/2=program.markdown create mode 100644 test/indented-triple-pass/EXP=program.c create mode 100644 test/indented-triple-pass/OUT=program.c create mode 100644 test/indented-triple-pass/build.bat create mode 100644 test/indented-triple-pass/program.c create mode 100644 test/indented-triple-pass/program.markdown create mode 100644 test/truncation/EXP=test.txt create mode 100644 test/truncation/OUT=test.txt create mode 100644 test/truncation/build.bat create mode 100644 test/truncation/in.txt create mode 100644 test/truncation/test.txt (limited to 'test') diff --git a/test/indented-triple-pass/1=program.markdown b/test/indented-triple-pass/1=program.markdown new file mode 100644 index 0000000..db170bc --- /dev/null +++ b/test/indented-triple-pass/1=program.markdown @@ -0,0 +1,34 @@ +# My program -> program.c + + char *line; + int line_length; + int line_size; + int main(int argc, char *argv[]) { + int i; + <> + ... + } + +## Main function -> main + +Here is the main function: + + int main(int argc, char *argv[]) { + int i; + for (i = 1; i < argc; i++) + ... + ... + } + +### Command-line options -> main.options + + for (i = 1; i < argc; i++) + ... + +### Declarations -> declarations + +So far, we have used the following global variables: + + char *line; + int line_length; + int line_size; diff --git a/test/indented-triple-pass/2=program.markdown b/test/indented-triple-pass/2=program.markdown new file mode 100644 index 0000000..38b3ee9 --- /dev/null +++ b/test/indented-triple-pass/2=program.markdown @@ -0,0 +1,35 @@ +# My program -> program.c + + char *line; + int line_length; + int line_size; + int main(int argc, char *argv[]) { + int i; + for (i = 1; i < argc; i++) + ... + ... + } + +## Main function -> main + +Here is the main function: + + int main(int argc, char *argv[]) { + int i; + for (i = 1; i < argc; i++) + ... + ... + } + +### Command-line options -> main.options + + for (i = 1; i < argc; i++) + ... + +### Declarations -> declarations + +So far, we have used the following global variables: + + char *line; + int line_length; + int line_size; diff --git a/test/indented-triple-pass/EXP=program.c b/test/indented-triple-pass/EXP=program.c new file mode 100644 index 0000000..37a8bc3 --- /dev/null +++ b/test/indented-triple-pass/EXP=program.c @@ -0,0 +1,9 @@ +char *line; +int line_length; +int line_size; +int main(int argc, char *argv[]) { + int i; + for (i = 1; i < argc; i++) + ... + ... +} diff --git a/test/indented-triple-pass/OUT=program.c b/test/indented-triple-pass/OUT=program.c new file mode 100644 index 0000000..37a8bc3 --- /dev/null +++ b/test/indented-triple-pass/OUT=program.c @@ -0,0 +1,9 @@ +char *line; +int line_length; +int line_size; +int main(int argc, char *argv[]) { + int i; + for (i = 1; i < argc; i++) + ... + ... +} diff --git a/test/indented-triple-pass/build.bat b/test/indented-triple-pass/build.bat new file mode 100644 index 0000000..be5a294 --- /dev/null +++ b/test/indented-triple-pass/build.bat @@ -0,0 +1,6 @@ +@echo off +setlocal +cd /d %~dp0 +..\..\tt -d# -o1= program.markdown < program.markdown +..\..\tt -d# -o2= program.markdown < "1=program.markdown" +..\..\tt -d# -oOUT= program.c < "2=program.markdown" \ No newline at end of file diff --git a/test/indented-triple-pass/program.c b/test/indented-triple-pass/program.c new file mode 100644 index 0000000..d82e40b --- /dev/null +++ b/test/indented-triple-pass/program.c @@ -0,0 +1 @@ +<> \ No newline at end of file diff --git a/test/indented-triple-pass/program.markdown b/test/indented-triple-pass/program.markdown new file mode 100644 index 0000000..6628f00 --- /dev/null +++ b/test/indented-triple-pass/program.markdown @@ -0,0 +1,28 @@ +# My program -> program.c + + <> + <> + <
> + +## Main function -> main + +Here is the main function: + + int main(int argc, char *argv[]) { + int i; + <> + ... + } + +### Command-line options -> main.options + + for (i = 1; i < argc; i++) + ... + +### Declarations -> declarations + +So far, we have used the following global variables: + + char *line; + int line_length; + int line_size; \ No newline at end of file diff --git a/test/truncation/EXP=test.txt b/test/truncation/EXP=test.txt new file mode 100644 index 0000000..35a7d8e --- /dev/null +++ b/test/truncation/EXP=test.txt @@ -0,0 +1,3 @@ +long + +far diff --git a/test/truncation/OUT=test.txt b/test/truncation/OUT=test.txt new file mode 100644 index 0000000..35a7d8e --- /dev/null +++ b/test/truncation/OUT=test.txt @@ -0,0 +1,3 @@ +long + +far diff --git a/test/truncation/build.bat b/test/truncation/build.bat new file mode 100644 index 0000000..2253752 --- /dev/null +++ b/test/truncation/build.bat @@ -0,0 +1,4 @@ +@echo off +setlocal +cd /d %~dp0 +..\..\tt -oOUT= test.txt < in.txt \ No newline at end of file diff --git a/test/truncation/in.txt b/test/truncation/in.txt new file mode 100644 index 0000000..99a0f74 --- /dev/null +++ b/test/truncation/in.txt @@ -0,0 +1,7 @@ +-> loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong + + long + +-> faaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + + far \ No newline at end of file diff --git a/test/truncation/test.txt b/test/truncation/test.txt new file mode 100644 index 0000000..6c2c776 --- /dev/null +++ b/test/truncation/test.txt @@ -0,0 +1,3 @@ +<> + +<> \ No newline at end of file -- cgit v1.2.3