File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed
repository/Grease-Tests-Core.package
GRPlatformTest.class/instance Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 11tests- files
22testNewTemporaryFile
33
4- | temporaryFile |
4+ | temporaryFile1 temporaryFile2 |
55 [
6- temporaryFile := GRPlatform current newTemporaryFile.
6+ temporaryFile1 := GRPlatform current newTemporaryFile.
7+ temporaryFile2 := GRPlatform current newTemporaryFile.
78 GRPlatform current
8- writeFileStreamOn: temporaryFile
9+ writeFileStreamOn: temporaryFile1
910 do: [ :str | str nextPutAll: ' test temporary' ]
1011 binary: false .
11- self assert: (GRPlatform current fileExists: temporaryFile)
12- ] ensure : [ GRPlatform current deleteFile: temporaryFile ].
13- self deny: (GRPlatform current fileExists: temporaryFile)
12+ GRPlatform current
13+ writeFileStreamOn: temporaryFile2
14+ do: [ :str | str nextPutAll: #[116 101 115 116 32 116 101 109 112 111 114 97 114 121] ]
15+ binary: true .
16+ self assert: (GRPlatform current fileExists: temporaryFile1).
17+ self deny: (GRPlatform current localNameOf: temporaryFile1) equals: (GRPlatform current localNameOf: temporaryFile2)
18+ ] ensure : [ GRPlatform current deleteFile: temporaryFile1. GRPlatform current deleteFile: temporaryFile2 ].
19+ self deny: (GRPlatform current fileExists: temporaryFile1).
20+ self deny: (GRPlatform current fileExists: temporaryFile2)
Original file line number Diff line number Diff line change 1- SystemOrganization addCategory : #' Grease-Tests-Core' !
1+ self packageOrganizer ensurePackage : #' Grease-Tests-Core' withTags: #() !
You can’t perform that action at this time.
0 commit comments