X Tutup
Skip to content

Commit 517e32e

Browse files
author
Johan Brichau
committed
Move filestream tests from Pharo-specific tests package to the common tests package so we execute the tests on all platforms
1 parent 05f8180 commit 517e32e

File tree

5 files changed

+19
-7
lines changed

5 files changed

+19
-7
lines changed

repository/Grease-Core.package/GRPlatform.class/instance/thisContext.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ processes
22
thisContext
33
"Answer the current activation of a method execution or block activation.
44
5-
For dialects with a thisContext variable and implementation can lock like this.
5+
For dialects with a thisContext variable and implementation can look like this.
66
77
^ thisContext sender"
88
self subclassResponsibility
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SystemOrganization addCategory: #'Grease-Core'!
2-
SystemOrganization addCategory: #'Grease-Core-Collections'!
3-
SystemOrganization addCategory: #'Grease-Core-Exceptions'!
4-
SystemOrganization addCategory: #'Grease-Core-Text'!
5-
SystemOrganization addCategory: #'Grease-Core-Utilities'!
2+
SystemOrganization addCategory: 'Grease-Core-Collections'!
3+
SystemOrganization addCategory: 'Grease-Core-Exceptions'!
4+
SystemOrganization addCategory: 'Grease-Core-Text'!
5+
SystemOrganization addCategory: 'Grease-Core-Utilities'!

repository/Grease-Tests-Pharo-Core.package/GRPharoPlatformTest.class/instance/testReadWriteToFileInFolderBinary.st renamed to repository/Grease-Tests-Core.package/GRPlatformTest.class/instance/testReadWriteToFileInFolderBinary.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests
1+
tests-filestreams
22
testReadWriteToFileInFolderBinary
33
| bytes |
44
bytes := #(80 104 39 110 103 108 117 105 32 109 103 108 119 39 110 97 102 104 32 67 116 104 117 108 104 117 32 82 39 108 121 101 104 32 119 103 97 104 39 110 97 103 108 32 102 104 116 97 103 110) asByteArray.

repository/Grease-Tests-Pharo-Core.package/GRPharoPlatformTest.class/instance/testReadWriteToFileInFolderText.st renamed to repository/Grease-Tests-Core.package/GRPlatformTest.class/instance/testReadWriteToFileInFolderText.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests
1+
tests-filestreams
22
testReadWriteToFileInFolderText
33
| text |
44
text := 'Ph''nglui mglw''nafh Cthulhu R''lyeh wgah''nagl fhtagn'.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*Grease-Tests-Pharo-Core
2+
writeToFile: aStringOrByteArray withFileNameDo: aBlock
3+
| fileName directory |
4+
fileName := 'GRPharoPlatformTest'.
5+
directory := FileSystem disk workingDirectory.
6+
[ GRPlatform current
7+
write: aStringOrByteArray
8+
toFile: fileName
9+
inFolder: directory fullName.
10+
aBlock value: directory fullName,GRPlatform current pathSeparator,fileName
11+
] ensure: [
12+
(directory / fileName) delete ]

0 commit comments

Comments
 (0)
X Tutup