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! |
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 |
On Thu, Apr 20, 2017 at 6:19 AM, Levente Uzonyi <[hidden email]> wrote:
+1 _,,,^..^,,,_ best, Eliot |
Free forum by Nabble | Edit this page |