-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify the workingDirectory test to also run when the Systems PathDel…
…imiter is not equal to $\
- Loading branch information
Showing
2 changed files
with
9 additions
and
10 deletions.
There are no files selected for viewing
17 changes: 8 additions & 9 deletions
17
...ages/MarkdownEditor-Tests.package/MarkdownLinkTest.class/instance/testWorkingDirectory.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
tests | ||
testWorkingDirectory | ||
|
||
| link | | ||
link := (MarkdownLink from: 1 to: 4) url: ''. | ||
self assert: | ||
(link getAbsoluteUrlFromPath: MarkdownEditor new currentFilePath) pathForFile = | ||
FileDirectory default asUrl pathForFile. | ||
| link delimiter path | | ||
link := (MarkdownLink from: 1 to: 4) url: 'testWorkingDir'. | ||
self assert: (link getAbsoluteUrlFromPath: '') pathForFile | ||
equals: FileDirectory default asUrl pathForFile, 'testWorkingDir'. | ||
|
||
delimiter := FileDirectory pathNameDelimiter asString. | ||
path := FileDirectory default pathName, delimiter, 'testWorkingDir', delimiter. | ||
link url: 'testtest.jpg'. | ||
self assert: | ||
(link getAbsoluteUrlFromPath: FileDirectory default pathName, '\testWorkingDir\test.md') pathForFile | ||
equals: | ||
FileDirectory default pathName, '\testWorkingDir\testtest.jpg'. | ||
self assert: (link getAbsoluteUrlFromPath: path, 'test.md') pathForFile | ||
equals: path, 'testtest.jpg'. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters