If as assert fails, is there a bug?

Posted by RichAmberale on Stack Overflow See other posts from Stack Overflow or by RichAmberale
Published on 2010-05-20T21:16:04Z Indexed on 2010/05/20 21:20 UTC
Read the original article Hit count: 256

Filed under:
|
|

I've always followed the logic: if assert fails, then there is a bug. Root cause could either be:

  • Assert itself is invalid (bug)
  • There is a programming error (bug)
  • (no other options)

I.E. Are there any other conclusions one could come to? Are there cases where an assert would fail and there is no bug?

© Stack Overflow or respective owner

Related posts about design

Related posts about assert