Crate test_toolbox

Source
Expand description

Utility library of helper macros for working with unit tests.

§Macros

  • actual! - declare actual variable with differing debug and release syntax
  • expect! - declare expected variable with differing debug and release values
  • capture! - captures stdout and stderr for testing output

Macros§

  • Macro to define different actual variables for debug and release
  • Macro to capture stdout and stderr during the evaluation of a statement
  • Macro to define different expected values for debug and release