Initial commit
This commit is contained in:
12
test/cxxtest/sample/mock/Dice.cpp
Normal file
12
test/cxxtest/sample/mock/Dice.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <T/stdlib.h>
|
||||
#include "Dice.h"
|
||||
|
||||
Dice::Dice()
|
||||
{
|
||||
T::srand( T::time( 0 ) );
|
||||
}
|
||||
|
||||
unsigned Dice::roll()
|
||||
{
|
||||
return (T::rand() % 6) + 1;
|
||||
}
|
||||
Reference in New Issue
Block a user