Skip to content

Commit

Permalink
Fix unintentionally invalid filename escaping test
Browse files Browse the repository at this point in the history
  • Loading branch information
sbarzowski committed May 29, 2019
1 parent df7753e commit ee8aee4
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 19 deletions.
6 changes: 1 addition & 5 deletions testdata/%22.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
testdata/":2:1 Unexpected end of file.




{ }
1 change: 1 addition & 0 deletions testdata/%22.jsonnet
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
// This file is there only for its filename: to test escaping in imports
{}
6 changes: 1 addition & 5 deletions testdata/%27.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
testdata/':2:1 Unexpected end of file.




{ }
1 change: 1 addition & 0 deletions testdata/%27.jsonnet
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
// This file is there only for its filename: to test escaping in imports
{}
11 changes: 6 additions & 5 deletions testdata/import_various_literals_escaped.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
testdata/".jsonnet:2:1 Unexpected end of file.




[
true,
true,
"// This file is there only for its filename: to test escaping in imports\n{}\n",
"// This file is there only for its filename: to test escaping in imports\n{}\n"
]
4 changes: 2 additions & 2 deletions testdata/import_various_literals_escaped.jsonnet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
import "\u0074rue.jsonnet",
import '\u0074rue.jsonnet',
import @""".jsonnet",
import @'''.jsonnet',
importstr @""".jsonnet",
importstr @'''.jsonnet',
]
4 changes: 2 additions & 2 deletions testdata/importstr_various_literals_escaped.golden
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
"true\n",
"true\n",
"// This file is there only for its filename: to test escaping in imports\n",
"// This file is there only for its filename: to test escaping in imports\n"
"// This file is there only for its filename: to test escaping in imports\n{}\n",
"// This file is there only for its filename: to test escaping in imports\n{}\n"
]

0 comments on commit ee8aee4

Please sign in to comment.