void testObj::test<3>(void) { MimeCreateHelper mch("[email protected]", Config::Recipients("[email protected]"), "re: stuff", "hello world"); vmime::ref<vmime::message> mime1=mch.createMimeMessage(); checkMsg(mime1); vmime::ref<vmime::message> mime2=mch.createMimeMessage(); checkMsg(mime2); }
void testObj::test<4>(void) { Config::Recipients to("[email protected]"); to.push_back("*****@*****.**"); to.push_back("*****@*****.**"); MimeCreateHelper mch("[email protected]", to, "re: stuff", "hello world"); vmime::ref<vmime::message> mime=mch.createMimeMessage(); checkMsg(mime); }
void testObj::test<5>(void) { Config::Recipients to("[email protected]"); to.push_back("*****@*****.**"); to.push_back("*****@*****.**"); MimeCreateHelper mch("[email protected]", to, "re: stuff", "hello world"); vmime::ref<vmime::message> mime=mch.createMimeMessage(); const std::string msg=toString(mime); ensure("recipient 1 is missing", msg.find("*****@*****.**")!=std::string::npos ); ensure("recipient 2 is missing", msg.find("*****@*****.**")!=std::string::npos ); }
void testObj::test<6>(void) { MimeCreateHelper mch("", Config::Recipients(""), "", ""); try { mch.createMimeMessage(); fail("exception not thrown on empty from/to fields"); } catch(const ExceptionUnableToCreateMessage &) { // this is expected } }
void testObj::test<1>(void) { MimeCreateHelper mch("[email protected]", Config::Recipients("[email protected]"), "re: stuff", "hello world"); }
bool SUSY::PostUpdate() { if(!StandardModel::PostUpdate()) return (false); /* Set the squark and slepton mass matrices and the trilinear-coupling matrices */ SetSoftTerms(); computeYukawas(); /* use approximate GUT relation if M1 & M2 are zero */ if(m1.abs() == 0. && m2.abs() == 0.) { m1.real() = m3/6.; m2.real() = m3/3.; } /* Compute Higgs and sparticle spectra with FeynHiggs */ if (IsFlag_FH()) { /* BEGIN: REMOVE FROM THE PACKAGE */ if(!myFH->SetFeynHiggsPars()) return (false); if(!myFH->CalcHiggsSpectrum()) return (false); if(!myFH->CalcSpectrum()) return (false); /* FH does not calculate Sneutrino masses. */ /* END: REMOVE FROM THE PACKAGE */ } else { /* Compute Higgs and sparticle spectra without FeynHiggs */ /* sfermions */ for (int i = 0; i < 6; i++) { m_sn2(i) = 0.;// heavy decoupled masses for i=3-5 m_se2(i) = 0.; m_su2(i) = 0.; m_sd2(i) = 0.; m_sdresum2(i) = 0.; for (int j = 0; j < 6; j++) { /* R: first (second) index for mass (gauge) eigenstates */ /* UASf: second (third) index for gauge (mass) eigenstates */ Rn.assign(i,j, 0.); Rl.assign(i,j, 0.); Ru.assign(i,j, 0.); Rd.assign(i,j, 0.); Rdresum.assign(i,j, 0.); } } /* charginos */ for (int i = 0; i < 2; i++) { mch(i) = 0.; for (int j = 0; j < 2; j++) { /* U and V: first (second) index for mass (gauge) eigenstates */ /* Ucha and VCha: first (second) index for gauge (mass) eigenstates */ U.assign(i,j, 0.); V.assign(i,j, 0.); } } /* neutralinos */ for (int i = 0; i < 4; i++) { mneu(i) = 0.; for (int j = 0; j < 4; j++) /* N: first (second) index for mass (gauge) eigenstates */ /* Zneu: first (second) index for gauge (mass) eigenstates */ N.assign(i,j, 0.); } if(!mySUSYSpectrum->CalcHiggs(mh,saeff)) return (false); if(!mySUSYSpectrum->CalcChargino(U,V,mch)) return (false); if(!mySUSYSpectrum->CalcNeutralino(N,mneu)) return (false); if(!mySUSYSpectrum->CalcSup(Ru,m_su2)) return (false); mySUSYSpectrum->SortSfermionMasses(m_su2, Ru); if(!mySUSYSpectrum->CalcSdown(Rd,m_sd2)) return (false); mySUSYSpectrum->SortSfermionMasses(m_sd2, Rd); if(!mySUSYSpectrum->CalcSneutrino(Rn,m_sn2)) return (false); mySUSYSpectrum->SortSfermionMasses(m_sn2, Rn); if(!mySUSYSpectrum->CalcSelectron(Rl,m_se2)) return (false); mySUSYSpectrum->SortSfermionMasses(m_se2, Rl); } // std::cout<<"muH S = "<<muH<<std::endl; /* Set the mass of the SM-like Higgs */ /* allowed range for the use of EWSMApproximateFormulae class */ if (mh[0] < 10. || mh[0] > 1000.) { std::stringstream out; out << mh[0]; throw std::runtime_error("SUSY::PostUpdate(): mh=" + out.str() + " is out of range for EWSMApproximateFormulae"); return (false); } mHl = mh[0]; if( Q_SUSY == -1 || Q_SUSY == 0) Q_SUSY = sqrt( sqrt(m_su2(2) * m_su2(5)) ); /* For EWSUSY class */ myEWSUSY->SetRosiekParameters(); /* Necessary for updating SUSY and SUSY-derived parameters in SUSYMatching */ /* For SUSY Models only: The SM Matching needs to be updated here since StandardModel::PostUpdate() will not do it since the Higgs masses need to be computed. */ SUSYM.getObj().updateSMParameters(); SUSYM.getObj().updateSUSYParameters(); SUSYM.getObj().Comp_mySUSYMQ(); if (IsFlag_ne()) SUSYM.getObj().Comp_VdDNL(0); if (IsFlag_ne()) SUSYM.getObj().Comp_VdDNR(0); if (IsFlag_ch()) SUSYM.getObj().Comp_VdUCL(); if (IsFlag_ch()) SUSYM.getObj().Comp_VdUCR(0); SUSYM.getObj().Comp_DeltaMd(); SUSYM.getObj().Comp_DeltaDL(); SUSYM.getObj().Comp_Eps_J(); SUSYM.getObj().Comp_Lambda0EpsY(); SUSYM.getObj().Comp_mySUSY_CKM(); if (IsFlag_h()) { SUSYM.getObj().Comp_PHLR(); SUSYM.getObj().Comp_VUDHH(); SUSYM.getObj().Comp_PHRL(); } if (IsFlag_ne()) { SUSYM.getObj().Comp_VdDNL(1); SUSYM.getObj().Comp_VdDNR(1); SUSYM.getObj().Comp_VuUN(); } if (IsFlag_ch()) { SUSYM.getObj().Comp_VdUCR(1); SUSYM.getObj().Comp_VuDCL(); SUSYM.getObj().Comp_VuDCR(); } return (true); }