[squeak-dev] The Trunk: NetworkTests-pre.45.mcz

Levente Uzonyi leves at caesar.elte.hu
Thu Apr 20 13:19:58 UTC 2017


On Thu, 20 Apr 2017, commits at source.squeak.org wrote:

> 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!

Did you mean #[199 161 84 83 67 72] asString?

Levente


More information about the Squeak-dev mailing list