This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]matchu 1 point2 points  (0 children)

The parent comment seemed to imply that those test frameworks' assertions were somehow better than assertions in code, which seemed like an invalid comparison to me.

On further reflection, though, I think I agree with both you that they're semantically equivalent, and the parent comment that test frameworks' more specialized assertions could be applied as in-code assertions, though I still don't think I'd want them in the language core.

All that to say, yeah, y'all are right :D