Package pypower :: Package t :: Module t_ok
[hide private]
[frames] | no frames]

Module t_ok

source code

Tests if a condition is true.

Functions [hide private]
 
t_ok(cond, msg='')
Tests if a condition is true.
source code
Variables [hide private]
  __package__ = 'pypower.t'
Function Details [hide private]

t_ok(cond, msg='')

source code 

Tests if a condition is true.

Increments the global test count and if the expr is true it increments the passed tests count, otherwise increments the failed tests count. Prints 'ok' or 'not ok' followed by the msg, unless the global variable t_quiet is true. Intended to be called between calls to t_begin and t_end.

Authors:
Ray Zimmerman (PSERC Cornell), Richard Lincoln