[Pkg] The Trunk: NetworkTests-pre.45.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Apr 20 09:39:35 UTC 2017


Patrick Rein uploaded a new version of NetworkTests to project The Trunk:
http://source.squeak.org/trunk/NetworkTests-pre.45.mcz

==================== Summary ====================

Name: NetworkTests-pre.45
Author: pre
Time: 20 April 2017, 11:39:29.736994 am
UUID: f3a657ab-0881-7449-bd72-8205a337f9ba
Ancestors: NetworkTests-tonyg.44

Adds a TestCase for testing whether the charset is respected when reading in MIMEDocuments

=============== Diff against NetworkTests-tonyg.44 ===============

Item was added:
+ ClassTestCase subclass: #MIMEDocumentTest
+ 	instanceVariableNames: ''
+ 	classVariableNames: ''
+ 	poolDictionaries: ''
+ 	category: 'NetworkTests-Url'!

Item was added:
+ ----- Method: MIMEDocumentTest>>testUtf8Text (in category 'as yet unclassified') -----
+ testUtf8Text
+ 	
+ 	| document |
+ 	document := MIMEDocument contentType: 'text/plain; charset="utf8"' content: self utf8String.
+ 	self assert: self utf8String utf8ToSqueak equals: document content !

Item was added:
+ ----- Method: MIMEDocumentTest>>utf8String (in category 'as yet unclassified') -----
+ utf8String
+ 
+ 	^ (ByteArray newFrom: #(199 161 84 83 67 72)) asString!



More information about the Packages mailing list