From 7c6f0f9128665c1a605caaa552347b936578f952 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 7 Jan 2018 15:34:11 +0300 Subject: G: shebang --- tests/data/parser/err/0002_duplicate_shebang.rs | 2 ++ tests/data/parser/err/0002_duplicate_shebang.txt | 7 +++++++ tests/data/parser/ok/0004_file_shebang.rs | 1 + tests/data/parser/ok/0004_file_shebang.txt | 2 ++ 4 files changed, 12 insertions(+) create mode 100644 tests/data/parser/err/0002_duplicate_shebang.rs create mode 100644 tests/data/parser/err/0002_duplicate_shebang.txt create mode 100644 tests/data/parser/ok/0004_file_shebang.rs create mode 100644 tests/data/parser/ok/0004_file_shebang.txt (limited to 'tests/data/parser') diff --git a/tests/data/parser/err/0002_duplicate_shebang.rs b/tests/data/parser/err/0002_duplicate_shebang.rs new file mode 100644 index 000000000..48a3a3980 --- /dev/null +++ b/tests/data/parser/err/0002_duplicate_shebang.rs @@ -0,0 +1,2 @@ +#!/use/bin/env rusti +#!/use/bin/env rusti diff --git a/tests/data/parser/err/0002_duplicate_shebang.txt b/tests/data/parser/err/0002_duplicate_shebang.txt new file mode 100644 index 000000000..e7cf7187d --- /dev/null +++ b/tests/data/parser/err/0002_duplicate_shebang.txt @@ -0,0 +1,7 @@ +FILE@[0; 42) + SHEBANG@[0; 20) + ERROR@[20; 42) + err: `expected item` + WHITESPACE@[20; 21) + SHEBANG@[21; 41) + WHITESPACE@[41; 42) diff --git a/tests/data/parser/ok/0004_file_shebang.rs b/tests/data/parser/ok/0004_file_shebang.rs new file mode 100644 index 000000000..53dc9e617 --- /dev/null +++ b/tests/data/parser/ok/0004_file_shebang.rs @@ -0,0 +1 @@ +#!/use/bin/env rusti \ No newline at end of file diff --git a/tests/data/parser/ok/0004_file_shebang.txt b/tests/data/parser/ok/0004_file_shebang.txt new file mode 100644 index 000000000..33055cf3d --- /dev/null +++ b/tests/data/parser/ok/0004_file_shebang.txt @@ -0,0 +1,2 @@ +FILE@[0; 20) + SHEBANG@[0; 20) -- cgit v1.2.3