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

commits at source.squeak.org commits at source.squeak.org
Thu May 2 13:10:23 UTC 2019


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

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

Name: NetworkTests-pre.57
Author: pre
Time: 2 May 2019, 3:10:21.137906 pm
UUID: 933a4b0f-4442-1c4f-91ce-f1a8730f2a43
Ancestors: NetworkTests-pre.56

Adds a number of new tests for the MIMEDocument class.

=============== Diff against NetworkTests-pre.56 ===============

Item was added:
+ ----- Method: MIMEDocumentTest>>testCharset (in category 'tests') -----
+ testCharset
+ 	
+ 	| document |
+ 	document := MIMEDocument contentType: 'text/plain;charset=utf-8' content: self utf8String.
+ 	self assert: 'utf-8' equals: document charset. !

Item was added:
+ ----- Method: MIMEDocumentTest>>testContentType (in category 'tests') -----
+ testContentType
+ 	
+ 	| document |
+ 	document := MIMEDocument contentType: 'text/plain;charset=utf-8' content: self utf8String.
+ 	self assert: 'text/plain' equals: document contentType. !

Item was added:
+ ----- Method: MIMEDocumentTest>>testMainAndSubType (in category 'tests') -----
+ testMainAndSubType
+ 	
+ 	| document |
+ 	document := MIMEDocument contentType: 'text/plain' content: self utf8String.
+ 	self assert: 'text' equals: document mainType. 
+ 	self assert: 'plain' equals: document subType.!

Item was added:
+ ----- Method: MIMEDocumentTest>>testMultipartDocument (in category 'tests') -----
+ testMultipartDocument
+ 	
+ 	| document |
+ 	document := MIMEDocument newMultipart.
+ 	self assert: 'multipart/mixed' equals: document contentType. !

Item was added:
+ ----- Method: MIMEDocumentTest>>testParameterizedContentType (in category 'tests') -----
+ testParameterizedContentType
+ 	
+ 	| document |
+ 	document := MIMEDocument contentType: 'text/plain;charset=utf-8' content: self utf8String.
+ 	self assert: 'text/plain;charset=utf-8' equals: document parameterizedContentType. !



More information about the Packages mailing list