Callout Tests
Example 1:
Now we can define a function that simulates an ordinary six-sided die.
introll_die(){boost::uniform_int<>dist(1,6);}
create a uniform_int distribution
Example 2:
introll_die(){boost::variate_generator<boost::mt19937&,boost::uniform_int<>>die(gen,dist);}
test
Example 3:
introll_die(){boost::variate_generator<boost::mt19937&,boost::uniform_int<>>die(gen,dist);}
test
Example 3 (again!):
introll_die(){boost::variate_generator<boost::mt19937&,boost::uniform_int<>>die(gen,dist);}
test
Example 4:
introll_die(){boost::variate_generator<boost::mt19937&,boost::uniform_int<>>die(gen,dist);boost::uniform_int<>dist(1,6);}
callout 1
callout 2
create a uniform_int distribution
boost::uniform_int<>dist(1,6);
callout 2
create a uniform_int distribution
Try callouts in a section
Example 1:
Now we can define a function that simulates an ordinary six-sided die.
introll_die(){boost::uniform_int<>dist(1,6);}
create a uniform_int distribution
Example 2:
introll_die(){boost::variate_generator<boost::mt19937&,boost::uniform_int<>>die(gen,dist);}
test
Example 3:
introll_die(){boost::variate_generator<boost::mt19937&,boost::uniform_int<>>die(gen,dist);}
test
Example 3 (again!):
introll_die(){boost::variate_generator<boost::mt19937&,boost::uniform_int<>>die(gen,dist);}
test
Example 4:
introll_die(){boost::variate_generator<boost::mt19937&,boost::uniform_int<>>die(gen,dist);boost::uniform_int<>dist(1,6);}
callout 1
callout 2
create a uniform_int distribution
boost::uniform_int<>dist(1,6);
callout 2
create a uniform_int distribution
Callouts in code blocksintroll_die(){boost::uniform_int<>dist(1,6);}
create a uniform_int distribution
introll_die(){boost::variate_generator<boost::mt19937&,boost::uniform_int<>>die(gen,dist);}
test
/*< This shouldn't be a callout >*/Silly testsilly