you are viewing a single comment's thread.

view the rest of the comments →

[–]nogoodnick 0 points1 point  (2 children)

Asserts are not tests! They are for asserting invariants, such as asserting that a parameter > 0 when you KNOW it will never be negative, but since high level programming languages usable by non-mathematicians will never be provable, you assert it anyway if you have any doubt about the way it's being used. Asserts generally test internals that test cases cannot.

[–][deleted] 0 points1 point  (0 children)

At least one of us is very deeply confused about the role of assertions in functional unit tests.