#define BOOST_TEST_MODULE #include #include using boost::assign::list_of; #include "../player.h" BOOST_AUTO_TEST_CASE(tsumo_tanyao) { Player player; player.client = make_shared(); player.round_start(0); player.hand = list_of (Tile::Man_2)(Tile::Man_2)(Tile::Man_2) (Tile::Pin_2)(Tile::Pin_3)(Tile::Pin_4) (Tile::Sou_2)(Tile::Sou_2)(Tile::Sou_2) (Tile::Man_8)(Tile::Man_8); player.declare_tsumo(); BOOST_CHECK_EQUAL(player.won, true); BOOST_CHECK_EQUAL(player.won_value.yaku, 2); BOOST_CHECK_EQUAL(player.won_value.fu, 28); BOOST_CHECK_EQUAL(player.won_value.tsumo(), 500); BOOST_CHECK_EQUAL(player.won_value.tsumo_east(), 1000); }