[squeak-dev] The Trunk: CollectionsTests-ul.188.mcz
commits at source.squeak.org
commits at source.squeak.org
Sun Aug 19 13:29:55 UTC 2012
Levente Uzonyi uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-ul.188.mcz
==================== Summary ====================
Name: CollectionsTests-ul.188
Author: ul
Time: 19 August 2012, 3:19:50.449 pm
UUID: 85f1372a-70ab-ef44-8b53-31c67f7cae63
Ancestors: CollectionsTests-ael.187
- simplified StringTest >> #testUnescapePercents and added a few more cases which failed with the previous implementation
=============== Diff against CollectionsTests-ael.187 ===============
Item was changed:
----- Method: StringTest>>testUnescapePercents (in category 'tests - converting') -----
testUnescapePercents
- self assert: '' unescapePercents = ''.
- self assert: 'x' unescapePercents = 'x'.
+ #(
+ '' ''
+ 'x' 'x'
+ '+' ' '
+ 'x+' 'x '
+ '+x' ' x'
+ 'x+x' 'x x'
+ '%' '%'
+ '%3' '%3'
+ '%3C' '<'
+ '%3C%' '%3C%'
+ '%3C%3' '%3C%3'
+ '%3C%3C' '<<'
+ '%3Cx%3E4%3C%2Fx%3E' '<x>4</x>'
+ '!!@#$%25%5E&*()%7B%7D%5B%5D=:/;?+''%22' '!!@#$%^&*(){}[]=:/;? ''"'
+ '!!%40%23%24%25%5E%26*()%7B%7D%5B%5D%3D%3A%2F%3B%3F%2B''%22' '!!@#$%^&*(){}[]=:/;?+''"'
+ '%21@%23%24%25%5E%26*%28%29%7B%7D%5B%5D%3D%3A/%3B%3F+%27%22' '!!@#$%^&*(){}[]=:/;? ''"'
+ ) pairsDo: [ :from :to |
+ self assert: to equals: from unescapePercents ]!
- self assert: '+' unescapePercents = ' '.
- self assert: 'x+' unescapePercents = 'x '.
- self assert: '+x' unescapePercents = ' x'.
- self assert: 'x+x' unescapePercents = 'x x'.
-
- self assert: '%' unescapePercents = '%'.
- self assert: '%3' unescapePercents = '%3'.
- self assert: '%3C' unescapePercents = '<'.
-
- self assert: '%3Cx%3E4%3C%2Fx%3E' unescapePercents = '<x>4</x>'.
-
- self assert: '!!@#$%25%5E&*()%7B%7D%5B%5D=:/;?+''%22' unescapePercents = '!!@#$%^&*(){}[]=:/;? ''"'.
- self assert: '!!%40%23%24%25%5E%26*()%7B%7D%5B%5D%3D%3A%2F%3B%3F%2B''%22' unescapePercents = '!!@#$%^&*(){}[]=:/;?+''"'.
- self assert: '%21@%23%24%25%5E%26*%28%29%7B%7D%5B%5D%3D%3A/%3B%3F+%27%22' unescapePercents = '!!@#$%^&*(){}[]=:/;? ''"'!
More information about the Squeak-dev
mailing list
|