diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/indented-triple-pass/1=program.markdown | 34 | ||||
-rw-r--r-- | test/indented-triple-pass/2=program.markdown | 35 | ||||
-rw-r--r-- | test/indented-triple-pass/EXP=program.c | 9 | ||||
-rw-r--r-- | test/indented-triple-pass/OUT=program.c | 9 | ||||
-rw-r--r-- | test/indented-triple-pass/build.bat | 6 | ||||
-rw-r--r-- | test/indented-triple-pass/program.c | 1 | ||||
-rw-r--r-- | test/indented-triple-pass/program.markdown | 28 | ||||
-rw-r--r-- | test/truncation/EXP=test.txt | 3 | ||||
-rw-r--r-- | test/truncation/OUT=test.txt | 3 | ||||
-rw-r--r-- | test/truncation/build.bat | 4 | ||||
-rw-r--r-- | test/truncation/in.txt | 7 | ||||
-rw-r--r-- | test/truncation/test.txt | 3 |
12 files changed, 142 insertions, 0 deletions
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.options>> + ... + } + +## 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 @@ +<<program.c>>
\ 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 + + <<includes>> + <<declarations>> + <<main>> + +## Main function -> main + +Here is the main function: + + int main(int argc, char *argv[]) { + int i; + <<main.options>> + ... + } + +### 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 @@ +<<loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooon>> + +<<faaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar>>
\ No newline at end of file |