add whitespace tests

This commit is contained in:
2023-07-04 10:06:12 +00:00
parent 12849733b8
commit d656b1c0fe
2 changed files with 36 additions and 13 deletions

View File

@@ -1,3 +1,29 @@
==================
empty nix-shell
==================
#!/usr/bin/env nix-shell
#!nix-shell
---
(source_file
(first_line)
(next_line
(annotation_line)))
==================
whitespace in nix-shell
==================
#!/usr/bin/env nix-shell
#! nix-shell
---
(source_file
(first_line)
(next_line
(annotation_line)))
==================
minimal nix-shell invocation with interpreter
==================
@@ -88,19 +114,6 @@ order-independent
(interpreter
(sh_arg))))))
==================
empty nix-shell
==================
#!/usr/bin/env nix-shell
#!nix-shell
---
(source_file
(first_line)
(next_line
(annotation_line)))
==================
multiple annotation lines
==================

View File

@@ -7,3 +7,13 @@ nix-shell shebang without any interpreter option
(source_file
(first_line))
==================
nix-shell shebang whitespace
==================
#! /usr/bin/env nix-shell
---
(source_file
(first_line))