From 978b2c445aa220a4138028335a44116479da58c1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 30 Nov 2014 13:34:28 +0100 Subject: mds-kbdc: process includes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- .../mds-kbdc/process-includes/invalid/_error | 2 ++ .../process-includes/invalid/include_error | 31 ++++++++++++++++++++++ .../process-includes/invalid/include_nonexisting | 11 ++++++++ test-files/mds-kbdc/process-includes/valid/_empty | 0 .../mds-kbdc/process-includes/valid/_mapping | 2 ++ .../process-includes/valid/include_empty_file | 11 ++++++++ .../valid/include_include_empty_file | 18 +++++++++++++ .../process-includes/valid/include_mapping | 16 +++++++++++ 8 files changed, 91 insertions(+) create mode 100644 test-files/mds-kbdc/process-includes/invalid/_error create mode 100644 test-files/mds-kbdc/process-includes/invalid/include_error create mode 100644 test-files/mds-kbdc/process-includes/invalid/include_nonexisting create mode 100644 test-files/mds-kbdc/process-includes/valid/_empty create mode 100644 test-files/mds-kbdc/process-includes/valid/_mapping create mode 100644 test-files/mds-kbdc/process-includes/valid/include_empty_file create mode 100644 test-files/mds-kbdc/process-includes/valid/include_include_empty_file create mode 100644 test-files/mds-kbdc/process-includes/valid/include_mapping (limited to 'test-files/mds-kbdc') diff --git a/test-files/mds-kbdc/process-includes/invalid/_error b/test-files/mds-kbdc/process-includes/invalid/_error new file mode 100644 index 0000000..aa42b42 --- /dev/null +++ b/test-files/mds-kbdc/process-includes/invalid/_error @@ -0,0 +1,2 @@ +[.] + diff --git a/test-files/mds-kbdc/process-includes/invalid/include_error b/test-files/mds-kbdc/process-includes/invalid/include_error new file mode 100644 index 0000000..cec9385 --- /dev/null +++ b/test-files/mds-kbdc/process-includes/invalid/include_error @@ -0,0 +1,31 @@ +include "_error" + +# (include (@ 1 0-7) ‘/home/mattias/git/mds/test-files/mds-kbdc/process-includes/invalid/_error’ +# (.inner +# (map (@ 1 0-0) +# (.sequence +# (nothing (@ 1 1-2)) +# ) +# (.result nil) +# ) +# ) +# ) +# .../test-files/mds-kbdc/process-includes/invalid/_error:1:0–1: warning: alternated value statement is undefined unless the alternatives are identical +# [.] +# ^ +# .../test-files/mds-kbdc/process-includes/invalid/include_error:1:0–7: note: included from here +# include "_error" +# ^^^^^^^ +# .../test-files/mds-kbdc/process-includes/invalid/_error:1:0–1: warning: singleton alternation +# [.] +# ^ +# .../test-files/mds-kbdc/process-includes/invalid/include_error:1:0–7: note: included from here +# include "_error" +# ^^^^^^^ +# .../test-files/mds-kbdc/process-includes/invalid/_error:1:1–2: error: nothing in value statement +# [.] +# ^ +# .../test-files/mds-kbdc/process-includes/invalid/include_error:1:0–7: note: included from here +# include "_error" +# ^^^^^^^ + diff --git a/test-files/mds-kbdc/process-includes/invalid/include_nonexisting b/test-files/mds-kbdc/process-includes/invalid/include_nonexisting new file mode 100644 index 0000000..9ff0f5c --- /dev/null +++ b/test-files/mds-kbdc/process-includes/invalid/include_nonexisting @@ -0,0 +1,11 @@ +include "this file does not exist" + +# (include (@ 1 0-7) ‘this file does not exist’ +# (.inner nil) +# ) +# this file does not exist: error: no such file or directory in ‘.../test-files/mds-kbdc/process-includes/invalid’ +# +# .../test-files/mds-kbdc/process-includes/invalid/include_nonexisting:1:0–7: note: included from here +# include "this file does not exist" +# ^^^^^^^ + diff --git a/test-files/mds-kbdc/process-includes/valid/_empty b/test-files/mds-kbdc/process-includes/valid/_empty new file mode 100644 index 0000000..e69de29 diff --git a/test-files/mds-kbdc/process-includes/valid/_mapping b/test-files/mds-kbdc/process-includes/valid/_mapping new file mode 100644 index 0000000..6026f43 --- /dev/null +++ b/test-files/mds-kbdc/process-includes/valid/_mapping @@ -0,0 +1,2 @@ + "e" : "é" + diff --git a/test-files/mds-kbdc/process-includes/valid/include_empty_file b/test-files/mds-kbdc/process-includes/valid/include_empty_file new file mode 100644 index 0000000..c784768 --- /dev/null +++ b/test-files/mds-kbdc/process-includes/valid/include_empty_file @@ -0,0 +1,11 @@ +include "_empty" + +# (include (@ 1 0-7) ‘.../test-files/mds-kbdc/process-includes/valid/_empty’ +# (.inner nil) +# ) +# .../test-files/mds-kbdc/process-includes/valid/_empty: warning: file is empty +# +# .../test-files/mds-kbdc/process-includes/valid/include_empty_file:1:0–7: note: included from here +# include "_empty" +# ^^^^^^^ + diff --git a/test-files/mds-kbdc/process-includes/valid/include_include_empty_file b/test-files/mds-kbdc/process-includes/valid/include_include_empty_file new file mode 100644 index 0000000..9b8e1c1 --- /dev/null +++ b/test-files/mds-kbdc/process-includes/valid/include_include_empty_file @@ -0,0 +1,18 @@ +include "include_empty_file" + +# (include (@ 1 0-7) ‘.../test-files/mds-kbdc/process-includes/valid/include_empty_file’ +# (.inner +# (include (@ 1 0-7) ‘.../test-files/mds-kbdc/process-includes/valid/_empty’ +# (.inner nil) +# ) +# ) +# ) +# .../test-files/mds-kbdc/process-includes/valid/_empty: warning: file is empty +# +# .../test-files/mds-kbdc/process-includes/valid/include_include_empty_file:1:0–7: note: included from here +# include "include_empty_file" +# ^^^^^^^ +# .../test-files/mds-kbdc/process-includes/valid/include_empty_file:1:0–7: note: included from here +# include "_empty" +# ^^^^^^^ + diff --git a/test-files/mds-kbdc/process-includes/valid/include_mapping b/test-files/mds-kbdc/process-includes/valid/include_mapping new file mode 100644 index 0000000..e9d531f --- /dev/null +++ b/test-files/mds-kbdc/process-includes/valid/include_mapping @@ -0,0 +1,16 @@ +include "_mapping" + +# (include (@ 1 0-7) ‘/home/mattias/git/mds/test-files/mds-kbdc/process-includes/valid/_mapping’ +# (.inner +# (map (@ 1 0-0) +# (.sequence +# (keys (@ 1 0-16) ‘’) +# (string (@ 1 17-20) ‘"e"’) +# ) +# (.result +# (string (@ 1 23-27) ‘"é"’) +# ) +# ) +# ) +# ) + -- cgit v1.2.3-70-g09d2