The Trunk: NetworkTests-ar.20.mcz

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

The Trunk: NetworkTests-ar.20.mcz

commits-2
Andreas Raab uploaded a new version of NetworkTests to project The Trunk:
http://source.squeak.org/trunk/NetworkTests-ar.20.mcz

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

Name: NetworkTests-ar.20
Author: ar
Time: 4 September 2010, 11:32:11.168 am
UUID: e33d0091-525f-7842-81d8-1fb0a2784496
Ancestors: NetworkTests-ar.19

Add tests for #urlEncoded.

=============== Diff against NetworkTests-ar.19 ===============

Item was added:
+ ----- Method: UrlTest>>testUrlEncoded (in category 'tests') -----
+ testUrlEncoded
+ "Test the behavior of #urlEncoded"
+
+ self assert: 'http://squeak.org/name with space?and=value' urlEncoded
+ equals: 'http://squeak.org/name%20with%20space?and=value'.
+
+ self assert: 'http://squeak.org/name%20with%20space?and=value' urlEncoded
+ equals: 'http://squeak.org/name%20with%20space?and=value'.
+
+ self assert: '<a href="http://squeak.org/name%with%space?and=value'">http://squeak.org/name%with%space?and=value' urlEncoded
+ equals: 'http://squeak.org/name%25with%25space?and=value'.
+ !