27 Oct
2005
27 Oct
'05
6:18 a.m.
Jeff Garland wrote: <snip>
That said, I am concerned that the program crashed -- that doesn't sound like desireable behavior. I suspect the reason has something to do with the fact that the string you are passing doesn't have any valid strings to parse -- something I'm pretty sure we don't test. Anyway, I'll put that on the todo list to add a test and better specify the behavior related to completely invalid format strings. It probably would be nice to have an exception in this case...
Jeff
Jeff (yes, I heard you already :-)
This seems like a job for assert to me, unless you expect user-input to be used in the format string somehow? -- don't quote this