personally i don't like assume. when i have just finished executing a hairy piece of code i would like to assert some predicate about the expected state of the world. assume works better in a specialized context: as a precursor to some block (like a precondition): this assumption is needed for this block to do the expected thing. expect .... is an alternative but i prefer assert. "Florian Gross" <flgr / ccan.de> wrote in message news:2vnb6rF2m9lq7U1 / uni-berlin.de... > itsme213 wrote: > > >>(called > >>assert, but I can't have that name anymore because of test/unit, I > >>suppose) > > > > Why? I think test/unit's assert only applies inside TestCases, where it is > > quite applicable and I would continue to use it. I'd use your assert > > anywhere else. > > Hm, good point. But a potential overlap could still be a bit confusing > if somebody wants to use both of them in test cases. (That seems quite > unlikely, however) What do you think about using 'assume'? It's quite > similar, but still distinct enough not to confuse them with each other.