The Trunk: NetworkTests-pre.45.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: NetworkTests-pre.45.mcz

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


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: NetworkTests-pre.45.mcz

Levente Uzonyi
On Thu, 20 Apr 2017, [hidden email] 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

Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: NetworkTests-pre.45.mcz

Eliot Miranda-2


On Thu, Apr 20, 2017 at 6:19 AM, Levente Uzonyi <[hidden email]> wrote:
On Thu, 20 Apr 2017, [hidden email] 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?

+1 

--
_,,,^..^,,,_
best, Eliot