D LanguageUnittesting


Syntax

  • unittest { ... } - a block that is only run in "unittesting" mode
  • assert(<expression that evaluates to a boolean>, <optional error message>)