Esempio n. 1
0
TEST(RandoTest, oneChildeSmiles)
{
  Rando rando;
  ASSERT_TRUE( rando.shouldWorry(false,false,true) );
  ASSERT_TRUE( rando.shouldWorry(false,true,false) );
  ASSERT_TRUE( rando.shouldWorry(true,false,false) );
}
Esempio n. 2
0
TEST(RandoTest, allChildrenSmile)
{
	Rando rando;
	ASSERT_TRUE( rando.shouldWorry(true,true,true) );
}
Esempio n. 3
0
TEST(RandoTest, noChildrenSmile)
{
    Rando rando;
    ASSERT_FALSE( rando.shouldWorry(false,false,false) );
}
Esempio n. 4
0
TEST(RandoTest, outsideChildrenSmile)
{
    Rando rando;
    ASSERT_FALSE( rando.shouldWorry(true,false,true) );
}
Esempio n. 5
0
TEST(RandoTest, lastTwoChildrenSmile)
{
    Rando rando;
    ASSERT_FALSE( rando.shouldWorry(false,true,true) );
}
Esempio n. 6
0
TEST(RandoTest, lastChildSmile)
{
    Rando rando;
    ASSERT_TRUE( rando.shouldWorry(false,false,true) );
}
Esempio n. 7
0
TEST(RandoTest, firstChildSmile)
{
    Rando rando;
    ASSERT_TRUE( rando.shouldWorry(true,false,false) );
}