Commits

Matt Oswald  committed 6c948f1

Edited online

  • Participants
  • Parent commits dfa30f6

Comments (0)

Files changed (1)

 }
 }}}
 
-A //Theory// creates a parameterized test. Each set of parameters is bound to an instance of the test and run individually. In this example, the {{{THEORY}}} macro creates a test named {{{DoubleTest}}} which takes parameters {{{(int expected, int value)}}}. The rest of the macro's parameters are {{{std::tuples}}} whos members resolve to the same type as the test parameters.
+A //Theory// creates a parameterized test. Each set of parameters is bound to an instance of the test and run individually. In this example, the {{{THEORY}}} macro creates a test named {{{Double Test}}} which takes parameters {{{(int expected, int value)}}}. The rest of the macro's parameters are {{{std::tuples}}} whose members resolve to the same type as the test parameters.
 
 If your //Theory// data requires detailed setup (for instance, if the details of the test parameters are stored in a local database or CSV file), another macro {{{DATA_THEORY}}} creates the same sort of test, only instead of individual {{{std::tuples}}}, it takes any function object (raw function pointer, {{{std::function}}}, or functor object) that returns {{{std::vector<std::tuple>>}}}: