forked from GsDevKit/GsDevKit
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8fcada4
commit 19fba3c
Showing
5 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...tstrap.v3.package/FileDirectoryTests.class/instance/testDirectoryNamedWithAbsolutePath.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,4 +1,4 @@ | ||
as yet unclassified | ||
tests | ||
testDirectoryNamedWithAbsolutePath | ||
self assert: (FileDirectory root directoryNamed: 'tmp') pathName = '/tmp'. | ||
self assert: (FileDirectory default directoryNamed: '/tmp') pathName = '/tmp' |
2 changes: 1 addition & 1 deletion
2
repository/Bootstrap.v3.package/FileDirectoryTests.class/instance/testIssue293.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,4 +1,4 @@ | ||
as yet unclassified | ||
tests | ||
testIssue293 | ||
"http://code.google.com/p/glassdb/issues/detail?id=293" | ||
|
||
|
20 changes: 20 additions & 0 deletions
20
repository/Bootstrap.v3.package/FileDirectoryTests.class/instance/testIssue58.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
tests | ||
testIssue58 | ||
"https://github.com/GsDevKit/GsDevKit/issues/58" | ||
|
||
| main | | ||
(main := ServerFileDirectory default directoryNamed: self mainSubdirectoryName) | ||
exists | ||
ifTrue: [ main recursiveDelete ]. | ||
ServerFileDirectory default createDirectory: self mainSubdirectoryName. | ||
main := ServerFileDirectory default directoryNamed: self mainSubdirectoryName. | ||
main newFileNamed: 'newFile' do: [ :file | file nextPutAll: 'Hello World' ]. | ||
main | ||
readOnlyFileNamed: 'newFile' | ||
do: [ :file | self assert: file contents = 'Hello World' ]. | ||
main | ||
readOnlyFileNamed: 'newFile' | ||
do: [ :file | | ||
self deny: file atEnd. | ||
file next: 11. | ||
self assert: file atEnd ] |
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
Large diffs are not rendered by default.
Oops, something went wrong.