mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
Add parser test for indented strings
So that in the next commit we can see what changes about this test
This commit is contained in:
parent
9300f855fc
commit
9fae50ed4b
2 changed files with 32 additions and 0 deletions
1
tests/functional/lang/parse-okay-ind-string.exp
Normal file
1
tests/functional/lang/parse-okay-ind-string.exp
Normal file
|
@ -0,0 +1 @@
|
|||
(let string = "str"; in [ (/some/path) ((/some/path)) (("" + /some/path)) ((/some/path + "\n end")) (string) ((string)) (("" + string)) ((string + "\n end")) ("") ("") ("end") ])
|
31
tests/functional/lang/parse-okay-ind-string.nix
Normal file
31
tests/functional/lang/parse-okay-ind-string.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
let
|
||||
string = "str";
|
||||
in [
|
||||
/some/path
|
||||
|
||||
''${/some/path}''
|
||||
|
||||
''
|
||||
${/some/path}''
|
||||
|
||||
''${/some/path}
|
||||
end''
|
||||
|
||||
string
|
||||
|
||||
''${string}''
|
||||
|
||||
''
|
||||
${string}''
|
||||
|
||||
''${string}
|
||||
end''
|
||||
|
||||
''''
|
||||
|
||||
''
|
||||
''
|
||||
|
||||
''
|
||||
end''
|
||||
]
|
Loading…
Reference in a new issue