Skip to content
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

20626-Fixing-Tests-in-CI #425

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/CodeExport/ChunkWriteStream.class.st
Expand Up @@ -8,7 +8,7 @@ symbols
Class {
#name : #ChunkWriteStream,
#superclass : #DecoratorStream,
#category : 'CodeExport'
#category : #CodeExport
}

{ #category : #writing }
Expand Down
10 changes: 7 additions & 3 deletions src/CodeExport/CodeExporter.class.st
@@ -1,19 +1,23 @@
Class {
#name : #CodeExporter,
#superclass : #Object,
#category : 'CodeExport'
#category : #CodeExport
}

{ #category : #file-out }
CodeExporter class >> writeSourceCodeFrom: aStream baseName: baseName isSt: stOrCsFlag [

| extension converter fileName |
| extension fileName outputStream |
extension := stOrCsFlag ifTrue: ['.st'] ifFalse: ['.cs'].
fileName := baseName, extension.
fileName := FileSystem disk checkName: fileName fixErrors: true.
outputStream := (File named: fileName) writeStream.

(ZnCrPortableWriteStream on: (ZnCharacterWriteStream
on: (File named: fileName) writeStream
on: outputStream
encoding: 'utf8')) nextPutAll: aStream contents.

outputStream close.

self inform: 'Filed out to: ', String cr, fileName.
]
2 changes: 1 addition & 1 deletion src/CodeExport/ManifestCodeExport.class.st
Expand Up @@ -4,7 +4,7 @@ I store metadata for this package. These meta data are used by other tools such
Class {
#name : #ManifestCodeExport,
#superclass : #PackageManifest,
#category : 'CodeExport'
#category : #CodeExport
}

{ #category : #'meta-data - dependency analyser' }
Expand Down
2 changes: 1 addition & 1 deletion src/Files-Tests/BinaryFileStreamTest.class.st
@@ -1,7 +1,7 @@
Class {
#name : #BinaryFileStreamTest,
#superclass : #TestCase,
#category : 'Files-Tests'
#category : #Files-Tests
}

{ #category : #running }
Expand Down
4 changes: 2 additions & 2 deletions src/Files-Tests/FileTest.class.st
@@ -1,7 +1,7 @@
Class {
#name : #FileTest,
#superclass : #TestCase,
#category : 'Files-Tests'
#category : #Files-Tests
}

{ #category : #running }
Expand All @@ -15,7 +15,7 @@ FileTest >> testCheckExistenceOfExistingFileThrowsException [

| file |
file := File named: 'asd.txt'.
file writeStream.
file writeStream close.
self should: [file checkDoesNotExist] raise: FileAlreadyExistsException.
]

Expand Down