Skip to content

Commit

Permalink
Add parser test for indented strings
Browse files Browse the repository at this point in the history
So that in the next commit we can see what changes about this test
  • Loading branch information
infinisil committed Jul 17, 2024
1 parent 9300f85 commit 9fae50e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/functional/lang/parse-okay-ind-string.exp
Original file line number Diff line number Diff line change
@@ -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 changes: 31 additions & 0 deletions tests/functional/lang/parse-okay-ind-string.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
let
string = "str";
in [
/some/path

''${/some/path}''

''
${/some/path}''

''${/some/path}
end''

string

''${string}''

''
${string}''

''${string}
end''

''''

''
''

''
end''
]

0 comments on commit 9fae50e

Please sign in to comment.