-
Notifications
You must be signed in to change notification settings - Fork 234
Add regression test for untitled scripts in Windows PowerShell #1830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
1818bf7
0d77907
7e94697
07d8577
95c9afe
bc123b4
bb9cdfe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -651,6 +651,7 @@ public void DocumentUriReturnsCorrectStringForAbsolutePath() | |
[InlineData("vscode-notebook-cell:/Users/me/Documents/test.ps1#0001", true)] | ||
[InlineData("https://microsoft.com", true)] | ||
[InlineData("Untitled:Untitled-1", true)] | ||
[InlineData("'a log statement' > 'c:\\Users\\me\\Documents\\test.txt'\r\n", false)] | ||
public void IsUntitledFileIsCorrect(string path, bool expected) => Assert.Equal(expected, ScriptFile.IsUntitledPath(path)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See, this test implies that the function is asking "is this path a URI that indicates we're untitled?" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps we should expect this case to be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, doesn't work, since |
||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double-check me here please. As far as I can tell, this is expecting a URI?