Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    Assertions are used in C/C++ code to identify situations which should never happen, although they are removed at runtime. See geeksforgeeks.org/assertions-cc Commented Jul 24, 2019 at 18:45
  • @RobertHarvey I don't see the relevance? I would hope that a unittest library's assertion methods would not behave the same! Commented Jul 24, 2019 at 19:00
  • @RobertHarvey: C/C++ assert calls are not all that useful in unittesting. They terminate the application, including the testrunner. Commented Jul 25, 2019 at 8:24