From ff1b90a4f4aec4d374261adda460ddc1d83c5ddd Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 1 Dec 2014 20:26:07 +0100 Subject: mds-kbdc: m + more test cases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- .../validate-tree/invalid/misplaced_assumption | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 test-files/mds-kbdc/validate-tree/invalid/misplaced_assumption (limited to 'test-files/mds-kbdc/validate-tree/invalid/misplaced_assumption') diff --git a/test-files/mds-kbdc/validate-tree/invalid/misplaced_assumption b/test-files/mds-kbdc/validate-tree/invalid/misplaced_assumption new file mode 100644 index 0000000..904ffd5 --- /dev/null +++ b/test-files/mds-kbdc/validate-tree/invalid/misplaced_assumption @@ -0,0 +1,46 @@ +have +have_chars " " +have_range "a" "z" +information + have + have_chars " " + have_range "a" "z" +end information + +# (have (@ 1 0-4) +# (.data +# (keys (@ 1 5-12) ‘’) +# ) +# ) +# (have_chars (@ 2 0-10) ‘" "’) +# (have_range (@ 3 0-10) ‘"a"’ ‘"z"’) +# (information (@ 4 0-11) +# (.inner +# (have (@ 5 2-6) +# (.data +# (keys (@ 5 7-14) ‘’) +# ) +# ) +# (have_chars (@ 6 2-12) ‘" "’) +# (have_range (@ 7 2-12) ‘"a"’ ‘"z"’) +# ) +# ) +# :1:0–4: error: assumption outside assumption clause +# have +# ^^^^ +# :2:0–10: error: assumption outside assumption clause +# have_chars " " +# ^^^^^^^^^^ +# :3:0–10: error: assumption outside assumption clause +# have_range "a" "z" +# ^^^^^^^^^^ +# :5:2–6: error: assumption outside assumption clause +# have +# ^^^^ +# :6:2–12: error: assumption outside assumption clause +# have_chars " " +# ^^^^^^^^^^ +# :7:2–12: error: assumption outside assumption clause +# have_range "a" "z" +# ^^^^^^^^^^ + -- cgit v1.2.3-70-g09d2