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) ); }
TEST(RandoTest, allChildrenSmile) { Rando rando; ASSERT_TRUE( rando.shouldWorry(true,true,true) ); }
TEST(RandoTest, noChildrenSmile) { Rando rando; ASSERT_FALSE( rando.shouldWorry(false,false,false) ); }
TEST(RandoTest, outsideChildrenSmile) { Rando rando; ASSERT_FALSE( rando.shouldWorry(true,false,true) ); }
TEST(RandoTest, lastTwoChildrenSmile) { Rando rando; ASSERT_FALSE( rando.shouldWorry(false,true,true) ); }
TEST(RandoTest, lastChildSmile) { Rando rando; ASSERT_TRUE( rando.shouldWorry(false,false,true) ); }
TEST(RandoTest, firstChildSmile) { Rando rando; ASSERT_TRUE( rando.shouldWorry(true,false,false) ); }