Use of assertions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anugrah
    New Member
    • Jun 2007
    • 1

    #1

    Use of assertions

    Pls. describe it in detail with code
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by anugrah
    Pls. describe it in detail with code
    Have a look at this Tutorial, it desribes it much better than I could do
    in a few lines. It's all about a crude way of programming by contract, i.e. you
    'assert' that certain conditions are true before you start your method. You can
    also check the correctness of your method by 'asserting' the results afterwards.

    kind regards,

    Jos

    Comment

    Working...