Andreas Raab uploaded a new version of NetworkTests to project The Trunk:
http://source.squeak.org/trunk/NetworkTests-ar.18.mcz==================== Summary ====================
Name: NetworkTests-ar.18
Author: ar
Time: 22 August 2010, 1:31:46.125 pm
UUID: 0d996b84-6556-0f41-a170-cd7b31f3f6ca
Ancestors: NetworkTests-ar.17
Tests for ascii vs. binary usage in upTo: and upToAll:.
=============== Diff against NetworkTests-ar.17 ===============
Item was added:
+ ----- Method: SocketStreamTest>>testUpToAllAsciiVsBinary (in category 'stream protocol') -----
+ testUpToAllAsciiVsBinary
+ "Tests correct behavior of #upToAll"
+
+ serverStream ascii.
+ clientStream nextPutAll:'A line of text', String crlf, 'with more text'; flush.
+ self assert: (serverStream upToAll: #[13 10]) = 'A line of text'.
+
+ serverStream binary.
+ clientStream nextPutAll: String crlf; flush.
+ self assert: (serverStream upToAll: String crlf) asString = 'with more text'.
+ !
Item was added:
+ ----- Method: SocketStreamTest>>testUpToAsciiVsBinary (in category 'stream protocol') -----
+ testUpToAsciiVsBinary
+ "Tests correct behavior of #upTo:"
+
+ serverStream ascii.
+ clientStream nextPutAll:'A line of text', String cr, 'with more text'; flush.
+ self assert: (serverStream upTo: 13) = 'A line of text'.
+
+ serverStream binary.
+ clientStream nextPutAll: String cr; flush.
+ self assert: (serverStream upTo: Character cr) asString = 'with more text'.
+ !