From: D-Man <ds...@ri...> - 2001-03-28 19:41:56
|
On Wed, Mar 28, 2001 at 09:21:19PM +0100, Ype Kingma wrote: | | "Robert W. Bill" wrote: | > | > assert(test(stringtest, S[1])), "String test failed" | > | | Also the assert code is a bit strange: | 'assert' is a keyword, not a function. | Leaving out one pair of brackets gives: Robert has already mentioned that his post was hasty and had several errors in it. The posted line is harder to read due to the lack of whitespace between 'assert' and '('. Anyways, just FYI, assert can take a 2-tuple as its only "argument" assert ( 0 , "Hello World" ) is equivalent to assert 0 , "Hello World" It is quite useful when the expression, or more often, the string is too long. By using parens to create a tuple the \ prior to the newline is not necessary. -D |