diff options
author | Aleksey Kladov <[email protected]> | 2018-01-07 12:34:11 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-01-07 12:34:11 +0000 |
commit | 7c6f0f9128665c1a605caaa552347b936578f952 (patch) | |
tree | e46900ddc24786364a767b35c78c0df588ab0541 /tests/data/parser | |
parent | 9e4052cc2ee12751ba94909ff479bd03df141ac4 (diff) |
G: shebang
Diffstat (limited to 'tests/data/parser')
-rw-r--r-- | tests/data/parser/err/0002_duplicate_shebang.rs | 2 | ||||
-rw-r--r-- | tests/data/parser/err/0002_duplicate_shebang.txt | 7 | ||||
-rw-r--r-- | tests/data/parser/ok/0004_file_shebang.rs | 1 | ||||
-rw-r--r-- | tests/data/parser/ok/0004_file_shebang.txt | 2 |
4 files changed, 12 insertions, 0 deletions
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 @@ | |||
1 | #!/use/bin/env rusti | ||
2 | #!/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 @@ | |||
1 | FILE@[0; 42) | ||
2 | SHEBANG@[0; 20) | ||
3 | ERROR@[20; 42) | ||
4 | err: `expected item` | ||
5 | WHITESPACE@[20; 21) | ||
6 | SHEBANG@[21; 41) | ||
7 | 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 @@ | |||
1 | FILE@[0; 20) | ||
2 | SHEBANG@[0; 20) | ||