int main()

in src/quest/mains/mainQ3.cpp [10:38]


int main(){
  std::string s = "OK";
  std::shared_ptr<std::string> cryJa = std::make_shared<std::string>();
  std::shared_ptr<std::string> cryUs = std::make_shared<std::string>();
  std::shared_ptr<bool> isDeathJa = std::make_shared<bool>();
  std::shared_ptr<bool> isDeathUs = std::make_shared<bool>();

  Q3Parent* japanese = new Q3ChildJapanese(cryJa);
  Q3Parent* american = new Q3ChildAmerican(cryUs);

  japanese->setDeath(isDeathJa);
  american->setDeath(isDeathUs);

  delete(japanese);
  if(! *isDeathJa or *cryJa != "JP:おばぶ!"){
    s = "NG";
  }

  delete(american);
  if(! *isDeathUs or *cryUs != "US:Oh! No!"){
    s = "NG";
  }

  std::cout << *cryJa << std::endl;
  std::cout << *cryUs << std::endl;
  std::cout << std::endl << s << std::endl;

  return 0;
}