xml.sw.approved.txt 820 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Catch2TestRun name="<exe-name>" rng-seed="1" catch2-version="<version>" filters="~[!nonportable]~[!benchmark]~[approvals] *">
  3. <TestCase name="# A test name that starts with a #" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  4. <OverallResult success="true"/>
  5. </TestCase>
  6. <TestCase name="#1027: Bitfields can be captured" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  7. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  8. <Original>
  9. y.v == 0
  10. </Original>
  11. <Expanded>
  12. 0 == 0
  13. </Expanded>
  14. </Expression>
  15. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  16. <Original>
  17. 0 == y.v
  18. </Original>
  19. <Expanded>
  20. 0 == 0
  21. </Expanded>
  22. </Expression>
  23. <OverallResult success="true"/>
  24. </TestCase>
  25. <TestCase name="#1147" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  26. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  27. <Original>
  28. t1 == t2
  29. </Original>
  30. <Expanded>
  31. {?} == {?}
  32. </Expanded>
  33. </Expression>
  34. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  35. <Original>
  36. t1 != t2
  37. </Original>
  38. <Expanded>
  39. {?} != {?}
  40. </Expanded>
  41. </Expression>
  42. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  43. <Original>
  44. t1 &lt; t2
  45. </Original>
  46. <Expanded>
  47. {?} &lt; {?}
  48. </Expanded>
  49. </Expression>
  50. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  51. <Original>
  52. t1 > t2
  53. </Original>
  54. <Expanded>
  55. {?} > {?}
  56. </Expanded>
  57. </Expression>
  58. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  59. <Original>
  60. t1 &lt;= t2
  61. </Original>
  62. <Expanded>
  63. {?} &lt;= {?}
  64. </Expanded>
  65. </Expression>
  66. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  67. <Original>
  68. t1 >= t2
  69. </Original>
  70. <Expanded>
  71. {?} >= {?}
  72. </Expanded>
  73. </Expression>
  74. <OverallResult success="true"/>
  75. </TestCase>
  76. <TestCase name="#1175 - Hidden Test" tags="[.]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  77. <OverallResult success="true"/>
  78. </TestCase>
  79. <TestCase name="#1238" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  80. <Info>
  81. uarr := "123"
  82. </Info>
  83. <Info>
  84. sarr := "456"
  85. </Info>
  86. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  87. <Original>
  88. std::memcmp(uarr, "123", sizeof(uarr)) == 0
  89. </Original>
  90. <Expanded>
  91. 0 == 0
  92. </Expanded>
  93. </Expression>
  94. <Info>
  95. uarr := "123"
  96. </Info>
  97. <Info>
  98. sarr := "456"
  99. </Info>
  100. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  101. <Original>
  102. std::memcmp(sarr, "456", sizeof(sarr)) == 0
  103. </Original>
  104. <Expanded>
  105. 0 == 0
  106. </Expanded>
  107. </Expression>
  108. <OverallResult success="true"/>
  109. </TestCase>
  110. <TestCase name="#1245" tags="[compilation]" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  111. <OverallResult success="true"/>
  112. </TestCase>
  113. <TestCase name="#1319: Sections can have description (even if it is not saved" tags="[compilation]" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  114. <Section name="SectionName" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  115. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  116. </Section>
  117. <OverallResult success="true"/>
  118. </TestCase>
  119. <TestCase name="#1403" tags="[compilation]" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  120. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  121. <Original>
  122. h1 == h2
  123. </Original>
  124. <Expanded>
  125. [1403 helper] == [1403 helper]
  126. </Expanded>
  127. </Expression>
  128. <OverallResult success="true"/>
  129. </TestCase>
  130. <TestCase name="#1455 - INFO and WARN can start with a linebreak" tags="[.][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  131. <Info>
  132. This info message starts with a linebreak
  133. </Info>
  134. <Warning>
  135. This warning message starts with a linebreak
  136. </Warning>
  137. <OverallResult success="false"/>
  138. </TestCase>
  139. <TestCase name="#1514: stderr/stdout is not captured in tests aborted by an exception" tags="[.][output-capture][regression]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  140. <Failure filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  141. 1514
  142. </Failure>
  143. <OverallResult success="false">
  144. <StdOut>
  145. This would not be caught previously
  146. </StdOut>
  147. <StdErr>
  148. Nor would this
  149. </StdErr>
  150. </OverallResult>
  151. </TestCase>
  152. <TestCase name="#1548" tags="[compilation]" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  153. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  154. <Original>
  155. std::is_same&lt;TypeList&lt;int>, TypeList&lt;int>>::value
  156. </Original>
  157. <Expanded>
  158. true
  159. </Expanded>
  160. </Expression>
  161. <OverallResult success="true"/>
  162. </TestCase>
  163. <TestCase name="#1905 -- test spec parser properly clears internal state between compound tests" tags="[command-line][test-spec]" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  164. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  165. <Original>
  166. spec.matches(*fakeTestCase("spec . char"))
  167. </Original>
  168. <Expanded>
  169. true
  170. </Expanded>
  171. </Expression>
  172. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  173. <Original>
  174. spec.matches(*fakeTestCase("spec , char"))
  175. </Original>
  176. <Expanded>
  177. true
  178. </Expanded>
  179. </Expression>
  180. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  181. <Original>
  182. !(spec.matches(*fakeTestCase(R"(spec \, char)")))
  183. </Original>
  184. <Expanded>
  185. !false
  186. </Expanded>
  187. </Expression>
  188. <OverallResult success="true"/>
  189. </TestCase>
  190. <TestCase name="#1912 -- test spec parser handles escaping" tags="[command-line][test-spec]" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  191. <Section name="Various parentheses" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  192. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  193. <Original>
  194. spec.matches(*fakeTestCase(R"(spec {a} char)"))
  195. </Original>
  196. <Expanded>
  197. true
  198. </Expanded>
  199. </Expression>
  200. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  201. <Original>
  202. spec.matches(*fakeTestCase(R"(spec [a] char)"))
  203. </Original>
  204. <Expanded>
  205. true
  206. </Expanded>
  207. </Expression>
  208. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  209. <Original>
  210. !(spec.matches(*fakeTestCase("differs but has similar tag", "[a]")))
  211. </Original>
  212. <Expanded>
  213. !false
  214. </Expanded>
  215. </Expression>
  216. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  217. </Section>
  218. <Section name="backslash in test name" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  219. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  220. <Original>
  221. spec.matches(*fakeTestCase(R"(spec \ char)"))
  222. </Original>
  223. <Expanded>
  224. true
  225. </Expanded>
  226. </Expression>
  227. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  228. </Section>
  229. <OverallResult success="true"/>
  230. </TestCase>
  231. <TestCase name="#1913 - GENERATE inside a for loop should not keep recreating the generator" tags="[generators][regression]" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  232. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  233. <Original>
  234. counter &lt; 7
  235. </Original>
  236. <Expanded>
  237. 3 &lt; 7
  238. </Expanded>
  239. </Expression>
  240. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  241. <Original>
  242. counter &lt; 7
  243. </Original>
  244. <Expanded>
  245. 6 &lt; 7
  246. </Expanded>
  247. </Expression>
  248. <OverallResult success="true"/>
  249. </TestCase>
  250. <TestCase name="#1913 - GENERATEs can share a line" tags="[generators][regression]" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  251. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  252. <Original>
  253. i != j
  254. </Original>
  255. <Expanded>
  256. 1 != 3
  257. </Expanded>
  258. </Expression>
  259. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  260. <Original>
  261. i != j
  262. </Original>
  263. <Expanded>
  264. 1 != 4
  265. </Expanded>
  266. </Expression>
  267. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  268. <Original>
  269. i != j
  270. </Original>
  271. <Expanded>
  272. 2 != 3
  273. </Expanded>
  274. </Expression>
  275. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  276. <Original>
  277. i != j
  278. </Original>
  279. <Expanded>
  280. 2 != 4
  281. </Expanded>
  282. </Expression>
  283. <OverallResult success="true"/>
  284. </TestCase>
  285. <TestCase name="#1938 - GENERATE after a section" tags="[.][generators][regression]" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  286. <Section name="A" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  287. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  288. </Section>
  289. <Section name="B" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  290. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  291. <Original>
  292. m
  293. </Original>
  294. <Expanded>
  295. 1
  296. </Expanded>
  297. </Expression>
  298. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  299. </Section>
  300. <Section name="B" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  301. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  302. <Original>
  303. m
  304. </Original>
  305. <Expanded>
  306. 2
  307. </Expanded>
  308. </Expression>
  309. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  310. </Section>
  311. <Section name="B" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  312. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  313. <Original>
  314. m
  315. </Original>
  316. <Expanded>
  317. 3
  318. </Expanded>
  319. </Expression>
  320. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  321. </Section>
  322. <OverallResult success="true"/>
  323. </TestCase>
  324. <TestCase name="#1938 - Section followed by flat generate" tags="[.][generators][regression]" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  325. <Section name="A" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  326. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  327. <Original>
  328. 1
  329. </Original>
  330. <Expanded>
  331. 1
  332. </Expanded>
  333. </Expression>
  334. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  335. </Section>
  336. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  337. <Original>
  338. m
  339. </Original>
  340. <Expanded>
  341. 2
  342. </Expanded>
  343. </Expression>
  344. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  345. <Original>
  346. m
  347. </Original>
  348. <Expanded>
  349. 3
  350. </Expanded>
  351. </Expression>
  352. <OverallResult success="true"/>
  353. </TestCase>
  354. <TestCase name="#1938 - flat generate" tags="[.][generators][regression]" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  355. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  356. <Original>
  357. m
  358. </Original>
  359. <Expanded>
  360. 1
  361. </Expanded>
  362. </Expression>
  363. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  364. <Original>
  365. m
  366. </Original>
  367. <Expanded>
  368. 2
  369. </Expanded>
  370. </Expression>
  371. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  372. <Original>
  373. m
  374. </Original>
  375. <Expanded>
  376. 3
  377. </Expanded>
  378. </Expression>
  379. <OverallResult success="true"/>
  380. </TestCase>
  381. <TestCase name="#1938 - mixed sections and generates" tags="[.][generators][regression]" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  382. <Section name="A" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  383. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  384. </Section>
  385. <Info>
  386. i := 1
  387. </Info>
  388. <Info>
  389. j := 3
  390. </Info>
  391. <Info>
  392. k := 5
  393. </Info>
  394. <Section name="B" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  395. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  396. </Section>
  397. <Info>
  398. i := 1
  399. </Info>
  400. <Info>
  401. j := 3
  402. </Info>
  403. <Info>
  404. k := 6
  405. </Info>
  406. <Section name="B" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  407. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  408. </Section>
  409. <Info>
  410. i := 1
  411. </Info>
  412. <Info>
  413. j := 4
  414. </Info>
  415. <Info>
  416. k := 5
  417. </Info>
  418. <Info>
  419. i := 1
  420. </Info>
  421. <Info>
  422. j := 4
  423. </Info>
  424. <Info>
  425. k := 6
  426. </Info>
  427. <Section name="A" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  428. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  429. </Section>
  430. <Info>
  431. i := 2
  432. </Info>
  433. <Info>
  434. j := 3
  435. </Info>
  436. <Info>
  437. k := 5
  438. </Info>
  439. <Section name="B" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  440. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  441. </Section>
  442. <Info>
  443. i := 2
  444. </Info>
  445. <Info>
  446. j := 3
  447. </Info>
  448. <Info>
  449. k := 6
  450. </Info>
  451. <Section name="B" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  452. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  453. </Section>
  454. <Info>
  455. i := 2
  456. </Info>
  457. <Info>
  458. j := 4
  459. </Info>
  460. <Info>
  461. k := 5
  462. </Info>
  463. <Info>
  464. i := 2
  465. </Info>
  466. <Info>
  467. j := 4
  468. </Info>
  469. <Info>
  470. k := 6
  471. </Info>
  472. <OverallResult success="true"/>
  473. </TestCase>
  474. <TestCase name="#1938 - nested generate" tags="[.][generators][regression]" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  475. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  476. <Original>
  477. m
  478. </Original>
  479. <Expanded>
  480. 1
  481. </Expanded>
  482. </Expression>
  483. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  484. <Original>
  485. n
  486. </Original>
  487. <Expanded>
  488. 1
  489. </Expanded>
  490. </Expression>
  491. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  492. <Original>
  493. m
  494. </Original>
  495. <Expanded>
  496. 1
  497. </Expanded>
  498. </Expression>
  499. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  500. <Original>
  501. n
  502. </Original>
  503. <Expanded>
  504. 2
  505. </Expanded>
  506. </Expression>
  507. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  508. <Original>
  509. m
  510. </Original>
  511. <Expanded>
  512. 1
  513. </Expanded>
  514. </Expression>
  515. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  516. <Original>
  517. n
  518. </Original>
  519. <Expanded>
  520. 3
  521. </Expanded>
  522. </Expression>
  523. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  524. <Original>
  525. m
  526. </Original>
  527. <Expanded>
  528. 2
  529. </Expanded>
  530. </Expression>
  531. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  532. <Original>
  533. n
  534. </Original>
  535. <Expanded>
  536. 1
  537. </Expanded>
  538. </Expression>
  539. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  540. <Original>
  541. m
  542. </Original>
  543. <Expanded>
  544. 2
  545. </Expanded>
  546. </Expression>
  547. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  548. <Original>
  549. n
  550. </Original>
  551. <Expanded>
  552. 2
  553. </Expanded>
  554. </Expression>
  555. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  556. <Original>
  557. m
  558. </Original>
  559. <Expanded>
  560. 2
  561. </Expanded>
  562. </Expression>
  563. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  564. <Original>
  565. n
  566. </Original>
  567. <Expanded>
  568. 3
  569. </Expanded>
  570. </Expression>
  571. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  572. <Original>
  573. m
  574. </Original>
  575. <Expanded>
  576. 3
  577. </Expanded>
  578. </Expression>
  579. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  580. <Original>
  581. n
  582. </Original>
  583. <Expanded>
  584. 1
  585. </Expanded>
  586. </Expression>
  587. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  588. <Original>
  589. m
  590. </Original>
  591. <Expanded>
  592. 3
  593. </Expanded>
  594. </Expression>
  595. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  596. <Original>
  597. n
  598. </Original>
  599. <Expanded>
  600. 2
  601. </Expanded>
  602. </Expression>
  603. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  604. <Original>
  605. m
  606. </Original>
  607. <Expanded>
  608. 3
  609. </Expanded>
  610. </Expression>
  611. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  612. <Original>
  613. n
  614. </Original>
  615. <Expanded>
  616. 3
  617. </Expanded>
  618. </Expression>
  619. <OverallResult success="true"/>
  620. </TestCase>
  621. <TestCase name="#1954 - 7 arg template test case sig compiles - 1, 1, 1, 1, 1, 0, 0" tags="[.][compilation][regression]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  622. <OverallResult success="true"/>
  623. </TestCase>
  624. <TestCase name="#1954 - 7 arg template test case sig compiles - 5, 1, 1, 1, 1, 0, 0" tags="[.][compilation][regression]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  625. <OverallResult success="true"/>
  626. </TestCase>
  627. <TestCase name="#1954 - 7 arg template test case sig compiles - 5, 3, 1, 1, 1, 0, 0" tags="[.][compilation][regression]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  628. <OverallResult success="true"/>
  629. </TestCase>
  630. <TestCase name="#2152 - ULP checks between differently signed values were wrong - double" tags="[floating-point][matchers][ulp]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  631. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  632. <Original>
  633. smallest_non_zero, WithinULP( -smallest_non_zero, 2 )
  634. </Original>
  635. <Expanded>
  636. 0.0 is within 2 ULPs of -4.9406564584124654e-324 ([-1.4821969375237396e-323, 4.9406564584124654e-324])
  637. </Expanded>
  638. </Expression>
  639. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  640. <Original>
  641. smallest_non_zero, !WithinULP( -smallest_non_zero, 1 )
  642. </Original>
  643. <Expanded>
  644. 0.0 not is within 1 ULPs of -4.9406564584124654e-324 ([-9.8813129168249309e-324, -0.0000000000000000e+00])
  645. </Expanded>
  646. </Expression>
  647. <OverallResult success="true"/>
  648. </TestCase>
  649. <TestCase name="#2152 - ULP checks between differently signed values were wrong - float" tags="[floating-point][matchers][ulp]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  650. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  651. <Original>
  652. smallest_non_zero, WithinULP( -smallest_non_zero, 2 )
  653. </Original>
  654. <Expanded>
  655. 0.0f is within 2 ULPs of -1.40129846e-45f ([-4.20389539e-45, 1.40129846e-45])
  656. </Expanded>
  657. </Expression>
  658. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  659. <Original>
  660. smallest_non_zero, !WithinULP( -smallest_non_zero, 1 )
  661. </Original>
  662. <Expanded>
  663. 0.0f not is within 1 ULPs of -1.40129846e-45f ([-2.80259693e-45, -0.00000000e+00])
  664. </Expanded>
  665. </Expression>
  666. <OverallResult success="true"/>
  667. </TestCase>
  668. <TestCase name="#748 - captures with unexpected exceptions" tags="[!shouldfail][!throws][.][failing]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  669. <Section name="outside assertions" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  670. <Info>
  671. answer := 42
  672. </Info>
  673. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  674. expected exception
  675. </Exception>
  676. <OverallResults successes="0" failures="0" expectedFailures="1"/>
  677. </Section>
  678. <Section name="inside REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  679. <Info>
  680. answer := 42
  681. </Info>
  682. <Expression success="false" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  683. <Original>
  684. thisThrows()
  685. </Original>
  686. <Expanded>
  687. thisThrows()
  688. </Expanded>
  689. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  690. expected exception
  691. </Exception>
  692. </Expression>
  693. <OverallResults successes="0" failures="0" expectedFailures="1"/>
  694. </Section>
  695. <Section name="inside REQUIRE_THROWS" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  696. <Info>
  697. answer := 42
  698. </Info>
  699. <Expression success="true" type="REQUIRE_THROWS" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  700. <Original>
  701. thisThrows()
  702. </Original>
  703. <Expanded>
  704. thisThrows()
  705. </Expanded>
  706. </Expression>
  707. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  708. </Section>
  709. <OverallResult success="true"/>
  710. </TestCase>
  711. <TestCase name="#809" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  712. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  713. <Original>
  714. 42 == f
  715. </Original>
  716. <Expanded>
  717. 42 == {?}
  718. </Expanded>
  719. </Expression>
  720. <OverallResult success="true"/>
  721. </TestCase>
  722. <TestCase name="#833" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  723. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  724. <Original>
  725. a == t
  726. </Original>
  727. <Expanded>
  728. 3 == 3
  729. </Expanded>
  730. </Expression>
  731. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  732. <Original>
  733. a == t
  734. </Original>
  735. <Expanded>
  736. 3 == 3
  737. </Expanded>
  738. </Expression>
  739. <Expression success="true" type="REQUIRE_THROWS" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  740. <Original>
  741. throws_int(true)
  742. </Original>
  743. <Expanded>
  744. throws_int(true)
  745. </Expanded>
  746. </Expression>
  747. <Expression success="true" type="CHECK_THROWS_AS" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  748. <Original>
  749. throws_int(true), int
  750. </Original>
  751. <Expanded>
  752. throws_int(true), int
  753. </Expanded>
  754. </Expression>
  755. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  756. <Original>
  757. throws_int(false)
  758. </Original>
  759. <Expanded>
  760. throws_int(false)
  761. </Expanded>
  762. </Expression>
  763. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  764. <Original>
  765. "aaa", Catch::Matchers::EndsWith("aaa")
  766. </Original>
  767. <Expanded>
  768. "aaa" ends with: "aaa"
  769. </Expanded>
  770. </Expression>
  771. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  772. <Original>
  773. templated_tests&lt;int>(3)
  774. </Original>
  775. <Expanded>
  776. true
  777. </Expanded>
  778. </Expression>
  779. <OverallResult success="true"/>
  780. </TestCase>
  781. <TestCase name="#835 -- errno should not be touched by Catch2" tags="[!shouldfail][.][failing]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  782. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  783. <Original>
  784. f() == 0
  785. </Original>
  786. <Expanded>
  787. 1 == 0
  788. </Expanded>
  789. </Expression>
  790. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  791. <Original>
  792. errno_after == 1
  793. </Original>
  794. <Expanded>
  795. 1 == 1
  796. </Expanded>
  797. </Expression>
  798. <OverallResult success="true"/>
  799. </TestCase>
  800. <TestCase name="#872" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  801. <Info>
  802. dummy := 0
  803. </Info>
  804. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  805. <Original>
  806. x == 4
  807. </Original>
  808. <Expanded>
  809. {?} == 4
  810. </Expanded>
  811. </Expression>
  812. <OverallResult success="true"/>
  813. </TestCase>
  814. <TestCase name="#961 -- Dynamically created sections should all be reported" tags="[.]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  815. <Section name="Looped section 0" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  816. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  817. </Section>
  818. <Section name="Looped section 1" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  819. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  820. </Section>
  821. <Section name="Looped section 2" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  822. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  823. </Section>
  824. <Section name="Looped section 3" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  825. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  826. </Section>
  827. <Section name="Looped section 4" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  828. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  829. </Section>
  830. <OverallResult success="true"/>
  831. </TestCase>
  832. <TestCase name="'Not' checks that should fail" tags="[.][failing]" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  833. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  834. <Original>
  835. false != false
  836. </Original>
  837. <Expanded>
  838. false != false
  839. </Expanded>
  840. </Expression>
  841. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  842. <Original>
  843. true != true
  844. </Original>
  845. <Expanded>
  846. true != true
  847. </Expanded>
  848. </Expression>
  849. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  850. <Original>
  851. !true
  852. </Original>
  853. <Expanded>
  854. false
  855. </Expanded>
  856. </Expression>
  857. <Expression success="false" type="CHECK_FALSE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  858. <Original>
  859. !(true)
  860. </Original>
  861. <Expanded>
  862. !true
  863. </Expanded>
  864. </Expression>
  865. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  866. <Original>
  867. !trueValue
  868. </Original>
  869. <Expanded>
  870. false
  871. </Expanded>
  872. </Expression>
  873. <Expression success="false" type="CHECK_FALSE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  874. <Original>
  875. !(trueValue)
  876. </Original>
  877. <Expanded>
  878. !true
  879. </Expanded>
  880. </Expression>
  881. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  882. <Original>
  883. !(1 == 1)
  884. </Original>
  885. <Expanded>
  886. false
  887. </Expanded>
  888. </Expression>
  889. <Expression success="false" type="CHECK_FALSE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  890. <Original>
  891. !(1 == 1)
  892. </Original>
  893. <Expanded>
  894. !(1 == 1)
  895. </Expanded>
  896. </Expression>
  897. <OverallResult success="false"/>
  898. </TestCase>
  899. <TestCase name="'Not' checks that should succeed" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  900. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  901. <Original>
  902. false == false
  903. </Original>
  904. <Expanded>
  905. false == false
  906. </Expanded>
  907. </Expression>
  908. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  909. <Original>
  910. true == true
  911. </Original>
  912. <Expanded>
  913. true == true
  914. </Expanded>
  915. </Expression>
  916. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  917. <Original>
  918. !false
  919. </Original>
  920. <Expanded>
  921. true
  922. </Expanded>
  923. </Expression>
  924. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  925. <Original>
  926. !(false)
  927. </Original>
  928. <Expanded>
  929. !false
  930. </Expanded>
  931. </Expression>
  932. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  933. <Original>
  934. !falseValue
  935. </Original>
  936. <Expanded>
  937. true
  938. </Expanded>
  939. </Expression>
  940. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  941. <Original>
  942. !(falseValue)
  943. </Original>
  944. <Expanded>
  945. !false
  946. </Expanded>
  947. </Expression>
  948. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  949. <Original>
  950. !(1 == 2)
  951. </Original>
  952. <Expanded>
  953. true
  954. </Expanded>
  955. </Expression>
  956. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  957. <Original>
  958. !(1 == 2)
  959. </Original>
  960. <Expanded>
  961. !(1 == 2)
  962. </Expanded>
  963. </Expression>
  964. <OverallResult success="true"/>
  965. </TestCase>
  966. <TestCase name="(unimplemented) static bools can be evaluated" tags="[Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  967. <Section name="compare to true" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  968. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  969. <Original>
  970. is_true&lt;true>::value == true
  971. </Original>
  972. <Expanded>
  973. true == true
  974. </Expanded>
  975. </Expression>
  976. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  977. <Original>
  978. true == is_true&lt;true>::value
  979. </Original>
  980. <Expanded>
  981. true == true
  982. </Expanded>
  983. </Expression>
  984. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  985. </Section>
  986. <Section name="compare to false" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  987. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  988. <Original>
  989. is_true&lt;false>::value == false
  990. </Original>
  991. <Expanded>
  992. false == false
  993. </Expanded>
  994. </Expression>
  995. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  996. <Original>
  997. false == is_true&lt;false>::value
  998. </Original>
  999. <Expanded>
  1000. false == false
  1001. </Expanded>
  1002. </Expression>
  1003. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  1004. </Section>
  1005. <Section name="negation" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  1006. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  1007. <Original>
  1008. !is_true&lt;false>::value
  1009. </Original>
  1010. <Expanded>
  1011. true
  1012. </Expanded>
  1013. </Expression>
  1014. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  1015. </Section>
  1016. <Section name="double negation" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  1017. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  1018. <Original>
  1019. !!is_true&lt;true>::value
  1020. </Original>
  1021. <Expanded>
  1022. true
  1023. </Expanded>
  1024. </Expression>
  1025. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  1026. </Section>
  1027. <Section name="direct" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  1028. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  1029. <Original>
  1030. is_true&lt;true>::value
  1031. </Original>
  1032. <Expanded>
  1033. true
  1034. </Expanded>
  1035. </Expression>
  1036. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  1037. <Original>
  1038. !(is_true&lt;false>::value)
  1039. </Original>
  1040. <Expanded>
  1041. !false
  1042. </Expanded>
  1043. </Expression>
  1044. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  1045. </Section>
  1046. <OverallResult success="true"/>
  1047. </TestCase>
  1048. <TestCase name="3x3x3 ints" tags="[generators]" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1049. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1050. <Original>
  1051. x &lt; y
  1052. </Original>
  1053. <Expanded>
  1054. 1 &lt; 4
  1055. </Expanded>
  1056. </Expression>
  1057. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1058. <Original>
  1059. y &lt; z
  1060. </Original>
  1061. <Expanded>
  1062. 4 &lt; 7
  1063. </Expanded>
  1064. </Expression>
  1065. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1066. <Original>
  1067. x &lt; z
  1068. </Original>
  1069. <Expanded>
  1070. 1 &lt; 7
  1071. </Expanded>
  1072. </Expression>
  1073. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1074. <Original>
  1075. x &lt; y
  1076. </Original>
  1077. <Expanded>
  1078. 1 &lt; 4
  1079. </Expanded>
  1080. </Expression>
  1081. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1082. <Original>
  1083. y &lt; z
  1084. </Original>
  1085. <Expanded>
  1086. 4 &lt; 8
  1087. </Expanded>
  1088. </Expression>
  1089. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1090. <Original>
  1091. x &lt; z
  1092. </Original>
  1093. <Expanded>
  1094. 1 &lt; 8
  1095. </Expanded>
  1096. </Expression>
  1097. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1098. <Original>
  1099. x &lt; y
  1100. </Original>
  1101. <Expanded>
  1102. 1 &lt; 4
  1103. </Expanded>
  1104. </Expression>
  1105. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1106. <Original>
  1107. y &lt; z
  1108. </Original>
  1109. <Expanded>
  1110. 4 &lt; 9
  1111. </Expanded>
  1112. </Expression>
  1113. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1114. <Original>
  1115. x &lt; z
  1116. </Original>
  1117. <Expanded>
  1118. 1 &lt; 9
  1119. </Expanded>
  1120. </Expression>
  1121. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1122. <Original>
  1123. x &lt; y
  1124. </Original>
  1125. <Expanded>
  1126. 1 &lt; 5
  1127. </Expanded>
  1128. </Expression>
  1129. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1130. <Original>
  1131. y &lt; z
  1132. </Original>
  1133. <Expanded>
  1134. 5 &lt; 7
  1135. </Expanded>
  1136. </Expression>
  1137. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1138. <Original>
  1139. x &lt; z
  1140. </Original>
  1141. <Expanded>
  1142. 1 &lt; 7
  1143. </Expanded>
  1144. </Expression>
  1145. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1146. <Original>
  1147. x &lt; y
  1148. </Original>
  1149. <Expanded>
  1150. 1 &lt; 5
  1151. </Expanded>
  1152. </Expression>
  1153. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1154. <Original>
  1155. y &lt; z
  1156. </Original>
  1157. <Expanded>
  1158. 5 &lt; 8
  1159. </Expanded>
  1160. </Expression>
  1161. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1162. <Original>
  1163. x &lt; z
  1164. </Original>
  1165. <Expanded>
  1166. 1 &lt; 8
  1167. </Expanded>
  1168. </Expression>
  1169. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1170. <Original>
  1171. x &lt; y
  1172. </Original>
  1173. <Expanded>
  1174. 1 &lt; 5
  1175. </Expanded>
  1176. </Expression>
  1177. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1178. <Original>
  1179. y &lt; z
  1180. </Original>
  1181. <Expanded>
  1182. 5 &lt; 9
  1183. </Expanded>
  1184. </Expression>
  1185. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1186. <Original>
  1187. x &lt; z
  1188. </Original>
  1189. <Expanded>
  1190. 1 &lt; 9
  1191. </Expanded>
  1192. </Expression>
  1193. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1194. <Original>
  1195. x &lt; y
  1196. </Original>
  1197. <Expanded>
  1198. 1 &lt; 6
  1199. </Expanded>
  1200. </Expression>
  1201. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1202. <Original>
  1203. y &lt; z
  1204. </Original>
  1205. <Expanded>
  1206. 6 &lt; 7
  1207. </Expanded>
  1208. </Expression>
  1209. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1210. <Original>
  1211. x &lt; z
  1212. </Original>
  1213. <Expanded>
  1214. 1 &lt; 7
  1215. </Expanded>
  1216. </Expression>
  1217. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1218. <Original>
  1219. x &lt; y
  1220. </Original>
  1221. <Expanded>
  1222. 1 &lt; 6
  1223. </Expanded>
  1224. </Expression>
  1225. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1226. <Original>
  1227. y &lt; z
  1228. </Original>
  1229. <Expanded>
  1230. 6 &lt; 8
  1231. </Expanded>
  1232. </Expression>
  1233. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1234. <Original>
  1235. x &lt; z
  1236. </Original>
  1237. <Expanded>
  1238. 1 &lt; 8
  1239. </Expanded>
  1240. </Expression>
  1241. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1242. <Original>
  1243. x &lt; y
  1244. </Original>
  1245. <Expanded>
  1246. 1 &lt; 6
  1247. </Expanded>
  1248. </Expression>
  1249. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1250. <Original>
  1251. y &lt; z
  1252. </Original>
  1253. <Expanded>
  1254. 6 &lt; 9
  1255. </Expanded>
  1256. </Expression>
  1257. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1258. <Original>
  1259. x &lt; z
  1260. </Original>
  1261. <Expanded>
  1262. 1 &lt; 9
  1263. </Expanded>
  1264. </Expression>
  1265. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1266. <Original>
  1267. x &lt; y
  1268. </Original>
  1269. <Expanded>
  1270. 2 &lt; 4
  1271. </Expanded>
  1272. </Expression>
  1273. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1274. <Original>
  1275. y &lt; z
  1276. </Original>
  1277. <Expanded>
  1278. 4 &lt; 7
  1279. </Expanded>
  1280. </Expression>
  1281. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1282. <Original>
  1283. x &lt; z
  1284. </Original>
  1285. <Expanded>
  1286. 2 &lt; 7
  1287. </Expanded>
  1288. </Expression>
  1289. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1290. <Original>
  1291. x &lt; y
  1292. </Original>
  1293. <Expanded>
  1294. 2 &lt; 4
  1295. </Expanded>
  1296. </Expression>
  1297. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1298. <Original>
  1299. y &lt; z
  1300. </Original>
  1301. <Expanded>
  1302. 4 &lt; 8
  1303. </Expanded>
  1304. </Expression>
  1305. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1306. <Original>
  1307. x &lt; z
  1308. </Original>
  1309. <Expanded>
  1310. 2 &lt; 8
  1311. </Expanded>
  1312. </Expression>
  1313. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1314. <Original>
  1315. x &lt; y
  1316. </Original>
  1317. <Expanded>
  1318. 2 &lt; 4
  1319. </Expanded>
  1320. </Expression>
  1321. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1322. <Original>
  1323. y &lt; z
  1324. </Original>
  1325. <Expanded>
  1326. 4 &lt; 9
  1327. </Expanded>
  1328. </Expression>
  1329. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1330. <Original>
  1331. x &lt; z
  1332. </Original>
  1333. <Expanded>
  1334. 2 &lt; 9
  1335. </Expanded>
  1336. </Expression>
  1337. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1338. <Original>
  1339. x &lt; y
  1340. </Original>
  1341. <Expanded>
  1342. 2 &lt; 5
  1343. </Expanded>
  1344. </Expression>
  1345. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1346. <Original>
  1347. y &lt; z
  1348. </Original>
  1349. <Expanded>
  1350. 5 &lt; 7
  1351. </Expanded>
  1352. </Expression>
  1353. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1354. <Original>
  1355. x &lt; z
  1356. </Original>
  1357. <Expanded>
  1358. 2 &lt; 7
  1359. </Expanded>
  1360. </Expression>
  1361. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1362. <Original>
  1363. x &lt; y
  1364. </Original>
  1365. <Expanded>
  1366. 2 &lt; 5
  1367. </Expanded>
  1368. </Expression>
  1369. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1370. <Original>
  1371. y &lt; z
  1372. </Original>
  1373. <Expanded>
  1374. 5 &lt; 8
  1375. </Expanded>
  1376. </Expression>
  1377. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1378. <Original>
  1379. x &lt; z
  1380. </Original>
  1381. <Expanded>
  1382. 2 &lt; 8
  1383. </Expanded>
  1384. </Expression>
  1385. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1386. <Original>
  1387. x &lt; y
  1388. </Original>
  1389. <Expanded>
  1390. 2 &lt; 5
  1391. </Expanded>
  1392. </Expression>
  1393. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1394. <Original>
  1395. y &lt; z
  1396. </Original>
  1397. <Expanded>
  1398. 5 &lt; 9
  1399. </Expanded>
  1400. </Expression>
  1401. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1402. <Original>
  1403. x &lt; z
  1404. </Original>
  1405. <Expanded>
  1406. 2 &lt; 9
  1407. </Expanded>
  1408. </Expression>
  1409. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1410. <Original>
  1411. x &lt; y
  1412. </Original>
  1413. <Expanded>
  1414. 2 &lt; 6
  1415. </Expanded>
  1416. </Expression>
  1417. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1418. <Original>
  1419. y &lt; z
  1420. </Original>
  1421. <Expanded>
  1422. 6 &lt; 7
  1423. </Expanded>
  1424. </Expression>
  1425. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1426. <Original>
  1427. x &lt; z
  1428. </Original>
  1429. <Expanded>
  1430. 2 &lt; 7
  1431. </Expanded>
  1432. </Expression>
  1433. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1434. <Original>
  1435. x &lt; y
  1436. </Original>
  1437. <Expanded>
  1438. 2 &lt; 6
  1439. </Expanded>
  1440. </Expression>
  1441. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1442. <Original>
  1443. y &lt; z
  1444. </Original>
  1445. <Expanded>
  1446. 6 &lt; 8
  1447. </Expanded>
  1448. </Expression>
  1449. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1450. <Original>
  1451. x &lt; z
  1452. </Original>
  1453. <Expanded>
  1454. 2 &lt; 8
  1455. </Expanded>
  1456. </Expression>
  1457. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1458. <Original>
  1459. x &lt; y
  1460. </Original>
  1461. <Expanded>
  1462. 2 &lt; 6
  1463. </Expanded>
  1464. </Expression>
  1465. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1466. <Original>
  1467. y &lt; z
  1468. </Original>
  1469. <Expanded>
  1470. 6 &lt; 9
  1471. </Expanded>
  1472. </Expression>
  1473. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1474. <Original>
  1475. x &lt; z
  1476. </Original>
  1477. <Expanded>
  1478. 2 &lt; 9
  1479. </Expanded>
  1480. </Expression>
  1481. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1482. <Original>
  1483. x &lt; y
  1484. </Original>
  1485. <Expanded>
  1486. 3 &lt; 4
  1487. </Expanded>
  1488. </Expression>
  1489. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1490. <Original>
  1491. y &lt; z
  1492. </Original>
  1493. <Expanded>
  1494. 4 &lt; 7
  1495. </Expanded>
  1496. </Expression>
  1497. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1498. <Original>
  1499. x &lt; z
  1500. </Original>
  1501. <Expanded>
  1502. 3 &lt; 7
  1503. </Expanded>
  1504. </Expression>
  1505. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1506. <Original>
  1507. x &lt; y
  1508. </Original>
  1509. <Expanded>
  1510. 3 &lt; 4
  1511. </Expanded>
  1512. </Expression>
  1513. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1514. <Original>
  1515. y &lt; z
  1516. </Original>
  1517. <Expanded>
  1518. 4 &lt; 8
  1519. </Expanded>
  1520. </Expression>
  1521. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1522. <Original>
  1523. x &lt; z
  1524. </Original>
  1525. <Expanded>
  1526. 3 &lt; 8
  1527. </Expanded>
  1528. </Expression>
  1529. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1530. <Original>
  1531. x &lt; y
  1532. </Original>
  1533. <Expanded>
  1534. 3 &lt; 4
  1535. </Expanded>
  1536. </Expression>
  1537. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1538. <Original>
  1539. y &lt; z
  1540. </Original>
  1541. <Expanded>
  1542. 4 &lt; 9
  1543. </Expanded>
  1544. </Expression>
  1545. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1546. <Original>
  1547. x &lt; z
  1548. </Original>
  1549. <Expanded>
  1550. 3 &lt; 9
  1551. </Expanded>
  1552. </Expression>
  1553. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1554. <Original>
  1555. x &lt; y
  1556. </Original>
  1557. <Expanded>
  1558. 3 &lt; 5
  1559. </Expanded>
  1560. </Expression>
  1561. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1562. <Original>
  1563. y &lt; z
  1564. </Original>
  1565. <Expanded>
  1566. 5 &lt; 7
  1567. </Expanded>
  1568. </Expression>
  1569. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1570. <Original>
  1571. x &lt; z
  1572. </Original>
  1573. <Expanded>
  1574. 3 &lt; 7
  1575. </Expanded>
  1576. </Expression>
  1577. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1578. <Original>
  1579. x &lt; y
  1580. </Original>
  1581. <Expanded>
  1582. 3 &lt; 5
  1583. </Expanded>
  1584. </Expression>
  1585. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1586. <Original>
  1587. y &lt; z
  1588. </Original>
  1589. <Expanded>
  1590. 5 &lt; 8
  1591. </Expanded>
  1592. </Expression>
  1593. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1594. <Original>
  1595. x &lt; z
  1596. </Original>
  1597. <Expanded>
  1598. 3 &lt; 8
  1599. </Expanded>
  1600. </Expression>
  1601. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1602. <Original>
  1603. x &lt; y
  1604. </Original>
  1605. <Expanded>
  1606. 3 &lt; 5
  1607. </Expanded>
  1608. </Expression>
  1609. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1610. <Original>
  1611. y &lt; z
  1612. </Original>
  1613. <Expanded>
  1614. 5 &lt; 9
  1615. </Expanded>
  1616. </Expression>
  1617. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1618. <Original>
  1619. x &lt; z
  1620. </Original>
  1621. <Expanded>
  1622. 3 &lt; 9
  1623. </Expanded>
  1624. </Expression>
  1625. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1626. <Original>
  1627. x &lt; y
  1628. </Original>
  1629. <Expanded>
  1630. 3 &lt; 6
  1631. </Expanded>
  1632. </Expression>
  1633. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1634. <Original>
  1635. y &lt; z
  1636. </Original>
  1637. <Expanded>
  1638. 6 &lt; 7
  1639. </Expanded>
  1640. </Expression>
  1641. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1642. <Original>
  1643. x &lt; z
  1644. </Original>
  1645. <Expanded>
  1646. 3 &lt; 7
  1647. </Expanded>
  1648. </Expression>
  1649. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1650. <Original>
  1651. x &lt; y
  1652. </Original>
  1653. <Expanded>
  1654. 3 &lt; 6
  1655. </Expanded>
  1656. </Expression>
  1657. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1658. <Original>
  1659. y &lt; z
  1660. </Original>
  1661. <Expanded>
  1662. 6 &lt; 8
  1663. </Expanded>
  1664. </Expression>
  1665. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1666. <Original>
  1667. x &lt; z
  1668. </Original>
  1669. <Expanded>
  1670. 3 &lt; 8
  1671. </Expanded>
  1672. </Expression>
  1673. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1674. <Original>
  1675. x &lt; y
  1676. </Original>
  1677. <Expanded>
  1678. 3 &lt; 6
  1679. </Expanded>
  1680. </Expression>
  1681. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1682. <Original>
  1683. y &lt; z
  1684. </Original>
  1685. <Expanded>
  1686. 6 &lt; 9
  1687. </Expanded>
  1688. </Expression>
  1689. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  1690. <Original>
  1691. x &lt; z
  1692. </Original>
  1693. <Expanded>
  1694. 3 &lt; 9
  1695. </Expanded>
  1696. </Expression>
  1697. <OverallResult success="true"/>
  1698. </TestCase>
  1699. <TestCase name="A METHOD_AS_TEST_CASE based test run that fails" tags="[.][class][failing]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1700. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1701. <Original>
  1702. s == "world"
  1703. </Original>
  1704. <Expanded>
  1705. "hello" == "world"
  1706. </Expanded>
  1707. </Expression>
  1708. <OverallResult success="false"/>
  1709. </TestCase>
  1710. <TestCase name="A METHOD_AS_TEST_CASE based test run that succeeds" tags="[class]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1711. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1712. <Original>
  1713. s == "hello"
  1714. </Original>
  1715. <Expanded>
  1716. "hello" == "hello"
  1717. </Expanded>
  1718. </Expression>
  1719. <OverallResult success="true"/>
  1720. </TestCase>
  1721. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo&lt;float>" tags="[.][class][failing][product][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1722. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1723. <Original>
  1724. Template_Fixture_2&lt;TestType>::m_a.size() == 1
  1725. </Original>
  1726. <Expanded>
  1727. 0 == 1
  1728. </Expanded>
  1729. </Expression>
  1730. <OverallResult success="false"/>
  1731. </TestCase>
  1732. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo&lt;int>" tags="[.][class][failing][product][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1733. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1734. <Original>
  1735. Template_Fixture_2&lt;TestType>::m_a.size() == 1
  1736. </Original>
  1737. <Expanded>
  1738. 0 == 1
  1739. </Expanded>
  1740. </Expression>
  1741. <OverallResult success="false"/>
  1742. </TestCase>
  1743. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector&lt;float>" tags="[.][class][failing][product][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1744. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1745. <Original>
  1746. Template_Fixture_2&lt;TestType>::m_a.size() == 1
  1747. </Original>
  1748. <Expanded>
  1749. 0 == 1
  1750. </Expanded>
  1751. </Expression>
  1752. <OverallResult success="false"/>
  1753. </TestCase>
  1754. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector&lt;int>" tags="[.][class][failing][product][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1755. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1756. <Original>
  1757. Template_Fixture_2&lt;TestType>::m_a.size() == 1
  1758. </Original>
  1759. <Expanded>
  1760. 0 == 1
  1761. </Expanded>
  1762. </Expression>
  1763. <OverallResult success="false"/>
  1764. </TestCase>
  1765. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo&lt;float>" tags="[class][product][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1766. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1767. <Original>
  1768. Template_Fixture_2&lt;TestType>::m_a.size() == 0
  1769. </Original>
  1770. <Expanded>
  1771. 0 == 0
  1772. </Expanded>
  1773. </Expression>
  1774. <OverallResult success="true"/>
  1775. </TestCase>
  1776. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo&lt;int>" tags="[class][product][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1777. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1778. <Original>
  1779. Template_Fixture_2&lt;TestType>::m_a.size() == 0
  1780. </Original>
  1781. <Expanded>
  1782. 0 == 0
  1783. </Expanded>
  1784. </Expression>
  1785. <OverallResult success="true"/>
  1786. </TestCase>
  1787. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector&lt;float>" tags="[class][product][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1788. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1789. <Original>
  1790. Template_Fixture_2&lt;TestType>::m_a.size() == 0
  1791. </Original>
  1792. <Expanded>
  1793. 0 == 0
  1794. </Expanded>
  1795. </Expression>
  1796. <OverallResult success="true"/>
  1797. </TestCase>
  1798. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector&lt;int>" tags="[class][product][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1799. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1800. <Original>
  1801. Template_Fixture_2&lt;TestType>::m_a.size() == 0
  1802. </Original>
  1803. <Expanded>
  1804. 0 == 0
  1805. </Expanded>
  1806. </Expression>
  1807. <OverallResult success="true"/>
  1808. </TestCase>
  1809. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - Template_Foo_2&lt;float, 6>" tags="[.][class][failing][nttp][product][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1810. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1811. <Original>
  1812. Template_Fixture_2&lt;TestType>{}.m_a.size() &lt; 2
  1813. </Original>
  1814. <Expanded>
  1815. 6 &lt; 2
  1816. </Expanded>
  1817. </Expression>
  1818. <OverallResult success="false"/>
  1819. </TestCase>
  1820. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - Template_Foo_2&lt;int, 2>" tags="[.][class][failing][nttp][product][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1821. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1822. <Original>
  1823. Template_Fixture_2&lt;TestType>{}.m_a.size() &lt; 2
  1824. </Original>
  1825. <Expanded>
  1826. 2 &lt; 2
  1827. </Expanded>
  1828. </Expression>
  1829. <OverallResult success="false"/>
  1830. </TestCase>
  1831. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array&lt;float, 6>" tags="[.][class][failing][nttp][product][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1832. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1833. <Original>
  1834. Template_Fixture_2&lt;TestType>{}.m_a.size() &lt; 2
  1835. </Original>
  1836. <Expanded>
  1837. 6 &lt; 2
  1838. </Expanded>
  1839. </Expression>
  1840. <OverallResult success="false"/>
  1841. </TestCase>
  1842. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array&lt;int, 2>" tags="[.][class][failing][nttp][product][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1843. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1844. <Original>
  1845. Template_Fixture_2&lt;TestType>{}.m_a.size() &lt; 2
  1846. </Original>
  1847. <Expanded>
  1848. 2 &lt; 2
  1849. </Expanded>
  1850. </Expression>
  1851. <OverallResult success="false"/>
  1852. </TestCase>
  1853. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - Template_Foo_2&lt;float,6>" tags="[class][nttp][product][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1854. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1855. <Original>
  1856. Template_Fixture_2&lt;TestType>{}.m_a.size() >= 2
  1857. </Original>
  1858. <Expanded>
  1859. 6 >= 2
  1860. </Expanded>
  1861. </Expression>
  1862. <OverallResult success="true"/>
  1863. </TestCase>
  1864. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - Template_Foo_2&lt;int,2>" tags="[class][nttp][product][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1865. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1866. <Original>
  1867. Template_Fixture_2&lt;TestType>{}.m_a.size() >= 2
  1868. </Original>
  1869. <Expanded>
  1870. 2 >= 2
  1871. </Expanded>
  1872. </Expression>
  1873. <OverallResult success="true"/>
  1874. </TestCase>
  1875. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::array&lt;float,6>" tags="[class][nttp][product][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1876. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1877. <Original>
  1878. Template_Fixture_2&lt;TestType>{}.m_a.size() >= 2
  1879. </Original>
  1880. <Expanded>
  1881. 6 >= 2
  1882. </Expanded>
  1883. </Expression>
  1884. <OverallResult success="true"/>
  1885. </TestCase>
  1886. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::array&lt;int,2>" tags="[class][nttp][product][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1887. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1888. <Original>
  1889. Template_Fixture_2&lt;TestType>{}.m_a.size() >= 2
  1890. </Original>
  1891. <Expanded>
  1892. 2 >= 2
  1893. </Expanded>
  1894. </Expression>
  1895. <OverallResult success="true"/>
  1896. </TestCase>
  1897. <TestCase name="A TEMPLATE_TEST_CASE_METHOD based test run that fails - double" tags="[.][class][failing][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1898. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1899. <Original>
  1900. Template_Fixture&lt;TestType>::m_a == 2
  1901. </Original>
  1902. <Expanded>
  1903. 1.0 == 2
  1904. </Expanded>
  1905. </Expression>
  1906. <OverallResult success="false"/>
  1907. </TestCase>
  1908. <TestCase name="A TEMPLATE_TEST_CASE_METHOD based test run that fails - float" tags="[.][class][failing][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1909. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1910. <Original>
  1911. Template_Fixture&lt;TestType>::m_a == 2
  1912. </Original>
  1913. <Expanded>
  1914. 1.0f == 2
  1915. </Expanded>
  1916. </Expression>
  1917. <OverallResult success="false"/>
  1918. </TestCase>
  1919. <TestCase name="A TEMPLATE_TEST_CASE_METHOD based test run that fails - int" tags="[.][class][failing][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1920. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1921. <Original>
  1922. Template_Fixture&lt;TestType>::m_a == 2
  1923. </Original>
  1924. <Expanded>
  1925. 1 == 2
  1926. </Expanded>
  1927. </Expression>
  1928. <OverallResult success="false"/>
  1929. </TestCase>
  1930. <TestCase name="A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - double" tags="[class][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1931. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1932. <Original>
  1933. Template_Fixture&lt;TestType>::m_a == 1
  1934. </Original>
  1935. <Expanded>
  1936. 1.0 == 1
  1937. </Expanded>
  1938. </Expression>
  1939. <OverallResult success="true"/>
  1940. </TestCase>
  1941. <TestCase name="A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - float" tags="[class][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1942. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1943. <Original>
  1944. Template_Fixture&lt;TestType>::m_a == 1
  1945. </Original>
  1946. <Expanded>
  1947. 1.0f == 1
  1948. </Expanded>
  1949. </Expression>
  1950. <OverallResult success="true"/>
  1951. </TestCase>
  1952. <TestCase name="A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - int" tags="[class][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1953. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1954. <Original>
  1955. Template_Fixture&lt;TestType>::m_a == 1
  1956. </Original>
  1957. <Expanded>
  1958. 1 == 1
  1959. </Expanded>
  1960. </Expression>
  1961. <OverallResult success="true"/>
  1962. </TestCase>
  1963. <TestCase name="A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 1" tags="[.][class][failing][nttp][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1964. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1965. <Original>
  1966. Nttp_Fixture&lt;V>::value == 0
  1967. </Original>
  1968. <Expanded>
  1969. 1 == 0
  1970. </Expanded>
  1971. </Expression>
  1972. <OverallResult success="false"/>
  1973. </TestCase>
  1974. <TestCase name="A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 3" tags="[.][class][failing][nttp][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1975. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1976. <Original>
  1977. Nttp_Fixture&lt;V>::value == 0
  1978. </Original>
  1979. <Expanded>
  1980. 3 == 0
  1981. </Expanded>
  1982. </Expression>
  1983. <OverallResult success="false"/>
  1984. </TestCase>
  1985. <TestCase name="A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 6" tags="[.][class][failing][nttp][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1986. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1987. <Original>
  1988. Nttp_Fixture&lt;V>::value == 0
  1989. </Original>
  1990. <Expanded>
  1991. 6 == 0
  1992. </Expanded>
  1993. </Expression>
  1994. <OverallResult success="false"/>
  1995. </TestCase>
  1996. <TestCase name="A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 1" tags="[class][nttp][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1997. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  1998. <Original>
  1999. Nttp_Fixture&lt;V>::value > 0
  2000. </Original>
  2001. <Expanded>
  2002. 1 > 0
  2003. </Expanded>
  2004. </Expression>
  2005. <OverallResult success="true"/>
  2006. </TestCase>
  2007. <TestCase name="A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 3" tags="[class][nttp][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  2008. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  2009. <Original>
  2010. Nttp_Fixture&lt;V>::value > 0
  2011. </Original>
  2012. <Expanded>
  2013. 3 > 0
  2014. </Expanded>
  2015. </Expression>
  2016. <OverallResult success="true"/>
  2017. </TestCase>
  2018. <TestCase name="A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 6" tags="[class][nttp][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  2019. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  2020. <Original>
  2021. Nttp_Fixture&lt;V>::value > 0
  2022. </Original>
  2023. <Expanded>
  2024. 6 > 0
  2025. </Expanded>
  2026. </Expression>
  2027. <OverallResult success="true"/>
  2028. </TestCase>
  2029. <TestCase name="A TEST_CASE_METHOD based test run that fails" tags="[.][class][failing]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  2030. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  2031. <Original>
  2032. m_a == 2
  2033. </Original>
  2034. <Expanded>
  2035. 1 == 2
  2036. </Expanded>
  2037. </Expression>
  2038. <OverallResult success="false"/>
  2039. </TestCase>
  2040. <TestCase name="A TEST_CASE_METHOD based test run that succeeds" tags="[class]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  2041. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  2042. <Original>
  2043. m_a == 1
  2044. </Original>
  2045. <Expanded>
  2046. 1 == 1
  2047. </Expanded>
  2048. </Expression>
  2049. <OverallResult success="true"/>
  2050. </TestCase>
  2051. <TestCase name="A Template product test case - Foo&lt;float>" tags="[product][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2052. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2053. <Original>
  2054. x.size() == 0
  2055. </Original>
  2056. <Expanded>
  2057. 0 == 0
  2058. </Expanded>
  2059. </Expression>
  2060. <OverallResult success="true"/>
  2061. </TestCase>
  2062. <TestCase name="A Template product test case - Foo&lt;int>" tags="[product][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2063. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2064. <Original>
  2065. x.size() == 0
  2066. </Original>
  2067. <Expanded>
  2068. 0 == 0
  2069. </Expanded>
  2070. </Expression>
  2071. <OverallResult success="true"/>
  2072. </TestCase>
  2073. <TestCase name="A Template product test case - std::vector&lt;float>" tags="[product][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2074. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2075. <Original>
  2076. x.size() == 0
  2077. </Original>
  2078. <Expanded>
  2079. 0 == 0
  2080. </Expanded>
  2081. </Expression>
  2082. <OverallResult success="true"/>
  2083. </TestCase>
  2084. <TestCase name="A Template product test case - std::vector&lt;int>" tags="[product][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2085. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2086. <Original>
  2087. x.size() == 0
  2088. </Original>
  2089. <Expanded>
  2090. 0 == 0
  2091. </Expanded>
  2092. </Expression>
  2093. <OverallResult success="true"/>
  2094. </TestCase>
  2095. <TestCase name="A Template product test case with array signature - Bar&lt;float, 42>" tags="[nttp][product][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2096. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2097. <Original>
  2098. x.size() > 0
  2099. </Original>
  2100. <Expanded>
  2101. 42 > 0
  2102. </Expanded>
  2103. </Expression>
  2104. <OverallResult success="true"/>
  2105. </TestCase>
  2106. <TestCase name="A Template product test case with array signature - Bar&lt;int, 9>" tags="[nttp][product][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2107. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2108. <Original>
  2109. x.size() > 0
  2110. </Original>
  2111. <Expanded>
  2112. 9 > 0
  2113. </Expanded>
  2114. </Expression>
  2115. <OverallResult success="true"/>
  2116. </TestCase>
  2117. <TestCase name="A Template product test case with array signature - std::array&lt;float, 42>" tags="[nttp][product][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2118. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2119. <Original>
  2120. x.size() > 0
  2121. </Original>
  2122. <Expanded>
  2123. 42 > 0
  2124. </Expanded>
  2125. </Expression>
  2126. <OverallResult success="true"/>
  2127. </TestCase>
  2128. <TestCase name="A Template product test case with array signature - std::array&lt;int, 9>" tags="[nttp][product][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2129. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2130. <Original>
  2131. x.size() > 0
  2132. </Original>
  2133. <Expanded>
  2134. 9 > 0
  2135. </Expanded>
  2136. </Expression>
  2137. <OverallResult success="true"/>
  2138. </TestCase>
  2139. <TestCase name="A comparison that uses literals instead of the normal constructor" tags="[Approx]" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2140. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2141. <Original>
  2142. d == 1.23_a
  2143. </Original>
  2144. <Expanded>
  2145. 1.23 == Approx( 1.23 )
  2146. </Expanded>
  2147. </Expression>
  2148. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2149. <Original>
  2150. d != 1.22_a
  2151. </Original>
  2152. <Expanded>
  2153. 1.23 != Approx( 1.22 )
  2154. </Expanded>
  2155. </Expression>
  2156. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2157. <Original>
  2158. -d == -1.23_a
  2159. </Original>
  2160. <Expanded>
  2161. -1.23 == Approx( -1.23 )
  2162. </Expanded>
  2163. </Expression>
  2164. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2165. <Original>
  2166. d == 1.2_a .epsilon(.1)
  2167. </Original>
  2168. <Expanded>
  2169. 1.23 == Approx( 1.2 )
  2170. </Expanded>
  2171. </Expression>
  2172. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2173. <Original>
  2174. d != 1.2_a .epsilon(.001)
  2175. </Original>
  2176. <Expanded>
  2177. 1.23 != Approx( 1.2 )
  2178. </Expanded>
  2179. </Expression>
  2180. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2181. <Original>
  2182. d == 1_a .epsilon(.3)
  2183. </Original>
  2184. <Expanded>
  2185. 1.23 == Approx( 1.0 )
  2186. </Expanded>
  2187. </Expression>
  2188. <OverallResult success="true"/>
  2189. </TestCase>
  2190. <TestCase name="A couple of nested sections followed by a failure" tags="[.][failing]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2191. <Section name="Outer" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2192. <Section name="Inner" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2193. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  2194. </Section>
  2195. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  2196. </Section>
  2197. <Failure filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2198. to infinity and beyond
  2199. </Failure>
  2200. <OverallResult success="false"/>
  2201. </TestCase>
  2202. <TestCase name="A failing expression with a non streamable type is still captured" tags="[.][failing][Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2203. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2204. <Original>
  2205. &amp;o1 == &amp;o2
  2206. </Original>
  2207. <Expanded>
  2208. 0x<hex digits> == 0x<hex digits>
  2209. </Expanded>
  2210. </Expression>
  2211. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2212. <Original>
  2213. o1 == o2
  2214. </Original>
  2215. <Expanded>
  2216. {?} == {?}
  2217. </Expanded>
  2218. </Expression>
  2219. <OverallResult success="false"/>
  2220. </TestCase>
  2221. <TestCase name="Absolute margin" tags="[Approx]" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2222. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2223. <Original>
  2224. 104.0 != Approx(100.0)
  2225. </Original>
  2226. <Expanded>
  2227. 104.0 != Approx( 100.0 )
  2228. </Expanded>
  2229. </Expression>
  2230. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2231. <Original>
  2232. 104.0 == Approx(100.0).margin(5)
  2233. </Original>
  2234. <Expanded>
  2235. 104.0 == Approx( 100.0 )
  2236. </Expanded>
  2237. </Expression>
  2238. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2239. <Original>
  2240. 104.0 == Approx(100.0).margin(4)
  2241. </Original>
  2242. <Expanded>
  2243. 104.0 == Approx( 100.0 )
  2244. </Expanded>
  2245. </Expression>
  2246. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2247. <Original>
  2248. 104.0 != Approx(100.0).margin(3)
  2249. </Original>
  2250. <Expanded>
  2251. 104.0 != Approx( 100.0 )
  2252. </Expanded>
  2253. </Expression>
  2254. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2255. <Original>
  2256. 100.3 != Approx(100.0)
  2257. </Original>
  2258. <Expanded>
  2259. 100.3 != Approx( 100.0 )
  2260. </Expanded>
  2261. </Expression>
  2262. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2263. <Original>
  2264. 100.3 == Approx(100.0).margin(0.5)
  2265. </Original>
  2266. <Expanded>
  2267. 100.3 == Approx( 100.0 )
  2268. </Expanded>
  2269. </Expression>
  2270. <OverallResult success="true"/>
  2271. </TestCase>
  2272. <TestCase name="An empty test with no assertions" tags="[empty]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  2273. <OverallResult success="false"/>
  2274. </TestCase>
  2275. <TestCase name="An expression with side-effects should only be evaluated once" tags="[Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2276. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2277. <Original>
  2278. i++ == 7
  2279. </Original>
  2280. <Expanded>
  2281. 7 == 7
  2282. </Expanded>
  2283. </Expression>
  2284. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2285. <Original>
  2286. i++ == 8
  2287. </Original>
  2288. <Expanded>
  2289. 8 == 8
  2290. </Expanded>
  2291. </Expression>
  2292. <OverallResult success="true"/>
  2293. </TestCase>
  2294. <TestCase name="An unchecked exception reports the line of the last assertion" tags="[!throws][.][failing]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  2295. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  2296. <Original>
  2297. 1 == 1
  2298. </Original>
  2299. <Expanded>
  2300. 1 == 1
  2301. </Expanded>
  2302. </Expression>
  2303. <Expression success="false" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  2304. <Original>
  2305. {Unknown expression after the reported line}
  2306. </Original>
  2307. <Expanded>
  2308. {Unknown expression after the reported line}
  2309. </Expanded>
  2310. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  2311. unexpected exception
  2312. </Exception>
  2313. </Expression>
  2314. <OverallResult success="false"/>
  2315. </TestCase>
  2316. <TestCase name="Anonymous test case 1" filename="tests/<exe-name>/UsageTests/VariadicMacros.tests.cpp" >
  2317. <OverallResult success="true"/>
  2318. </TestCase>
  2319. <TestCase name="Approx setters validate their arguments" tags="[Approx]" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2320. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2321. <Original>
  2322. Approx(0).margin(0)
  2323. </Original>
  2324. <Expanded>
  2325. Approx(0).margin(0)
  2326. </Expanded>
  2327. </Expression>
  2328. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2329. <Original>
  2330. Approx(0).margin(1234656)
  2331. </Original>
  2332. <Expanded>
  2333. Approx(0).margin(1234656)
  2334. </Expanded>
  2335. </Expression>
  2336. <Expression success="true" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2337. <Original>
  2338. Approx(0).margin(-2), std::domain_error
  2339. </Original>
  2340. <Expanded>
  2341. Approx(0).margin(-2), std::domain_error
  2342. </Expanded>
  2343. </Expression>
  2344. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2345. <Original>
  2346. Approx(0).epsilon(0)
  2347. </Original>
  2348. <Expanded>
  2349. Approx(0).epsilon(0)
  2350. </Expanded>
  2351. </Expression>
  2352. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2353. <Original>
  2354. Approx(0).epsilon(1)
  2355. </Original>
  2356. <Expanded>
  2357. Approx(0).epsilon(1)
  2358. </Expanded>
  2359. </Expression>
  2360. <Expression success="true" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2361. <Original>
  2362. Approx(0).epsilon(-0.001), std::domain_error
  2363. </Original>
  2364. <Expanded>
  2365. Approx(0).epsilon(-0.001), std::domain_error
  2366. </Expanded>
  2367. </Expression>
  2368. <Expression success="true" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2369. <Original>
  2370. Approx(0).epsilon(1.0001), std::domain_error
  2371. </Original>
  2372. <Expanded>
  2373. Approx(0).epsilon(1.0001), std::domain_error
  2374. </Expanded>
  2375. </Expression>
  2376. <OverallResult success="true"/>
  2377. </TestCase>
  2378. <TestCase name="Approx with exactly-representable margin" tags="[Approx]" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2379. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2380. <Original>
  2381. 0.25f == Approx(0.0f).margin(0.25f)
  2382. </Original>
  2383. <Expanded>
  2384. 0.25f == Approx( 0.0 )
  2385. </Expanded>
  2386. </Expression>
  2387. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2388. <Original>
  2389. 0.0f == Approx(0.25f).margin(0.25f)
  2390. </Original>
  2391. <Expanded>
  2392. 0.0f == Approx( 0.25 )
  2393. </Expanded>
  2394. </Expression>
  2395. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2396. <Original>
  2397. 0.5f == Approx(0.25f).margin(0.25f)
  2398. </Original>
  2399. <Expanded>
  2400. 0.5f == Approx( 0.25 )
  2401. </Expanded>
  2402. </Expression>
  2403. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2404. <Original>
  2405. 245.0f == Approx(245.25f).margin(0.25f)
  2406. </Original>
  2407. <Expanded>
  2408. 245.0f == Approx( 245.25 )
  2409. </Expanded>
  2410. </Expression>
  2411. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2412. <Original>
  2413. 245.5f == Approx(245.25f).margin(0.25f)
  2414. </Original>
  2415. <Expanded>
  2416. 245.5f == Approx( 245.25 )
  2417. </Expanded>
  2418. </Expression>
  2419. <OverallResult success="true"/>
  2420. </TestCase>
  2421. <TestCase name="Approximate PI" tags="[Approx][PI]" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2422. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2423. <Original>
  2424. divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 )
  2425. </Original>
  2426. <Expanded>
  2427. 3.1428571429 == Approx( 3.141 )
  2428. </Expanded>
  2429. </Expression>
  2430. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2431. <Original>
  2432. divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 )
  2433. </Original>
  2434. <Expanded>
  2435. 3.1428571429 != Approx( 3.141 )
  2436. </Expanded>
  2437. </Expression>
  2438. <OverallResult success="true"/>
  2439. </TestCase>
  2440. <TestCase name="Approximate comparisons with different epsilons" tags="[Approx]" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2441. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2442. <Original>
  2443. d != Approx( 1.231 )
  2444. </Original>
  2445. <Expanded>
  2446. 1.23 != Approx( 1.231 )
  2447. </Expanded>
  2448. </Expression>
  2449. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2450. <Original>
  2451. d == Approx( 1.231 ).epsilon( 0.1 )
  2452. </Original>
  2453. <Expanded>
  2454. 1.23 == Approx( 1.231 )
  2455. </Expanded>
  2456. </Expression>
  2457. <OverallResult success="true"/>
  2458. </TestCase>
  2459. <TestCase name="Approximate comparisons with floats" tags="[Approx]" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2460. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2461. <Original>
  2462. 1.23f == Approx( 1.23f )
  2463. </Original>
  2464. <Expanded>
  2465. 1.23f == Approx( 1.2300000191 )
  2466. </Expanded>
  2467. </Expression>
  2468. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2469. <Original>
  2470. 0.0f == Approx( 0.0f )
  2471. </Original>
  2472. <Expanded>
  2473. 0.0f == Approx( 0.0 )
  2474. </Expanded>
  2475. </Expression>
  2476. <OverallResult success="true"/>
  2477. </TestCase>
  2478. <TestCase name="Approximate comparisons with ints" tags="[Approx]" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2479. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2480. <Original>
  2481. 1 == Approx( 1 )
  2482. </Original>
  2483. <Expanded>
  2484. 1 == Approx( 1.0 )
  2485. </Expanded>
  2486. </Expression>
  2487. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2488. <Original>
  2489. 0 == Approx( 0 )
  2490. </Original>
  2491. <Expanded>
  2492. 0 == Approx( 0.0 )
  2493. </Expanded>
  2494. </Expression>
  2495. <OverallResult success="true"/>
  2496. </TestCase>
  2497. <TestCase name="Approximate comparisons with mixed numeric types" tags="[Approx]" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2498. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2499. <Original>
  2500. 1.0f == Approx( 1 )
  2501. </Original>
  2502. <Expanded>
  2503. 1.0f == Approx( 1.0 )
  2504. </Expanded>
  2505. </Expression>
  2506. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2507. <Original>
  2508. 0 == Approx( dZero)
  2509. </Original>
  2510. <Expanded>
  2511. 0 == Approx( 0.0 )
  2512. </Expanded>
  2513. </Expression>
  2514. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2515. <Original>
  2516. 0 == Approx( dSmall ).margin( 0.001 )
  2517. </Original>
  2518. <Expanded>
  2519. 0 == Approx( 0.00001 )
  2520. </Expanded>
  2521. </Expression>
  2522. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2523. <Original>
  2524. 1.234f == Approx( dMedium )
  2525. </Original>
  2526. <Expanded>
  2527. 1.234f == Approx( 1.234 )
  2528. </Expanded>
  2529. </Expression>
  2530. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  2531. <Original>
  2532. dMedium == Approx( 1.234f )
  2533. </Original>
  2534. <Expanded>
  2535. 1.234 == Approx( 1.2339999676 )
  2536. </Expanded>
  2537. </Expression>
  2538. <OverallResult success="true"/>
  2539. </TestCase>
  2540. <TestCase name="Arbitrary predicate matcher" tags="[generic][matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  2541. <Section name="Function pointer" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  2542. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  2543. <Original>
  2544. 1, Predicate&lt;int>( alwaysTrue, "always true" )
  2545. </Original>
  2546. <Expanded>
  2547. 1 matches predicate: "always true"
  2548. </Expanded>
  2549. </Expression>
  2550. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  2551. <Original>
  2552. 1, !Predicate&lt;int>( alwaysFalse, "always false" )
  2553. </Original>
  2554. <Expanded>
  2555. 1 not matches predicate: "always false"
  2556. </Expanded>
  2557. </Expression>
  2558. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  2559. </Section>
  2560. <Section name="Lambdas + different type" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  2561. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  2562. <Original>
  2563. "Hello olleH", Predicate&lt;std::string>( []( std::string const&amp; str ) -> bool { return str.front() == str.back(); }, "First and last character should be equal" )
  2564. </Original>
  2565. <Expanded>
  2566. "Hello olleH" matches predicate: "First and last character should be equal"
  2567. </Expanded>
  2568. </Expression>
  2569. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  2570. <Original>
  2571. "This wouldn't pass", !Predicate&lt;std::string>( []( std::string const&amp; str ) -> bool { return str.front() == str.back(); } )
  2572. </Original>
  2573. <Expanded>
  2574. "This wouldn't pass" not matches undescribed predicate
  2575. </Expanded>
  2576. </Expression>
  2577. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  2578. </Section>
  2579. <OverallResult success="true"/>
  2580. </TestCase>
  2581. <TestCase name="Assertion macros support bit operators and bool conversions" tags="[bitops][compilation]" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  2582. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  2583. <Original>
  2584. lhs | rhs
  2585. </Original>
  2586. <Expanded>
  2587. Val: 1 | Val: 2
  2588. </Expanded>
  2589. </Expression>
  2590. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  2591. <Original>
  2592. !(lhs &amp; rhs)
  2593. </Original>
  2594. <Expanded>
  2595. !(Val: 1 &amp; Val: 2)
  2596. </Expanded>
  2597. </Expression>
  2598. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  2599. <Original>
  2600. HasBitOperators{ 1 } &amp; HasBitOperators{ 1 }
  2601. </Original>
  2602. <Expanded>
  2603. Val: 1 &amp; Val: 1
  2604. </Expanded>
  2605. </Expression>
  2606. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  2607. <Original>
  2608. lhs ^ rhs
  2609. </Original>
  2610. <Expanded>
  2611. Val: 1 ^ Val: 2
  2612. </Expanded>
  2613. </Expression>
  2614. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  2615. <Original>
  2616. !(lhs ^ lhs)
  2617. </Original>
  2618. <Expanded>
  2619. !(Val: 1 ^ Val: 1)
  2620. </Expanded>
  2621. </Expression>
  2622. <OverallResult success="true"/>
  2623. </TestCase>
  2624. <TestCase name="Assertions then sections" tags="[Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2625. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2626. <Original>
  2627. true
  2628. </Original>
  2629. <Expanded>
  2630. true
  2631. </Expanded>
  2632. </Expression>
  2633. <Section name="A section" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2634. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2635. <Original>
  2636. true
  2637. </Original>
  2638. <Expanded>
  2639. true
  2640. </Expanded>
  2641. </Expression>
  2642. <Section name="Another section" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2643. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2644. <Original>
  2645. true
  2646. </Original>
  2647. <Expanded>
  2648. true
  2649. </Expanded>
  2650. </Expression>
  2651. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  2652. </Section>
  2653. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  2654. </Section>
  2655. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2656. <Original>
  2657. true
  2658. </Original>
  2659. <Expanded>
  2660. true
  2661. </Expanded>
  2662. </Expression>
  2663. <Section name="A section" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2664. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2665. <Original>
  2666. true
  2667. </Original>
  2668. <Expanded>
  2669. true
  2670. </Expanded>
  2671. </Expression>
  2672. <Section name="Another other section" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2673. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2674. <Original>
  2675. true
  2676. </Original>
  2677. <Expanded>
  2678. true
  2679. </Expanded>
  2680. </Expression>
  2681. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  2682. </Section>
  2683. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  2684. </Section>
  2685. <OverallResult success="true"/>
  2686. </TestCase>
  2687. <TestCase name="Basic use of the Contains range matcher" tags="[contains][matchers][templated]" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2688. <Section name="Different argument ranges, same element type, default comparison" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2689. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2690. <Original>
  2691. a, Contains(1)
  2692. </Original>
  2693. <Expanded>
  2694. { 1, 2, 3 } contains element 1
  2695. </Expanded>
  2696. </Expression>
  2697. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2698. <Original>
  2699. b, Contains(1)
  2700. </Original>
  2701. <Expanded>
  2702. { 0, 1, 2 } contains element 1
  2703. </Expanded>
  2704. </Expression>
  2705. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2706. <Original>
  2707. c, !Contains(1)
  2708. </Original>
  2709. <Expanded>
  2710. { 4, 5, 6 } not contains element 1
  2711. </Expanded>
  2712. </Expression>
  2713. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  2714. </Section>
  2715. <Section name="Different argument ranges, same element type, custom comparison" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2716. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2717. <Original>
  2718. a, Contains(0, close_enough)
  2719. </Original>
  2720. <Expanded>
  2721. { 1, 2, 3 } contains element 0
  2722. </Expanded>
  2723. </Expression>
  2724. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2725. <Original>
  2726. b, Contains(0, close_enough)
  2727. </Original>
  2728. <Expanded>
  2729. { 0, 1, 2 } contains element 0
  2730. </Expanded>
  2731. </Expression>
  2732. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2733. <Original>
  2734. c, !Contains(0, close_enough)
  2735. </Original>
  2736. <Expanded>
  2737. { 4, 5, 6 } not contains element 0
  2738. </Expanded>
  2739. </Expression>
  2740. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  2741. </Section>
  2742. <Section name="Different element type, custom comparisons" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2743. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2744. <Original>
  2745. a, Contains(4, [](auto&amp;&amp; lhs, size_t sz) { return lhs.size() == sz; })
  2746. </Original>
  2747. <Expanded>
  2748. { "abc", "abcd", "abcde" } contains element 4
  2749. </Expanded>
  2750. </Expression>
  2751. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  2752. </Section>
  2753. <Section name="Can handle type that requires ADL-found free function begin and end" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2754. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2755. <Original>
  2756. in, Contains(1)
  2757. </Original>
  2758. <Expanded>
  2759. { 1, 2, 3, 4, 5 } contains element 1
  2760. </Expanded>
  2761. </Expression>
  2762. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2763. <Original>
  2764. in, !Contains(8)
  2765. </Original>
  2766. <Expanded>
  2767. { 1, 2, 3, 4, 5 } not contains element 8
  2768. </Expanded>
  2769. </Expression>
  2770. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  2771. </Section>
  2772. <Section name="Initialization with move only types" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2773. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2774. <Original>
  2775. in, Contains(MoveOnlyTestElement{ 2 })
  2776. </Original>
  2777. <Expanded>
  2778. { 1, 2, 3 } contains element 2
  2779. </Expanded>
  2780. </Expression>
  2781. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2782. <Original>
  2783. in, !Contains(MoveOnlyTestElement{ 9 })
  2784. </Original>
  2785. <Expanded>
  2786. { 1, 2, 3 } not contains element 9
  2787. </Expanded>
  2788. </Expression>
  2789. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  2790. </Section>
  2791. <Section name="Matching using matcher" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2792. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2793. <Original>
  2794. in, Contains(Catch::Matchers::WithinAbs(0.5, 0.5))
  2795. </Original>
  2796. <Expanded>
  2797. { 1.0, 2.0, 3.0, 0.0 } contains element matching is within 0.5 of 0.5
  2798. </Expanded>
  2799. </Expression>
  2800. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  2801. </Section>
  2802. <OverallResult success="true"/>
  2803. </TestCase>
  2804. <TestCase name="Basic use of the Empty range matcher" tags="[empty][matchers][templated]" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2805. <Section name="Simple, std-provided containers" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2806. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2807. <Original>
  2808. empty_array, IsEmpty()
  2809. </Original>
  2810. <Expanded>
  2811. { } is empty
  2812. </Expanded>
  2813. </Expression>
  2814. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2815. <Original>
  2816. non_empty_array, !IsEmpty()
  2817. </Original>
  2818. <Expanded>
  2819. { 0.0 } not is empty
  2820. </Expanded>
  2821. </Expression>
  2822. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2823. <Original>
  2824. empty_vec, IsEmpty()
  2825. </Original>
  2826. <Expanded>
  2827. { } is empty
  2828. </Expanded>
  2829. </Expression>
  2830. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2831. <Original>
  2832. non_empty_vec, !IsEmpty()
  2833. </Original>
  2834. <Expanded>
  2835. { 'a', 'b', 'c' } not is empty
  2836. </Expanded>
  2837. </Expression>
  2838. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2839. <Original>
  2840. inner_lists_are_empty, !IsEmpty()
  2841. </Original>
  2842. <Expanded>
  2843. { { } } not is empty
  2844. </Expanded>
  2845. </Expression>
  2846. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2847. <Original>
  2848. inner_lists_are_empty.front(), IsEmpty()
  2849. </Original>
  2850. <Expanded>
  2851. { } is empty
  2852. </Expanded>
  2853. </Expression>
  2854. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  2855. </Section>
  2856. <Section name="Type with empty" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2857. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2858. <Original>
  2859. has_empty{}, !IsEmpty()
  2860. </Original>
  2861. <Expanded>
  2862. {?} not is empty
  2863. </Expanded>
  2864. </Expression>
  2865. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  2866. </Section>
  2867. <Section name="Type requires ADL found empty free function" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2868. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  2869. <Original>
  2870. unrelated::ADL_empty{}, IsEmpty()
  2871. </Original>
  2872. <Expanded>
  2873. {?} is empty
  2874. </Expanded>
  2875. </Expression>
  2876. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  2877. </Section>
  2878. <OverallResult success="true"/>
  2879. </TestCase>
  2880. <TestCase name="CAPTURE can deal with complex expressions" tags="[capture][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  2881. <Info>
  2882. a := 1
  2883. </Info>
  2884. <Info>
  2885. b := 2
  2886. </Info>
  2887. <Info>
  2888. c := 3
  2889. </Info>
  2890. <Info>
  2891. a + b := 3
  2892. </Info>
  2893. <Info>
  2894. a+b := 3
  2895. </Info>
  2896. <Info>
  2897. c > b := true
  2898. </Info>
  2899. <Info>
  2900. a == 1 := true
  2901. </Info>
  2902. <OverallResult success="true"/>
  2903. </TestCase>
  2904. <TestCase name="CAPTURE can deal with complex expressions involving commas" tags="[capture][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  2905. <Info>
  2906. std::vector&lt;int>{1, 2, 3}[0, 1, 2] := 3
  2907. </Info>
  2908. <Info>
  2909. std::vector&lt;int>{1, 2, 3}[(0, 1)] := 2
  2910. </Info>
  2911. <Info>
  2912. std::vector&lt;int>{1, 2, 3}[0] := 1
  2913. </Info>
  2914. <Info>
  2915. (helper_1436&lt;int, int>{12, -12}) := { 12, -12 }
  2916. </Info>
  2917. <Info>
  2918. (helper_1436&lt;int, int>(-12, 12)) := { -12, 12 }
  2919. </Info>
  2920. <Info>
  2921. (1, 2) := 2
  2922. </Info>
  2923. <Info>
  2924. (2, 3) := 3
  2925. </Info>
  2926. <OverallResult success="true"/>
  2927. </TestCase>
  2928. <TestCase name="CAPTURE parses string and character constants" tags="[capture][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  2929. <Info>
  2930. ("comma, in string", "escaped, \", ") := "escaped, ", "
  2931. </Info>
  2932. <Info>
  2933. "single quote in string,'," := "single quote in string,',"
  2934. </Info>
  2935. <Info>
  2936. "some escapes, \\,\\\\" := "some escapes, \,\\"
  2937. </Info>
  2938. <Info>
  2939. "some, ), unmatched, } prenheses {[&lt;" := "some, ), unmatched, } prenheses {[&lt;"
  2940. </Info>
  2941. <Info>
  2942. '"' := '"'
  2943. </Info>
  2944. <Info>
  2945. '\'' := '''
  2946. </Info>
  2947. <Info>
  2948. ',' := ','
  2949. </Info>
  2950. <Info>
  2951. '}' := '}'
  2952. </Info>
  2953. <Info>
  2954. ')' := ')'
  2955. </Info>
  2956. <Info>
  2957. '(' := '('
  2958. </Info>
  2959. <Info>
  2960. '{' := '{'
  2961. </Info>
  2962. <OverallResult success="true"/>
  2963. </TestCase>
  2964. <TestCase name="Capture and info messages" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2965. <Section name="Capture should stringify like assertions" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2966. <Info>
  2967. i := 2
  2968. </Info>
  2969. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2970. <Original>
  2971. true
  2972. </Original>
  2973. <Expanded>
  2974. true
  2975. </Expanded>
  2976. </Expression>
  2977. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  2978. </Section>
  2979. <Section name="Info should NOT stringify the way assertions do" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2980. <Info>
  2981. 3
  2982. </Info>
  2983. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2984. <Original>
  2985. true
  2986. </Original>
  2987. <Expanded>
  2988. true
  2989. </Expanded>
  2990. </Expression>
  2991. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  2992. </Section>
  2993. <OverallResult success="true"/>
  2994. </TestCase>
  2995. <TestCase name="CaseInsensitiveEqualsTo is case insensitive" tags="[comparisons][string-case]" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  2996. <Section name="Degenerate cases" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  2997. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  2998. <Original>
  2999. eq( "", "" )
  3000. </Original>
  3001. <Expanded>
  3002. true
  3003. </Expanded>
  3004. </Expression>
  3005. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3006. <Original>
  3007. !(eq( "", "a" ))
  3008. </Original>
  3009. <Expanded>
  3010. !false
  3011. </Expanded>
  3012. </Expression>
  3013. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  3014. </Section>
  3015. <Section name="Plain comparisons" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3016. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3017. <Original>
  3018. eq( "a", "a" )
  3019. </Original>
  3020. <Expanded>
  3021. true
  3022. </Expanded>
  3023. </Expression>
  3024. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3025. <Original>
  3026. eq( "a", "A" )
  3027. </Original>
  3028. <Expanded>
  3029. true
  3030. </Expanded>
  3031. </Expression>
  3032. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3033. <Original>
  3034. eq( "A", "a" )
  3035. </Original>
  3036. <Expanded>
  3037. true
  3038. </Expanded>
  3039. </Expression>
  3040. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3041. <Original>
  3042. eq( "A", "A" )
  3043. </Original>
  3044. <Expanded>
  3045. true
  3046. </Expanded>
  3047. </Expression>
  3048. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3049. <Original>
  3050. !(eq( "a", "b" ))
  3051. </Original>
  3052. <Expanded>
  3053. !false
  3054. </Expanded>
  3055. </Expression>
  3056. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3057. <Original>
  3058. !(eq( "a", "B" ))
  3059. </Original>
  3060. <Expanded>
  3061. !false
  3062. </Expanded>
  3063. </Expression>
  3064. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  3065. </Section>
  3066. <OverallResult success="true"/>
  3067. </TestCase>
  3068. <TestCase name="CaseInsensitiveLess is case insensitive" tags="[comparisons][string-case]" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3069. <Section name="Degenerate cases" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3070. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3071. <Original>
  3072. lt( "", "a" )
  3073. </Original>
  3074. <Expanded>
  3075. true
  3076. </Expanded>
  3077. </Expression>
  3078. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3079. <Original>
  3080. !(lt( "a", "a" ))
  3081. </Original>
  3082. <Expanded>
  3083. !false
  3084. </Expanded>
  3085. </Expression>
  3086. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3087. <Original>
  3088. !(lt( "", "" ))
  3089. </Original>
  3090. <Expanded>
  3091. !false
  3092. </Expanded>
  3093. </Expression>
  3094. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  3095. </Section>
  3096. <Section name="Plain comparisons" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3097. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3098. <Original>
  3099. lt( "a", "b" )
  3100. </Original>
  3101. <Expanded>
  3102. true
  3103. </Expanded>
  3104. </Expression>
  3105. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3106. <Original>
  3107. lt( "a", "B" )
  3108. </Original>
  3109. <Expanded>
  3110. true
  3111. </Expanded>
  3112. </Expression>
  3113. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3114. <Original>
  3115. lt( "A", "b" )
  3116. </Original>
  3117. <Expanded>
  3118. true
  3119. </Expanded>
  3120. </Expression>
  3121. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Details.tests.cpp" >
  3122. <Original>
  3123. lt( "A", "B" )
  3124. </Original>
  3125. <Expanded>
  3126. true
  3127. </Expanded>
  3128. </Expression>
  3129. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  3130. </Section>
  3131. <OverallResult success="true"/>
  3132. </TestCase>
  3133. <TestCase name="Character pretty printing" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3134. <Section name="Specifically escaped" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3135. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3136. <Original>
  3137. tab == '\t'
  3138. </Original>
  3139. <Expanded>
  3140. '\t' == '\t'
  3141. </Expanded>
  3142. </Expression>
  3143. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3144. <Original>
  3145. newline == '\n'
  3146. </Original>
  3147. <Expanded>
  3148. '\n' == '\n'
  3149. </Expanded>
  3150. </Expression>
  3151. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3152. <Original>
  3153. carr_return == '\r'
  3154. </Original>
  3155. <Expanded>
  3156. '\r' == '\r'
  3157. </Expanded>
  3158. </Expression>
  3159. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3160. <Original>
  3161. form_feed == '\f'
  3162. </Original>
  3163. <Expanded>
  3164. '\f' == '\f'
  3165. </Expanded>
  3166. </Expression>
  3167. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  3168. </Section>
  3169. <Section name="General chars" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3170. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3171. <Original>
  3172. space == ' '
  3173. </Original>
  3174. <Expanded>
  3175. ' ' == ' '
  3176. </Expanded>
  3177. </Expression>
  3178. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3179. <Original>
  3180. c == chars[i]
  3181. </Original>
  3182. <Expanded>
  3183. 'a' == 'a'
  3184. </Expanded>
  3185. </Expression>
  3186. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3187. <Original>
  3188. c == chars[i]
  3189. </Original>
  3190. <Expanded>
  3191. 'z' == 'z'
  3192. </Expanded>
  3193. </Expression>
  3194. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3195. <Original>
  3196. c == chars[i]
  3197. </Original>
  3198. <Expanded>
  3199. 'A' == 'A'
  3200. </Expanded>
  3201. </Expression>
  3202. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3203. <Original>
  3204. c == chars[i]
  3205. </Original>
  3206. <Expanded>
  3207. 'Z' == 'Z'
  3208. </Expanded>
  3209. </Expression>
  3210. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  3211. </Section>
  3212. <Section name="Low ASCII" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3213. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3214. <Original>
  3215. null_terminator == '\0'
  3216. </Original>
  3217. <Expanded>
  3218. 0 == 0
  3219. </Expanded>
  3220. </Expression>
  3221. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3222. <Original>
  3223. c == i
  3224. </Original>
  3225. <Expanded>
  3226. 2 == 2
  3227. </Expanded>
  3228. </Expression>
  3229. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3230. <Original>
  3231. c == i
  3232. </Original>
  3233. <Expanded>
  3234. 3 == 3
  3235. </Expanded>
  3236. </Expression>
  3237. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3238. <Original>
  3239. c == i
  3240. </Original>
  3241. <Expanded>
  3242. 4 == 4
  3243. </Expanded>
  3244. </Expression>
  3245. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3246. <Original>
  3247. c == i
  3248. </Original>
  3249. <Expanded>
  3250. 5 == 5
  3251. </Expanded>
  3252. </Expression>
  3253. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  3254. </Section>
  3255. <OverallResult success="true"/>
  3256. </TestCase>
  3257. <TestCase name="Clara::Arg supports single-arg parse the way Opt does" tags="[arg][clara][compilation]" filename="tests/<exe-name>/IntrospectiveTests/Clara.tests.cpp" >
  3258. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/Clara.tests.cpp" >
  3259. <Original>
  3260. name.empty()
  3261. </Original>
  3262. <Expanded>
  3263. true
  3264. </Expanded>
  3265. </Expression>
  3266. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Clara.tests.cpp" >
  3267. <Original>
  3268. name == "foo"
  3269. </Original>
  3270. <Expanded>
  3271. "foo" == "foo"
  3272. </Expanded>
  3273. </Expression>
  3274. <OverallResult success="true"/>
  3275. </TestCase>
  3276. <TestCase name="Clara::Opt supports accept-many lambdas" tags="[clara][opt]" filename="tests/<exe-name>/IntrospectiveTests/Clara.tests.cpp" >
  3277. <Section name="Parsing fails on multiple options without accept_many" filename="tests/<exe-name>/IntrospectiveTests/Clara.tests.cpp" >
  3278. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Clara.tests.cpp" >
  3279. <Original>
  3280. !(parse_result)
  3281. </Original>
  3282. <Expanded>
  3283. !{?}
  3284. </Expanded>
  3285. </Expression>
  3286. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  3287. </Section>
  3288. <Section name="Parsing succeeds on multiple options with accept_many" filename="tests/<exe-name>/IntrospectiveTests/Clara.tests.cpp" >
  3289. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/Clara.tests.cpp" >
  3290. <Original>
  3291. parse_result
  3292. </Original>
  3293. <Expanded>
  3294. {?}
  3295. </Expanded>
  3296. </Expression>
  3297. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/Clara.tests.cpp" >
  3298. <Original>
  3299. res == std::vector&lt;std::string>{ "aaa", "bbb" }
  3300. </Original>
  3301. <Expanded>
  3302. { "aaa", "bbb" } == { "aaa", "bbb" }
  3303. </Expanded>
  3304. </Expression>
  3305. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  3306. </Section>
  3307. <OverallResult success="true"/>
  3308. </TestCase>
  3309. <TestCase name="ColourGuard behaviour" tags="[console-colours]" filename="tests/<exe-name>/IntrospectiveTests/ColourImpl.tests.cpp" >
  3310. <Section name="ColourGuard is disengaged by default" filename="tests/<exe-name>/IntrospectiveTests/ColourImpl.tests.cpp" >
  3311. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/ColourImpl.tests.cpp" >
  3312. <Original>
  3313. streamWrapper.str().empty()
  3314. </Original>
  3315. <Expanded>
  3316. true
  3317. </Expanded>
  3318. </Expression>
  3319. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  3320. </Section>
  3321. <Section name="ColourGuard is engaged by op&lt;&lt;" filename="tests/<exe-name>/IntrospectiveTests/ColourImpl.tests.cpp" >
  3322. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/ColourImpl.tests.cpp" >
  3323. <Original>
  3324. streamWrapper.str() == "1\nUsing code: 2\n2\nUsing code: 0\n3\n"
  3325. </Original>
  3326. <Expanded>
  3327. "1
  3328. Using code: 2
  3329. 2
  3330. Using code: 0
  3331. 3
  3332. "
  3333. ==
  3334. "1
  3335. Using code: 2
  3336. 2
  3337. Using code: 0
  3338. 3
  3339. "
  3340. </Expanded>
  3341. </Expression>
  3342. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  3343. </Section>
  3344. <Section name="ColourGuard can be engaged explicitly" filename="tests/<exe-name>/IntrospectiveTests/ColourImpl.tests.cpp" >
  3345. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/ColourImpl.tests.cpp" >
  3346. <Original>
  3347. streamWrapper.str() == "Using code: 2\nA\nB\nUsing code: 0\nC\n"
  3348. </Original>
  3349. <Expanded>
  3350. "Using code: 2
  3351. A
  3352. B
  3353. Using code: 0
  3354. C
  3355. "
  3356. ==
  3357. "Using code: 2
  3358. A
  3359. B
  3360. Using code: 0
  3361. C
  3362. "
  3363. </Expanded>
  3364. </Expression>
  3365. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  3366. </Section>
  3367. <OverallResult success="true"/>
  3368. </TestCase>
  3369. <TestCase name="Combining MatchAllOfGeneric does not nest" tags="[matchers][templated]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3370. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3371. <Original>
  3372. 1, ( MatcherA() &amp;&amp; MatcherB() ) &amp;&amp; MatcherC()
  3373. </Original>
  3374. <Expanded>
  3375. 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T) 1 )
  3376. </Expanded>
  3377. </Expression>
  3378. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3379. <Original>
  3380. 1, MatcherA() &amp;&amp; ( MatcherB() &amp;&amp; MatcherC() )
  3381. </Original>
  3382. <Expanded>
  3383. 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T) 1 )
  3384. </Expanded>
  3385. </Expression>
  3386. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3387. <Original>
  3388. 1, ( MatcherA() &amp;&amp; MatcherB() ) &amp;&amp; ( MatcherC() &amp;&amp; MatcherD() )
  3389. </Original>
  3390. <Expanded>
  3391. 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T) 1 and equals: true )
  3392. </Expanded>
  3393. </Expression>
  3394. <OverallResult success="true"/>
  3395. </TestCase>
  3396. <TestCase name="Combining MatchAnyOfGeneric does not nest" tags="[matchers][templated]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3397. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3398. <Original>
  3399. 1, ( MatcherA() || MatcherB() ) || MatcherC()
  3400. </Original>
  3401. <Expanded>
  3402. 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1 )
  3403. </Expanded>
  3404. </Expression>
  3405. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3406. <Original>
  3407. 1, MatcherA() || ( MatcherB() || MatcherC() )
  3408. </Original>
  3409. <Expanded>
  3410. 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1 )
  3411. </Expanded>
  3412. </Expression>
  3413. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3414. <Original>
  3415. 1, ( MatcherA() || MatcherB() ) || ( MatcherC() || MatcherD() )
  3416. </Original>
  3417. <Expanded>
  3418. 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1 or equals: true )
  3419. </Expanded>
  3420. </Expression>
  3421. <OverallResult success="true"/>
  3422. </TestCase>
  3423. <TestCase name="Combining MatchNotOfGeneric does not nest" tags="[matchers][templated]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3424. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3425. <Original>
  3426. 0, !MatcherA()
  3427. </Original>
  3428. <Expanded>
  3429. 0 not equals: (int) 1 or (string) "1"
  3430. </Expanded>
  3431. </Expression>
  3432. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3433. <Original>
  3434. 1, !!MatcherA()
  3435. </Original>
  3436. <Expanded>
  3437. 1 equals: (int) 1 or (string) "1"
  3438. </Expanded>
  3439. </Expression>
  3440. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3441. <Original>
  3442. 0, !!!MatcherA()
  3443. </Original>
  3444. <Expanded>
  3445. 0 not equals: (int) 1 or (string) "1"
  3446. </Expanded>
  3447. </Expression>
  3448. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3449. <Original>
  3450. 1, !!!!MatcherA()
  3451. </Original>
  3452. <Expanded>
  3453. 1 equals: (int) 1 or (string) "1"
  3454. </Expanded>
  3455. </Expression>
  3456. <OverallResult success="true"/>
  3457. </TestCase>
  3458. <TestCase name="Combining concrete matchers does not use templated matchers" tags="[matchers][templated]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3459. <OverallResult success="true"/>
  3460. </TestCase>
  3461. <TestCase name="Combining only templated matchers" tags="[matchers][templated]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3462. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3463. <Original>
  3464. 1, MatcherA() || MatcherB()
  3465. </Original>
  3466. <Expanded>
  3467. 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 )
  3468. </Expanded>
  3469. </Expression>
  3470. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3471. <Original>
  3472. 1, MatcherA() &amp;&amp; MatcherB()
  3473. </Original>
  3474. <Expanded>
  3475. 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 )
  3476. </Expanded>
  3477. </Expression>
  3478. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3479. <Original>
  3480. 1, MatcherA() || !MatcherB()
  3481. </Original>
  3482. <Expanded>
  3483. 1 ( equals: (int) 1 or (string) "1" or not equals: (long long) 1 )
  3484. </Expanded>
  3485. </Expression>
  3486. <OverallResult success="true"/>
  3487. </TestCase>
  3488. <TestCase name="Combining templated and concrete matchers" tags="[matchers][templated]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3489. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3490. <Original>
  3491. vec, Predicate&lt;std::vector&lt;int>>( []( auto const&amp; v ) { return std::all_of( v.begin(), v.end(), []( int elem ) { return elem % 2 == 1; } ); }, "All elements are odd" ) &amp;&amp; !EqualsRange( a )
  3492. </Original>
  3493. <Expanded>
  3494. { 1, 3, 5 } ( matches predicate: "All elements are odd" and not Equals: { 5, 3, 1 } )
  3495. </Expanded>
  3496. </Expression>
  3497. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3498. <Original>
  3499. str, StartsWith( "foo" ) &amp;&amp; EqualsRange( arr ) &amp;&amp; EndsWith( "bar" )
  3500. </Original>
  3501. <Expanded>
  3502. "foobar" ( starts with: "foo" and Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and ends with: "bar" )
  3503. </Expanded>
  3504. </Expression>
  3505. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3506. <Original>
  3507. str, StartsWith( "foo" ) &amp;&amp; !EqualsRange( bad_arr ) &amp;&amp; EndsWith( "bar" )
  3508. </Original>
  3509. <Expanded>
  3510. "foobar" ( starts with: "foo" and not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and ends with: "bar" )
  3511. </Expanded>
  3512. </Expression>
  3513. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3514. <Original>
  3515. str, EqualsRange( arr ) &amp;&amp; StartsWith( "foo" ) &amp;&amp; EndsWith( "bar" )
  3516. </Original>
  3517. <Expanded>
  3518. "foobar" ( Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and starts with: "foo" and ends with: "bar" )
  3519. </Expanded>
  3520. </Expression>
  3521. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3522. <Original>
  3523. str, !EqualsRange( bad_arr ) &amp;&amp; StartsWith( "foo" ) &amp;&amp; EndsWith( "bar" )
  3524. </Original>
  3525. <Expanded>
  3526. "foobar" ( not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and starts with: "foo" and ends with: "bar" )
  3527. </Expanded>
  3528. </Expression>
  3529. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3530. <Original>
  3531. str, EqualsRange( bad_arr ) || ( StartsWith( "foo" ) &amp;&amp; EndsWith( "bar" ) )
  3532. </Original>
  3533. <Expanded>
  3534. "foobar" ( Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } or ( starts with: "foo" and ends with: "bar" ) )
  3535. </Expanded>
  3536. </Expression>
  3537. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3538. <Original>
  3539. str, ( StartsWith( "foo" ) &amp;&amp; EndsWith( "bar" ) ) || EqualsRange( bad_arr )
  3540. </Original>
  3541. <Expanded>
  3542. "foobar" ( ( starts with: "foo" and ends with: "bar" ) or Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } )
  3543. </Expanded>
  3544. </Expression>
  3545. <OverallResult success="true"/>
  3546. </TestCase>
  3547. <TestCase name="Combining templated matchers" tags="[matchers][templated]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3548. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3549. <Original>
  3550. container, EqualsRange( a ) || EqualsRange( b ) || EqualsRange( c )
  3551. </Original>
  3552. <Expanded>
  3553. { 1, 2, 3 } ( Equals: { 1, 2, 3 } or Equals: { 0, 1, 2 } or Equals: { 4, 5, 6 } )
  3554. </Expanded>
  3555. </Expression>
  3556. <OverallResult success="true"/>
  3557. </TestCase>
  3558. <TestCase name="Commas in various macros are allowed" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3559. <Expression success="true" type="REQUIRE_THROWS" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3560. <Original>
  3561. std::vector&lt;constructor_throws>{constructor_throws{}, constructor_throws{}}
  3562. </Original>
  3563. <Expanded>
  3564. std::vector&lt;constructor_throws>{constructor_throws{}, constructor_throws{}}
  3565. </Expanded>
  3566. </Expression>
  3567. <Expression success="true" type="CHECK_THROWS" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3568. <Original>
  3569. std::vector&lt;constructor_throws>{constructor_throws{}, constructor_throws{}}
  3570. </Original>
  3571. <Expanded>
  3572. std::vector&lt;constructor_throws>{constructor_throws{}, constructor_throws{}}
  3573. </Expanded>
  3574. </Expression>
  3575. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3576. <Original>
  3577. std::vector&lt;int>{1, 2, 3} == std::vector&lt;int>{1, 2, 3}
  3578. </Original>
  3579. <Expanded>
  3580. std::vector&lt;int>{1, 2, 3} == std::vector&lt;int>{1, 2, 3}
  3581. </Expanded>
  3582. </Expression>
  3583. <Expression success="true" type="CHECK_NOTHROW" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3584. <Original>
  3585. std::vector&lt;int>{1, 2, 3} == std::vector&lt;int>{1, 2, 3}
  3586. </Original>
  3587. <Expanded>
  3588. std::vector&lt;int>{1, 2, 3} == std::vector&lt;int>{1, 2, 3}
  3589. </Expanded>
  3590. </Expression>
  3591. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3592. <Original>
  3593. std::vector&lt;int>{1, 2} == std::vector&lt;int>{1, 2}
  3594. </Original>
  3595. <Expanded>
  3596. { 1, 2 } == { 1, 2 }
  3597. </Expanded>
  3598. </Expression>
  3599. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3600. <Original>
  3601. std::vector&lt;int>{1, 2} == std::vector&lt;int>{1, 2}
  3602. </Original>
  3603. <Expanded>
  3604. { 1, 2 } == { 1, 2 }
  3605. </Expanded>
  3606. </Expression>
  3607. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3608. <Original>
  3609. !(std::vector&lt;int>{1, 2} == std::vector&lt;int>{1, 2, 3})
  3610. </Original>
  3611. <Expanded>
  3612. !({ 1, 2 } == { 1, 2, 3 })
  3613. </Expanded>
  3614. </Expression>
  3615. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3616. <Original>
  3617. !(std::vector&lt;int>{1, 2} == std::vector&lt;int>{1, 2, 3})
  3618. </Original>
  3619. <Expanded>
  3620. !({ 1, 2 } == { 1, 2, 3 })
  3621. </Expanded>
  3622. </Expression>
  3623. <Expression success="true" type="CHECK_NOFAIL" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3624. <Original>
  3625. std::vector&lt;int>{1, 2} == std::vector&lt;int>{1, 2}
  3626. </Original>
  3627. <Expanded>
  3628. { 1, 2 } == { 1, 2 }
  3629. </Expanded>
  3630. </Expression>
  3631. <Expression success="true" type="CHECKED_IF" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3632. <Original>
  3633. std::vector&lt;int>{1, 2} == std::vector&lt;int>{1, 2}
  3634. </Original>
  3635. <Expanded>
  3636. { 1, 2 } == { 1, 2 }
  3637. </Expanded>
  3638. </Expression>
  3639. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3640. <Original>
  3641. true
  3642. </Original>
  3643. <Expanded>
  3644. true
  3645. </Expanded>
  3646. </Expression>
  3647. <Expression success="true" type="CHECKED_ELSE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3648. <Original>
  3649. std::vector&lt;int>{1, 2} == std::vector&lt;int>{1, 2}
  3650. </Original>
  3651. <Expanded>
  3652. { 1, 2 } == { 1, 2 }
  3653. </Expanded>
  3654. </Expression>
  3655. <OverallResult success="true"/>
  3656. </TestCase>
  3657. <TestCase name="Comparing function pointers" tags="[function pointer][Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3658. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3659. <Original>
  3660. a
  3661. </Original>
  3662. <Expanded>
  3663. 0x<hex digits>
  3664. </Expanded>
  3665. </Expression>
  3666. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3667. <Original>
  3668. a == &amp;foo
  3669. </Original>
  3670. <Expanded>
  3671. 0x<hex digits> == 0x<hex digits>
  3672. </Expanded>
  3673. </Expression>
  3674. <OverallResult success="true"/>
  3675. </TestCase>
  3676. <TestCase name="Comparison ops" tags="[rng]" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  3677. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  3678. <Original>
  3679. SimplePcg32{} == SimplePcg32{}
  3680. </Original>
  3681. <Expanded>
  3682. {?} == {?}
  3683. </Expanded>
  3684. </Expression>
  3685. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  3686. <Original>
  3687. SimplePcg32{ 0 } != SimplePcg32{}
  3688. </Original>
  3689. <Expanded>
  3690. {?} != {?}
  3691. </Expanded>
  3692. </Expression>
  3693. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  3694. <Original>
  3695. !(SimplePcg32{ 1 } == SimplePcg32{ 2 })
  3696. </Original>
  3697. <Expanded>
  3698. !({?} == {?})
  3699. </Expanded>
  3700. </Expression>
  3701. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  3702. <Original>
  3703. !(SimplePcg32{ 1 } != SimplePcg32{ 1 })
  3704. </Original>
  3705. <Expanded>
  3706. !({?} != {?})
  3707. </Expanded>
  3708. </Expression>
  3709. <OverallResult success="true"/>
  3710. </TestCase>
  3711. <TestCase name="Comparison with explicitly convertible types" tags="[Approx]" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  3712. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  3713. <Original>
  3714. td == Approx(10.0)
  3715. </Original>
  3716. <Expanded>
  3717. StrongDoubleTypedef(10) == Approx( 10.0 )
  3718. </Expanded>
  3719. </Expression>
  3720. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  3721. <Original>
  3722. Approx(10.0) == td
  3723. </Original>
  3724. <Expanded>
  3725. Approx( 10.0 ) == StrongDoubleTypedef(10)
  3726. </Expanded>
  3727. </Expression>
  3728. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  3729. <Original>
  3730. td != Approx(11.0)
  3731. </Original>
  3732. <Expanded>
  3733. StrongDoubleTypedef(10) != Approx( 11.0 )
  3734. </Expanded>
  3735. </Expression>
  3736. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  3737. <Original>
  3738. Approx(11.0) != td
  3739. </Original>
  3740. <Expanded>
  3741. Approx( 11.0 ) != StrongDoubleTypedef(10)
  3742. </Expanded>
  3743. </Expression>
  3744. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  3745. <Original>
  3746. td &lt;= Approx(10.0)
  3747. </Original>
  3748. <Expanded>
  3749. StrongDoubleTypedef(10) &lt;= Approx( 10.0 )
  3750. </Expanded>
  3751. </Expression>
  3752. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  3753. <Original>
  3754. td &lt;= Approx(11.0)
  3755. </Original>
  3756. <Expanded>
  3757. StrongDoubleTypedef(10) &lt;= Approx( 11.0 )
  3758. </Expanded>
  3759. </Expression>
  3760. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  3761. <Original>
  3762. Approx(10.0) &lt;= td
  3763. </Original>
  3764. <Expanded>
  3765. Approx( 10.0 ) &lt;= StrongDoubleTypedef(10)
  3766. </Expanded>
  3767. </Expression>
  3768. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  3769. <Original>
  3770. Approx(9.0) &lt;= td
  3771. </Original>
  3772. <Expanded>
  3773. Approx( 9.0 ) &lt;= StrongDoubleTypedef(10)
  3774. </Expanded>
  3775. </Expression>
  3776. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  3777. <Original>
  3778. td >= Approx(9.0)
  3779. </Original>
  3780. <Expanded>
  3781. StrongDoubleTypedef(10) >= Approx( 9.0 )
  3782. </Expanded>
  3783. </Expression>
  3784. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  3785. <Original>
  3786. td >= Approx(td)
  3787. </Original>
  3788. <Expanded>
  3789. StrongDoubleTypedef(10) >= Approx( 10.0 )
  3790. </Expanded>
  3791. </Expression>
  3792. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  3793. <Original>
  3794. Approx(td) >= td
  3795. </Original>
  3796. <Expanded>
  3797. Approx( 10.0 ) >= StrongDoubleTypedef(10)
  3798. </Expanded>
  3799. </Expression>
  3800. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  3801. <Original>
  3802. Approx(11.0) >= td
  3803. </Original>
  3804. <Expanded>
  3805. Approx( 11.0 ) >= StrongDoubleTypedef(10)
  3806. </Expanded>
  3807. </Expression>
  3808. <OverallResult success="true"/>
  3809. </TestCase>
  3810. <TestCase name="Comparisons between ints where one side is computed" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3811. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3812. <Original>
  3813. 54 == 6*9
  3814. </Original>
  3815. <Expanded>
  3816. 54 == 54
  3817. </Expanded>
  3818. </Expression>
  3819. <OverallResult success="true"/>
  3820. </TestCase>
  3821. <TestCase name="Comparisons between unsigned ints and negative signed ints match c++ standard behaviour" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3822. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3823. <Original>
  3824. ( -1 > 2u )
  3825. </Original>
  3826. <Expanded>
  3827. true
  3828. </Expanded>
  3829. </Expression>
  3830. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3831. <Original>
  3832. -1 > 2u
  3833. </Original>
  3834. <Expanded>
  3835. -1 > 2
  3836. </Expanded>
  3837. </Expression>
  3838. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3839. <Original>
  3840. ( 2u &lt; -1 )
  3841. </Original>
  3842. <Expanded>
  3843. true
  3844. </Expanded>
  3845. </Expression>
  3846. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3847. <Original>
  3848. 2u &lt; -1
  3849. </Original>
  3850. <Expanded>
  3851. 2 &lt; -1
  3852. </Expanded>
  3853. </Expression>
  3854. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3855. <Original>
  3856. ( minInt > 2u )
  3857. </Original>
  3858. <Expanded>
  3859. true
  3860. </Expanded>
  3861. </Expression>
  3862. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3863. <Original>
  3864. minInt > 2u
  3865. </Original>
  3866. <Expanded>
  3867. -2147483648 > 2
  3868. </Expanded>
  3869. </Expression>
  3870. <OverallResult success="true"/>
  3871. </TestCase>
  3872. <TestCase name="Comparisons with int literals don't warn when mixing signed/ unsigned" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3873. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3874. <Original>
  3875. i == 1
  3876. </Original>
  3877. <Expanded>
  3878. 1 == 1
  3879. </Expanded>
  3880. </Expression>
  3881. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3882. <Original>
  3883. ui == 2
  3884. </Original>
  3885. <Expanded>
  3886. 2 == 2
  3887. </Expanded>
  3888. </Expression>
  3889. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3890. <Original>
  3891. l == 3
  3892. </Original>
  3893. <Expanded>
  3894. 3 == 3
  3895. </Expanded>
  3896. </Expression>
  3897. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3898. <Original>
  3899. ul == 4
  3900. </Original>
  3901. <Expanded>
  3902. 4 == 4
  3903. </Expanded>
  3904. </Expression>
  3905. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3906. <Original>
  3907. c == 5
  3908. </Original>
  3909. <Expanded>
  3910. 5 == 5
  3911. </Expanded>
  3912. </Expression>
  3913. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3914. <Original>
  3915. uc == 6
  3916. </Original>
  3917. <Expanded>
  3918. 6 == 6
  3919. </Expanded>
  3920. </Expression>
  3921. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3922. <Original>
  3923. 1 == i
  3924. </Original>
  3925. <Expanded>
  3926. 1 == 1
  3927. </Expanded>
  3928. </Expression>
  3929. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3930. <Original>
  3931. 2 == ui
  3932. </Original>
  3933. <Expanded>
  3934. 2 == 2
  3935. </Expanded>
  3936. </Expression>
  3937. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3938. <Original>
  3939. 3 == l
  3940. </Original>
  3941. <Expanded>
  3942. 3 == 3
  3943. </Expanded>
  3944. </Expression>
  3945. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3946. <Original>
  3947. 4 == ul
  3948. </Original>
  3949. <Expanded>
  3950. 4 == 4
  3951. </Expanded>
  3952. </Expression>
  3953. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3954. <Original>
  3955. 5 == c
  3956. </Original>
  3957. <Expanded>
  3958. 5 == 5
  3959. </Expanded>
  3960. </Expression>
  3961. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3962. <Original>
  3963. 6 == uc
  3964. </Original>
  3965. <Expanded>
  3966. 6 == 6
  3967. </Expanded>
  3968. </Expression>
  3969. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  3970. <Original>
  3971. (std::numeric_limits&lt;uint32_t>::max)() > ul
  3972. </Original>
  3973. <Expanded>
  3974. 4294967295 (0x<hex digits>) > 4
  3975. </Expanded>
  3976. </Expression>
  3977. <OverallResult success="true"/>
  3978. </TestCase>
  3979. <TestCase name="Composed generic matchers shortcircuit" tags="[composed][generic][matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3980. <Section name="MatchAllOf" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3981. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3982. <Original>
  3983. !(matcher.match( 1 ))
  3984. </Original>
  3985. <Expanded>
  3986. !false
  3987. </Expanded>
  3988. </Expression>
  3989. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3990. <Original>
  3991. first.matchCalled
  3992. </Original>
  3993. <Expanded>
  3994. true
  3995. </Expanded>
  3996. </Expression>
  3997. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3998. <Original>
  3999. !second.matchCalled
  4000. </Original>
  4001. <Expanded>
  4002. true
  4003. </Expanded>
  4004. </Expression>
  4005. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  4006. </Section>
  4007. <Section name="MatchAnyOf" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4008. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4009. <Original>
  4010. matcher.match( 1 )
  4011. </Original>
  4012. <Expanded>
  4013. true
  4014. </Expanded>
  4015. </Expression>
  4016. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4017. <Original>
  4018. first.matchCalled
  4019. </Original>
  4020. <Expanded>
  4021. true
  4022. </Expanded>
  4023. </Expression>
  4024. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4025. <Original>
  4026. !second.matchCalled
  4027. </Original>
  4028. <Expanded>
  4029. true
  4030. </Expanded>
  4031. </Expression>
  4032. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  4033. </Section>
  4034. <OverallResult success="true"/>
  4035. </TestCase>
  4036. <TestCase name="Composed matchers shortcircuit" tags="[composed][matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4037. <Section name="MatchAllOf" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4038. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4039. <Original>
  4040. !(matcher.match( 1 ))
  4041. </Original>
  4042. <Expanded>
  4043. !false
  4044. </Expanded>
  4045. </Expression>
  4046. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4047. <Original>
  4048. first.matchCalled
  4049. </Original>
  4050. <Expanded>
  4051. true
  4052. </Expanded>
  4053. </Expression>
  4054. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4055. <Original>
  4056. !second.matchCalled
  4057. </Original>
  4058. <Expanded>
  4059. true
  4060. </Expanded>
  4061. </Expression>
  4062. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  4063. </Section>
  4064. <Section name="MatchAnyOf" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4065. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4066. <Original>
  4067. matcher.match( 1 )
  4068. </Original>
  4069. <Expanded>
  4070. true
  4071. </Expanded>
  4072. </Expression>
  4073. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4074. <Original>
  4075. first.matchCalled
  4076. </Original>
  4077. <Expanded>
  4078. true
  4079. </Expanded>
  4080. </Expression>
  4081. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4082. <Original>
  4083. !second.matchCalled
  4084. </Original>
  4085. <Expanded>
  4086. true
  4087. </Expanded>
  4088. </Expression>
  4089. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  4090. </Section>
  4091. <OverallResult success="true"/>
  4092. </TestCase>
  4093. <TestCase name="Contains string matcher" tags="[.][failing][matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4094. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4095. <Original>
  4096. testStringForMatching(), ContainsSubstring( "not there", Catch::CaseSensitive::No )
  4097. </Original>
  4098. <Expanded>
  4099. "this string contains 'abc' as a substring" contains: "not there" (case insensitive)
  4100. </Expanded>
  4101. </Expression>
  4102. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4103. <Original>
  4104. testStringForMatching(), ContainsSubstring( "STRING" )
  4105. </Original>
  4106. <Expanded>
  4107. "this string contains 'abc' as a substring" contains: "STRING"
  4108. </Expanded>
  4109. </Expression>
  4110. <OverallResult success="false"/>
  4111. </TestCase>
  4112. <TestCase name="Copy and then generate a range" tags="[generators]" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4113. <Section name="from var and iterators" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4114. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4115. <Original>
  4116. elem % 2 == 1
  4117. </Original>
  4118. <Expanded>
  4119. 1 == 1
  4120. </Expanded>
  4121. </Expression>
  4122. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4123. </Section>
  4124. <Section name="from var and iterators" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4125. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4126. <Original>
  4127. elem % 2 == 1
  4128. </Original>
  4129. <Expanded>
  4130. 1 == 1
  4131. </Expanded>
  4132. </Expression>
  4133. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4134. </Section>
  4135. <Section name="from var and iterators" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4136. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4137. <Original>
  4138. elem % 2 == 1
  4139. </Original>
  4140. <Expanded>
  4141. 1 == 1
  4142. </Expanded>
  4143. </Expression>
  4144. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4145. </Section>
  4146. <Section name="from var and iterators" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4147. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4148. <Original>
  4149. elem % 2 == 1
  4150. </Original>
  4151. <Expanded>
  4152. 1 == 1
  4153. </Expanded>
  4154. </Expression>
  4155. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4156. </Section>
  4157. <Section name="from var and iterators" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4158. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4159. <Original>
  4160. elem % 2 == 1
  4161. </Original>
  4162. <Expanded>
  4163. 1 == 1
  4164. </Expanded>
  4165. </Expression>
  4166. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4167. </Section>
  4168. <Section name="from var and iterators" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4169. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4170. <Original>
  4171. elem % 2 == 1
  4172. </Original>
  4173. <Expanded>
  4174. 1 == 1
  4175. </Expanded>
  4176. </Expression>
  4177. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4178. </Section>
  4179. <Section name="From a temporary container" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4180. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4181. <Original>
  4182. elem % 2 == 1
  4183. </Original>
  4184. <Expanded>
  4185. 1 == 1
  4186. </Expanded>
  4187. </Expression>
  4188. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4189. </Section>
  4190. <Section name="From a temporary container" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4191. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4192. <Original>
  4193. elem % 2 == 1
  4194. </Original>
  4195. <Expanded>
  4196. 1 == 1
  4197. </Expanded>
  4198. </Expression>
  4199. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4200. </Section>
  4201. <Section name="From a temporary container" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4202. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4203. <Original>
  4204. elem % 2 == 1
  4205. </Original>
  4206. <Expanded>
  4207. 1 == 1
  4208. </Expanded>
  4209. </Expression>
  4210. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4211. </Section>
  4212. <Section name="From a temporary container" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4213. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4214. <Original>
  4215. elem % 2 == 1
  4216. </Original>
  4217. <Expanded>
  4218. 1 == 1
  4219. </Expanded>
  4220. </Expression>
  4221. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4222. </Section>
  4223. <Section name="From a temporary container" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4224. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4225. <Original>
  4226. elem % 2 == 1
  4227. </Original>
  4228. <Expanded>
  4229. 1 == 1
  4230. </Expanded>
  4231. </Expression>
  4232. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4233. </Section>
  4234. <Section name="From a temporary container" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4235. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4236. <Original>
  4237. elem % 2 == 1
  4238. </Original>
  4239. <Expanded>
  4240. 1 == 1
  4241. </Expanded>
  4242. </Expression>
  4243. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4244. </Section>
  4245. <Section name="Final validation" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4246. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4247. <Original>
  4248. call_count == 1
  4249. </Original>
  4250. <Expanded>
  4251. 1 == 1
  4252. </Expanded>
  4253. </Expression>
  4254. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  4255. <Original>
  4256. make_data().size() == test_count
  4257. </Original>
  4258. <Expanded>
  4259. 6 == 6
  4260. </Expanded>
  4261. </Expression>
  4262. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  4263. </Section>
  4264. <OverallResult success="true"/>
  4265. </TestCase>
  4266. <TestCase name="Cout stream properly declares it writes to stdout" tags="[streams]" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  4267. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  4268. <Original>
  4269. Catch::makeStream( "-" )->isConsole()
  4270. </Original>
  4271. <Expanded>
  4272. true
  4273. </Expanded>
  4274. </Expression>
  4275. <OverallResult success="true"/>
  4276. </TestCase>
  4277. <TestCase name="Custom exceptions can be translated when testing for nothrow" tags="[!throws][.][failing]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4278. <Expression success="false" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4279. <Original>
  4280. throwCustom()
  4281. </Original>
  4282. <Expanded>
  4283. throwCustom()
  4284. </Expanded>
  4285. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4286. custom exception - not std
  4287. </Exception>
  4288. </Expression>
  4289. <OverallResult success="false"/>
  4290. </TestCase>
  4291. <TestCase name="Custom exceptions can be translated when testing for throwing as something else" tags="[!throws][.][failing]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4292. <Expression success="false" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4293. <Original>
  4294. throwCustom(), std::exception
  4295. </Original>
  4296. <Expanded>
  4297. throwCustom(), std::exception
  4298. </Expanded>
  4299. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4300. custom exception - not std
  4301. </Exception>
  4302. </Expression>
  4303. <OverallResult success="false"/>
  4304. </TestCase>
  4305. <TestCase name="Custom std-exceptions can be custom translated" tags="[!throws][.][failing]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4306. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4307. custom std exception
  4308. </Exception>
  4309. <OverallResult success="false"/>
  4310. </TestCase>
  4311. <TestCase name="Default scale is invisible to comparison" tags="[Approx]" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  4312. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  4313. <Original>
  4314. 101.000001 != Approx(100).epsilon(0.01)
  4315. </Original>
  4316. <Expanded>
  4317. 101.000001 != Approx( 100.0 )
  4318. </Expanded>
  4319. </Expression>
  4320. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  4321. <Original>
  4322. std::pow(10, -5) != Approx(std::pow(10, -7))
  4323. </Original>
  4324. <Expanded>
  4325. 0.00001 != Approx( 0.0000001 )
  4326. </Expanded>
  4327. </Expression>
  4328. <OverallResult success="true"/>
  4329. </TestCase>
  4330. <TestCase name="Directly creating an EnumInfo" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  4331. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  4332. <Original>
  4333. enumInfo->lookup(0) == "Value1"
  4334. </Original>
  4335. <Expanded>
  4336. Value1 == "Value1"
  4337. </Expanded>
  4338. </Expression>
  4339. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  4340. <Original>
  4341. enumInfo->lookup(1) == "Value2"
  4342. </Original>
  4343. <Expanded>
  4344. Value2 == "Value2"
  4345. </Expanded>
  4346. </Expression>
  4347. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  4348. <Original>
  4349. enumInfo->lookup(3) == "{** unexpected enum value **}"
  4350. </Original>
  4351. <Expanded>
  4352. {** unexpected enum value **}
  4353. ==
  4354. "{** unexpected enum value **}"
  4355. </Expanded>
  4356. </Expression>
  4357. <OverallResult success="true"/>
  4358. </TestCase>
  4359. <TestCase name="Empty stream name opens cout stream" tags="[streams]" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  4360. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  4361. <Original>
  4362. Catch::makeStream( "" )->isConsole()
  4363. </Original>
  4364. <Expanded>
  4365. true
  4366. </Expanded>
  4367. </Expression>
  4368. <OverallResult success="true"/>
  4369. </TestCase>
  4370. <TestCase name="Empty tag is not allowed" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  4371. <Expression success="true" type="REQUIRE_THROWS" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  4372. <Original>
  4373. Catch::TestCaseInfo( "", { "fake test name", "[]" }, dummySourceLineInfo )
  4374. </Original>
  4375. <Expanded>
  4376. Catch::TestCaseInfo( "", { "fake test name", "[]" }, dummySourceLineInfo )
  4377. </Expanded>
  4378. </Expression>
  4379. <OverallResult success="true"/>
  4380. </TestCase>
  4381. <TestCase name="EndsWith string matcher" tags="[.][failing][matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4382. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4383. <Original>
  4384. testStringForMatching(), EndsWith( "Substring" )
  4385. </Original>
  4386. <Expanded>
  4387. "this string contains 'abc' as a substring" ends with: "Substring"
  4388. </Expanded>
  4389. </Expression>
  4390. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4391. <Original>
  4392. testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No )
  4393. </Original>
  4394. <Expanded>
  4395. "this string contains 'abc' as a substring" ends with: "this" (case insensitive)
  4396. </Expanded>
  4397. </Expression>
  4398. <OverallResult success="false"/>
  4399. </TestCase>
  4400. <TestCase name="Enums can quickly have stringification enabled using REGISTER_ENUM" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  4401. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  4402. <Original>
  4403. stringify( EnumClass3::Value1 ) == "Value1"
  4404. </Original>
  4405. <Expanded>
  4406. "Value1" == "Value1"
  4407. </Expanded>
  4408. </Expression>
  4409. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  4410. <Original>
  4411. stringify( EnumClass3::Value2 ) == "Value2"
  4412. </Original>
  4413. <Expanded>
  4414. "Value2" == "Value2"
  4415. </Expanded>
  4416. </Expression>
  4417. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  4418. <Original>
  4419. stringify( EnumClass3::Value3 ) == "Value3"
  4420. </Original>
  4421. <Expanded>
  4422. "Value3" == "Value3"
  4423. </Expanded>
  4424. </Expression>
  4425. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  4426. <Original>
  4427. stringify( EnumClass3::Value4 ) == "{** unexpected enum value **}"
  4428. </Original>
  4429. <Expanded>
  4430. "{** unexpected enum value **}"
  4431. ==
  4432. "{** unexpected enum value **}"
  4433. </Expanded>
  4434. </Expression>
  4435. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  4436. <Original>
  4437. stringify( ec3 ) == "Value2"
  4438. </Original>
  4439. <Expanded>
  4440. "Value2" == "Value2"
  4441. </Expanded>
  4442. </Expression>
  4443. <OverallResult success="true"/>
  4444. </TestCase>
  4445. <TestCase name="Enums in namespaces can quickly have stringification enabled using REGISTER_ENUM" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  4446. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  4447. <Original>
  4448. stringify( Bikeshed::Colours::Red ) == "Red"
  4449. </Original>
  4450. <Expanded>
  4451. "Red" == "Red"
  4452. </Expanded>
  4453. </Expression>
  4454. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  4455. <Original>
  4456. stringify( Bikeshed::Colours::Blue ) == "Blue"
  4457. </Original>
  4458. <Expanded>
  4459. "Blue" == "Blue"
  4460. </Expanded>
  4461. </Expression>
  4462. <OverallResult success="true"/>
  4463. </TestCase>
  4464. <TestCase name="Epsilon only applies to Approx's value" tags="[Approx]" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  4465. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  4466. <Original>
  4467. 101.01 != Approx(100).epsilon(0.01)
  4468. </Original>
  4469. <Expanded>
  4470. 101.01 != Approx( 100.0 )
  4471. </Expanded>
  4472. </Expression>
  4473. <OverallResult success="true"/>
  4474. </TestCase>
  4475. <TestCase name="Equality checks that should fail" tags="[!mayfail][.][failing]" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4476. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4477. <Original>
  4478. data.int_seven == 6
  4479. </Original>
  4480. <Expanded>
  4481. 7 == 6
  4482. </Expanded>
  4483. </Expression>
  4484. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4485. <Original>
  4486. data.int_seven == 8
  4487. </Original>
  4488. <Expanded>
  4489. 7 == 8
  4490. </Expanded>
  4491. </Expression>
  4492. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4493. <Original>
  4494. data.int_seven == 0
  4495. </Original>
  4496. <Expanded>
  4497. 7 == 0
  4498. </Expanded>
  4499. </Expression>
  4500. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4501. <Original>
  4502. data.float_nine_point_one == Approx( 9.11f )
  4503. </Original>
  4504. <Expanded>
  4505. 9.1f == Approx( 9.1099996567 )
  4506. </Expanded>
  4507. </Expression>
  4508. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4509. <Original>
  4510. data.float_nine_point_one == Approx( 9.0f )
  4511. </Original>
  4512. <Expanded>
  4513. 9.1f == Approx( 9.0 )
  4514. </Expanded>
  4515. </Expression>
  4516. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4517. <Original>
  4518. data.float_nine_point_one == Approx( 1 )
  4519. </Original>
  4520. <Expanded>
  4521. 9.1f == Approx( 1.0 )
  4522. </Expanded>
  4523. </Expression>
  4524. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4525. <Original>
  4526. data.float_nine_point_one == Approx( 0 )
  4527. </Original>
  4528. <Expanded>
  4529. 9.1f == Approx( 0.0 )
  4530. </Expanded>
  4531. </Expression>
  4532. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4533. <Original>
  4534. data.double_pi == Approx( 3.1415 )
  4535. </Original>
  4536. <Expanded>
  4537. 3.1415926535 == Approx( 3.1415 )
  4538. </Expanded>
  4539. </Expression>
  4540. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4541. <Original>
  4542. data.str_hello == "goodbye"
  4543. </Original>
  4544. <Expanded>
  4545. "hello" == "goodbye"
  4546. </Expanded>
  4547. </Expression>
  4548. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4549. <Original>
  4550. data.str_hello == "hell"
  4551. </Original>
  4552. <Expanded>
  4553. "hello" == "hell"
  4554. </Expanded>
  4555. </Expression>
  4556. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4557. <Original>
  4558. data.str_hello == "hello1"
  4559. </Original>
  4560. <Expanded>
  4561. "hello" == "hello1"
  4562. </Expanded>
  4563. </Expression>
  4564. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4565. <Original>
  4566. data.str_hello.size() == 6
  4567. </Original>
  4568. <Expanded>
  4569. 5 == 6
  4570. </Expanded>
  4571. </Expression>
  4572. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4573. <Original>
  4574. x == Approx( 1.301 )
  4575. </Original>
  4576. <Expanded>
  4577. 1.3 == Approx( 1.301 )
  4578. </Expanded>
  4579. </Expression>
  4580. <OverallResult success="true"/>
  4581. </TestCase>
  4582. <TestCase name="Equality checks that should succeed" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4583. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4584. <Original>
  4585. data.int_seven == 7
  4586. </Original>
  4587. <Expanded>
  4588. 7 == 7
  4589. </Expanded>
  4590. </Expression>
  4591. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4592. <Original>
  4593. data.float_nine_point_one == Approx( 9.1f )
  4594. </Original>
  4595. <Expanded>
  4596. 9.1f == Approx( 9.1000003815 )
  4597. </Expanded>
  4598. </Expression>
  4599. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4600. <Original>
  4601. data.double_pi == Approx( 3.1415926535 )
  4602. </Original>
  4603. <Expanded>
  4604. 3.1415926535 == Approx( 3.1415926535 )
  4605. </Expanded>
  4606. </Expression>
  4607. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4608. <Original>
  4609. data.str_hello == "hello"
  4610. </Original>
  4611. <Expanded>
  4612. "hello" == "hello"
  4613. </Expanded>
  4614. </Expression>
  4615. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4616. <Original>
  4617. "hello" == data.str_hello
  4618. </Original>
  4619. <Expanded>
  4620. "hello" == "hello"
  4621. </Expanded>
  4622. </Expression>
  4623. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4624. <Original>
  4625. data.str_hello.size() == 5
  4626. </Original>
  4627. <Expanded>
  4628. 5 == 5
  4629. </Expanded>
  4630. </Expression>
  4631. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  4632. <Original>
  4633. x == Approx( 1.3 )
  4634. </Original>
  4635. <Expanded>
  4636. 1.3 == Approx( 1.3 )
  4637. </Expanded>
  4638. </Expression>
  4639. <OverallResult success="true"/>
  4640. </TestCase>
  4641. <TestCase name="Equals" tags="[matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4642. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4643. <Original>
  4644. testStringForMatching(), Equals( "this string contains 'abc' as a substring" )
  4645. </Original>
  4646. <Expanded>
  4647. "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring"
  4648. </Expanded>
  4649. </Expression>
  4650. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4651. <Original>
  4652. testStringForMatching(), Equals( "this string contains 'ABC' as a substring", Catch::CaseSensitive::No )
  4653. </Original>
  4654. <Expanded>
  4655. "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" (case insensitive)
  4656. </Expanded>
  4657. </Expression>
  4658. <OverallResult success="true"/>
  4659. </TestCase>
  4660. <TestCase name="Equals string matcher" tags="[.][failing][matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4661. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4662. <Original>
  4663. testStringForMatching(), Equals( "this string contains 'ABC' as a substring" )
  4664. </Original>
  4665. <Expanded>
  4666. "this string contains 'abc' as a substring" equals: "this string contains 'ABC' as a substring"
  4667. </Expanded>
  4668. </Expression>
  4669. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4670. <Original>
  4671. testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No )
  4672. </Original>
  4673. <Expanded>
  4674. "this string contains 'abc' as a substring" equals: "something else" (case insensitive)
  4675. </Expanded>
  4676. </Expression>
  4677. <OverallResult success="false"/>
  4678. </TestCase>
  4679. <TestCase name="Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified" tags="[exception][toString]" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  4680. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  4681. <Original>
  4682. ::Catch::Detail::stringify(WhatException{}) == "This exception has overridden what() method"
  4683. </Original>
  4684. <Expanded>
  4685. "This exception has overridden what() method"
  4686. ==
  4687. "This exception has overridden what() method"
  4688. </Expanded>
  4689. </Expression>
  4690. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  4691. <Original>
  4692. ::Catch::Detail::stringify(OperatorException{}) == "OperatorException"
  4693. </Original>
  4694. <Expanded>
  4695. "OperatorException" == "OperatorException"
  4696. </Expanded>
  4697. </Expression>
  4698. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  4699. <Original>
  4700. ::Catch::Detail::stringify(StringMakerException{}) == "StringMakerException"
  4701. </Original>
  4702. <Expanded>
  4703. "StringMakerException"
  4704. ==
  4705. "StringMakerException"
  4706. </Expanded>
  4707. </Expression>
  4708. <OverallResult success="true"/>
  4709. </TestCase>
  4710. <TestCase name="Exception matchers that fail" tags="[!throws][.][exceptions][failing][matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4711. <Section name="No exception" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4712. <Expression success="false" type="CHECK_THROWS_MATCHES" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4713. <Original>
  4714. doesNotThrow(), SpecialException, ExceptionMatcher{ 1 }
  4715. </Original>
  4716. <Expanded>
  4717. doesNotThrow(), SpecialException, ExceptionMatcher{ 1 }
  4718. </Expanded>
  4719. </Expression>
  4720. <Expression success="false" type="REQUIRE_THROWS_MATCHES" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4721. <Original>
  4722. doesNotThrow(), SpecialException, ExceptionMatcher{ 1 }
  4723. </Original>
  4724. <Expanded>
  4725. doesNotThrow(), SpecialException, ExceptionMatcher{ 1 }
  4726. </Expanded>
  4727. </Expression>
  4728. <OverallResults successes="0" failures="2" expectedFailures="0"/>
  4729. </Section>
  4730. <Section name="Type mismatch" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4731. <Expression success="false" type="CHECK_THROWS_MATCHES" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4732. <Original>
  4733. throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 }
  4734. </Original>
  4735. <Expanded>
  4736. throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 }
  4737. </Expanded>
  4738. <Exception filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4739. Unknown exception
  4740. </Exception>
  4741. </Expression>
  4742. <Expression success="false" type="REQUIRE_THROWS_MATCHES" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4743. <Original>
  4744. throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 }
  4745. </Original>
  4746. <Expanded>
  4747. throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 }
  4748. </Expanded>
  4749. <Exception filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4750. Unknown exception
  4751. </Exception>
  4752. </Expression>
  4753. <OverallResults successes="0" failures="2" expectedFailures="0"/>
  4754. </Section>
  4755. <Section name="Contents are wrong" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4756. <Expression success="false" type="CHECK_THROWS_MATCHES" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4757. <Original>
  4758. throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 }
  4759. </Original>
  4760. <Expanded>
  4761. SpecialException::what special exception has value of 1
  4762. </Expanded>
  4763. </Expression>
  4764. <Expression success="false" type="REQUIRE_THROWS_MATCHES" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4765. <Original>
  4766. throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 }
  4767. </Original>
  4768. <Expanded>
  4769. SpecialException::what special exception has value of 1
  4770. </Expanded>
  4771. </Expression>
  4772. <OverallResults successes="0" failures="2" expectedFailures="0"/>
  4773. </Section>
  4774. <OverallResult success="false"/>
  4775. </TestCase>
  4776. <TestCase name="Exception matchers that succeed" tags="[!throws][exceptions][matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4777. <Expression success="true" type="CHECK_THROWS_MATCHES" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4778. <Original>
  4779. throwsSpecialException( 1 ), SpecialException, ExceptionMatcher{ 1 }
  4780. </Original>
  4781. <Expanded>
  4782. SpecialException::what special exception has value of 1
  4783. </Expanded>
  4784. </Expression>
  4785. <Expression success="true" type="REQUIRE_THROWS_MATCHES" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4786. <Original>
  4787. throwsSpecialException( 2 ), SpecialException, ExceptionMatcher{ 2 }
  4788. </Original>
  4789. <Expanded>
  4790. SpecialException::what special exception has value of 2
  4791. </Expanded>
  4792. </Expression>
  4793. <OverallResult success="true"/>
  4794. </TestCase>
  4795. <TestCase name="Exception messages can be tested for" tags="[!throws]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4796. <Section name="exact match" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4797. <Expression success="true" type="REQUIRE_THROWS_WITH" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4798. <Original>
  4799. thisThrows(), "expected exception"
  4800. </Original>
  4801. <Expanded>
  4802. "expected exception" equals: "expected exception"
  4803. </Expanded>
  4804. </Expression>
  4805. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4806. </Section>
  4807. <Section name="different case" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4808. <Expression success="true" type="REQUIRE_THROWS_WITH" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4809. <Original>
  4810. thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No )
  4811. </Original>
  4812. <Expanded>
  4813. "expected exception" equals: "expected exception" (case insensitive)
  4814. </Expanded>
  4815. </Expression>
  4816. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4817. </Section>
  4818. <Section name="wildcarded" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4819. <Expression success="true" type="REQUIRE_THROWS_WITH" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4820. <Original>
  4821. thisThrows(), StartsWith( "expected" )
  4822. </Original>
  4823. <Expanded>
  4824. "expected exception" starts with: "expected"
  4825. </Expanded>
  4826. </Expression>
  4827. <Expression success="true" type="REQUIRE_THROWS_WITH" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4828. <Original>
  4829. thisThrows(), EndsWith( "exception" )
  4830. </Original>
  4831. <Expanded>
  4832. "expected exception" ends with: "exception"
  4833. </Expanded>
  4834. </Expression>
  4835. <Expression success="true" type="REQUIRE_THROWS_WITH" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4836. <Original>
  4837. thisThrows(), ContainsSubstring( "except" )
  4838. </Original>
  4839. <Expanded>
  4840. "expected exception" contains: "except"
  4841. </Expanded>
  4842. </Expression>
  4843. <Expression success="true" type="REQUIRE_THROWS_WITH" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4844. <Original>
  4845. thisThrows(), ContainsSubstring( "exCept", Catch::CaseSensitive::No )
  4846. </Original>
  4847. <Expanded>
  4848. "expected exception" contains: "except" (case insensitive)
  4849. </Expanded>
  4850. </Expression>
  4851. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  4852. </Section>
  4853. <OverallResult success="true"/>
  4854. </TestCase>
  4855. <TestCase name="Exceptions matchers" tags="[!throws][exceptions][matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4856. <Expression success="true" type="REQUIRE_THROWS_MATCHES" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4857. <Original>
  4858. throwsDerivedException(), DerivedException, Message( "DerivedException::what" )
  4859. </Original>
  4860. <Expanded>
  4861. DerivedException::what exception message matches "DerivedException::what"
  4862. </Expanded>
  4863. </Expression>
  4864. <Expression success="true" type="REQUIRE_THROWS_MATCHES" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4865. <Original>
  4866. throwsDerivedException(), DerivedException, !Message( "derivedexception::what" )
  4867. </Original>
  4868. <Expanded>
  4869. DerivedException::what not exception message matches "derivedexception::what"
  4870. </Expanded>
  4871. </Expression>
  4872. <Expression success="true" type="REQUIRE_THROWS_MATCHES" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4873. <Original>
  4874. throwsSpecialException( 2 ), SpecialException, !Message( "DerivedException::what" )
  4875. </Original>
  4876. <Expanded>
  4877. SpecialException::what not exception message matches "DerivedException::what"
  4878. </Expanded>
  4879. </Expression>
  4880. <Expression success="true" type="REQUIRE_THROWS_MATCHES" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4881. <Original>
  4882. throwsSpecialException( 2 ), SpecialException, Message( "SpecialException::what" )
  4883. </Original>
  4884. <Expanded>
  4885. SpecialException::what exception message matches "SpecialException::what"
  4886. </Expanded>
  4887. </Expression>
  4888. <OverallResult success="true"/>
  4889. </TestCase>
  4890. <TestCase name="Expected exceptions that don't throw or unexpected exceptions fail the test" tags="[!throws][.][failing]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4891. <Expression success="false" type="CHECK_THROWS_AS" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4892. <Original>
  4893. thisThrows(), std::string
  4894. </Original>
  4895. <Expanded>
  4896. thisThrows(), std::string
  4897. </Expanded>
  4898. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4899. expected exception
  4900. </Exception>
  4901. </Expression>
  4902. <Expression success="false" type="CHECK_THROWS_AS" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4903. <Original>
  4904. thisDoesntThrow(), std::domain_error
  4905. </Original>
  4906. <Expanded>
  4907. thisDoesntThrow(), std::domain_error
  4908. </Expanded>
  4909. </Expression>
  4910. <Expression success="false" type="CHECK_NOTHROW" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4911. <Original>
  4912. thisThrows()
  4913. </Original>
  4914. <Expanded>
  4915. thisThrows()
  4916. </Expanded>
  4917. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  4918. expected exception
  4919. </Exception>
  4920. </Expression>
  4921. <OverallResult success="false"/>
  4922. </TestCase>
  4923. <TestCase name="FAIL aborts the test" tags="[.][failing][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  4924. <Failure filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  4925. This is a failure
  4926. </Failure>
  4927. <OverallResult success="false"/>
  4928. </TestCase>
  4929. <TestCase name="FAIL does not require an argument" tags="[.][failing][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  4930. <Failure filename="tests/<exe-name>/UsageTests/Message.tests.cpp" />
  4931. <OverallResult success="false"/>
  4932. </TestCase>
  4933. <TestCase name="FAIL_CHECK does not abort the test" tags="[.][failing][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  4934. <Failure filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  4935. This is a failure
  4936. </Failure>
  4937. <Warning>
  4938. This message appears in the output
  4939. </Warning>
  4940. <OverallResult success="false"/>
  4941. </TestCase>
  4942. <TestCase name="Factorials are computed" tags="[factorial]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  4943. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  4944. <Original>
  4945. Factorial(0) == 1
  4946. </Original>
  4947. <Expanded>
  4948. 1 == 1
  4949. </Expanded>
  4950. </Expression>
  4951. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  4952. <Original>
  4953. Factorial(1) == 1
  4954. </Original>
  4955. <Expanded>
  4956. 1 == 1
  4957. </Expanded>
  4958. </Expression>
  4959. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  4960. <Original>
  4961. Factorial(2) == 2
  4962. </Original>
  4963. <Expanded>
  4964. 2 == 2
  4965. </Expanded>
  4966. </Expression>
  4967. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  4968. <Original>
  4969. Factorial(3) == 6
  4970. </Original>
  4971. <Expanded>
  4972. 6 == 6
  4973. </Expanded>
  4974. </Expression>
  4975. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  4976. <Original>
  4977. Factorial(10) == 3628800
  4978. </Original>
  4979. <Expanded>
  4980. 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
  4981. </Expanded>
  4982. </Expression>
  4983. <OverallResult success="true"/>
  4984. </TestCase>
  4985. <TestCase name="Floating point matchers: double" tags="[floating-point][matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4986. <Section name="Relative" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4987. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4988. <Original>
  4989. 10., WithinRel( 11.1, 0.1 )
  4990. </Original>
  4991. <Expanded>
  4992. 10.0 and 11.1 are within 10% of each other
  4993. </Expanded>
  4994. </Expression>
  4995. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4996. <Original>
  4997. 10., !WithinRel( 11.2, 0.1 )
  4998. </Original>
  4999. <Expanded>
  5000. 10.0 not and 11.2 are within 10% of each other
  5001. </Expanded>
  5002. </Expression>
  5003. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5004. <Original>
  5005. 1., !WithinRel( 0., 0.99 )
  5006. </Original>
  5007. <Expanded>
  5008. 1.0 not and 0 are within 99% of each other
  5009. </Expanded>
  5010. </Expression>
  5011. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5012. <Original>
  5013. -0., WithinRel( 0. )
  5014. </Original>
  5015. <Expanded>
  5016. -0.0 and 0 are within 2.22045e-12% of each other
  5017. </Expanded>
  5018. </Expression>
  5019. <Section name="Some subnormal values" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5020. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5021. <Original>
  5022. v1, WithinRel( v2 )
  5023. </Original>
  5024. <Expanded>
  5025. 0.0 and 2.22507e-308 are within 2.22045e-12% of each other
  5026. </Expanded>
  5027. </Expression>
  5028. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5029. </Section>
  5030. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  5031. </Section>
  5032. <Section name="Margin" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5033. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5034. <Original>
  5035. 1., WithinAbs( 1., 0 )
  5036. </Original>
  5037. <Expanded>
  5038. 1.0 is within 0.0 of 1.0
  5039. </Expanded>
  5040. </Expression>
  5041. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5042. <Original>
  5043. 0., WithinAbs( 1., 1 )
  5044. </Original>
  5045. <Expanded>
  5046. 0.0 is within 1.0 of 1.0
  5047. </Expanded>
  5048. </Expression>
  5049. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5050. <Original>
  5051. 0., !WithinAbs( 1., 0.99 )
  5052. </Original>
  5053. <Expanded>
  5054. 0.0 not is within 0.99 of 1.0
  5055. </Expanded>
  5056. </Expression>
  5057. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5058. <Original>
  5059. 0., !WithinAbs( 1., 0.99 )
  5060. </Original>
  5061. <Expanded>
  5062. 0.0 not is within 0.99 of 1.0
  5063. </Expanded>
  5064. </Expression>
  5065. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5066. <Original>
  5067. 11., !WithinAbs( 10., 0.5 )
  5068. </Original>
  5069. <Expanded>
  5070. 11.0 not is within 0.5 of 10.0
  5071. </Expanded>
  5072. </Expression>
  5073. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5074. <Original>
  5075. 10., !WithinAbs( 11., 0.5 )
  5076. </Original>
  5077. <Expanded>
  5078. 10.0 not is within 0.5 of 11.0
  5079. </Expanded>
  5080. </Expression>
  5081. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5082. <Original>
  5083. -10., WithinAbs( -10., 0.5 )
  5084. </Original>
  5085. <Expanded>
  5086. -10.0 is within 0.5 of -10.0
  5087. </Expanded>
  5088. </Expression>
  5089. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5090. <Original>
  5091. -10., WithinAbs( -9.6, 0.5 )
  5092. </Original>
  5093. <Expanded>
  5094. -10.0 is within 0.5 of -9.6
  5095. </Expanded>
  5096. </Expression>
  5097. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  5098. </Section>
  5099. <Section name="ULPs" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5100. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5101. <Original>
  5102. 1., WithinULP( 1., 0 )
  5103. </Original>
  5104. <Expanded>
  5105. 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00])
  5106. </Expanded>
  5107. </Expression>
  5108. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5109. <Original>
  5110. nextafter( 1., 2. ), WithinULP( 1., 1 )
  5111. </Original>
  5112. <Expanded>
  5113. 1.0 is within 1 ULPs of 1.0000000000000000e+00 ([9.9999999999999989e-01, 1.0000000000000002e+00])
  5114. </Expanded>
  5115. </Expression>
  5116. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5117. <Original>
  5118. 0., WithinULP( nextafter( 0., 1. ), 1 )
  5119. </Original>
  5120. <Expanded>
  5121. 0.0 is within 1 ULPs of 4.9406564584124654e-324 ([0.0000000000000000e+00, 9.8813129168249309e-324])
  5122. </Expanded>
  5123. </Expression>
  5124. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5125. <Original>
  5126. 1., WithinULP( nextafter( 1., 0. ), 1 )
  5127. </Original>
  5128. <Expanded>
  5129. 1.0 is within 1 ULPs of 9.9999999999999989e-01 ([9.9999999999999978e-01, 1.0000000000000000e+00])
  5130. </Expanded>
  5131. </Expression>
  5132. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5133. <Original>
  5134. 1., !WithinULP( nextafter( 1., 2. ), 0 )
  5135. </Original>
  5136. <Expanded>
  5137. 1.0 not is within 0 ULPs of 1.0000000000000002e+00 ([1.0000000000000002e+00, 1.0000000000000002e+00])
  5138. </Expanded>
  5139. </Expression>
  5140. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5141. <Original>
  5142. 1., WithinULP( 1., 0 )
  5143. </Original>
  5144. <Expanded>
  5145. 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00])
  5146. </Expanded>
  5147. </Expression>
  5148. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5149. <Original>
  5150. -0., WithinULP( 0., 0 )
  5151. </Original>
  5152. <Expanded>
  5153. -0.0 is within 0 ULPs of 0.0000000000000000e+00 ([0.0000000000000000e+00, 0.0000000000000000e+00])
  5154. </Expanded>
  5155. </Expression>
  5156. <OverallResults successes="7" failures="0" expectedFailures="0"/>
  5157. </Section>
  5158. <Section name="Composed" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5159. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5160. <Original>
  5161. 1., WithinAbs( 1., 0.5 ) || WithinULP( 2., 1 )
  5162. </Original>
  5163. <Expanded>
  5164. 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0000000000000000e+00 ([1.9999999999999998e+00, 2.0000000000000004e+00]) )
  5165. </Expanded>
  5166. </Expression>
  5167. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5168. <Original>
  5169. 1., WithinAbs( 2., 0.5 ) || WithinULP( 1., 0 )
  5170. </Original>
  5171. <Expanded>
  5172. 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00]) )
  5173. </Expanded>
  5174. </Expression>
  5175. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5176. <Original>
  5177. 0.0001, WithinAbs( 0., 0.001 ) || WithinRel( 0., 0.1 )
  5178. </Original>
  5179. <Expanded>
  5180. 0.0001 ( is within 0.001 of 0.0 or and 0 are within 10% of each other )
  5181. </Expanded>
  5182. </Expression>
  5183. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  5184. </Section>
  5185. <Section name="Constructor validation" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5186. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5187. <Original>
  5188. WithinAbs( 1., 0. )
  5189. </Original>
  5190. <Expanded>
  5191. WithinAbs( 1., 0. )
  5192. </Expanded>
  5193. </Expression>
  5194. <Expression success="true" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5195. <Original>
  5196. WithinAbs( 1., -1. ), std::domain_error
  5197. </Original>
  5198. <Expanded>
  5199. WithinAbs( 1., -1. ), std::domain_error
  5200. </Expanded>
  5201. </Expression>
  5202. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5203. <Original>
  5204. WithinULP( 1., 0 )
  5205. </Original>
  5206. <Expanded>
  5207. WithinULP( 1., 0 )
  5208. </Expanded>
  5209. </Expression>
  5210. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5211. <Original>
  5212. WithinRel( 1., 0. )
  5213. </Original>
  5214. <Expanded>
  5215. WithinRel( 1., 0. )
  5216. </Expanded>
  5217. </Expression>
  5218. <Expression success="true" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5219. <Original>
  5220. WithinRel( 1., -0.2 ), std::domain_error
  5221. </Original>
  5222. <Expanded>
  5223. WithinRel( 1., -0.2 ), std::domain_error
  5224. </Expanded>
  5225. </Expression>
  5226. <Expression success="true" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5227. <Original>
  5228. WithinRel( 1., 1. ), std::domain_error
  5229. </Original>
  5230. <Expanded>
  5231. WithinRel( 1., 1. ), std::domain_error
  5232. </Expanded>
  5233. </Expression>
  5234. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  5235. </Section>
  5236. <OverallResult success="true"/>
  5237. </TestCase>
  5238. <TestCase name="Floating point matchers: float" tags="[floating-point][matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5239. <Section name="Relative" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5240. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5241. <Original>
  5242. 10.f, WithinRel( 11.1f, 0.1f )
  5243. </Original>
  5244. <Expanded>
  5245. 10.0f and 11.1 are within 10% of each other
  5246. </Expanded>
  5247. </Expression>
  5248. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5249. <Original>
  5250. 10.f, !WithinRel( 11.2f, 0.1f )
  5251. </Original>
  5252. <Expanded>
  5253. 10.0f not and 11.2 are within 10% of each other
  5254. </Expanded>
  5255. </Expression>
  5256. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5257. <Original>
  5258. 1.f, !WithinRel( 0.f, 0.99f )
  5259. </Original>
  5260. <Expanded>
  5261. 1.0f not and 0 are within 99% of each other
  5262. </Expanded>
  5263. </Expression>
  5264. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5265. <Original>
  5266. -0.f, WithinRel( 0.f )
  5267. </Original>
  5268. <Expanded>
  5269. -0.0f and 0 are within 0.00119209% of each other
  5270. </Expanded>
  5271. </Expression>
  5272. <Section name="Some subnormal values" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5273. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5274. <Original>
  5275. v1, WithinRel( v2 )
  5276. </Original>
  5277. <Expanded>
  5278. 0.0f and 1.17549e-38 are within 0.00119209% of each other
  5279. </Expanded>
  5280. </Expression>
  5281. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5282. </Section>
  5283. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  5284. </Section>
  5285. <Section name="Margin" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5286. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5287. <Original>
  5288. 1.f, WithinAbs( 1.f, 0 )
  5289. </Original>
  5290. <Expanded>
  5291. 1.0f is within 0.0 of 1.0
  5292. </Expanded>
  5293. </Expression>
  5294. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5295. <Original>
  5296. 0.f, WithinAbs( 1.f, 1 )
  5297. </Original>
  5298. <Expanded>
  5299. 0.0f is within 1.0 of 1.0
  5300. </Expanded>
  5301. </Expression>
  5302. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5303. <Original>
  5304. 0.f, !WithinAbs( 1.f, 0.99f )
  5305. </Original>
  5306. <Expanded>
  5307. 0.0f not is within 0.9900000095 of 1.0
  5308. </Expanded>
  5309. </Expression>
  5310. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5311. <Original>
  5312. 0.f, !WithinAbs( 1.f, 0.99f )
  5313. </Original>
  5314. <Expanded>
  5315. 0.0f not is within 0.9900000095 of 1.0
  5316. </Expanded>
  5317. </Expression>
  5318. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5319. <Original>
  5320. 0.f, WithinAbs( -0.f, 0 )
  5321. </Original>
  5322. <Expanded>
  5323. 0.0f is within 0.0 of -0.0
  5324. </Expanded>
  5325. </Expression>
  5326. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5327. <Original>
  5328. 11.f, !WithinAbs( 10.f, 0.5f )
  5329. </Original>
  5330. <Expanded>
  5331. 11.0f not is within 0.5 of 10.0
  5332. </Expanded>
  5333. </Expression>
  5334. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5335. <Original>
  5336. 10.f, !WithinAbs( 11.f, 0.5f )
  5337. </Original>
  5338. <Expanded>
  5339. 10.0f not is within 0.5 of 11.0
  5340. </Expanded>
  5341. </Expression>
  5342. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5343. <Original>
  5344. -10.f, WithinAbs( -10.f, 0.5f )
  5345. </Original>
  5346. <Expanded>
  5347. -10.0f is within 0.5 of -10.0
  5348. </Expanded>
  5349. </Expression>
  5350. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5351. <Original>
  5352. -10.f, WithinAbs( -9.6f, 0.5f )
  5353. </Original>
  5354. <Expanded>
  5355. -10.0f is within 0.5 of -9.6000003815
  5356. </Expanded>
  5357. </Expression>
  5358. <OverallResults successes="9" failures="0" expectedFailures="0"/>
  5359. </Section>
  5360. <Section name="ULPs" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5361. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5362. <Original>
  5363. 1.f, WithinULP( 1.f, 0 )
  5364. </Original>
  5365. <Expanded>
  5366. 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
  5367. </Expanded>
  5368. </Expression>
  5369. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5370. <Original>
  5371. -1.f, WithinULP( -1.f, 0 )
  5372. </Original>
  5373. <Expanded>
  5374. -1.0f is within 0 ULPs of -1.00000000e+00f ([-1.00000000e+00, -1.00000000e+00])
  5375. </Expanded>
  5376. </Expression>
  5377. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5378. <Original>
  5379. nextafter( 1.f, 2.f ), WithinULP( 1.f, 1 )
  5380. </Original>
  5381. <Expanded>
  5382. 1.0f is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00])
  5383. </Expanded>
  5384. </Expression>
  5385. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5386. <Original>
  5387. 0.f, WithinULP( nextafter( 0.f, 1.f ), 1 )
  5388. </Original>
  5389. <Expanded>
  5390. 0.0f is within 1 ULPs of 1.40129846e-45f ([0.00000000e+00, 2.80259693e-45])
  5391. </Expanded>
  5392. </Expression>
  5393. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5394. <Original>
  5395. 1.f, WithinULP( nextafter( 1.f, 0.f ), 1 )
  5396. </Original>
  5397. <Expanded>
  5398. 1.0f is within 1 ULPs of 9.99999940e-01f ([9.99999881e-01, 1.00000000e+00])
  5399. </Expanded>
  5400. </Expression>
  5401. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5402. <Original>
  5403. 1.f, !WithinULP( nextafter( 1.f, 2.f ), 0 )
  5404. </Original>
  5405. <Expanded>
  5406. 1.0f not is within 0 ULPs of 1.00000012e+00f ([1.00000012e+00, 1.00000012e+00])
  5407. </Expanded>
  5408. </Expression>
  5409. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5410. <Original>
  5411. 1.f, WithinULP( 1.f, 0 )
  5412. </Original>
  5413. <Expanded>
  5414. 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
  5415. </Expanded>
  5416. </Expression>
  5417. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5418. <Original>
  5419. -0.f, WithinULP( 0.f, 0 )
  5420. </Original>
  5421. <Expanded>
  5422. -0.0f is within 0 ULPs of 0.00000000e+00f ([0.00000000e+00, 0.00000000e+00])
  5423. </Expanded>
  5424. </Expression>
  5425. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  5426. </Section>
  5427. <Section name="Composed" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5428. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5429. <Original>
  5430. 1.f, WithinAbs( 1.f, 0.5 ) || WithinULP( 1.f, 1 )
  5431. </Original>
  5432. <Expanded>
  5433. 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00]) )
  5434. </Expanded>
  5435. </Expression>
  5436. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5437. <Original>
  5438. 1.f, WithinAbs( 2.f, 0.5 ) || WithinULP( 1.f, 0 )
  5439. </Original>
  5440. <Expanded>
  5441. 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00]) )
  5442. </Expanded>
  5443. </Expression>
  5444. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5445. <Original>
  5446. 0.0001f, WithinAbs( 0.f, 0.001f ) || WithinRel( 0.f, 0.1f )
  5447. </Original>
  5448. <Expanded>
  5449. 0.0001f ( is within 0.001 of 0.0 or and 0 are within 10% of each other )
  5450. </Expanded>
  5451. </Expression>
  5452. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  5453. </Section>
  5454. <Section name="Constructor validation" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5455. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5456. <Original>
  5457. WithinAbs( 1.f, 0.f )
  5458. </Original>
  5459. <Expanded>
  5460. WithinAbs( 1.f, 0.f )
  5461. </Expanded>
  5462. </Expression>
  5463. <Expression success="true" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5464. <Original>
  5465. WithinAbs( 1.f, -1.f ), std::domain_error
  5466. </Original>
  5467. <Expanded>
  5468. WithinAbs( 1.f, -1.f ), std::domain_error
  5469. </Expanded>
  5470. </Expression>
  5471. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5472. <Original>
  5473. WithinULP( 1.f, 0 )
  5474. </Original>
  5475. <Expanded>
  5476. WithinULP( 1.f, 0 )
  5477. </Expanded>
  5478. </Expression>
  5479. <Expression success="true" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5480. <Original>
  5481. WithinULP( 1.f, static_cast&lt;uint64_t>( -1 ) ), std::domain_error
  5482. </Original>
  5483. <Expanded>
  5484. WithinULP( 1.f, static_cast&lt;uint64_t>( -1 ) ), std::domain_error
  5485. </Expanded>
  5486. </Expression>
  5487. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5488. <Original>
  5489. WithinRel( 1.f, 0.f )
  5490. </Original>
  5491. <Expanded>
  5492. WithinRel( 1.f, 0.f )
  5493. </Expanded>
  5494. </Expression>
  5495. <Expression success="true" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5496. <Original>
  5497. WithinRel( 1.f, -0.2f ), std::domain_error
  5498. </Original>
  5499. <Expanded>
  5500. WithinRel( 1.f, -0.2f ), std::domain_error
  5501. </Expanded>
  5502. </Expression>
  5503. <Expression success="true" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  5504. <Original>
  5505. WithinRel( 1.f, 1.f ), std::domain_error
  5506. </Original>
  5507. <Expanded>
  5508. WithinRel( 1.f, 1.f ), std::domain_error
  5509. </Expanded>
  5510. </Expression>
  5511. <OverallResults successes="7" failures="0" expectedFailures="0"/>
  5512. </Section>
  5513. <OverallResult success="true"/>
  5514. </TestCase>
  5515. <TestCase name="Generators -- adapters" tags="[generators][generic]" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5516. <Section name="Filtering by predicate" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5517. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5518. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5519. <Original>
  5520. i % 2 == 0
  5521. </Original>
  5522. <Expanded>
  5523. 0 == 0
  5524. </Expanded>
  5525. </Expression>
  5526. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5527. </Section>
  5528. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5529. </Section>
  5530. <Section name="Filtering by predicate" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5531. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5532. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5533. <Original>
  5534. i % 2 == 0
  5535. </Original>
  5536. <Expanded>
  5537. 0 == 0
  5538. </Expanded>
  5539. </Expression>
  5540. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5541. </Section>
  5542. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5543. </Section>
  5544. <Section name="Filtering by predicate" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5545. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5546. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5547. <Original>
  5548. i % 2 == 0
  5549. </Original>
  5550. <Expanded>
  5551. 0 == 0
  5552. </Expanded>
  5553. </Expression>
  5554. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5555. </Section>
  5556. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5557. </Section>
  5558. <Section name="Filtering by predicate" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5559. <Section name="Throws if there are no matching values" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5560. <Expression success="true" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5561. <Original>
  5562. filter([] (int) {return false; }, value(1)), Catch::GeneratorException
  5563. </Original>
  5564. <Expanded>
  5565. filter([] (int) {return false; }, value(1)), Catch::GeneratorException
  5566. </Expanded>
  5567. </Expression>
  5568. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5569. </Section>
  5570. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5571. </Section>
  5572. <Section name="Shortening a range" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5573. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5574. <Original>
  5575. i &lt; 4
  5576. </Original>
  5577. <Expanded>
  5578. 1 &lt; 4
  5579. </Expanded>
  5580. </Expression>
  5581. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5582. </Section>
  5583. <Section name="Shortening a range" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5584. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5585. <Original>
  5586. i &lt; 4
  5587. </Original>
  5588. <Expanded>
  5589. 2 &lt; 4
  5590. </Expanded>
  5591. </Expression>
  5592. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5593. </Section>
  5594. <Section name="Shortening a range" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5595. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5596. <Original>
  5597. i &lt; 4
  5598. </Original>
  5599. <Expanded>
  5600. 3 &lt; 4
  5601. </Expanded>
  5602. </Expression>
  5603. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5604. </Section>
  5605. <Section name="Transforming elements" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5606. <Section name="Same type" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5607. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5608. <Original>
  5609. i % 2 == 0
  5610. </Original>
  5611. <Expanded>
  5612. 0 == 0
  5613. </Expanded>
  5614. </Expression>
  5615. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5616. </Section>
  5617. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5618. </Section>
  5619. <Section name="Transforming elements" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5620. <Section name="Same type" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5621. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5622. <Original>
  5623. i % 2 == 0
  5624. </Original>
  5625. <Expanded>
  5626. 0 == 0
  5627. </Expanded>
  5628. </Expression>
  5629. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5630. </Section>
  5631. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5632. </Section>
  5633. <Section name="Transforming elements" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5634. <Section name="Same type" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5635. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5636. <Original>
  5637. i % 2 == 0
  5638. </Original>
  5639. <Expanded>
  5640. 0 == 0
  5641. </Expanded>
  5642. </Expression>
  5643. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5644. </Section>
  5645. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5646. </Section>
  5647. <Section name="Transforming elements" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5648. <Section name="Different type" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5649. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5650. <Original>
  5651. i.size() == 1
  5652. </Original>
  5653. <Expanded>
  5654. 1 == 1
  5655. </Expanded>
  5656. </Expression>
  5657. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5658. </Section>
  5659. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5660. </Section>
  5661. <Section name="Transforming elements" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5662. <Section name="Different type" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5663. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5664. <Original>
  5665. i.size() == 1
  5666. </Original>
  5667. <Expanded>
  5668. 1 == 1
  5669. </Expanded>
  5670. </Expression>
  5671. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5672. </Section>
  5673. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5674. </Section>
  5675. <Section name="Transforming elements" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5676. <Section name="Different type" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5677. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5678. <Original>
  5679. i.size() == 1
  5680. </Original>
  5681. <Expanded>
  5682. 1 == 1
  5683. </Expanded>
  5684. </Expression>
  5685. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5686. </Section>
  5687. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5688. </Section>
  5689. <Section name="Transforming elements" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5690. <Section name="Different deduced type" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5691. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5692. <Original>
  5693. i.size() == 1
  5694. </Original>
  5695. <Expanded>
  5696. 1 == 1
  5697. </Expanded>
  5698. </Expression>
  5699. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5700. </Section>
  5701. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5702. </Section>
  5703. <Section name="Transforming elements" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5704. <Section name="Different deduced type" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5705. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5706. <Original>
  5707. i.size() == 1
  5708. </Original>
  5709. <Expanded>
  5710. 1 == 1
  5711. </Expanded>
  5712. </Expression>
  5713. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5714. </Section>
  5715. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5716. </Section>
  5717. <Section name="Transforming elements" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5718. <Section name="Different deduced type" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5719. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5720. <Original>
  5721. i.size() == 1
  5722. </Original>
  5723. <Expanded>
  5724. 1 == 1
  5725. </Expanded>
  5726. </Expression>
  5727. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5728. </Section>
  5729. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5730. </Section>
  5731. <Section name="Repeating a generator" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5732. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5733. <Original>
  5734. j > 0
  5735. </Original>
  5736. <Expanded>
  5737. 1 > 0
  5738. </Expanded>
  5739. </Expression>
  5740. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5741. </Section>
  5742. <Section name="Repeating a generator" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5743. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5744. <Original>
  5745. j > 0
  5746. </Original>
  5747. <Expanded>
  5748. 2 > 0
  5749. </Expanded>
  5750. </Expression>
  5751. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5752. </Section>
  5753. <Section name="Repeating a generator" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5754. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5755. <Original>
  5756. j > 0
  5757. </Original>
  5758. <Expanded>
  5759. 3 > 0
  5760. </Expanded>
  5761. </Expression>
  5762. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5763. </Section>
  5764. <Section name="Repeating a generator" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5765. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5766. <Original>
  5767. j > 0
  5768. </Original>
  5769. <Expanded>
  5770. 1 > 0
  5771. </Expanded>
  5772. </Expression>
  5773. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5774. </Section>
  5775. <Section name="Repeating a generator" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5776. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5777. <Original>
  5778. j > 0
  5779. </Original>
  5780. <Expanded>
  5781. 2 > 0
  5782. </Expanded>
  5783. </Expression>
  5784. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5785. </Section>
  5786. <Section name="Repeating a generator" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5787. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5788. <Original>
  5789. j > 0
  5790. </Original>
  5791. <Expanded>
  5792. 3 > 0
  5793. </Expanded>
  5794. </Expression>
  5795. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5796. </Section>
  5797. <Section name="Chunking a generator into sized pieces" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5798. <Section name="Number of elements in source is divisible by chunk size" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5799. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5800. <Original>
  5801. chunk2.size() == 2
  5802. </Original>
  5803. <Expanded>
  5804. 2 == 2
  5805. </Expanded>
  5806. </Expression>
  5807. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5808. <Original>
  5809. chunk2.front() == chunk2.back()
  5810. </Original>
  5811. <Expanded>
  5812. 1 == 1
  5813. </Expanded>
  5814. </Expression>
  5815. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  5816. </Section>
  5817. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  5818. </Section>
  5819. <Section name="Chunking a generator into sized pieces" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5820. <Section name="Number of elements in source is divisible by chunk size" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5821. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5822. <Original>
  5823. chunk2.size() == 2
  5824. </Original>
  5825. <Expanded>
  5826. 2 == 2
  5827. </Expanded>
  5828. </Expression>
  5829. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5830. <Original>
  5831. chunk2.front() == chunk2.back()
  5832. </Original>
  5833. <Expanded>
  5834. 2 == 2
  5835. </Expanded>
  5836. </Expression>
  5837. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  5838. </Section>
  5839. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  5840. </Section>
  5841. <Section name="Chunking a generator into sized pieces" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5842. <Section name="Number of elements in source is divisible by chunk size" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5843. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5844. <Original>
  5845. chunk2.size() == 2
  5846. </Original>
  5847. <Expanded>
  5848. 2 == 2
  5849. </Expanded>
  5850. </Expression>
  5851. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5852. <Original>
  5853. chunk2.front() == chunk2.back()
  5854. </Original>
  5855. <Expanded>
  5856. 3 == 3
  5857. </Expanded>
  5858. </Expression>
  5859. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  5860. </Section>
  5861. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  5862. </Section>
  5863. <Section name="Chunking a generator into sized pieces" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5864. <Section name="Number of elements in source is not divisible by chunk size" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5865. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5866. <Original>
  5867. chunk2.size() == 2
  5868. </Original>
  5869. <Expanded>
  5870. 2 == 2
  5871. </Expanded>
  5872. </Expression>
  5873. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5874. <Original>
  5875. chunk2.front() == chunk2.back()
  5876. </Original>
  5877. <Expanded>
  5878. 1 == 1
  5879. </Expanded>
  5880. </Expression>
  5881. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5882. <Original>
  5883. chunk2.front() &lt; 3
  5884. </Original>
  5885. <Expanded>
  5886. 1 &lt; 3
  5887. </Expanded>
  5888. </Expression>
  5889. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  5890. </Section>
  5891. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  5892. </Section>
  5893. <Section name="Chunking a generator into sized pieces" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5894. <Section name="Number of elements in source is not divisible by chunk size" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5895. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5896. <Original>
  5897. chunk2.size() == 2
  5898. </Original>
  5899. <Expanded>
  5900. 2 == 2
  5901. </Expanded>
  5902. </Expression>
  5903. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5904. <Original>
  5905. chunk2.front() == chunk2.back()
  5906. </Original>
  5907. <Expanded>
  5908. 2 == 2
  5909. </Expanded>
  5910. </Expression>
  5911. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5912. <Original>
  5913. chunk2.front() &lt; 3
  5914. </Original>
  5915. <Expanded>
  5916. 2 &lt; 3
  5917. </Expanded>
  5918. </Expression>
  5919. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  5920. </Section>
  5921. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  5922. </Section>
  5923. <Section name="Chunking a generator into sized pieces" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5924. <Section name="Chunk size of zero" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5925. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5926. <Original>
  5927. chunk2.size() == 0
  5928. </Original>
  5929. <Expanded>
  5930. 0 == 0
  5931. </Expanded>
  5932. </Expression>
  5933. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5934. </Section>
  5935. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5936. </Section>
  5937. <Section name="Chunking a generator into sized pieces" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5938. <Section name="Chunk size of zero" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5939. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5940. <Original>
  5941. chunk2.size() == 0
  5942. </Original>
  5943. <Expanded>
  5944. 0 == 0
  5945. </Expanded>
  5946. </Expression>
  5947. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5948. </Section>
  5949. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5950. </Section>
  5951. <Section name="Chunking a generator into sized pieces" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5952. <Section name="Chunk size of zero" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5953. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5954. <Original>
  5955. chunk2.size() == 0
  5956. </Original>
  5957. <Expanded>
  5958. 0 == 0
  5959. </Expanded>
  5960. </Expression>
  5961. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5962. </Section>
  5963. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5964. </Section>
  5965. <Section name="Chunking a generator into sized pieces" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5966. <Section name="Throws on too small generators" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5967. <Expression success="true" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5968. <Original>
  5969. chunk(2, value(1)), Catch::GeneratorException
  5970. </Original>
  5971. <Expanded>
  5972. chunk(2, value(1)), Catch::GeneratorException
  5973. </Expanded>
  5974. </Expression>
  5975. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5976. </Section>
  5977. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5978. </Section>
  5979. <OverallResult success="true"/>
  5980. </TestCase>
  5981. <TestCase name="Generators -- simple" tags="[generators]" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5982. <Section name="one" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5983. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5984. <Original>
  5985. j &lt; i
  5986. </Original>
  5987. <Expanded>
  5988. -3 &lt; 1
  5989. </Expanded>
  5990. </Expression>
  5991. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5992. </Section>
  5993. <Section name="one" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5994. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  5995. <Original>
  5996. j &lt; i
  5997. </Original>
  5998. <Expanded>
  5999. -2 &lt; 1
  6000. </Expanded>
  6001. </Expression>
  6002. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  6003. </Section>
  6004. <Section name="one" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6005. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6006. <Original>
  6007. j &lt; i
  6008. </Original>
  6009. <Expanded>
  6010. -1 &lt; 1
  6011. </Expanded>
  6012. </Expression>
  6013. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  6014. </Section>
  6015. <Section name="two" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6016. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6017. <Original>
  6018. 4u * i > str.size()
  6019. </Original>
  6020. <Expanded>
  6021. 4 > 1
  6022. </Expanded>
  6023. </Expression>
  6024. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  6025. </Section>
  6026. <Section name="two" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6027. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6028. <Original>
  6029. 4u * i > str.size()
  6030. </Original>
  6031. <Expanded>
  6032. 4 > 2
  6033. </Expanded>
  6034. </Expression>
  6035. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  6036. </Section>
  6037. <Section name="two" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6038. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6039. <Original>
  6040. 4u * i > str.size()
  6041. </Original>
  6042. <Expanded>
  6043. 4 > 3
  6044. </Expanded>
  6045. </Expression>
  6046. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  6047. </Section>
  6048. <Section name="one" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6049. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6050. <Original>
  6051. j &lt; i
  6052. </Original>
  6053. <Expanded>
  6054. -3 &lt; 2
  6055. </Expanded>
  6056. </Expression>
  6057. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  6058. </Section>
  6059. <Section name="one" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6060. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6061. <Original>
  6062. j &lt; i
  6063. </Original>
  6064. <Expanded>
  6065. -2 &lt; 2
  6066. </Expanded>
  6067. </Expression>
  6068. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  6069. </Section>
  6070. <Section name="one" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6071. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6072. <Original>
  6073. j &lt; i
  6074. </Original>
  6075. <Expanded>
  6076. -1 &lt; 2
  6077. </Expanded>
  6078. </Expression>
  6079. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  6080. </Section>
  6081. <Section name="two" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6082. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6083. <Original>
  6084. 4u * i > str.size()
  6085. </Original>
  6086. <Expanded>
  6087. 8 > 1
  6088. </Expanded>
  6089. </Expression>
  6090. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  6091. </Section>
  6092. <Section name="two" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6093. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6094. <Original>
  6095. 4u * i > str.size()
  6096. </Original>
  6097. <Expanded>
  6098. 8 > 2
  6099. </Expanded>
  6100. </Expression>
  6101. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  6102. </Section>
  6103. <Section name="two" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6104. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6105. <Original>
  6106. 4u * i > str.size()
  6107. </Original>
  6108. <Expanded>
  6109. 8 > 3
  6110. </Expanded>
  6111. </Expression>
  6112. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  6113. </Section>
  6114. <Section name="one" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6115. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6116. <Original>
  6117. j &lt; i
  6118. </Original>
  6119. <Expanded>
  6120. -3 &lt; 3
  6121. </Expanded>
  6122. </Expression>
  6123. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  6124. </Section>
  6125. <Section name="one" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6126. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6127. <Original>
  6128. j &lt; i
  6129. </Original>
  6130. <Expanded>
  6131. -2 &lt; 3
  6132. </Expanded>
  6133. </Expression>
  6134. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  6135. </Section>
  6136. <Section name="one" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6137. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6138. <Original>
  6139. j &lt; i
  6140. </Original>
  6141. <Expanded>
  6142. -1 &lt; 3
  6143. </Expanded>
  6144. </Expression>
  6145. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  6146. </Section>
  6147. <Section name="two" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6148. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6149. <Original>
  6150. 4u * i > str.size()
  6151. </Original>
  6152. <Expanded>
  6153. 12 > 1
  6154. </Expanded>
  6155. </Expression>
  6156. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  6157. </Section>
  6158. <Section name="two" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6159. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6160. <Original>
  6161. 4u * i > str.size()
  6162. </Original>
  6163. <Expanded>
  6164. 12 > 2
  6165. </Expanded>
  6166. </Expression>
  6167. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  6168. </Section>
  6169. <Section name="two" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6170. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  6171. <Original>
  6172. 4u * i > str.size()
  6173. </Original>
  6174. <Expanded>
  6175. 12 > 3
  6176. </Expanded>
  6177. </Expression>
  6178. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  6179. </Section>
  6180. <OverallResult success="true"/>
  6181. </TestCase>
  6182. <TestCase name="Generators internals" tags="[generators][internals]" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6183. <Section name="Single value" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6184. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6185. <Original>
  6186. gen.get() == 123
  6187. </Original>
  6188. <Expanded>
  6189. 123 == 123
  6190. </Expanded>
  6191. </Expression>
  6192. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6193. <Original>
  6194. !(gen.next())
  6195. </Original>
  6196. <Expanded>
  6197. !false
  6198. </Expanded>
  6199. </Expression>
  6200. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  6201. </Section>
  6202. <Section name="Preset values" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6203. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6204. <Original>
  6205. gen.get() == 1
  6206. </Original>
  6207. <Expanded>
  6208. 1 == 1
  6209. </Expanded>
  6210. </Expression>
  6211. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6212. <Original>
  6213. gen.next()
  6214. </Original>
  6215. <Expanded>
  6216. true
  6217. </Expanded>
  6218. </Expression>
  6219. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6220. <Original>
  6221. gen.get() == 3
  6222. </Original>
  6223. <Expanded>
  6224. 3 == 3
  6225. </Expanded>
  6226. </Expression>
  6227. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6228. <Original>
  6229. gen.next()
  6230. </Original>
  6231. <Expanded>
  6232. true
  6233. </Expanded>
  6234. </Expression>
  6235. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6236. <Original>
  6237. gen.get() == 5
  6238. </Original>
  6239. <Expanded>
  6240. 5 == 5
  6241. </Expanded>
  6242. </Expression>
  6243. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6244. <Original>
  6245. !(gen.next())
  6246. </Original>
  6247. <Expanded>
  6248. !false
  6249. </Expanded>
  6250. </Expression>
  6251. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  6252. </Section>
  6253. <Section name="Generator combinator" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6254. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6255. <Original>
  6256. gen.get() == 1
  6257. </Original>
  6258. <Expanded>
  6259. 1 == 1
  6260. </Expanded>
  6261. </Expression>
  6262. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6263. <Original>
  6264. gen.next()
  6265. </Original>
  6266. <Expanded>
  6267. true
  6268. </Expanded>
  6269. </Expression>
  6270. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6271. <Original>
  6272. gen.get() == 5
  6273. </Original>
  6274. <Expanded>
  6275. 5 == 5
  6276. </Expanded>
  6277. </Expression>
  6278. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6279. <Original>
  6280. gen.next()
  6281. </Original>
  6282. <Expanded>
  6283. true
  6284. </Expanded>
  6285. </Expression>
  6286. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6287. <Original>
  6288. gen.get() == 2
  6289. </Original>
  6290. <Expanded>
  6291. 2 == 2
  6292. </Expanded>
  6293. </Expression>
  6294. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6295. <Original>
  6296. gen.next()
  6297. </Original>
  6298. <Expanded>
  6299. true
  6300. </Expanded>
  6301. </Expression>
  6302. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6303. <Original>
  6304. gen.get() == 4
  6305. </Original>
  6306. <Expanded>
  6307. 4 == 4
  6308. </Expanded>
  6309. </Expression>
  6310. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6311. <Original>
  6312. gen.next()
  6313. </Original>
  6314. <Expanded>
  6315. true
  6316. </Expanded>
  6317. </Expression>
  6318. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6319. <Original>
  6320. gen.get() == 0
  6321. </Original>
  6322. <Expanded>
  6323. 0 == 0
  6324. </Expanded>
  6325. </Expression>
  6326. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6327. <Original>
  6328. !(gen.next())
  6329. </Original>
  6330. <Expanded>
  6331. !false
  6332. </Expanded>
  6333. </Expression>
  6334. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  6335. </Section>
  6336. <Section name="Explicitly typed generator sequence" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6337. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6338. <Original>
  6339. gen.get().size() == 2
  6340. </Original>
  6341. <Expanded>
  6342. 2 == 2
  6343. </Expanded>
  6344. </Expression>
  6345. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6346. <Original>
  6347. gen.get() == "aa"
  6348. </Original>
  6349. <Expanded>
  6350. "aa" == "aa"
  6351. </Expanded>
  6352. </Expression>
  6353. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6354. <Original>
  6355. gen.next()
  6356. </Original>
  6357. <Expanded>
  6358. true
  6359. </Expanded>
  6360. </Expression>
  6361. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6362. <Original>
  6363. gen.get() == "bb"
  6364. </Original>
  6365. <Expanded>
  6366. "bb" == "bb"
  6367. </Expanded>
  6368. </Expression>
  6369. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6370. <Original>
  6371. gen.next()
  6372. </Original>
  6373. <Expanded>
  6374. true
  6375. </Expanded>
  6376. </Expression>
  6377. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6378. <Original>
  6379. gen.get() == "cc"
  6380. </Original>
  6381. <Expanded>
  6382. "cc" == "cc"
  6383. </Expanded>
  6384. </Expression>
  6385. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6386. <Original>
  6387. !(gen.next())
  6388. </Original>
  6389. <Expanded>
  6390. !false
  6391. </Expanded>
  6392. </Expression>
  6393. <OverallResults successes="7" failures="0" expectedFailures="0"/>
  6394. </Section>
  6395. <Section name="Filter generator" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6396. <Section name="Simple filtering" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6397. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6398. <Original>
  6399. gen.get() == 1
  6400. </Original>
  6401. <Expanded>
  6402. 1 == 1
  6403. </Expanded>
  6404. </Expression>
  6405. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6406. <Original>
  6407. gen.next()
  6408. </Original>
  6409. <Expanded>
  6410. true
  6411. </Expanded>
  6412. </Expression>
  6413. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6414. <Original>
  6415. gen.get() == 3
  6416. </Original>
  6417. <Expanded>
  6418. 3 == 3
  6419. </Expanded>
  6420. </Expression>
  6421. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6422. <Original>
  6423. !(gen.next())
  6424. </Original>
  6425. <Expanded>
  6426. !false
  6427. </Expanded>
  6428. </Expression>
  6429. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  6430. </Section>
  6431. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  6432. </Section>
  6433. <Section name="Filter generator" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6434. <Section name="Filter out multiple elements at the start and end" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6435. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6436. <Original>
  6437. gen.get() == 1
  6438. </Original>
  6439. <Expanded>
  6440. 1 == 1
  6441. </Expanded>
  6442. </Expression>
  6443. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6444. <Original>
  6445. gen.next()
  6446. </Original>
  6447. <Expanded>
  6448. true
  6449. </Expanded>
  6450. </Expression>
  6451. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6452. <Original>
  6453. gen.get() == 3
  6454. </Original>
  6455. <Expanded>
  6456. 3 == 3
  6457. </Expanded>
  6458. </Expression>
  6459. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6460. <Original>
  6461. !(gen.next())
  6462. </Original>
  6463. <Expanded>
  6464. !false
  6465. </Expanded>
  6466. </Expression>
  6467. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  6468. </Section>
  6469. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  6470. </Section>
  6471. <Section name="Filter generator" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6472. <Section name="Throws on construction if it can't get initial element" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6473. <Expression success="true" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6474. <Original>
  6475. filter([](int) { return false; }, value(1)), Catch::GeneratorException
  6476. </Original>
  6477. <Expanded>
  6478. filter([](int) { return false; }, value(1)), Catch::GeneratorException
  6479. </Expanded>
  6480. </Expression>
  6481. <Expression success="true" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6482. <Original>
  6483. filter([](int) { return false; }, values({ 1, 2, 3 })), Catch::GeneratorException
  6484. </Original>
  6485. <Expanded>
  6486. filter([](int) { return false; }, values({ 1, 2, 3 })), Catch::GeneratorException
  6487. </Expanded>
  6488. </Expression>
  6489. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  6490. </Section>
  6491. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  6492. </Section>
  6493. <Section name="Take generator" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6494. <Section name="Take less" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6495. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6496. <Original>
  6497. gen.get() == 1
  6498. </Original>
  6499. <Expanded>
  6500. 1 == 1
  6501. </Expanded>
  6502. </Expression>
  6503. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6504. <Original>
  6505. gen.next()
  6506. </Original>
  6507. <Expanded>
  6508. true
  6509. </Expanded>
  6510. </Expression>
  6511. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6512. <Original>
  6513. gen.get() == 2
  6514. </Original>
  6515. <Expanded>
  6516. 2 == 2
  6517. </Expanded>
  6518. </Expression>
  6519. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6520. <Original>
  6521. !(gen.next())
  6522. </Original>
  6523. <Expanded>
  6524. !false
  6525. </Expanded>
  6526. </Expression>
  6527. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  6528. </Section>
  6529. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  6530. </Section>
  6531. <Section name="Take generator" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6532. <Section name="Take more" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6533. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6534. <Original>
  6535. gen.get() == 1
  6536. </Original>
  6537. <Expanded>
  6538. 1 == 1
  6539. </Expanded>
  6540. </Expression>
  6541. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6542. <Original>
  6543. !(gen.next())
  6544. </Original>
  6545. <Expanded>
  6546. !false
  6547. </Expanded>
  6548. </Expression>
  6549. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  6550. </Section>
  6551. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  6552. </Section>
  6553. <Section name="Map with explicit return type" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6554. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6555. <Original>
  6556. gen.get() == 2.0
  6557. </Original>
  6558. <Expanded>
  6559. 2.0 == 2.0
  6560. </Expanded>
  6561. </Expression>
  6562. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6563. <Original>
  6564. gen.next()
  6565. </Original>
  6566. <Expanded>
  6567. true
  6568. </Expanded>
  6569. </Expression>
  6570. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6571. <Original>
  6572. gen.get() == 4.0
  6573. </Original>
  6574. <Expanded>
  6575. 4.0 == 4.0
  6576. </Expanded>
  6577. </Expression>
  6578. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6579. <Original>
  6580. gen.next()
  6581. </Original>
  6582. <Expanded>
  6583. true
  6584. </Expanded>
  6585. </Expression>
  6586. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6587. <Original>
  6588. gen.get() == 6.0
  6589. </Original>
  6590. <Expanded>
  6591. 6.0 == 6.0
  6592. </Expanded>
  6593. </Expression>
  6594. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6595. <Original>
  6596. !(gen.next())
  6597. </Original>
  6598. <Expanded>
  6599. !false
  6600. </Expanded>
  6601. </Expression>
  6602. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  6603. </Section>
  6604. <Section name="Map with deduced return type" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6605. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6606. <Original>
  6607. gen.get() == 2.0
  6608. </Original>
  6609. <Expanded>
  6610. 2.0 == 2.0
  6611. </Expanded>
  6612. </Expression>
  6613. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6614. <Original>
  6615. gen.next()
  6616. </Original>
  6617. <Expanded>
  6618. true
  6619. </Expanded>
  6620. </Expression>
  6621. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6622. <Original>
  6623. gen.get() == 4.0
  6624. </Original>
  6625. <Expanded>
  6626. 4.0 == 4.0
  6627. </Expanded>
  6628. </Expression>
  6629. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6630. <Original>
  6631. gen.next()
  6632. </Original>
  6633. <Expanded>
  6634. true
  6635. </Expanded>
  6636. </Expression>
  6637. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6638. <Original>
  6639. gen.get() == 6.0
  6640. </Original>
  6641. <Expanded>
  6642. 6.0 == 6.0
  6643. </Expanded>
  6644. </Expression>
  6645. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6646. <Original>
  6647. !(gen.next())
  6648. </Original>
  6649. <Expanded>
  6650. !false
  6651. </Expanded>
  6652. </Expression>
  6653. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  6654. </Section>
  6655. <Section name="Repeat" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6656. <Section name="Singular repeat" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6657. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6658. <Original>
  6659. gen.get() == 3
  6660. </Original>
  6661. <Expanded>
  6662. 3 == 3
  6663. </Expanded>
  6664. </Expression>
  6665. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6666. <Original>
  6667. !(gen.next())
  6668. </Original>
  6669. <Expanded>
  6670. !false
  6671. </Expanded>
  6672. </Expression>
  6673. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  6674. </Section>
  6675. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  6676. </Section>
  6677. <Section name="Repeat" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6678. <Section name="Actual repeat" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6679. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6680. <Original>
  6681. gen.get() == 1
  6682. </Original>
  6683. <Expanded>
  6684. 1 == 1
  6685. </Expanded>
  6686. </Expression>
  6687. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6688. <Original>
  6689. gen.next()
  6690. </Original>
  6691. <Expanded>
  6692. true
  6693. </Expanded>
  6694. </Expression>
  6695. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6696. <Original>
  6697. gen.get() == 2
  6698. </Original>
  6699. <Expanded>
  6700. 2 == 2
  6701. </Expanded>
  6702. </Expression>
  6703. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6704. <Original>
  6705. gen.next()
  6706. </Original>
  6707. <Expanded>
  6708. true
  6709. </Expanded>
  6710. </Expression>
  6711. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6712. <Original>
  6713. gen.get() == 3
  6714. </Original>
  6715. <Expanded>
  6716. 3 == 3
  6717. </Expanded>
  6718. </Expression>
  6719. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6720. <Original>
  6721. gen.next()
  6722. </Original>
  6723. <Expanded>
  6724. true
  6725. </Expanded>
  6726. </Expression>
  6727. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6728. <Original>
  6729. gen.get() == 1
  6730. </Original>
  6731. <Expanded>
  6732. 1 == 1
  6733. </Expanded>
  6734. </Expression>
  6735. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6736. <Original>
  6737. gen.next()
  6738. </Original>
  6739. <Expanded>
  6740. true
  6741. </Expanded>
  6742. </Expression>
  6743. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6744. <Original>
  6745. gen.get() == 2
  6746. </Original>
  6747. <Expanded>
  6748. 2 == 2
  6749. </Expanded>
  6750. </Expression>
  6751. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6752. <Original>
  6753. gen.next()
  6754. </Original>
  6755. <Expanded>
  6756. true
  6757. </Expanded>
  6758. </Expression>
  6759. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6760. <Original>
  6761. gen.get() == 3
  6762. </Original>
  6763. <Expanded>
  6764. 3 == 3
  6765. </Expanded>
  6766. </Expression>
  6767. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6768. <Original>
  6769. !(gen.next())
  6770. </Original>
  6771. <Expanded>
  6772. !false
  6773. </Expanded>
  6774. </Expression>
  6775. <OverallResults successes="12" failures="0" expectedFailures="0"/>
  6776. </Section>
  6777. <OverallResults successes="12" failures="0" expectedFailures="0"/>
  6778. </Section>
  6779. <Section name="Range" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6780. <Section name="Positive auto step" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6781. <Section name="Integer" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6782. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6783. <Original>
  6784. gen.get() == -2
  6785. </Original>
  6786. <Expanded>
  6787. -2 == -2
  6788. </Expanded>
  6789. </Expression>
  6790. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6791. <Original>
  6792. gen.next()
  6793. </Original>
  6794. <Expanded>
  6795. true
  6796. </Expanded>
  6797. </Expression>
  6798. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6799. <Original>
  6800. gen.get() == -1
  6801. </Original>
  6802. <Expanded>
  6803. -1 == -1
  6804. </Expanded>
  6805. </Expression>
  6806. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6807. <Original>
  6808. gen.next()
  6809. </Original>
  6810. <Expanded>
  6811. true
  6812. </Expanded>
  6813. </Expression>
  6814. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6815. <Original>
  6816. gen.get() == 0
  6817. </Original>
  6818. <Expanded>
  6819. 0 == 0
  6820. </Expanded>
  6821. </Expression>
  6822. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6823. <Original>
  6824. gen.next()
  6825. </Original>
  6826. <Expanded>
  6827. true
  6828. </Expanded>
  6829. </Expression>
  6830. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6831. <Original>
  6832. gen.get() == 1
  6833. </Original>
  6834. <Expanded>
  6835. 1 == 1
  6836. </Expanded>
  6837. </Expression>
  6838. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6839. <Original>
  6840. !(gen.next())
  6841. </Original>
  6842. <Expanded>
  6843. !false
  6844. </Expanded>
  6845. </Expression>
  6846. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6847. </Section>
  6848. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6849. </Section>
  6850. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6851. </Section>
  6852. <Section name="Range" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6853. <Section name="Negative auto step" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6854. <Section name="Integer" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6855. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6856. <Original>
  6857. gen.get() == 2
  6858. </Original>
  6859. <Expanded>
  6860. 2 == 2
  6861. </Expanded>
  6862. </Expression>
  6863. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6864. <Original>
  6865. gen.next()
  6866. </Original>
  6867. <Expanded>
  6868. true
  6869. </Expanded>
  6870. </Expression>
  6871. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6872. <Original>
  6873. gen.get() == 1
  6874. </Original>
  6875. <Expanded>
  6876. 1 == 1
  6877. </Expanded>
  6878. </Expression>
  6879. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6880. <Original>
  6881. gen.next()
  6882. </Original>
  6883. <Expanded>
  6884. true
  6885. </Expanded>
  6886. </Expression>
  6887. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6888. <Original>
  6889. gen.get() == 0
  6890. </Original>
  6891. <Expanded>
  6892. 0 == 0
  6893. </Expanded>
  6894. </Expression>
  6895. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6896. <Original>
  6897. gen.next()
  6898. </Original>
  6899. <Expanded>
  6900. true
  6901. </Expanded>
  6902. </Expression>
  6903. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6904. <Original>
  6905. gen.get() == -1
  6906. </Original>
  6907. <Expanded>
  6908. -1 == -1
  6909. </Expanded>
  6910. </Expression>
  6911. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6912. <Original>
  6913. !(gen.next())
  6914. </Original>
  6915. <Expanded>
  6916. !false
  6917. </Expanded>
  6918. </Expression>
  6919. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6920. </Section>
  6921. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6922. </Section>
  6923. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6924. </Section>
  6925. <Section name="Range" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6926. <Section name="Positive manual step" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6927. <Section name="Integer" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6928. <Section name="Exact" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6929. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6930. <Original>
  6931. gen.get() == -7
  6932. </Original>
  6933. <Expanded>
  6934. -7 == -7
  6935. </Expanded>
  6936. </Expression>
  6937. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6938. <Original>
  6939. gen.next()
  6940. </Original>
  6941. <Expanded>
  6942. true
  6943. </Expanded>
  6944. </Expression>
  6945. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6946. <Original>
  6947. gen.get() == -4
  6948. </Original>
  6949. <Expanded>
  6950. -4 == -4
  6951. </Expanded>
  6952. </Expression>
  6953. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6954. <Original>
  6955. gen.next()
  6956. </Original>
  6957. <Expanded>
  6958. true
  6959. </Expanded>
  6960. </Expression>
  6961. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6962. <Original>
  6963. gen.get() == -1
  6964. </Original>
  6965. <Expanded>
  6966. -1 == -1
  6967. </Expanded>
  6968. </Expression>
  6969. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6970. <Original>
  6971. gen.next()
  6972. </Original>
  6973. <Expanded>
  6974. true
  6975. </Expanded>
  6976. </Expression>
  6977. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6978. <Original>
  6979. gen.get() == 2
  6980. </Original>
  6981. <Expanded>
  6982. 2 == 2
  6983. </Expanded>
  6984. </Expression>
  6985. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6986. <Original>
  6987. !(gen.next())
  6988. </Original>
  6989. <Expanded>
  6990. !false
  6991. </Expanded>
  6992. </Expression>
  6993. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6994. </Section>
  6995. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6996. </Section>
  6997. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6998. </Section>
  6999. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  7000. </Section>
  7001. <Section name="Range" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7002. <Section name="Positive manual step" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7003. <Section name="Integer" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7004. <Section name="Slightly over end" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7005. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7006. <Original>
  7007. gen.get() == -7
  7008. </Original>
  7009. <Expanded>
  7010. -7 == -7
  7011. </Expanded>
  7012. </Expression>
  7013. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7014. <Original>
  7015. gen.next()
  7016. </Original>
  7017. <Expanded>
  7018. true
  7019. </Expanded>
  7020. </Expression>
  7021. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7022. <Original>
  7023. gen.get() == -4
  7024. </Original>
  7025. <Expanded>
  7026. -4 == -4
  7027. </Expanded>
  7028. </Expression>
  7029. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7030. <Original>
  7031. gen.next()
  7032. </Original>
  7033. <Expanded>
  7034. true
  7035. </Expanded>
  7036. </Expression>
  7037. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7038. <Original>
  7039. gen.get() == -1
  7040. </Original>
  7041. <Expanded>
  7042. -1 == -1
  7043. </Expanded>
  7044. </Expression>
  7045. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7046. <Original>
  7047. gen.next()
  7048. </Original>
  7049. <Expanded>
  7050. true
  7051. </Expanded>
  7052. </Expression>
  7053. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7054. <Original>
  7055. gen.get() == 2
  7056. </Original>
  7057. <Expanded>
  7058. 2 == 2
  7059. </Expanded>
  7060. </Expression>
  7061. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7062. <Original>
  7063. !(gen.next())
  7064. </Original>
  7065. <Expanded>
  7066. !false
  7067. </Expanded>
  7068. </Expression>
  7069. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  7070. </Section>
  7071. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  7072. </Section>
  7073. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  7074. </Section>
  7075. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  7076. </Section>
  7077. <Section name="Range" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7078. <Section name="Positive manual step" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7079. <Section name="Integer" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7080. <Section name="Slightly under end" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7081. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7082. <Original>
  7083. gen.get() == -7
  7084. </Original>
  7085. <Expanded>
  7086. -7 == -7
  7087. </Expanded>
  7088. </Expression>
  7089. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7090. <Original>
  7091. gen.next()
  7092. </Original>
  7093. <Expanded>
  7094. true
  7095. </Expanded>
  7096. </Expression>
  7097. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7098. <Original>
  7099. gen.get() == -4
  7100. </Original>
  7101. <Expanded>
  7102. -4 == -4
  7103. </Expanded>
  7104. </Expression>
  7105. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7106. <Original>
  7107. gen.next()
  7108. </Original>
  7109. <Expanded>
  7110. true
  7111. </Expanded>
  7112. </Expression>
  7113. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7114. <Original>
  7115. gen.get() == -1
  7116. </Original>
  7117. <Expanded>
  7118. -1 == -1
  7119. </Expanded>
  7120. </Expression>
  7121. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7122. <Original>
  7123. gen.next()
  7124. </Original>
  7125. <Expanded>
  7126. true
  7127. </Expanded>
  7128. </Expression>
  7129. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7130. <Original>
  7131. gen.get() == 2
  7132. </Original>
  7133. <Expanded>
  7134. 2 == 2
  7135. </Expanded>
  7136. </Expression>
  7137. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7138. <Original>
  7139. gen.next()
  7140. </Original>
  7141. <Expanded>
  7142. true
  7143. </Expanded>
  7144. </Expression>
  7145. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7146. <Original>
  7147. gen.get() == 5
  7148. </Original>
  7149. <Expanded>
  7150. 5 == 5
  7151. </Expanded>
  7152. </Expression>
  7153. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7154. <Original>
  7155. !(gen.next())
  7156. </Original>
  7157. <Expanded>
  7158. !false
  7159. </Expanded>
  7160. </Expression>
  7161. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  7162. </Section>
  7163. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  7164. </Section>
  7165. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  7166. </Section>
  7167. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  7168. </Section>
  7169. <Section name="Range" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7170. <Section name="Positive manual step" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7171. <Section name="Floating Point" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7172. <Section name="Exact" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7173. <Info>
  7174. Current expected value is -1
  7175. </Info>
  7176. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7177. <Original>
  7178. gen.get() == Approx(expected)
  7179. </Original>
  7180. <Expanded>
  7181. -1.0 == Approx( -1.0 )
  7182. </Expanded>
  7183. </Expression>
  7184. <Info>
  7185. Current expected value is -1
  7186. </Info>
  7187. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7188. <Original>
  7189. gen.next()
  7190. </Original>
  7191. <Expanded>
  7192. true
  7193. </Expanded>
  7194. </Expression>
  7195. <Info>
  7196. Current expected value is -0.9
  7197. </Info>
  7198. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7199. <Original>
  7200. gen.get() == Approx(expected)
  7201. </Original>
  7202. <Expanded>
  7203. -0.9 == Approx( -0.9 )
  7204. </Expanded>
  7205. </Expression>
  7206. <Info>
  7207. Current expected value is -0.9
  7208. </Info>
  7209. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7210. <Original>
  7211. gen.next()
  7212. </Original>
  7213. <Expanded>
  7214. true
  7215. </Expanded>
  7216. </Expression>
  7217. <Info>
  7218. Current expected value is -0.8
  7219. </Info>
  7220. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7221. <Original>
  7222. gen.get() == Approx(expected)
  7223. </Original>
  7224. <Expanded>
  7225. -0.8 == Approx( -0.8 )
  7226. </Expanded>
  7227. </Expression>
  7228. <Info>
  7229. Current expected value is -0.8
  7230. </Info>
  7231. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7232. <Original>
  7233. gen.next()
  7234. </Original>
  7235. <Expanded>
  7236. true
  7237. </Expanded>
  7238. </Expression>
  7239. <Info>
  7240. Current expected value is -0.7
  7241. </Info>
  7242. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7243. <Original>
  7244. gen.get() == Approx(expected)
  7245. </Original>
  7246. <Expanded>
  7247. -0.7 == Approx( -0.7 )
  7248. </Expanded>
  7249. </Expression>
  7250. <Info>
  7251. Current expected value is -0.7
  7252. </Info>
  7253. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7254. <Original>
  7255. gen.next()
  7256. </Original>
  7257. <Expanded>
  7258. true
  7259. </Expanded>
  7260. </Expression>
  7261. <Info>
  7262. Current expected value is -0.6
  7263. </Info>
  7264. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7265. <Original>
  7266. gen.get() == Approx(expected)
  7267. </Original>
  7268. <Expanded>
  7269. -0.6 == Approx( -0.6 )
  7270. </Expanded>
  7271. </Expression>
  7272. <Info>
  7273. Current expected value is -0.6
  7274. </Info>
  7275. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7276. <Original>
  7277. gen.next()
  7278. </Original>
  7279. <Expanded>
  7280. true
  7281. </Expanded>
  7282. </Expression>
  7283. <Info>
  7284. Current expected value is -0.5
  7285. </Info>
  7286. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7287. <Original>
  7288. gen.get() == Approx(expected)
  7289. </Original>
  7290. <Expanded>
  7291. -0.5 == Approx( -0.5 )
  7292. </Expanded>
  7293. </Expression>
  7294. <Info>
  7295. Current expected value is -0.5
  7296. </Info>
  7297. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7298. <Original>
  7299. gen.next()
  7300. </Original>
  7301. <Expanded>
  7302. true
  7303. </Expanded>
  7304. </Expression>
  7305. <Info>
  7306. Current expected value is -0.4
  7307. </Info>
  7308. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7309. <Original>
  7310. gen.get() == Approx(expected)
  7311. </Original>
  7312. <Expanded>
  7313. -0.4 == Approx( -0.4 )
  7314. </Expanded>
  7315. </Expression>
  7316. <Info>
  7317. Current expected value is -0.4
  7318. </Info>
  7319. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7320. <Original>
  7321. gen.next()
  7322. </Original>
  7323. <Expanded>
  7324. true
  7325. </Expanded>
  7326. </Expression>
  7327. <Info>
  7328. Current expected value is -0.3
  7329. </Info>
  7330. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7331. <Original>
  7332. gen.get() == Approx(expected)
  7333. </Original>
  7334. <Expanded>
  7335. -0.3 == Approx( -0.3 )
  7336. </Expanded>
  7337. </Expression>
  7338. <Info>
  7339. Current expected value is -0.3
  7340. </Info>
  7341. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7342. <Original>
  7343. gen.next()
  7344. </Original>
  7345. <Expanded>
  7346. true
  7347. </Expanded>
  7348. </Expression>
  7349. <Info>
  7350. Current expected value is -0.2
  7351. </Info>
  7352. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7353. <Original>
  7354. gen.get() == Approx(expected)
  7355. </Original>
  7356. <Expanded>
  7357. -0.2 == Approx( -0.2 )
  7358. </Expanded>
  7359. </Expression>
  7360. <Info>
  7361. Current expected value is -0.2
  7362. </Info>
  7363. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7364. <Original>
  7365. gen.next()
  7366. </Original>
  7367. <Expanded>
  7368. true
  7369. </Expanded>
  7370. </Expression>
  7371. <Info>
  7372. Current expected value is -0.1
  7373. </Info>
  7374. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7375. <Original>
  7376. gen.get() == Approx(expected)
  7377. </Original>
  7378. <Expanded>
  7379. -0.1 == Approx( -0.1 )
  7380. </Expanded>
  7381. </Expression>
  7382. <Info>
  7383. Current expected value is -0.1
  7384. </Info>
  7385. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7386. <Original>
  7387. gen.next()
  7388. </Original>
  7389. <Expanded>
  7390. true
  7391. </Expanded>
  7392. </Expression>
  7393. <Info>
  7394. Current expected value is -1.38778e-16
  7395. </Info>
  7396. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7397. <Original>
  7398. gen.get() == Approx(expected)
  7399. </Original>
  7400. <Expanded>
  7401. -0.0 == Approx( -0.0 )
  7402. </Expanded>
  7403. </Expression>
  7404. <Info>
  7405. Current expected value is -1.38778e-16
  7406. </Info>
  7407. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7408. <Original>
  7409. gen.next()
  7410. </Original>
  7411. <Expanded>
  7412. true
  7413. </Expanded>
  7414. </Expression>
  7415. <Info>
  7416. Current expected value is 0.1
  7417. </Info>
  7418. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7419. <Original>
  7420. gen.get() == Approx(expected)
  7421. </Original>
  7422. <Expanded>
  7423. 0.1 == Approx( 0.1 )
  7424. </Expanded>
  7425. </Expression>
  7426. <Info>
  7427. Current expected value is 0.1
  7428. </Info>
  7429. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7430. <Original>
  7431. gen.next()
  7432. </Original>
  7433. <Expanded>
  7434. true
  7435. </Expanded>
  7436. </Expression>
  7437. <Info>
  7438. Current expected value is 0.2
  7439. </Info>
  7440. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7441. <Original>
  7442. gen.get() == Approx(expected)
  7443. </Original>
  7444. <Expanded>
  7445. 0.2 == Approx( 0.2 )
  7446. </Expanded>
  7447. </Expression>
  7448. <Info>
  7449. Current expected value is 0.2
  7450. </Info>
  7451. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7452. <Original>
  7453. gen.next()
  7454. </Original>
  7455. <Expanded>
  7456. true
  7457. </Expanded>
  7458. </Expression>
  7459. <Info>
  7460. Current expected value is 0.3
  7461. </Info>
  7462. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7463. <Original>
  7464. gen.get() == Approx(expected)
  7465. </Original>
  7466. <Expanded>
  7467. 0.3 == Approx( 0.3 )
  7468. </Expanded>
  7469. </Expression>
  7470. <Info>
  7471. Current expected value is 0.3
  7472. </Info>
  7473. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7474. <Original>
  7475. gen.next()
  7476. </Original>
  7477. <Expanded>
  7478. true
  7479. </Expanded>
  7480. </Expression>
  7481. <Info>
  7482. Current expected value is 0.4
  7483. </Info>
  7484. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7485. <Original>
  7486. gen.get() == Approx(expected)
  7487. </Original>
  7488. <Expanded>
  7489. 0.4 == Approx( 0.4 )
  7490. </Expanded>
  7491. </Expression>
  7492. <Info>
  7493. Current expected value is 0.4
  7494. </Info>
  7495. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7496. <Original>
  7497. gen.next()
  7498. </Original>
  7499. <Expanded>
  7500. true
  7501. </Expanded>
  7502. </Expression>
  7503. <Info>
  7504. Current expected value is 0.5
  7505. </Info>
  7506. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7507. <Original>
  7508. gen.get() == Approx(expected)
  7509. </Original>
  7510. <Expanded>
  7511. 0.5 == Approx( 0.5 )
  7512. </Expanded>
  7513. </Expression>
  7514. <Info>
  7515. Current expected value is 0.5
  7516. </Info>
  7517. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7518. <Original>
  7519. gen.next()
  7520. </Original>
  7521. <Expanded>
  7522. true
  7523. </Expanded>
  7524. </Expression>
  7525. <Info>
  7526. Current expected value is 0.6
  7527. </Info>
  7528. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7529. <Original>
  7530. gen.get() == Approx(expected)
  7531. </Original>
  7532. <Expanded>
  7533. 0.6 == Approx( 0.6 )
  7534. </Expanded>
  7535. </Expression>
  7536. <Info>
  7537. Current expected value is 0.6
  7538. </Info>
  7539. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7540. <Original>
  7541. gen.next()
  7542. </Original>
  7543. <Expanded>
  7544. true
  7545. </Expanded>
  7546. </Expression>
  7547. <Info>
  7548. Current expected value is 0.7
  7549. </Info>
  7550. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7551. <Original>
  7552. gen.get() == Approx(expected)
  7553. </Original>
  7554. <Expanded>
  7555. 0.7 == Approx( 0.7 )
  7556. </Expanded>
  7557. </Expression>
  7558. <Info>
  7559. Current expected value is 0.7
  7560. </Info>
  7561. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7562. <Original>
  7563. gen.next()
  7564. </Original>
  7565. <Expanded>
  7566. true
  7567. </Expanded>
  7568. </Expression>
  7569. <Info>
  7570. Current expected value is 0.8
  7571. </Info>
  7572. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7573. <Original>
  7574. gen.get() == Approx(expected)
  7575. </Original>
  7576. <Expanded>
  7577. 0.8 == Approx( 0.8 )
  7578. </Expanded>
  7579. </Expression>
  7580. <Info>
  7581. Current expected value is 0.8
  7582. </Info>
  7583. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7584. <Original>
  7585. gen.next()
  7586. </Original>
  7587. <Expanded>
  7588. true
  7589. </Expanded>
  7590. </Expression>
  7591. <Info>
  7592. Current expected value is 0.9
  7593. </Info>
  7594. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7595. <Original>
  7596. gen.get() == Approx(expected)
  7597. </Original>
  7598. <Expanded>
  7599. 0.9 == Approx( 0.9 )
  7600. </Expanded>
  7601. </Expression>
  7602. <Info>
  7603. Current expected value is 0.9
  7604. </Info>
  7605. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7606. <Original>
  7607. gen.next()
  7608. </Original>
  7609. <Expanded>
  7610. true
  7611. </Expanded>
  7612. </Expression>
  7613. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7614. <Original>
  7615. gen.get() == Approx( rangeEnd )
  7616. </Original>
  7617. <Expanded>
  7618. 1.0 == Approx( 1.0 )
  7619. </Expanded>
  7620. </Expression>
  7621. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7622. <Original>
  7623. !(gen.next())
  7624. </Original>
  7625. <Expanded>
  7626. !false
  7627. </Expanded>
  7628. </Expression>
  7629. <OverallResults successes="42" failures="0" expectedFailures="0"/>
  7630. </Section>
  7631. <OverallResults successes="42" failures="0" expectedFailures="0"/>
  7632. </Section>
  7633. <OverallResults successes="42" failures="0" expectedFailures="0"/>
  7634. </Section>
  7635. <OverallResults successes="42" failures="0" expectedFailures="0"/>
  7636. </Section>
  7637. <Section name="Range" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7638. <Section name="Positive manual step" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7639. <Section name="Floating Point" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7640. <Section name="Slightly over end" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7641. <Info>
  7642. Current expected value is -1
  7643. </Info>
  7644. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7645. <Original>
  7646. gen.get() == Approx(expected)
  7647. </Original>
  7648. <Expanded>
  7649. -1.0 == Approx( -1.0 )
  7650. </Expanded>
  7651. </Expression>
  7652. <Info>
  7653. Current expected value is -1
  7654. </Info>
  7655. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7656. <Original>
  7657. gen.next()
  7658. </Original>
  7659. <Expanded>
  7660. true
  7661. </Expanded>
  7662. </Expression>
  7663. <Info>
  7664. Current expected value is -0.7
  7665. </Info>
  7666. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7667. <Original>
  7668. gen.get() == Approx(expected)
  7669. </Original>
  7670. <Expanded>
  7671. -0.7 == Approx( -0.7 )
  7672. </Expanded>
  7673. </Expression>
  7674. <Info>
  7675. Current expected value is -0.7
  7676. </Info>
  7677. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7678. <Original>
  7679. gen.next()
  7680. </Original>
  7681. <Expanded>
  7682. true
  7683. </Expanded>
  7684. </Expression>
  7685. <Info>
  7686. Current expected value is -0.4
  7687. </Info>
  7688. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7689. <Original>
  7690. gen.get() == Approx(expected)
  7691. </Original>
  7692. <Expanded>
  7693. -0.4 == Approx( -0.4 )
  7694. </Expanded>
  7695. </Expression>
  7696. <Info>
  7697. Current expected value is -0.4
  7698. </Info>
  7699. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7700. <Original>
  7701. gen.next()
  7702. </Original>
  7703. <Expanded>
  7704. true
  7705. </Expanded>
  7706. </Expression>
  7707. <Info>
  7708. Current expected value is -0.1
  7709. </Info>
  7710. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7711. <Original>
  7712. gen.get() == Approx(expected)
  7713. </Original>
  7714. <Expanded>
  7715. -0.1 == Approx( -0.1 )
  7716. </Expanded>
  7717. </Expression>
  7718. <Info>
  7719. Current expected value is -0.1
  7720. </Info>
  7721. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7722. <Original>
  7723. gen.next()
  7724. </Original>
  7725. <Expanded>
  7726. true
  7727. </Expanded>
  7728. </Expression>
  7729. <Info>
  7730. Current expected value is 0.2
  7731. </Info>
  7732. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7733. <Original>
  7734. gen.get() == Approx(expected)
  7735. </Original>
  7736. <Expanded>
  7737. 0.2 == Approx( 0.2 )
  7738. </Expanded>
  7739. </Expression>
  7740. <Info>
  7741. Current expected value is 0.2
  7742. </Info>
  7743. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7744. <Original>
  7745. gen.next()
  7746. </Original>
  7747. <Expanded>
  7748. true
  7749. </Expanded>
  7750. </Expression>
  7751. <Info>
  7752. Current expected value is 0.5
  7753. </Info>
  7754. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7755. <Original>
  7756. gen.get() == Approx(expected)
  7757. </Original>
  7758. <Expanded>
  7759. 0.5 == Approx( 0.5 )
  7760. </Expanded>
  7761. </Expression>
  7762. <Info>
  7763. Current expected value is 0.5
  7764. </Info>
  7765. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7766. <Original>
  7767. gen.next()
  7768. </Original>
  7769. <Expanded>
  7770. true
  7771. </Expanded>
  7772. </Expression>
  7773. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7774. <Original>
  7775. !(gen.next())
  7776. </Original>
  7777. <Expanded>
  7778. !false
  7779. </Expanded>
  7780. </Expression>
  7781. <OverallResults successes="13" failures="0" expectedFailures="0"/>
  7782. </Section>
  7783. <OverallResults successes="13" failures="0" expectedFailures="0"/>
  7784. </Section>
  7785. <OverallResults successes="13" failures="0" expectedFailures="0"/>
  7786. </Section>
  7787. <OverallResults successes="13" failures="0" expectedFailures="0"/>
  7788. </Section>
  7789. <Section name="Range" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7790. <Section name="Positive manual step" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7791. <Section name="Floating Point" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7792. <Section name="Slightly under end" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7793. <Info>
  7794. Current expected value is -1
  7795. </Info>
  7796. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7797. <Original>
  7798. gen.get() == Approx(expected)
  7799. </Original>
  7800. <Expanded>
  7801. -1.0 == Approx( -1.0 )
  7802. </Expanded>
  7803. </Expression>
  7804. <Info>
  7805. Current expected value is -1
  7806. </Info>
  7807. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7808. <Original>
  7809. gen.next()
  7810. </Original>
  7811. <Expanded>
  7812. true
  7813. </Expanded>
  7814. </Expression>
  7815. <Info>
  7816. Current expected value is -0.7
  7817. </Info>
  7818. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7819. <Original>
  7820. gen.get() == Approx(expected)
  7821. </Original>
  7822. <Expanded>
  7823. -0.7 == Approx( -0.7 )
  7824. </Expanded>
  7825. </Expression>
  7826. <Info>
  7827. Current expected value is -0.7
  7828. </Info>
  7829. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7830. <Original>
  7831. gen.next()
  7832. </Original>
  7833. <Expanded>
  7834. true
  7835. </Expanded>
  7836. </Expression>
  7837. <Info>
  7838. Current expected value is -0.4
  7839. </Info>
  7840. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7841. <Original>
  7842. gen.get() == Approx(expected)
  7843. </Original>
  7844. <Expanded>
  7845. -0.4 == Approx( -0.4 )
  7846. </Expanded>
  7847. </Expression>
  7848. <Info>
  7849. Current expected value is -0.4
  7850. </Info>
  7851. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7852. <Original>
  7853. gen.next()
  7854. </Original>
  7855. <Expanded>
  7856. true
  7857. </Expanded>
  7858. </Expression>
  7859. <Info>
  7860. Current expected value is -0.1
  7861. </Info>
  7862. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7863. <Original>
  7864. gen.get() == Approx(expected)
  7865. </Original>
  7866. <Expanded>
  7867. -0.1 == Approx( -0.1 )
  7868. </Expanded>
  7869. </Expression>
  7870. <Info>
  7871. Current expected value is -0.1
  7872. </Info>
  7873. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7874. <Original>
  7875. gen.next()
  7876. </Original>
  7877. <Expanded>
  7878. true
  7879. </Expanded>
  7880. </Expression>
  7881. <Info>
  7882. Current expected value is 0.2
  7883. </Info>
  7884. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7885. <Original>
  7886. gen.get() == Approx(expected)
  7887. </Original>
  7888. <Expanded>
  7889. 0.2 == Approx( 0.2 )
  7890. </Expanded>
  7891. </Expression>
  7892. <Info>
  7893. Current expected value is 0.2
  7894. </Info>
  7895. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7896. <Original>
  7897. gen.next()
  7898. </Original>
  7899. <Expanded>
  7900. true
  7901. </Expanded>
  7902. </Expression>
  7903. <Info>
  7904. Current expected value is 0.5
  7905. </Info>
  7906. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7907. <Original>
  7908. gen.get() == Approx(expected)
  7909. </Original>
  7910. <Expanded>
  7911. 0.5 == Approx( 0.5 )
  7912. </Expanded>
  7913. </Expression>
  7914. <Info>
  7915. Current expected value is 0.5
  7916. </Info>
  7917. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7918. <Original>
  7919. gen.next()
  7920. </Original>
  7921. <Expanded>
  7922. true
  7923. </Expanded>
  7924. </Expression>
  7925. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7926. <Original>
  7927. !(gen.next())
  7928. </Original>
  7929. <Expanded>
  7930. !false
  7931. </Expanded>
  7932. </Expression>
  7933. <OverallResults successes="13" failures="0" expectedFailures="0"/>
  7934. </Section>
  7935. <OverallResults successes="13" failures="0" expectedFailures="0"/>
  7936. </Section>
  7937. <OverallResults successes="13" failures="0" expectedFailures="0"/>
  7938. </Section>
  7939. <OverallResults successes="13" failures="0" expectedFailures="0"/>
  7940. </Section>
  7941. <Section name="Range" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7942. <Section name="Negative manual step" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7943. <Section name="Integer" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7944. <Section name="Exact" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7945. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7946. <Original>
  7947. gen.get() == 5
  7948. </Original>
  7949. <Expanded>
  7950. 5 == 5
  7951. </Expanded>
  7952. </Expression>
  7953. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7954. <Original>
  7955. gen.next()
  7956. </Original>
  7957. <Expanded>
  7958. true
  7959. </Expanded>
  7960. </Expression>
  7961. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7962. <Original>
  7963. gen.get() == 2
  7964. </Original>
  7965. <Expanded>
  7966. 2 == 2
  7967. </Expanded>
  7968. </Expression>
  7969. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7970. <Original>
  7971. gen.next()
  7972. </Original>
  7973. <Expanded>
  7974. true
  7975. </Expanded>
  7976. </Expression>
  7977. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7978. <Original>
  7979. gen.get() == -1
  7980. </Original>
  7981. <Expanded>
  7982. -1 == -1
  7983. </Expanded>
  7984. </Expression>
  7985. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7986. <Original>
  7987. gen.next()
  7988. </Original>
  7989. <Expanded>
  7990. true
  7991. </Expanded>
  7992. </Expression>
  7993. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7994. <Original>
  7995. gen.get() == -4
  7996. </Original>
  7997. <Expanded>
  7998. -4 == -4
  7999. </Expanded>
  8000. </Expression>
  8001. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8002. <Original>
  8003. !(gen.next())
  8004. </Original>
  8005. <Expanded>
  8006. !false
  8007. </Expanded>
  8008. </Expression>
  8009. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  8010. </Section>
  8011. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  8012. </Section>
  8013. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  8014. </Section>
  8015. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  8016. </Section>
  8017. <Section name="Range" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8018. <Section name="Negative manual step" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8019. <Section name="Integer" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8020. <Section name="Slightly over end" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8021. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8022. <Original>
  8023. gen.get() == 5
  8024. </Original>
  8025. <Expanded>
  8026. 5 == 5
  8027. </Expanded>
  8028. </Expression>
  8029. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8030. <Original>
  8031. gen.next()
  8032. </Original>
  8033. <Expanded>
  8034. true
  8035. </Expanded>
  8036. </Expression>
  8037. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8038. <Original>
  8039. gen.get() == 2
  8040. </Original>
  8041. <Expanded>
  8042. 2 == 2
  8043. </Expanded>
  8044. </Expression>
  8045. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8046. <Original>
  8047. gen.next()
  8048. </Original>
  8049. <Expanded>
  8050. true
  8051. </Expanded>
  8052. </Expression>
  8053. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8054. <Original>
  8055. gen.get() == -1
  8056. </Original>
  8057. <Expanded>
  8058. -1 == -1
  8059. </Expanded>
  8060. </Expression>
  8061. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8062. <Original>
  8063. gen.next()
  8064. </Original>
  8065. <Expanded>
  8066. true
  8067. </Expanded>
  8068. </Expression>
  8069. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8070. <Original>
  8071. gen.get() == -4
  8072. </Original>
  8073. <Expanded>
  8074. -4 == -4
  8075. </Expanded>
  8076. </Expression>
  8077. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8078. <Original>
  8079. !(gen.next())
  8080. </Original>
  8081. <Expanded>
  8082. !false
  8083. </Expanded>
  8084. </Expression>
  8085. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  8086. </Section>
  8087. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  8088. </Section>
  8089. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  8090. </Section>
  8091. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  8092. </Section>
  8093. <Section name="Range" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8094. <Section name="Negative manual step" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8095. <Section name="Integer" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8096. <Section name="Slightly under end" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8097. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8098. <Original>
  8099. gen.get() == 5
  8100. </Original>
  8101. <Expanded>
  8102. 5 == 5
  8103. </Expanded>
  8104. </Expression>
  8105. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8106. <Original>
  8107. gen.next()
  8108. </Original>
  8109. <Expanded>
  8110. true
  8111. </Expanded>
  8112. </Expression>
  8113. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8114. <Original>
  8115. gen.get() == 2
  8116. </Original>
  8117. <Expanded>
  8118. 2 == 2
  8119. </Expanded>
  8120. </Expression>
  8121. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8122. <Original>
  8123. gen.next()
  8124. </Original>
  8125. <Expanded>
  8126. true
  8127. </Expanded>
  8128. </Expression>
  8129. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8130. <Original>
  8131. gen.get() == -1
  8132. </Original>
  8133. <Expanded>
  8134. -1 == -1
  8135. </Expanded>
  8136. </Expression>
  8137. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8138. <Original>
  8139. gen.next()
  8140. </Original>
  8141. <Expanded>
  8142. true
  8143. </Expanded>
  8144. </Expression>
  8145. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8146. <Original>
  8147. gen.get() == -4
  8148. </Original>
  8149. <Expanded>
  8150. -4 == -4
  8151. </Expanded>
  8152. </Expression>
  8153. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8154. <Original>
  8155. gen.next()
  8156. </Original>
  8157. <Expanded>
  8158. true
  8159. </Expanded>
  8160. </Expression>
  8161. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8162. <Original>
  8163. gen.get() == -7
  8164. </Original>
  8165. <Expanded>
  8166. -7 == -7
  8167. </Expanded>
  8168. </Expression>
  8169. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  8170. <Original>
  8171. !(gen.next())
  8172. </Original>
  8173. <Expanded>
  8174. !false
  8175. </Expanded>
  8176. </Expression>
  8177. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  8178. </Section>
  8179. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  8180. </Section>
  8181. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  8182. </Section>
  8183. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  8184. </Section>
  8185. <OverallResult success="true"/>
  8186. </TestCase>
  8187. <TestCase name="Greater-than inequalities with different epsilons" tags="[Approx]" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  8188. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  8189. <Original>
  8190. d >= Approx( 1.22 )
  8191. </Original>
  8192. <Expanded>
  8193. 1.23 >= Approx( 1.22 )
  8194. </Expanded>
  8195. </Expression>
  8196. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  8197. <Original>
  8198. d >= Approx( 1.23 )
  8199. </Original>
  8200. <Expanded>
  8201. 1.23 >= Approx( 1.23 )
  8202. </Expanded>
  8203. </Expression>
  8204. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  8205. <Original>
  8206. !(d >= Approx( 1.24 ))
  8207. </Original>
  8208. <Expanded>
  8209. !(1.23 >= Approx( 1.24 ))
  8210. </Expanded>
  8211. </Expression>
  8212. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  8213. <Original>
  8214. d >= Approx( 1.24 ).epsilon(0.1)
  8215. </Original>
  8216. <Expanded>
  8217. 1.23 >= Approx( 1.24 )
  8218. </Expanded>
  8219. </Expression>
  8220. <OverallResult success="true"/>
  8221. </TestCase>
  8222. <TestCase name="Hashers with different seed produce different hash with same test case" tags="[test-case-hash]" filename="tests/<exe-name>/IntrospectiveTests/TestCaseInfoHasher.tests.cpp" >
  8223. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/TestCaseInfoHasher.tests.cpp" >
  8224. <Original>
  8225. h1( dummy ) != h2( dummy )
  8226. </Original>
  8227. <Expanded>
  8228. 3422778688 (0x<hex digits>)
  8229. !=
  8230. 130711275 (0x<hex digits>)
  8231. </Expanded>
  8232. </Expression>
  8233. <OverallResult success="true"/>
  8234. </TestCase>
  8235. <TestCase name="Hashers with same seed produce same hash" tags="[test-case-hash]" filename="tests/<exe-name>/IntrospectiveTests/TestCaseInfoHasher.tests.cpp" >
  8236. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/TestCaseInfoHasher.tests.cpp" >
  8237. <Original>
  8238. h1( dummy ) == h2( dummy )
  8239. </Original>
  8240. <Expanded>
  8241. 3422778688 (0x<hex digits>)
  8242. ==
  8243. 3422778688 (0x<hex digits>)
  8244. </Expanded>
  8245. </Expression>
  8246. <OverallResult success="true"/>
  8247. </TestCase>
  8248. <TestCase name="Hashing different test cases produces different result" tags="[test-case-hash]" filename="tests/<exe-name>/IntrospectiveTests/TestCaseInfoHasher.tests.cpp" >
  8249. <Section name="Different test name" filename="tests/<exe-name>/IntrospectiveTests/TestCaseInfoHasher.tests.cpp" >
  8250. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/TestCaseInfoHasher.tests.cpp" >
  8251. <Original>
  8252. h( dummy1 ) != h( dummy2 )
  8253. </Original>
  8254. <Expanded>
  8255. 2903002874 (0x<hex digits>)
  8256. !=
  8257. 2668622104 (0x<hex digits>)
  8258. </Expanded>
  8259. </Expression>
  8260. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  8261. </Section>
  8262. <Section name="Different classname" filename="tests/<exe-name>/IntrospectiveTests/TestCaseInfoHasher.tests.cpp" >
  8263. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/TestCaseInfoHasher.tests.cpp" >
  8264. <Original>
  8265. h( dummy1 ) != h( dummy2 )
  8266. </Original>
  8267. <Expanded>
  8268. 2673152918 (0x<hex digits>)
  8269. !=
  8270. 3916075712 (0x<hex digits>)
  8271. </Expanded>
  8272. </Expression>
  8273. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  8274. </Section>
  8275. <Section name="Different tags" filename="tests/<exe-name>/IntrospectiveTests/TestCaseInfoHasher.tests.cpp" >
  8276. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/TestCaseInfoHasher.tests.cpp" >
  8277. <Original>
  8278. h( dummy1 ) != h( dummy2 )
  8279. </Original>
  8280. <Expanded>
  8281. 2074929312 (0x<hex digits>)
  8282. !=
  8283. 3429949824 (0x<hex digits>)
  8284. </Expanded>
  8285. </Expression>
  8286. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  8287. </Section>
  8288. <OverallResult success="true"/>
  8289. </TestCase>
  8290. <TestCase name="Hashing test case produces same hash across multiple calls" tags="[test-case-hash]" filename="tests/<exe-name>/IntrospectiveTests/TestCaseInfoHasher.tests.cpp" >
  8291. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/TestCaseInfoHasher.tests.cpp" >
  8292. <Original>
  8293. h( dummy ) == h( dummy )
  8294. </Original>
  8295. <Expanded>
  8296. 3422778688 (0x<hex digits>)
  8297. ==
  8298. 3422778688 (0x<hex digits>)
  8299. </Expanded>
  8300. </Expression>
  8301. <OverallResult success="true"/>
  8302. </TestCase>
  8303. <TestCase name="INFO and WARN do not abort tests" tags="[.][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8304. <Info>
  8305. this is a message
  8306. </Info>
  8307. <Warning>
  8308. this is a warning
  8309. </Warning>
  8310. <OverallResult success="false"/>
  8311. </TestCase>
  8312. <TestCase name="INFO gets logged on failure" tags="[.][failing][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8313. <Info>
  8314. this message should be logged
  8315. </Info>
  8316. <Info>
  8317. so should this
  8318. </Info>
  8319. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8320. <Original>
  8321. a == 1
  8322. </Original>
  8323. <Expanded>
  8324. 2 == 1
  8325. </Expanded>
  8326. </Expression>
  8327. <OverallResult success="false"/>
  8328. </TestCase>
  8329. <TestCase name="INFO gets logged on failure, even if captured before successful assertions" tags="[.][failing][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8330. <Info>
  8331. this message may be logged later
  8332. </Info>
  8333. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8334. <Original>
  8335. a == 2
  8336. </Original>
  8337. <Expanded>
  8338. 2 == 2
  8339. </Expanded>
  8340. </Expression>
  8341. <Info>
  8342. this message may be logged later
  8343. </Info>
  8344. <Info>
  8345. this message should be logged
  8346. </Info>
  8347. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8348. <Original>
  8349. a == 1
  8350. </Original>
  8351. <Expanded>
  8352. 2 == 1
  8353. </Expanded>
  8354. </Expression>
  8355. <Info>
  8356. this message may be logged later
  8357. </Info>
  8358. <Info>
  8359. this message should be logged
  8360. </Info>
  8361. <Info>
  8362. and this, but later
  8363. </Info>
  8364. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8365. <Original>
  8366. a == 0
  8367. </Original>
  8368. <Expanded>
  8369. 2 == 0
  8370. </Expanded>
  8371. </Expression>
  8372. <Info>
  8373. this message may be logged later
  8374. </Info>
  8375. <Info>
  8376. this message should be logged
  8377. </Info>
  8378. <Info>
  8379. and this, but later
  8380. </Info>
  8381. <Info>
  8382. but not this
  8383. </Info>
  8384. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8385. <Original>
  8386. a == 2
  8387. </Original>
  8388. <Expanded>
  8389. 2 == 2
  8390. </Expanded>
  8391. </Expression>
  8392. <OverallResult success="false"/>
  8393. </TestCase>
  8394. <TestCase name="INFO is reset for each loop" tags="[.][failing][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8395. <Info>
  8396. current counter 0
  8397. </Info>
  8398. <Info>
  8399. i := 0
  8400. </Info>
  8401. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8402. <Original>
  8403. i &lt; 10
  8404. </Original>
  8405. <Expanded>
  8406. 0 &lt; 10
  8407. </Expanded>
  8408. </Expression>
  8409. <Info>
  8410. current counter 1
  8411. </Info>
  8412. <Info>
  8413. i := 1
  8414. </Info>
  8415. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8416. <Original>
  8417. i &lt; 10
  8418. </Original>
  8419. <Expanded>
  8420. 1 &lt; 10
  8421. </Expanded>
  8422. </Expression>
  8423. <Info>
  8424. current counter 2
  8425. </Info>
  8426. <Info>
  8427. i := 2
  8428. </Info>
  8429. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8430. <Original>
  8431. i &lt; 10
  8432. </Original>
  8433. <Expanded>
  8434. 2 &lt; 10
  8435. </Expanded>
  8436. </Expression>
  8437. <Info>
  8438. current counter 3
  8439. </Info>
  8440. <Info>
  8441. i := 3
  8442. </Info>
  8443. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8444. <Original>
  8445. i &lt; 10
  8446. </Original>
  8447. <Expanded>
  8448. 3 &lt; 10
  8449. </Expanded>
  8450. </Expression>
  8451. <Info>
  8452. current counter 4
  8453. </Info>
  8454. <Info>
  8455. i := 4
  8456. </Info>
  8457. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8458. <Original>
  8459. i &lt; 10
  8460. </Original>
  8461. <Expanded>
  8462. 4 &lt; 10
  8463. </Expanded>
  8464. </Expression>
  8465. <Info>
  8466. current counter 5
  8467. </Info>
  8468. <Info>
  8469. i := 5
  8470. </Info>
  8471. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8472. <Original>
  8473. i &lt; 10
  8474. </Original>
  8475. <Expanded>
  8476. 5 &lt; 10
  8477. </Expanded>
  8478. </Expression>
  8479. <Info>
  8480. current counter 6
  8481. </Info>
  8482. <Info>
  8483. i := 6
  8484. </Info>
  8485. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8486. <Original>
  8487. i &lt; 10
  8488. </Original>
  8489. <Expanded>
  8490. 6 &lt; 10
  8491. </Expanded>
  8492. </Expression>
  8493. <Info>
  8494. current counter 7
  8495. </Info>
  8496. <Info>
  8497. i := 7
  8498. </Info>
  8499. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8500. <Original>
  8501. i &lt; 10
  8502. </Original>
  8503. <Expanded>
  8504. 7 &lt; 10
  8505. </Expanded>
  8506. </Expression>
  8507. <Info>
  8508. current counter 8
  8509. </Info>
  8510. <Info>
  8511. i := 8
  8512. </Info>
  8513. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8514. <Original>
  8515. i &lt; 10
  8516. </Original>
  8517. <Expanded>
  8518. 8 &lt; 10
  8519. </Expanded>
  8520. </Expression>
  8521. <Info>
  8522. current counter 9
  8523. </Info>
  8524. <Info>
  8525. i := 9
  8526. </Info>
  8527. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8528. <Original>
  8529. i &lt; 10
  8530. </Original>
  8531. <Expanded>
  8532. 9 &lt; 10
  8533. </Expanded>
  8534. </Expression>
  8535. <Info>
  8536. current counter 10
  8537. </Info>
  8538. <Info>
  8539. i := 10
  8540. </Info>
  8541. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  8542. <Original>
  8543. i &lt; 10
  8544. </Original>
  8545. <Expanded>
  8546. 10 &lt; 10
  8547. </Expanded>
  8548. </Expression>
  8549. <OverallResult success="false"/>
  8550. </TestCase>
  8551. <TestCase name="Inequality checks that should fail" tags="[!shouldfail][.][failing]" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8552. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8553. <Original>
  8554. data.int_seven != 7
  8555. </Original>
  8556. <Expanded>
  8557. 7 != 7
  8558. </Expanded>
  8559. </Expression>
  8560. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8561. <Original>
  8562. data.float_nine_point_one != Approx( 9.1f )
  8563. </Original>
  8564. <Expanded>
  8565. 9.1f != Approx( 9.1000003815 )
  8566. </Expanded>
  8567. </Expression>
  8568. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8569. <Original>
  8570. data.double_pi != Approx( 3.1415926535 )
  8571. </Original>
  8572. <Expanded>
  8573. 3.1415926535 != Approx( 3.1415926535 )
  8574. </Expanded>
  8575. </Expression>
  8576. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8577. <Original>
  8578. data.str_hello != "hello"
  8579. </Original>
  8580. <Expanded>
  8581. "hello" != "hello"
  8582. </Expanded>
  8583. </Expression>
  8584. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8585. <Original>
  8586. data.str_hello.size() != 5
  8587. </Original>
  8588. <Expanded>
  8589. 5 != 5
  8590. </Expanded>
  8591. </Expression>
  8592. <OverallResult success="true"/>
  8593. </TestCase>
  8594. <TestCase name="Inequality checks that should succeed" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8595. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8596. <Original>
  8597. data.int_seven != 6
  8598. </Original>
  8599. <Expanded>
  8600. 7 != 6
  8601. </Expanded>
  8602. </Expression>
  8603. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8604. <Original>
  8605. data.int_seven != 8
  8606. </Original>
  8607. <Expanded>
  8608. 7 != 8
  8609. </Expanded>
  8610. </Expression>
  8611. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8612. <Original>
  8613. data.float_nine_point_one != Approx( 9.11f )
  8614. </Original>
  8615. <Expanded>
  8616. 9.1f != Approx( 9.1099996567 )
  8617. </Expanded>
  8618. </Expression>
  8619. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8620. <Original>
  8621. data.float_nine_point_one != Approx( 9.0f )
  8622. </Original>
  8623. <Expanded>
  8624. 9.1f != Approx( 9.0 )
  8625. </Expanded>
  8626. </Expression>
  8627. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8628. <Original>
  8629. data.float_nine_point_one != Approx( 1 )
  8630. </Original>
  8631. <Expanded>
  8632. 9.1f != Approx( 1.0 )
  8633. </Expanded>
  8634. </Expression>
  8635. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8636. <Original>
  8637. data.float_nine_point_one != Approx( 0 )
  8638. </Original>
  8639. <Expanded>
  8640. 9.1f != Approx( 0.0 )
  8641. </Expanded>
  8642. </Expression>
  8643. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8644. <Original>
  8645. data.double_pi != Approx( 3.1415 )
  8646. </Original>
  8647. <Expanded>
  8648. 3.1415926535 != Approx( 3.1415 )
  8649. </Expanded>
  8650. </Expression>
  8651. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8652. <Original>
  8653. data.str_hello != "goodbye"
  8654. </Original>
  8655. <Expanded>
  8656. "hello" != "goodbye"
  8657. </Expanded>
  8658. </Expression>
  8659. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8660. <Original>
  8661. data.str_hello != "hell"
  8662. </Original>
  8663. <Expanded>
  8664. "hello" != "hell"
  8665. </Expanded>
  8666. </Expression>
  8667. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8668. <Original>
  8669. data.str_hello != "hello1"
  8670. </Original>
  8671. <Expanded>
  8672. "hello" != "hello1"
  8673. </Expanded>
  8674. </Expression>
  8675. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8676. <Original>
  8677. data.str_hello.size() != 6
  8678. </Original>
  8679. <Expanded>
  8680. 5 != 6
  8681. </Expanded>
  8682. </Expression>
  8683. <OverallResult success="true"/>
  8684. </TestCase>
  8685. <TestCase name="Lambdas in assertions" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  8686. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  8687. <Original>
  8688. []() { return true; }()
  8689. </Original>
  8690. <Expanded>
  8691. true
  8692. </Expanded>
  8693. </Expression>
  8694. <OverallResult success="true"/>
  8695. </TestCase>
  8696. <TestCase name="Less-than inequalities with different epsilons" tags="[Approx]" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  8697. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  8698. <Original>
  8699. d &lt;= Approx( 1.24 )
  8700. </Original>
  8701. <Expanded>
  8702. 1.23 &lt;= Approx( 1.24 )
  8703. </Expanded>
  8704. </Expression>
  8705. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  8706. <Original>
  8707. d &lt;= Approx( 1.23 )
  8708. </Original>
  8709. <Expanded>
  8710. 1.23 &lt;= Approx( 1.23 )
  8711. </Expanded>
  8712. </Expression>
  8713. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  8714. <Original>
  8715. !(d &lt;= Approx( 1.22 ))
  8716. </Original>
  8717. <Expanded>
  8718. !(1.23 &lt;= Approx( 1.22 ))
  8719. </Expanded>
  8720. </Expression>
  8721. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  8722. <Original>
  8723. d &lt;= Approx( 1.22 ).epsilon(0.1)
  8724. </Original>
  8725. <Expanded>
  8726. 1.23 &lt;= Approx( 1.22 )
  8727. </Expanded>
  8728. </Expression>
  8729. <OverallResult success="true"/>
  8730. </TestCase>
  8731. <TestCase name="ManuallyRegistered" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  8732. <OverallResult success="true"/>
  8733. </TestCase>
  8734. <TestCase name="Matchers can be (AllOf) composed with the &amp;&amp; operator" tags="[matchers][operator&amp;&amp;][operators]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  8735. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  8736. <Original>
  8737. testStringForMatching(), ContainsSubstring( "string" ) &amp;&amp; ContainsSubstring( "abc" ) &amp;&amp; ContainsSubstring( "substring" ) &amp;&amp; ContainsSubstring( "contains" )
  8738. </Original>
  8739. <Expanded>
  8740. "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" and contains: "substring" and contains: "contains" )
  8741. </Expanded>
  8742. </Expression>
  8743. <OverallResult success="true"/>
  8744. </TestCase>
  8745. <TestCase name="Matchers can be (AnyOf) composed with the || operator" tags="[matchers][operators][operator||]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  8746. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  8747. <Original>
  8748. testStringForMatching(), ContainsSubstring( "string" ) || ContainsSubstring( "different" ) || ContainsSubstring( "random" )
  8749. </Original>
  8750. <Expanded>
  8751. "this string contains 'abc' as a substring" ( contains: "string" or contains: "different" or contains: "random" )
  8752. </Expanded>
  8753. </Expression>
  8754. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  8755. <Original>
  8756. testStringForMatching2(), ContainsSubstring( "string" ) || ContainsSubstring( "different" ) || ContainsSubstring( "random" )
  8757. </Original>
  8758. <Expanded>
  8759. "some completely different text that contains one common word" ( contains: "string" or contains: "different" or contains: "random" )
  8760. </Expanded>
  8761. </Expression>
  8762. <OverallResult success="true"/>
  8763. </TestCase>
  8764. <TestCase name="Matchers can be composed with both &amp;&amp; and ||" tags="[matchers][operator&amp;&amp;][operators][operator||]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  8765. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  8766. <Original>
  8767. testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) &amp;&amp; ContainsSubstring( "substring" )
  8768. </Original>
  8769. <Expanded>
  8770. "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "substring" )
  8771. </Expanded>
  8772. </Expression>
  8773. <OverallResult success="true"/>
  8774. </TestCase>
  8775. <TestCase name="Matchers can be composed with both &amp;&amp; and || - failing" tags="[.][failing][matchers][operator&amp;&amp;][operators][operator||]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  8776. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  8777. <Original>
  8778. testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) &amp;&amp; ContainsSubstring( "random" )
  8779. </Original>
  8780. <Expanded>
  8781. "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "random" )
  8782. </Expanded>
  8783. </Expression>
  8784. <OverallResult success="false"/>
  8785. </TestCase>
  8786. <TestCase name="Matchers can be negated (Not) with the ! operator" tags="[matchers][not][operators]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  8787. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  8788. <Original>
  8789. testStringForMatching(), !ContainsSubstring( "different" )
  8790. </Original>
  8791. <Expanded>
  8792. "this string contains 'abc' as a substring" not contains: "different"
  8793. </Expanded>
  8794. </Expression>
  8795. <OverallResult success="true"/>
  8796. </TestCase>
  8797. <TestCase name="Matchers can be negated (Not) with the ! operator - failing" tags="[.][failing][matchers][not][operators]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  8798. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  8799. <Original>
  8800. testStringForMatching(), !ContainsSubstring( "substring" )
  8801. </Original>
  8802. <Expanded>
  8803. "this string contains 'abc' as a substring" not contains: "substring"
  8804. </Expanded>
  8805. </Expression>
  8806. <OverallResult success="false"/>
  8807. </TestCase>
  8808. <TestCase name="Mayfail test case with nested sections" tags="[!mayfail]" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8809. <Section name="A" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8810. <Section name="1" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8811. <Failure filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" />
  8812. <OverallResults successes="0" failures="0" expectedFailures="1"/>
  8813. </Section>
  8814. <OverallResults successes="0" failures="0" expectedFailures="1"/>
  8815. </Section>
  8816. <Section name="A" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8817. <Section name="2" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8818. <Failure filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" />
  8819. <OverallResults successes="0" failures="0" expectedFailures="1"/>
  8820. </Section>
  8821. <OverallResults successes="0" failures="0" expectedFailures="1"/>
  8822. </Section>
  8823. <Section name="A" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8824. <OverallResults successes="0" failures="0" expectedFailures="0"/>
  8825. </Section>
  8826. <Section name="B" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8827. <Section name="1" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8828. <Failure filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" />
  8829. <OverallResults successes="0" failures="0" expectedFailures="1"/>
  8830. </Section>
  8831. <OverallResults successes="0" failures="0" expectedFailures="1"/>
  8832. </Section>
  8833. <Section name="B" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8834. <Section name="2" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8835. <Failure filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" />
  8836. <OverallResults successes="0" failures="0" expectedFailures="1"/>
  8837. </Section>
  8838. <OverallResults successes="0" failures="0" expectedFailures="1"/>
  8839. </Section>
  8840. <Section name="B" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  8841. <OverallResults successes="0" failures="0" expectedFailures="0"/>
  8842. </Section>
  8843. <OverallResult success="true"/>
  8844. </TestCase>
  8845. <TestCase name="Mismatching exception messages failing the test" tags="[!throws][.][failing]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  8846. <Expression success="true" type="REQUIRE_THROWS_WITH" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  8847. <Original>
  8848. thisThrows(), "expected exception"
  8849. </Original>
  8850. <Expanded>
  8851. "expected exception" equals: "expected exception"
  8852. </Expanded>
  8853. </Expression>
  8854. <Expression success="false" type="REQUIRE_THROWS_WITH" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  8855. <Original>
  8856. thisThrows(), "should fail"
  8857. </Original>
  8858. <Expanded>
  8859. "expected exception" equals: "should fail"
  8860. </Expanded>
  8861. </Expression>
  8862. <OverallResult success="false"/>
  8863. </TestCase>
  8864. <TestCase name="Multireporter calls reporters and listeners in correct order" tags="[multi-reporter][reporters]" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8865. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8866. <Original>
  8867. records == expected
  8868. </Original>
  8869. <Expanded>
  8870. { "Hello", "world", "Goodbye", "world" }
  8871. ==
  8872. { "Hello", "world", "Goodbye", "world" }
  8873. </Expanded>
  8874. </Expression>
  8875. <OverallResult success="true"/>
  8876. </TestCase>
  8877. <TestCase name="Multireporter updates ReporterPreferences properly" tags="[multi-reporter][reporters]" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8878. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8879. <Original>
  8880. multiReporter.getPreferences().shouldRedirectStdOut == false
  8881. </Original>
  8882. <Expanded>
  8883. false == false
  8884. </Expanded>
  8885. </Expression>
  8886. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8887. <Original>
  8888. multiReporter.getPreferences().shouldReportAllAssertions == false
  8889. </Original>
  8890. <Expanded>
  8891. false == false
  8892. </Expanded>
  8893. </Expression>
  8894. <Section name="Adding listeners" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8895. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8896. <Original>
  8897. multiReporter.getPreferences().shouldRedirectStdOut == true
  8898. </Original>
  8899. <Expanded>
  8900. true == true
  8901. </Expanded>
  8902. </Expression>
  8903. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8904. <Original>
  8905. multiReporter.getPreferences().shouldReportAllAssertions == false
  8906. </Original>
  8907. <Expanded>
  8908. false == false
  8909. </Expanded>
  8910. </Expression>
  8911. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8912. <Original>
  8913. multiReporter.getPreferences().shouldRedirectStdOut == true
  8914. </Original>
  8915. <Expanded>
  8916. true == true
  8917. </Expanded>
  8918. </Expression>
  8919. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8920. <Original>
  8921. multiReporter.getPreferences().shouldReportAllAssertions == true
  8922. </Original>
  8923. <Expanded>
  8924. true == true
  8925. </Expanded>
  8926. </Expression>
  8927. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8928. <Original>
  8929. multiReporter.getPreferences().shouldRedirectStdOut == true
  8930. </Original>
  8931. <Expanded>
  8932. true == true
  8933. </Expanded>
  8934. </Expression>
  8935. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8936. <Original>
  8937. multiReporter.getPreferences().shouldReportAllAssertions == true
  8938. </Original>
  8939. <Expanded>
  8940. true == true
  8941. </Expanded>
  8942. </Expression>
  8943. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  8944. </Section>
  8945. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8946. <Original>
  8947. multiReporter.getPreferences().shouldRedirectStdOut == false
  8948. </Original>
  8949. <Expanded>
  8950. false == false
  8951. </Expanded>
  8952. </Expression>
  8953. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8954. <Original>
  8955. multiReporter.getPreferences().shouldReportAllAssertions == false
  8956. </Original>
  8957. <Expanded>
  8958. false == false
  8959. </Expanded>
  8960. </Expression>
  8961. <Section name="Adding reporters" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8962. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8963. <Original>
  8964. multiReporter.getPreferences().shouldRedirectStdOut == true
  8965. </Original>
  8966. <Expanded>
  8967. true == true
  8968. </Expanded>
  8969. </Expression>
  8970. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8971. <Original>
  8972. multiReporter.getPreferences().shouldReportAllAssertions == false
  8973. </Original>
  8974. <Expanded>
  8975. false == false
  8976. </Expanded>
  8977. </Expression>
  8978. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8979. <Original>
  8980. multiReporter.getPreferences().shouldRedirectStdOut == true
  8981. </Original>
  8982. <Expanded>
  8983. true == true
  8984. </Expanded>
  8985. </Expression>
  8986. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8987. <Original>
  8988. multiReporter.getPreferences().shouldReportAllAssertions == true
  8989. </Original>
  8990. <Expanded>
  8991. true == true
  8992. </Expanded>
  8993. </Expression>
  8994. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  8995. <Original>
  8996. multiReporter.getPreferences().shouldRedirectStdOut == true
  8997. </Original>
  8998. <Expanded>
  8999. true == true
  9000. </Expanded>
  9001. </Expression>
  9002. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  9003. <Original>
  9004. multiReporter.getPreferences().shouldReportAllAssertions == true
  9005. </Original>
  9006. <Expanded>
  9007. true == true
  9008. </Expanded>
  9009. </Expression>
  9010. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  9011. </Section>
  9012. <OverallResult success="true"/>
  9013. </TestCase>
  9014. <TestCase name="Nested generators and captured variables" tags="[generators]" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  9015. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  9016. <Original>
  9017. values > -6
  9018. </Original>
  9019. <Expanded>
  9020. 3 > -6
  9021. </Expanded>
  9022. </Expression>
  9023. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  9024. <Original>
  9025. values > -6
  9026. </Original>
  9027. <Expanded>
  9028. 4 > -6
  9029. </Expanded>
  9030. </Expression>
  9031. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  9032. <Original>
  9033. values > -6
  9034. </Original>
  9035. <Expanded>
  9036. 5 > -6
  9037. </Expanded>
  9038. </Expression>
  9039. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  9040. <Original>
  9041. values > -6
  9042. </Original>
  9043. <Expanded>
  9044. 6 > -6
  9045. </Expanded>
  9046. </Expression>
  9047. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  9048. <Original>
  9049. values > -6
  9050. </Original>
  9051. <Expanded>
  9052. -5 > -6
  9053. </Expanded>
  9054. </Expression>
  9055. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  9056. <Original>
  9057. values > -6
  9058. </Original>
  9059. <Expanded>
  9060. -4 > -6
  9061. </Expanded>
  9062. </Expression>
  9063. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  9064. <Original>
  9065. values > -6
  9066. </Original>
  9067. <Expanded>
  9068. 90 > -6
  9069. </Expanded>
  9070. </Expression>
  9071. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  9072. <Original>
  9073. values > -6
  9074. </Original>
  9075. <Expanded>
  9076. 91 > -6
  9077. </Expanded>
  9078. </Expression>
  9079. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  9080. <Original>
  9081. values > -6
  9082. </Original>
  9083. <Expanded>
  9084. 92 > -6
  9085. </Expanded>
  9086. </Expression>
  9087. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  9088. <Original>
  9089. values > -6
  9090. </Original>
  9091. <Expanded>
  9092. 93 > -6
  9093. </Expanded>
  9094. </Expression>
  9095. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  9096. <Original>
  9097. values > -6
  9098. </Original>
  9099. <Expanded>
  9100. 94 > -6
  9101. </Expanded>
  9102. </Expression>
  9103. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  9104. <Original>
  9105. values > -6
  9106. </Original>
  9107. <Expanded>
  9108. 95 > -6
  9109. </Expanded>
  9110. </Expression>
  9111. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  9112. <Original>
  9113. values > -6
  9114. </Original>
  9115. <Expanded>
  9116. 96 > -6
  9117. </Expanded>
  9118. </Expression>
  9119. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  9120. <Original>
  9121. values > -6
  9122. </Original>
  9123. <Expanded>
  9124. 97 > -6
  9125. </Expanded>
  9126. </Expression>
  9127. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  9128. <Original>
  9129. values > -6
  9130. </Original>
  9131. <Expanded>
  9132. 98 > -6
  9133. </Expanded>
  9134. </Expression>
  9135. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  9136. <Original>
  9137. values > -6
  9138. </Original>
  9139. <Expanded>
  9140. 99 > -6
  9141. </Expanded>
  9142. </Expression>
  9143. <OverallResult success="true"/>
  9144. </TestCase>
  9145. <TestCase name="Nice descriptive name" tags="[.][tag1][tag2][tag3]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  9146. <Warning>
  9147. This one ran
  9148. </Warning>
  9149. <OverallResult success="false"/>
  9150. </TestCase>
  9151. <TestCase name="Non-std exceptions can be translated" tags="[!throws][.][failing]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  9152. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  9153. custom exception
  9154. </Exception>
  9155. <OverallResult success="false"/>
  9156. </TestCase>
  9157. <TestCase name="Objects that evaluated in boolean contexts can be checked" tags="[SafeBool][Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  9158. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  9159. <Original>
  9160. True
  9161. </Original>
  9162. <Expanded>
  9163. {?}
  9164. </Expanded>
  9165. </Expression>
  9166. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  9167. <Original>
  9168. !False
  9169. </Original>
  9170. <Expanded>
  9171. true
  9172. </Expanded>
  9173. </Expression>
  9174. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  9175. <Original>
  9176. !(False)
  9177. </Original>
  9178. <Expanded>
  9179. !{?}
  9180. </Expanded>
  9181. </Expression>
  9182. <OverallResult success="true"/>
  9183. </TestCase>
  9184. <TestCase name="Optionally static assertions" tags="[compilation]" filename="tests/<exe-name>/UsageTests/Compilation.tests.cpp" >
  9185. <OverallResult success="true"/>
  9186. </TestCase>
  9187. <TestCase name="Ordering comparison checks that should fail" tags="[.][failing]" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9188. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9189. <Original>
  9190. data.int_seven > 7
  9191. </Original>
  9192. <Expanded>
  9193. 7 > 7
  9194. </Expanded>
  9195. </Expression>
  9196. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9197. <Original>
  9198. data.int_seven &lt; 7
  9199. </Original>
  9200. <Expanded>
  9201. 7 &lt; 7
  9202. </Expanded>
  9203. </Expression>
  9204. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9205. <Original>
  9206. data.int_seven > 8
  9207. </Original>
  9208. <Expanded>
  9209. 7 > 8
  9210. </Expanded>
  9211. </Expression>
  9212. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9213. <Original>
  9214. data.int_seven &lt; 6
  9215. </Original>
  9216. <Expanded>
  9217. 7 &lt; 6
  9218. </Expanded>
  9219. </Expression>
  9220. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9221. <Original>
  9222. data.int_seven &lt; 0
  9223. </Original>
  9224. <Expanded>
  9225. 7 &lt; 0
  9226. </Expanded>
  9227. </Expression>
  9228. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9229. <Original>
  9230. data.int_seven &lt; -1
  9231. </Original>
  9232. <Expanded>
  9233. 7 &lt; -1
  9234. </Expanded>
  9235. </Expression>
  9236. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9237. <Original>
  9238. data.int_seven >= 8
  9239. </Original>
  9240. <Expanded>
  9241. 7 >= 8
  9242. </Expanded>
  9243. </Expression>
  9244. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9245. <Original>
  9246. data.int_seven &lt;= 6
  9247. </Original>
  9248. <Expanded>
  9249. 7 &lt;= 6
  9250. </Expanded>
  9251. </Expression>
  9252. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9253. <Original>
  9254. data.float_nine_point_one &lt; 9
  9255. </Original>
  9256. <Expanded>
  9257. 9.1f &lt; 9
  9258. </Expanded>
  9259. </Expression>
  9260. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9261. <Original>
  9262. data.float_nine_point_one > 10
  9263. </Original>
  9264. <Expanded>
  9265. 9.1f > 10
  9266. </Expanded>
  9267. </Expression>
  9268. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9269. <Original>
  9270. data.float_nine_point_one > 9.2
  9271. </Original>
  9272. <Expanded>
  9273. 9.1f > 9.2
  9274. </Expanded>
  9275. </Expression>
  9276. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9277. <Original>
  9278. data.str_hello > "hello"
  9279. </Original>
  9280. <Expanded>
  9281. "hello" > "hello"
  9282. </Expanded>
  9283. </Expression>
  9284. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9285. <Original>
  9286. data.str_hello &lt; "hello"
  9287. </Original>
  9288. <Expanded>
  9289. "hello" &lt; "hello"
  9290. </Expanded>
  9291. </Expression>
  9292. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9293. <Original>
  9294. data.str_hello > "hellp"
  9295. </Original>
  9296. <Expanded>
  9297. "hello" > "hellp"
  9298. </Expanded>
  9299. </Expression>
  9300. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9301. <Original>
  9302. data.str_hello > "z"
  9303. </Original>
  9304. <Expanded>
  9305. "hello" > "z"
  9306. </Expanded>
  9307. </Expression>
  9308. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9309. <Original>
  9310. data.str_hello &lt; "hellm"
  9311. </Original>
  9312. <Expanded>
  9313. "hello" &lt; "hellm"
  9314. </Expanded>
  9315. </Expression>
  9316. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9317. <Original>
  9318. data.str_hello &lt; "a"
  9319. </Original>
  9320. <Expanded>
  9321. "hello" &lt; "a"
  9322. </Expanded>
  9323. </Expression>
  9324. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9325. <Original>
  9326. data.str_hello >= "z"
  9327. </Original>
  9328. <Expanded>
  9329. "hello" >= "z"
  9330. </Expanded>
  9331. </Expression>
  9332. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9333. <Original>
  9334. data.str_hello &lt;= "a"
  9335. </Original>
  9336. <Expanded>
  9337. "hello" &lt;= "a"
  9338. </Expanded>
  9339. </Expression>
  9340. <OverallResult success="false"/>
  9341. </TestCase>
  9342. <TestCase name="Ordering comparison checks that should succeed" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9343. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9344. <Original>
  9345. data.int_seven &lt; 8
  9346. </Original>
  9347. <Expanded>
  9348. 7 &lt; 8
  9349. </Expanded>
  9350. </Expression>
  9351. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9352. <Original>
  9353. data.int_seven > 6
  9354. </Original>
  9355. <Expanded>
  9356. 7 > 6
  9357. </Expanded>
  9358. </Expression>
  9359. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9360. <Original>
  9361. data.int_seven > 0
  9362. </Original>
  9363. <Expanded>
  9364. 7 > 0
  9365. </Expanded>
  9366. </Expression>
  9367. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9368. <Original>
  9369. data.int_seven > -1
  9370. </Original>
  9371. <Expanded>
  9372. 7 > -1
  9373. </Expanded>
  9374. </Expression>
  9375. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9376. <Original>
  9377. data.int_seven >= 7
  9378. </Original>
  9379. <Expanded>
  9380. 7 >= 7
  9381. </Expanded>
  9382. </Expression>
  9383. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9384. <Original>
  9385. data.int_seven >= 6
  9386. </Original>
  9387. <Expanded>
  9388. 7 >= 6
  9389. </Expanded>
  9390. </Expression>
  9391. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9392. <Original>
  9393. data.int_seven &lt;= 7
  9394. </Original>
  9395. <Expanded>
  9396. 7 &lt;= 7
  9397. </Expanded>
  9398. </Expression>
  9399. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9400. <Original>
  9401. data.int_seven &lt;= 8
  9402. </Original>
  9403. <Expanded>
  9404. 7 &lt;= 8
  9405. </Expanded>
  9406. </Expression>
  9407. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9408. <Original>
  9409. data.float_nine_point_one > 9
  9410. </Original>
  9411. <Expanded>
  9412. 9.1f > 9
  9413. </Expanded>
  9414. </Expression>
  9415. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9416. <Original>
  9417. data.float_nine_point_one &lt; 10
  9418. </Original>
  9419. <Expanded>
  9420. 9.1f &lt; 10
  9421. </Expanded>
  9422. </Expression>
  9423. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9424. <Original>
  9425. data.float_nine_point_one &lt; 9.2
  9426. </Original>
  9427. <Expanded>
  9428. 9.1f &lt; 9.2
  9429. </Expanded>
  9430. </Expression>
  9431. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9432. <Original>
  9433. data.str_hello &lt;= "hello"
  9434. </Original>
  9435. <Expanded>
  9436. "hello" &lt;= "hello"
  9437. </Expanded>
  9438. </Expression>
  9439. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9440. <Original>
  9441. data.str_hello >= "hello"
  9442. </Original>
  9443. <Expanded>
  9444. "hello" >= "hello"
  9445. </Expanded>
  9446. </Expression>
  9447. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9448. <Original>
  9449. data.str_hello &lt; "hellp"
  9450. </Original>
  9451. <Expanded>
  9452. "hello" &lt; "hellp"
  9453. </Expanded>
  9454. </Expression>
  9455. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9456. <Original>
  9457. data.str_hello &lt; "zebra"
  9458. </Original>
  9459. <Expanded>
  9460. "hello" &lt; "zebra"
  9461. </Expanded>
  9462. </Expression>
  9463. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9464. <Original>
  9465. data.str_hello > "hellm"
  9466. </Original>
  9467. <Expanded>
  9468. "hello" > "hellm"
  9469. </Expanded>
  9470. </Expression>
  9471. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  9472. <Original>
  9473. data.str_hello > "a"
  9474. </Original>
  9475. <Expanded>
  9476. "hello" > "a"
  9477. </Expanded>
  9478. </Expression>
  9479. <OverallResult success="true"/>
  9480. </TestCase>
  9481. <TestCase name="Our PCG implementation provides expected results for known seeds" tags="[rng]" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9482. <Section name="Default seeded" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9483. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9484. <Original>
  9485. rng() == 0x<hex digits>
  9486. </Original>
  9487. <Expanded>
  9488. 4242248763 (0x<hex digits>)
  9489. ==
  9490. 4242248763 (0x<hex digits>)
  9491. </Expanded>
  9492. </Expression>
  9493. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9494. <Original>
  9495. rng() == 0x<hex digits>
  9496. </Original>
  9497. <Expanded>
  9498. 1867888929 (0x<hex digits>)
  9499. ==
  9500. 1867888929 (0x<hex digits>)
  9501. </Expanded>
  9502. </Expression>
  9503. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9504. <Original>
  9505. rng() == 0x<hex digits>
  9506. </Original>
  9507. <Expanded>
  9508. 1276619030 (0x<hex digits>)
  9509. ==
  9510. 1276619030 (0x<hex digits>)
  9511. </Expanded>
  9512. </Expression>
  9513. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9514. <Original>
  9515. rng() == 0x<hex digits>
  9516. </Original>
  9517. <Expanded>
  9518. 1911218783 (0x<hex digits>)
  9519. ==
  9520. 1911218783 (0x<hex digits>)
  9521. </Expanded>
  9522. </Expression>
  9523. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9524. <Original>
  9525. rng() == 0x<hex digits>
  9526. </Original>
  9527. <Expanded>
  9528. 1827115164 (0x<hex digits>)
  9529. ==
  9530. 1827115164 (0x<hex digits>)
  9531. </Expanded>
  9532. </Expression>
  9533. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  9534. </Section>
  9535. <Section name="Specific seed" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9536. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9537. <Original>
  9538. rng() == 0x<hex digits>
  9539. </Original>
  9540. <Expanded>
  9541. 1472234645 (0x<hex digits>)
  9542. ==
  9543. 1472234645 (0x<hex digits>)
  9544. </Expanded>
  9545. </Expression>
  9546. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9547. <Original>
  9548. rng() == 0x<hex digits>
  9549. </Original>
  9550. <Expanded>
  9551. 868832940 (0x<hex digits>)
  9552. ==
  9553. 868832940 (0x<hex digits>)
  9554. </Expanded>
  9555. </Expression>
  9556. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9557. <Original>
  9558. rng() == 0x<hex digits>
  9559. </Original>
  9560. <Expanded>
  9561. 570883446 (0x<hex digits>)
  9562. ==
  9563. 570883446 (0x<hex digits>)
  9564. </Expanded>
  9565. </Expression>
  9566. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9567. <Original>
  9568. rng() == 0x<hex digits>
  9569. </Original>
  9570. <Expanded>
  9571. 889299803 (0x<hex digits>)
  9572. ==
  9573. 889299803 (0x<hex digits>)
  9574. </Expanded>
  9575. </Expression>
  9576. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9577. <Original>
  9578. rng() == 0x<hex digits>
  9579. </Original>
  9580. <Expanded>
  9581. 4261393167 (0x<hex digits>)
  9582. ==
  9583. 4261393167 (0x<hex digits>)
  9584. </Expanded>
  9585. </Expression>
  9586. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9587. <Original>
  9588. rng() == 0x<hex digits>
  9589. </Original>
  9590. <Expanded>
  9591. 1472234645 (0x<hex digits>)
  9592. ==
  9593. 1472234645 (0x<hex digits>)
  9594. </Expanded>
  9595. </Expression>
  9596. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9597. <Original>
  9598. rng() == 0x<hex digits>
  9599. </Original>
  9600. <Expanded>
  9601. 868832940 (0x<hex digits>)
  9602. ==
  9603. 868832940 (0x<hex digits>)
  9604. </Expanded>
  9605. </Expression>
  9606. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9607. <Original>
  9608. rng() == 0x<hex digits>
  9609. </Original>
  9610. <Expanded>
  9611. 570883446 (0x<hex digits>)
  9612. ==
  9613. 570883446 (0x<hex digits>)
  9614. </Expanded>
  9615. </Expression>
  9616. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9617. <Original>
  9618. rng() == 0x<hex digits>
  9619. </Original>
  9620. <Expanded>
  9621. 889299803 (0x<hex digits>)
  9622. ==
  9623. 889299803 (0x<hex digits>)
  9624. </Expanded>
  9625. </Expression>
  9626. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  9627. <Original>
  9628. rng() == 0x<hex digits>
  9629. </Original>
  9630. <Expanded>
  9631. 4261393167 (0x<hex digits>)
  9632. ==
  9633. 4261393167 (0x<hex digits>)
  9634. </Expanded>
  9635. </Expression>
  9636. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  9637. </Section>
  9638. <OverallResult success="true"/>
  9639. </TestCase>
  9640. <TestCase name="Output from all sections is reported" tags="[.][failing][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  9641. <Section name="one" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  9642. <Failure filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  9643. Message from section one
  9644. </Failure>
  9645. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  9646. </Section>
  9647. <Section name="two" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  9648. <Failure filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  9649. Message from section two
  9650. </Failure>
  9651. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  9652. </Section>
  9653. <OverallResult success="false"/>
  9654. </TestCase>
  9655. <TestCase name="Overloaded comma or address-of operators are not used" tags="[matchers][templated]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  9656. <Expression success="true" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  9657. <Original>
  9658. ( EvilMatcher(), EvilMatcher() ), EvilCommaOperatorUsed
  9659. </Original>
  9660. <Expanded>
  9661. ( EvilMatcher(), EvilMatcher() ), EvilCommaOperatorUsed
  9662. </Expanded>
  9663. </Expression>
  9664. <Expression success="true" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  9665. <Original>
  9666. &amp;EvilMatcher(), EvilAddressOfOperatorUsed
  9667. </Original>
  9668. <Expanded>
  9669. &amp;EvilMatcher(), EvilAddressOfOperatorUsed
  9670. </Expanded>
  9671. </Expression>
  9672. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  9673. <Original>
  9674. EvilMatcher() || ( EvilMatcher() &amp;&amp; !EvilMatcher() )
  9675. </Original>
  9676. <Expanded>
  9677. EvilMatcher() || ( EvilMatcher() &amp;&amp; !EvilMatcher() )
  9678. </Expanded>
  9679. </Expression>
  9680. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  9681. <Original>
  9682. ( EvilMatcher() &amp;&amp; EvilMatcher() ) || !EvilMatcher()
  9683. </Original>
  9684. <Expanded>
  9685. ( EvilMatcher() &amp;&amp; EvilMatcher() ) || !EvilMatcher()
  9686. </Expanded>
  9687. </Expression>
  9688. <OverallResult success="true"/>
  9689. </TestCase>
  9690. <TestCase name="Parse test names and tags" tags="[command-line][test-spec]" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9691. <Section name="Empty test spec should have no filters" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9692. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9693. <Original>
  9694. spec.hasFilters() == false
  9695. </Original>
  9696. <Expanded>
  9697. false == false
  9698. </Expanded>
  9699. </Expression>
  9700. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9701. <Original>
  9702. spec.matches( *tcA ) == false
  9703. </Original>
  9704. <Expanded>
  9705. false == false
  9706. </Expanded>
  9707. </Expression>
  9708. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9709. <Original>
  9710. spec.matches( *tcB ) == false
  9711. </Original>
  9712. <Expanded>
  9713. false == false
  9714. </Expanded>
  9715. </Expression>
  9716. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  9717. </Section>
  9718. <Section name="Test spec from empty string should have no filters" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9719. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9720. <Original>
  9721. spec.hasFilters() == false
  9722. </Original>
  9723. <Expanded>
  9724. false == false
  9725. </Expanded>
  9726. </Expression>
  9727. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9728. <Original>
  9729. spec.matches( *tcA ) == false
  9730. </Original>
  9731. <Expanded>
  9732. false == false
  9733. </Expanded>
  9734. </Expression>
  9735. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9736. <Original>
  9737. spec.matches( *tcB ) == false
  9738. </Original>
  9739. <Expanded>
  9740. false == false
  9741. </Expanded>
  9742. </Expression>
  9743. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  9744. </Section>
  9745. <Section name="Test spec from just a comma should have no filters" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9746. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9747. <Original>
  9748. spec.hasFilters() == false
  9749. </Original>
  9750. <Expanded>
  9751. false == false
  9752. </Expanded>
  9753. </Expression>
  9754. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9755. <Original>
  9756. spec.matches( *tcA ) == false
  9757. </Original>
  9758. <Expanded>
  9759. false == false
  9760. </Expanded>
  9761. </Expression>
  9762. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9763. <Original>
  9764. spec.matches( *tcB ) == false
  9765. </Original>
  9766. <Expanded>
  9767. false == false
  9768. </Expanded>
  9769. </Expression>
  9770. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  9771. </Section>
  9772. <Section name="Test spec from name should have one filter" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9773. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9774. <Original>
  9775. spec.hasFilters() == true
  9776. </Original>
  9777. <Expanded>
  9778. true == true
  9779. </Expanded>
  9780. </Expression>
  9781. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9782. <Original>
  9783. spec.matches( *tcA ) == false
  9784. </Original>
  9785. <Expanded>
  9786. false == false
  9787. </Expanded>
  9788. </Expression>
  9789. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9790. <Original>
  9791. spec.matches( *tcB ) == true
  9792. </Original>
  9793. <Expanded>
  9794. true == true
  9795. </Expanded>
  9796. </Expression>
  9797. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  9798. </Section>
  9799. <Section name="Test spec from quoted name should have one filter" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9800. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9801. <Original>
  9802. spec.hasFilters() == true
  9803. </Original>
  9804. <Expanded>
  9805. true == true
  9806. </Expanded>
  9807. </Expression>
  9808. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9809. <Original>
  9810. spec.matches( *tcA ) == false
  9811. </Original>
  9812. <Expanded>
  9813. false == false
  9814. </Expanded>
  9815. </Expression>
  9816. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9817. <Original>
  9818. spec.matches( *tcB ) == true
  9819. </Original>
  9820. <Expanded>
  9821. true == true
  9822. </Expanded>
  9823. </Expression>
  9824. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  9825. </Section>
  9826. <Section name="Test spec from name should have one filter" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9827. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9828. <Original>
  9829. spec.hasFilters() == true
  9830. </Original>
  9831. <Expanded>
  9832. true == true
  9833. </Expanded>
  9834. </Expression>
  9835. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9836. <Original>
  9837. spec.matches( *tcA ) == false
  9838. </Original>
  9839. <Expanded>
  9840. false == false
  9841. </Expanded>
  9842. </Expression>
  9843. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9844. <Original>
  9845. spec.matches( *tcB ) == true
  9846. </Original>
  9847. <Expanded>
  9848. true == true
  9849. </Expanded>
  9850. </Expression>
  9851. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9852. <Original>
  9853. spec.matches( *tcC ) == false
  9854. </Original>
  9855. <Expanded>
  9856. false == false
  9857. </Expanded>
  9858. </Expression>
  9859. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  9860. </Section>
  9861. <Section name="Wildcard at the start" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9862. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9863. <Original>
  9864. spec.hasFilters() == true
  9865. </Original>
  9866. <Expanded>
  9867. true == true
  9868. </Expanded>
  9869. </Expression>
  9870. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9871. <Original>
  9872. spec.matches( *tcA ) == false
  9873. </Original>
  9874. <Expanded>
  9875. false == false
  9876. </Expanded>
  9877. </Expression>
  9878. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9879. <Original>
  9880. spec.matches( *tcB ) == false
  9881. </Original>
  9882. <Expanded>
  9883. false == false
  9884. </Expanded>
  9885. </Expression>
  9886. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9887. <Original>
  9888. spec.matches( *tcC ) == true
  9889. </Original>
  9890. <Expanded>
  9891. true == true
  9892. </Expanded>
  9893. </Expression>
  9894. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9895. <Original>
  9896. spec.matches( *tcD ) == false
  9897. </Original>
  9898. <Expanded>
  9899. false == false
  9900. </Expanded>
  9901. </Expression>
  9902. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9903. <Original>
  9904. parseTestSpec( "*a" ).matches( *tcA ) == true
  9905. </Original>
  9906. <Expanded>
  9907. true == true
  9908. </Expanded>
  9909. </Expression>
  9910. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  9911. </Section>
  9912. <Section name="Wildcard at the end" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9913. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9914. <Original>
  9915. spec.hasFilters() == true
  9916. </Original>
  9917. <Expanded>
  9918. true == true
  9919. </Expanded>
  9920. </Expression>
  9921. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9922. <Original>
  9923. spec.matches( *tcA ) == false
  9924. </Original>
  9925. <Expanded>
  9926. false == false
  9927. </Expanded>
  9928. </Expression>
  9929. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9930. <Original>
  9931. spec.matches( *tcB ) == false
  9932. </Original>
  9933. <Expanded>
  9934. false == false
  9935. </Expanded>
  9936. </Expression>
  9937. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9938. <Original>
  9939. spec.matches( *tcC ) == true
  9940. </Original>
  9941. <Expanded>
  9942. true == true
  9943. </Expanded>
  9944. </Expression>
  9945. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9946. <Original>
  9947. spec.matches( *tcD ) == false
  9948. </Original>
  9949. <Expanded>
  9950. false == false
  9951. </Expanded>
  9952. </Expression>
  9953. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9954. <Original>
  9955. parseTestSpec( "a*" ).matches( *tcA ) == true
  9956. </Original>
  9957. <Expanded>
  9958. true == true
  9959. </Expanded>
  9960. </Expression>
  9961. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  9962. </Section>
  9963. <Section name="Wildcard at both ends" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9964. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9965. <Original>
  9966. spec.hasFilters() == true
  9967. </Original>
  9968. <Expanded>
  9969. true == true
  9970. </Expanded>
  9971. </Expression>
  9972. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9973. <Original>
  9974. spec.matches( *tcA ) == false
  9975. </Original>
  9976. <Expanded>
  9977. false == false
  9978. </Expanded>
  9979. </Expression>
  9980. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9981. <Original>
  9982. spec.matches( *tcB ) == false
  9983. </Original>
  9984. <Expanded>
  9985. false == false
  9986. </Expanded>
  9987. </Expression>
  9988. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9989. <Original>
  9990. spec.matches( *tcC ) == true
  9991. </Original>
  9992. <Expanded>
  9993. true == true
  9994. </Expanded>
  9995. </Expression>
  9996. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9997. <Original>
  9998. spec.matches( *tcD ) == true
  9999. </Original>
  10000. <Expanded>
  10001. true == true
  10002. </Expanded>
  10003. </Expression>
  10004. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10005. <Original>
  10006. parseTestSpec( "*a*" ).matches( *tcA ) == true
  10007. </Original>
  10008. <Expanded>
  10009. true == true
  10010. </Expanded>
  10011. </Expression>
  10012. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  10013. </Section>
  10014. <Section name="Redundant wildcard at the start" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10015. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10016. <Original>
  10017. spec.hasFilters() == true
  10018. </Original>
  10019. <Expanded>
  10020. true == true
  10021. </Expanded>
  10022. </Expression>
  10023. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10024. <Original>
  10025. spec.matches( *tcA ) == true
  10026. </Original>
  10027. <Expanded>
  10028. true == true
  10029. </Expanded>
  10030. </Expression>
  10031. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10032. <Original>
  10033. spec.matches( *tcB ) == false
  10034. </Original>
  10035. <Expanded>
  10036. false == false
  10037. </Expanded>
  10038. </Expression>
  10039. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  10040. </Section>
  10041. <Section name="Redundant wildcard at the end" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10042. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10043. <Original>
  10044. spec.hasFilters() == true
  10045. </Original>
  10046. <Expanded>
  10047. true == true
  10048. </Expanded>
  10049. </Expression>
  10050. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10051. <Original>
  10052. spec.matches( *tcA ) == true
  10053. </Original>
  10054. <Expanded>
  10055. true == true
  10056. </Expanded>
  10057. </Expression>
  10058. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10059. <Original>
  10060. spec.matches( *tcB ) == false
  10061. </Original>
  10062. <Expanded>
  10063. false == false
  10064. </Expanded>
  10065. </Expression>
  10066. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  10067. </Section>
  10068. <Section name="Redundant wildcard at both ends" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10069. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10070. <Original>
  10071. spec.hasFilters() == true
  10072. </Original>
  10073. <Expanded>
  10074. true == true
  10075. </Expanded>
  10076. </Expression>
  10077. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10078. <Original>
  10079. spec.matches( *tcA ) == true
  10080. </Original>
  10081. <Expanded>
  10082. true == true
  10083. </Expanded>
  10084. </Expression>
  10085. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10086. <Original>
  10087. spec.matches( *tcB ) == false
  10088. </Original>
  10089. <Expanded>
  10090. false == false
  10091. </Expanded>
  10092. </Expression>
  10093. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  10094. </Section>
  10095. <Section name="Wildcard at both ends, redundant at start" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10096. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10097. <Original>
  10098. spec.hasFilters() == true
  10099. </Original>
  10100. <Expanded>
  10101. true == true
  10102. </Expanded>
  10103. </Expression>
  10104. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10105. <Original>
  10106. spec.matches( *tcA ) == false
  10107. </Original>
  10108. <Expanded>
  10109. false == false
  10110. </Expanded>
  10111. </Expression>
  10112. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10113. <Original>
  10114. spec.matches( *tcB ) == false
  10115. </Original>
  10116. <Expanded>
  10117. false == false
  10118. </Expanded>
  10119. </Expression>
  10120. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10121. <Original>
  10122. spec.matches( *tcC ) == true
  10123. </Original>
  10124. <Expanded>
  10125. true == true
  10126. </Expanded>
  10127. </Expression>
  10128. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10129. <Original>
  10130. spec.matches( *tcD ) == true
  10131. </Original>
  10132. <Expanded>
  10133. true == true
  10134. </Expanded>
  10135. </Expression>
  10136. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  10137. </Section>
  10138. <Section name="Just wildcard" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10139. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10140. <Original>
  10141. spec.hasFilters() == true
  10142. </Original>
  10143. <Expanded>
  10144. true == true
  10145. </Expanded>
  10146. </Expression>
  10147. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10148. <Original>
  10149. spec.matches( *tcA ) == true
  10150. </Original>
  10151. <Expanded>
  10152. true == true
  10153. </Expanded>
  10154. </Expression>
  10155. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10156. <Original>
  10157. spec.matches( *tcB ) == true
  10158. </Original>
  10159. <Expanded>
  10160. true == true
  10161. </Expanded>
  10162. </Expression>
  10163. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10164. <Original>
  10165. spec.matches( *tcC ) == true
  10166. </Original>
  10167. <Expanded>
  10168. true == true
  10169. </Expanded>
  10170. </Expression>
  10171. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10172. <Original>
  10173. spec.matches( *tcD ) == true
  10174. </Original>
  10175. <Expanded>
  10176. true == true
  10177. </Expanded>
  10178. </Expression>
  10179. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  10180. </Section>
  10181. <Section name="Single tag" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10182. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10183. <Original>
  10184. spec.hasFilters() == true
  10185. </Original>
  10186. <Expanded>
  10187. true == true
  10188. </Expanded>
  10189. </Expression>
  10190. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10191. <Original>
  10192. spec.matches( *tcA ) == false
  10193. </Original>
  10194. <Expanded>
  10195. false == false
  10196. </Expanded>
  10197. </Expression>
  10198. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10199. <Original>
  10200. spec.matches( *tcB ) == true
  10201. </Original>
  10202. <Expanded>
  10203. true == true
  10204. </Expanded>
  10205. </Expression>
  10206. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10207. <Original>
  10208. spec.matches( *tcC ) == false
  10209. </Original>
  10210. <Expanded>
  10211. false == false
  10212. </Expanded>
  10213. </Expression>
  10214. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  10215. </Section>
  10216. <Section name="Single tag, two matches" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10217. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10218. <Original>
  10219. spec.hasFilters() == true
  10220. </Original>
  10221. <Expanded>
  10222. true == true
  10223. </Expanded>
  10224. </Expression>
  10225. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10226. <Original>
  10227. spec.matches( *tcA ) == false
  10228. </Original>
  10229. <Expanded>
  10230. false == false
  10231. </Expanded>
  10232. </Expression>
  10233. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10234. <Original>
  10235. spec.matches( *tcB ) == true
  10236. </Original>
  10237. <Expanded>
  10238. true == true
  10239. </Expanded>
  10240. </Expression>
  10241. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10242. <Original>
  10243. spec.matches( *tcC ) == true
  10244. </Original>
  10245. <Expanded>
  10246. true == true
  10247. </Expanded>
  10248. </Expression>
  10249. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  10250. </Section>
  10251. <Section name="Two tags" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10252. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10253. <Original>
  10254. spec.hasFilters() == true
  10255. </Original>
  10256. <Expanded>
  10257. true == true
  10258. </Expanded>
  10259. </Expression>
  10260. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10261. <Original>
  10262. spec.matches( *tcA ) == false
  10263. </Original>
  10264. <Expanded>
  10265. false == false
  10266. </Expanded>
  10267. </Expression>
  10268. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10269. <Original>
  10270. spec.matches( *tcB ) == false
  10271. </Original>
  10272. <Expanded>
  10273. false == false
  10274. </Expanded>
  10275. </Expression>
  10276. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10277. <Original>
  10278. spec.matches( *tcC ) == true
  10279. </Original>
  10280. <Expanded>
  10281. true == true
  10282. </Expanded>
  10283. </Expression>
  10284. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  10285. </Section>
  10286. <Section name="Two tags, spare separated" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10287. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10288. <Original>
  10289. spec.hasFilters() == true
  10290. </Original>
  10291. <Expanded>
  10292. true == true
  10293. </Expanded>
  10294. </Expression>
  10295. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10296. <Original>
  10297. spec.matches( *tcA ) == false
  10298. </Original>
  10299. <Expanded>
  10300. false == false
  10301. </Expanded>
  10302. </Expression>
  10303. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10304. <Original>
  10305. spec.matches( *tcB ) == false
  10306. </Original>
  10307. <Expanded>
  10308. false == false
  10309. </Expanded>
  10310. </Expression>
  10311. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10312. <Original>
  10313. spec.matches( *tcC ) == true
  10314. </Original>
  10315. <Expanded>
  10316. true == true
  10317. </Expanded>
  10318. </Expression>
  10319. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  10320. </Section>
  10321. <Section name="Wildcarded name and tag" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10322. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10323. <Original>
  10324. spec.hasFilters() == true
  10325. </Original>
  10326. <Expanded>
  10327. true == true
  10328. </Expanded>
  10329. </Expression>
  10330. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10331. <Original>
  10332. spec.matches( *tcA ) == false
  10333. </Original>
  10334. <Expanded>
  10335. false == false
  10336. </Expanded>
  10337. </Expression>
  10338. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10339. <Original>
  10340. spec.matches( *tcB ) == false
  10341. </Original>
  10342. <Expanded>
  10343. false == false
  10344. </Expanded>
  10345. </Expression>
  10346. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10347. <Original>
  10348. spec.matches( *tcC ) == true
  10349. </Original>
  10350. <Expanded>
  10351. true == true
  10352. </Expanded>
  10353. </Expression>
  10354. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10355. <Original>
  10356. spec.matches( *tcD ) == false
  10357. </Original>
  10358. <Expanded>
  10359. false == false
  10360. </Expanded>
  10361. </Expression>
  10362. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  10363. </Section>
  10364. <Section name="Single tag exclusion" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10365. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10366. <Original>
  10367. spec.hasFilters() == true
  10368. </Original>
  10369. <Expanded>
  10370. true == true
  10371. </Expanded>
  10372. </Expression>
  10373. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10374. <Original>
  10375. spec.matches( *tcA ) == true
  10376. </Original>
  10377. <Expanded>
  10378. true == true
  10379. </Expanded>
  10380. </Expression>
  10381. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10382. <Original>
  10383. spec.matches( *tcB ) == false
  10384. </Original>
  10385. <Expanded>
  10386. false == false
  10387. </Expanded>
  10388. </Expression>
  10389. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10390. <Original>
  10391. spec.matches( *tcC ) == false
  10392. </Original>
  10393. <Expanded>
  10394. false == false
  10395. </Expanded>
  10396. </Expression>
  10397. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  10398. </Section>
  10399. <Section name="One tag exclusion and one tag inclusion" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10400. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10401. <Original>
  10402. spec.hasFilters() == true
  10403. </Original>
  10404. <Expanded>
  10405. true == true
  10406. </Expanded>
  10407. </Expression>
  10408. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10409. <Original>
  10410. spec.matches( *tcA ) == false
  10411. </Original>
  10412. <Expanded>
  10413. false == false
  10414. </Expanded>
  10415. </Expression>
  10416. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10417. <Original>
  10418. spec.matches( *tcB ) == true
  10419. </Original>
  10420. <Expanded>
  10421. true == true
  10422. </Expanded>
  10423. </Expression>
  10424. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10425. <Original>
  10426. spec.matches( *tcC ) == false
  10427. </Original>
  10428. <Expanded>
  10429. false == false
  10430. </Expanded>
  10431. </Expression>
  10432. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  10433. </Section>
  10434. <Section name="One tag exclusion and one wldcarded name inclusion" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10435. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10436. <Original>
  10437. spec.hasFilters() == true
  10438. </Original>
  10439. <Expanded>
  10440. true == true
  10441. </Expanded>
  10442. </Expression>
  10443. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10444. <Original>
  10445. spec.matches( *tcA ) == false
  10446. </Original>
  10447. <Expanded>
  10448. false == false
  10449. </Expanded>
  10450. </Expression>
  10451. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10452. <Original>
  10453. spec.matches( *tcB ) == false
  10454. </Original>
  10455. <Expanded>
  10456. false == false
  10457. </Expanded>
  10458. </Expression>
  10459. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10460. <Original>
  10461. spec.matches( *tcC ) == false
  10462. </Original>
  10463. <Expanded>
  10464. false == false
  10465. </Expanded>
  10466. </Expression>
  10467. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10468. <Original>
  10469. spec.matches( *tcD ) == true
  10470. </Original>
  10471. <Expanded>
  10472. true == true
  10473. </Expanded>
  10474. </Expression>
  10475. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  10476. </Section>
  10477. <Section name="One tag exclusion, using exclude:, and one wldcarded name inclusion" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10478. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10479. <Original>
  10480. spec.hasFilters() == true
  10481. </Original>
  10482. <Expanded>
  10483. true == true
  10484. </Expanded>
  10485. </Expression>
  10486. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10487. <Original>
  10488. spec.matches( *tcA ) == false
  10489. </Original>
  10490. <Expanded>
  10491. false == false
  10492. </Expanded>
  10493. </Expression>
  10494. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10495. <Original>
  10496. spec.matches( *tcB ) == false
  10497. </Original>
  10498. <Expanded>
  10499. false == false
  10500. </Expanded>
  10501. </Expression>
  10502. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10503. <Original>
  10504. spec.matches( *tcC ) == false
  10505. </Original>
  10506. <Expanded>
  10507. false == false
  10508. </Expanded>
  10509. </Expression>
  10510. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10511. <Original>
  10512. spec.matches( *tcD ) == true
  10513. </Original>
  10514. <Expanded>
  10515. true == true
  10516. </Expanded>
  10517. </Expression>
  10518. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  10519. </Section>
  10520. <Section name="name exclusion" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10521. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10522. <Original>
  10523. spec.hasFilters() == true
  10524. </Original>
  10525. <Expanded>
  10526. true == true
  10527. </Expanded>
  10528. </Expression>
  10529. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10530. <Original>
  10531. spec.matches( *tcA ) == true
  10532. </Original>
  10533. <Expanded>
  10534. true == true
  10535. </Expanded>
  10536. </Expression>
  10537. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10538. <Original>
  10539. spec.matches( *tcB ) == false
  10540. </Original>
  10541. <Expanded>
  10542. false == false
  10543. </Expanded>
  10544. </Expression>
  10545. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10546. <Original>
  10547. spec.matches( *tcC ) == false
  10548. </Original>
  10549. <Expanded>
  10550. false == false
  10551. </Expanded>
  10552. </Expression>
  10553. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10554. <Original>
  10555. spec.matches( *tcD ) == true
  10556. </Original>
  10557. <Expanded>
  10558. true == true
  10559. </Expanded>
  10560. </Expression>
  10561. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  10562. </Section>
  10563. <Section name="wildcarded name exclusion" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10564. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10565. <Original>
  10566. spec.hasFilters() == true
  10567. </Original>
  10568. <Expanded>
  10569. true == true
  10570. </Expanded>
  10571. </Expression>
  10572. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10573. <Original>
  10574. spec.matches( *tcA ) == true
  10575. </Original>
  10576. <Expanded>
  10577. true == true
  10578. </Expanded>
  10579. </Expression>
  10580. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10581. <Original>
  10582. spec.matches( *tcB ) == true
  10583. </Original>
  10584. <Expanded>
  10585. true == true
  10586. </Expanded>
  10587. </Expression>
  10588. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10589. <Original>
  10590. spec.matches( *tcC ) == false
  10591. </Original>
  10592. <Expanded>
  10593. false == false
  10594. </Expanded>
  10595. </Expression>
  10596. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10597. <Original>
  10598. spec.matches( *tcD ) == false
  10599. </Original>
  10600. <Expanded>
  10601. false == false
  10602. </Expanded>
  10603. </Expression>
  10604. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  10605. </Section>
  10606. <Section name="wildcarded name exclusion with tag inclusion" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10607. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10608. <Original>
  10609. spec.hasFilters() == true
  10610. </Original>
  10611. <Expanded>
  10612. true == true
  10613. </Expanded>
  10614. </Expression>
  10615. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10616. <Original>
  10617. spec.matches( *tcA ) == true
  10618. </Original>
  10619. <Expanded>
  10620. true == true
  10621. </Expanded>
  10622. </Expression>
  10623. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10624. <Original>
  10625. spec.matches( *tcB ) == true
  10626. </Original>
  10627. <Expanded>
  10628. true == true
  10629. </Expanded>
  10630. </Expression>
  10631. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10632. <Original>
  10633. spec.matches( *tcC ) == true
  10634. </Original>
  10635. <Expanded>
  10636. true == true
  10637. </Expanded>
  10638. </Expression>
  10639. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10640. <Original>
  10641. spec.matches( *tcD ) == false
  10642. </Original>
  10643. <Expanded>
  10644. false == false
  10645. </Expanded>
  10646. </Expression>
  10647. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  10648. </Section>
  10649. <Section name="wildcarded name exclusion, using exclude:, with tag inclusion" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10650. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10651. <Original>
  10652. spec.hasFilters() == true
  10653. </Original>
  10654. <Expanded>
  10655. true == true
  10656. </Expanded>
  10657. </Expression>
  10658. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10659. <Original>
  10660. spec.matches( *tcA ) == true
  10661. </Original>
  10662. <Expanded>
  10663. true == true
  10664. </Expanded>
  10665. </Expression>
  10666. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10667. <Original>
  10668. spec.matches( *tcB ) == true
  10669. </Original>
  10670. <Expanded>
  10671. true == true
  10672. </Expanded>
  10673. </Expression>
  10674. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10675. <Original>
  10676. spec.matches( *tcC ) == true
  10677. </Original>
  10678. <Expanded>
  10679. true == true
  10680. </Expanded>
  10681. </Expression>
  10682. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10683. <Original>
  10684. spec.matches( *tcD ) == false
  10685. </Original>
  10686. <Expanded>
  10687. false == false
  10688. </Expanded>
  10689. </Expression>
  10690. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  10691. </Section>
  10692. <Section name="two wildcarded names" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10693. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10694. <Original>
  10695. spec.hasFilters() == true
  10696. </Original>
  10697. <Expanded>
  10698. true == true
  10699. </Expanded>
  10700. </Expression>
  10701. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10702. <Original>
  10703. spec.matches( *tcA ) == false
  10704. </Original>
  10705. <Expanded>
  10706. false == false
  10707. </Expanded>
  10708. </Expression>
  10709. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10710. <Original>
  10711. spec.matches( *tcB ) == false
  10712. </Original>
  10713. <Expanded>
  10714. false == false
  10715. </Expanded>
  10716. </Expression>
  10717. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10718. <Original>
  10719. spec.matches( *tcC ) == true
  10720. </Original>
  10721. <Expanded>
  10722. true == true
  10723. </Expanded>
  10724. </Expression>
  10725. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10726. <Original>
  10727. spec.matches( *tcD ) == false
  10728. </Original>
  10729. <Expanded>
  10730. false == false
  10731. </Expanded>
  10732. </Expression>
  10733. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  10734. </Section>
  10735. <Section name="empty tag" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10736. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10737. <Original>
  10738. spec.hasFilters() == false
  10739. </Original>
  10740. <Expanded>
  10741. false == false
  10742. </Expanded>
  10743. </Expression>
  10744. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10745. <Original>
  10746. spec.matches( *tcA ) == false
  10747. </Original>
  10748. <Expanded>
  10749. false == false
  10750. </Expanded>
  10751. </Expression>
  10752. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10753. <Original>
  10754. spec.matches( *tcB ) == false
  10755. </Original>
  10756. <Expanded>
  10757. false == false
  10758. </Expanded>
  10759. </Expression>
  10760. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10761. <Original>
  10762. spec.matches( *tcC ) == false
  10763. </Original>
  10764. <Expanded>
  10765. false == false
  10766. </Expanded>
  10767. </Expression>
  10768. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10769. <Original>
  10770. spec.matches( *tcD ) == false
  10771. </Original>
  10772. <Expanded>
  10773. false == false
  10774. </Expanded>
  10775. </Expression>
  10776. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  10777. </Section>
  10778. <Section name="empty quoted name" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10779. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10780. <Original>
  10781. spec.hasFilters() == false
  10782. </Original>
  10783. <Expanded>
  10784. false == false
  10785. </Expanded>
  10786. </Expression>
  10787. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10788. <Original>
  10789. spec.matches( *tcA ) == false
  10790. </Original>
  10791. <Expanded>
  10792. false == false
  10793. </Expanded>
  10794. </Expression>
  10795. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10796. <Original>
  10797. spec.matches( *tcB ) == false
  10798. </Original>
  10799. <Expanded>
  10800. false == false
  10801. </Expanded>
  10802. </Expression>
  10803. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10804. <Original>
  10805. spec.matches( *tcC ) == false
  10806. </Original>
  10807. <Expanded>
  10808. false == false
  10809. </Expanded>
  10810. </Expression>
  10811. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10812. <Original>
  10813. spec.matches( *tcD ) == false
  10814. </Original>
  10815. <Expanded>
  10816. false == false
  10817. </Expanded>
  10818. </Expression>
  10819. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  10820. </Section>
  10821. <Section name="quoted string followed by tag exclusion" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10822. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10823. <Original>
  10824. spec.hasFilters() == true
  10825. </Original>
  10826. <Expanded>
  10827. true == true
  10828. </Expanded>
  10829. </Expression>
  10830. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10831. <Original>
  10832. spec.matches( *tcA ) == false
  10833. </Original>
  10834. <Expanded>
  10835. false == false
  10836. </Expanded>
  10837. </Expression>
  10838. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10839. <Original>
  10840. spec.matches( *tcB ) == false
  10841. </Original>
  10842. <Expanded>
  10843. false == false
  10844. </Expanded>
  10845. </Expression>
  10846. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10847. <Original>
  10848. spec.matches( *tcC ) == false
  10849. </Original>
  10850. <Expanded>
  10851. false == false
  10852. </Expanded>
  10853. </Expression>
  10854. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10855. <Original>
  10856. spec.matches( *tcD ) == true
  10857. </Original>
  10858. <Expanded>
  10859. true == true
  10860. </Expanded>
  10861. </Expression>
  10862. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  10863. </Section>
  10864. <Section name="Leading and trailing spaces in test spec" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10865. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10866. <Original>
  10867. spec.matches( *fakeTestCase( " aardvark " ) )
  10868. </Original>
  10869. <Expanded>
  10870. true
  10871. </Expanded>
  10872. </Expression>
  10873. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10874. <Original>
  10875. spec.matches( *fakeTestCase( " aardvark" ) )
  10876. </Original>
  10877. <Expanded>
  10878. true
  10879. </Expanded>
  10880. </Expression>
  10881. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10882. <Original>
  10883. spec.matches( *fakeTestCase( " aardvark " ) )
  10884. </Original>
  10885. <Expanded>
  10886. true
  10887. </Expanded>
  10888. </Expression>
  10889. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10890. <Original>
  10891. spec.matches( *fakeTestCase( "aardvark " ) )
  10892. </Original>
  10893. <Expanded>
  10894. true
  10895. </Expanded>
  10896. </Expression>
  10897. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10898. <Original>
  10899. spec.matches( *fakeTestCase( "aardvark" ) )
  10900. </Original>
  10901. <Expanded>
  10902. true
  10903. </Expanded>
  10904. </Expression>
  10905. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  10906. </Section>
  10907. <Section name="Leading and trailing spaces in test name" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10908. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10909. <Original>
  10910. spec.matches( *fakeTestCase( " aardvark " ) )
  10911. </Original>
  10912. <Expanded>
  10913. true
  10914. </Expanded>
  10915. </Expression>
  10916. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10917. <Original>
  10918. spec.matches( *fakeTestCase( " aardvark" ) )
  10919. </Original>
  10920. <Expanded>
  10921. true
  10922. </Expanded>
  10923. </Expression>
  10924. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10925. <Original>
  10926. spec.matches( *fakeTestCase( " aardvark " ) )
  10927. </Original>
  10928. <Expanded>
  10929. true
  10930. </Expanded>
  10931. </Expression>
  10932. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10933. <Original>
  10934. spec.matches( *fakeTestCase( "aardvark " ) )
  10935. </Original>
  10936. <Expanded>
  10937. true
  10938. </Expanded>
  10939. </Expression>
  10940. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10941. <Original>
  10942. spec.matches( *fakeTestCase( "aardvark" ) )
  10943. </Original>
  10944. <Expanded>
  10945. true
  10946. </Expanded>
  10947. </Expression>
  10948. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  10949. </Section>
  10950. <Section name="Shortened hide tags are split apart when parsing" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10951. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10952. <Original>
  10953. spec.matches(*fakeTestCase("hidden and foo", "[.][foo]"))
  10954. </Original>
  10955. <Expanded>
  10956. true
  10957. </Expanded>
  10958. </Expression>
  10959. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10960. <Original>
  10961. !(spec.matches(*fakeTestCase("only foo", "[foo]")))
  10962. </Original>
  10963. <Expanded>
  10964. !false
  10965. </Expanded>
  10966. </Expression>
  10967. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10968. </Section>
  10969. <Section name="Shortened hide tags also properly handle exclusion" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10970. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10971. <Original>
  10972. !(spec.matches(*fakeTestCase("hidden and foo", "[.][foo]")))
  10973. </Original>
  10974. <Expanded>
  10975. !false
  10976. </Expanded>
  10977. </Expression>
  10978. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10979. <Original>
  10980. !(spec.matches(*fakeTestCase("only foo", "[foo]")))
  10981. </Original>
  10982. <Expanded>
  10983. !false
  10984. </Expanded>
  10985. </Expression>
  10986. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10987. <Original>
  10988. !(spec.matches(*fakeTestCase("only hidden", "[.]")))
  10989. </Original>
  10990. <Expanded>
  10991. !false
  10992. </Expanded>
  10993. </Expression>
  10994. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10995. <Original>
  10996. spec.matches(*fakeTestCase("neither foo nor hidden", "[bar]"))
  10997. </Original>
  10998. <Expanded>
  10999. true
  11000. </Expanded>
  11001. </Expression>
  11002. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  11003. </Section>
  11004. <OverallResult success="true"/>
  11005. </TestCase>
  11006. <TestCase name="Parsed tags are matched case insensitive" tags="[test-spec][test-spec-parser]" filename="tests/<exe-name>/IntrospectiveTests/TestSpecParser.tests.cpp" >
  11007. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/TestSpecParser.tests.cpp" >
  11008. <Original>
  11009. spec.hasFilters()
  11010. </Original>
  11011. <Expanded>
  11012. true
  11013. </Expanded>
  11014. </Expression>
  11015. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/TestSpecParser.tests.cpp" >
  11016. <Original>
  11017. spec.getInvalidSpecs().empty()
  11018. </Original>
  11019. <Expanded>
  11020. true
  11021. </Expanded>
  11022. </Expression>
  11023. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/TestSpecParser.tests.cpp" >
  11024. <Original>
  11025. spec.matches( testCase )
  11026. </Original>
  11027. <Expanded>
  11028. true
  11029. </Expanded>
  11030. </Expression>
  11031. <OverallResult success="true"/>
  11032. </TestCase>
  11033. <TestCase name="Parsing sharding-related cli flags" tags="[sharding]" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11034. <Section name="shard-count" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11035. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11036. <Original>
  11037. cli.parse({ "test", "--shard-count=8" })
  11038. </Original>
  11039. <Expanded>
  11040. {?}
  11041. </Expanded>
  11042. </Expression>
  11043. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11044. <Original>
  11045. config.shardCount == 8
  11046. </Original>
  11047. <Expanded>
  11048. 8 == 8
  11049. </Expanded>
  11050. </Expression>
  11051. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11052. </Section>
  11053. <Section name="Negative shard count reports error" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11054. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11055. <Original>
  11056. !(result)
  11057. </Original>
  11058. <Expanded>
  11059. !{?}
  11060. </Expanded>
  11061. </Expression>
  11062. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11063. <Original>
  11064. result.errorMessage(), ContainsSubstring("Shard count must be a positive number")
  11065. </Original>
  11066. <Expanded>
  11067. "Shard count must be a positive number" contains: "Shard count must be a positive number"
  11068. </Expanded>
  11069. </Expression>
  11070. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11071. </Section>
  11072. <Section name="Zero shard count reports error" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11073. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11074. <Original>
  11075. !(result)
  11076. </Original>
  11077. <Expanded>
  11078. !{?}
  11079. </Expanded>
  11080. </Expression>
  11081. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11082. <Original>
  11083. result.errorMessage(), ContainsSubstring("Shard count must be a positive number")
  11084. </Original>
  11085. <Expanded>
  11086. "Shard count must be a positive number" contains: "Shard count must be a positive number"
  11087. </Expanded>
  11088. </Expression>
  11089. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11090. </Section>
  11091. <Section name="shard-index" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11092. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11093. <Original>
  11094. cli.parse({ "test", "--shard-index=2" })
  11095. </Original>
  11096. <Expanded>
  11097. {?}
  11098. </Expanded>
  11099. </Expression>
  11100. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11101. <Original>
  11102. config.shardIndex == 2
  11103. </Original>
  11104. <Expanded>
  11105. 2 == 2
  11106. </Expanded>
  11107. </Expression>
  11108. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11109. </Section>
  11110. <Section name="Negative shard index reports error" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11111. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11112. <Original>
  11113. !(result)
  11114. </Original>
  11115. <Expanded>
  11116. !{?}
  11117. </Expanded>
  11118. </Expression>
  11119. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11120. <Original>
  11121. result.errorMessage(), ContainsSubstring("Shard index must be a non-negative number")
  11122. </Original>
  11123. <Expanded>
  11124. "Shard index must be a non-negative number" contains: "Shard index must be a non-negative number"
  11125. </Expanded>
  11126. </Expression>
  11127. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11128. </Section>
  11129. <Section name="Shard index 0 is accepted" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11130. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11131. <Original>
  11132. cli.parse({ "test", "--shard-index=0" })
  11133. </Original>
  11134. <Expanded>
  11135. {?}
  11136. </Expanded>
  11137. </Expression>
  11138. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11139. <Original>
  11140. config.shardIndex == 0
  11141. </Original>
  11142. <Expanded>
  11143. 0 == 0
  11144. </Expanded>
  11145. </Expression>
  11146. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11147. </Section>
  11148. <OverallResult success="true"/>
  11149. </TestCase>
  11150. <TestCase name="Parsing tags with non-alphabetical characters is pass-through" tags="[test-spec][test-spec-parser]" filename="tests/<exe-name>/IntrospectiveTests/TestSpecParser.tests.cpp" >
  11151. <Info>
  11152. tagString := "[tag with spaces]"
  11153. </Info>
  11154. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/TestSpecParser.tests.cpp" >
  11155. <Original>
  11156. spec.hasFilters()
  11157. </Original>
  11158. <Expanded>
  11159. true
  11160. </Expanded>
  11161. </Expression>
  11162. <Info>
  11163. tagString := "[tag with spaces]"
  11164. </Info>
  11165. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/TestSpecParser.tests.cpp" >
  11166. <Original>
  11167. spec.getInvalidSpecs().empty()
  11168. </Original>
  11169. <Expanded>
  11170. true
  11171. </Expanded>
  11172. </Expression>
  11173. <Info>
  11174. tagString := "[tag with spaces]"
  11175. </Info>
  11176. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/TestSpecParser.tests.cpp" >
  11177. <Original>
  11178. spec.matches( testCase )
  11179. </Original>
  11180. <Expanded>
  11181. true
  11182. </Expanded>
  11183. </Expression>
  11184. <Info>
  11185. tagString := "[I said "good day" sir!]"
  11186. </Info>
  11187. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/TestSpecParser.tests.cpp" >
  11188. <Original>
  11189. spec.hasFilters()
  11190. </Original>
  11191. <Expanded>
  11192. true
  11193. </Expanded>
  11194. </Expression>
  11195. <Info>
  11196. tagString := "[I said "good day" sir!]"
  11197. </Info>
  11198. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/TestSpecParser.tests.cpp" >
  11199. <Original>
  11200. spec.getInvalidSpecs().empty()
  11201. </Original>
  11202. <Expanded>
  11203. true
  11204. </Expanded>
  11205. </Expression>
  11206. <Info>
  11207. tagString := "[I said "good day" sir!]"
  11208. </Info>
  11209. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/TestSpecParser.tests.cpp" >
  11210. <Original>
  11211. spec.matches( testCase )
  11212. </Original>
  11213. <Expanded>
  11214. true
  11215. </Expanded>
  11216. </Expression>
  11217. <OverallResult success="true"/>
  11218. </TestCase>
  11219. <TestCase name="Parsing warnings" tags="[cli][warnings]" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11220. <Section name="NoAssertions" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11221. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11222. <Original>
  11223. cli.parse( { "test", "-w", "NoAssertions" } )
  11224. </Original>
  11225. <Expanded>
  11226. {?}
  11227. </Expanded>
  11228. </Expression>
  11229. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11230. <Original>
  11231. config.warnings == WarnAbout::NoAssertions
  11232. </Original>
  11233. <Expanded>
  11234. 1 == 1
  11235. </Expanded>
  11236. </Expression>
  11237. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11238. </Section>
  11239. <Section name="NoTests is no longer supported" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11240. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11241. <Original>
  11242. !(cli.parse( { "test", "-w", "NoTests" } ))
  11243. </Original>
  11244. <Expanded>
  11245. !{?}
  11246. </Expanded>
  11247. </Expression>
  11248. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11249. </Section>
  11250. <Section name="Combining multiple warnings" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11251. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11252. <Original>
  11253. cli.parse( { "test", "--warn", "NoAssertions", "--warn", "UnmatchedTestSpec" } )
  11254. </Original>
  11255. <Expanded>
  11256. {?}
  11257. </Expanded>
  11258. </Expression>
  11259. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11260. <Original>
  11261. config.warnings == ( WarnAbout::NoAssertions | WarnAbout::UnmatchedTestSpec )
  11262. </Original>
  11263. <Expanded>
  11264. 3 == 3
  11265. </Expanded>
  11266. </Expression>
  11267. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11268. </Section>
  11269. <OverallResult success="true"/>
  11270. </TestCase>
  11271. <TestCase name="Pointers can be compared to null" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  11272. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  11273. <Original>
  11274. p == 0
  11275. </Original>
  11276. <Expanded>
  11277. 0 == 0
  11278. </Expanded>
  11279. </Expression>
  11280. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  11281. <Original>
  11282. p == pNULL
  11283. </Original>
  11284. <Expanded>
  11285. 0 == 0
  11286. </Expanded>
  11287. </Expression>
  11288. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  11289. <Original>
  11290. p != 0
  11291. </Original>
  11292. <Expanded>
  11293. 0x<hex digits> != 0
  11294. </Expanded>
  11295. </Expression>
  11296. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  11297. <Original>
  11298. cp != 0
  11299. </Original>
  11300. <Expanded>
  11301. 0x<hex digits> != 0
  11302. </Expanded>
  11303. </Expression>
  11304. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  11305. <Original>
  11306. cpc != 0
  11307. </Original>
  11308. <Expanded>
  11309. 0x<hex digits> != 0
  11310. </Expanded>
  11311. </Expression>
  11312. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  11313. <Original>
  11314. returnsNull() == 0
  11315. </Original>
  11316. <Expanded>
  11317. {null string} == 0
  11318. </Expanded>
  11319. </Expression>
  11320. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  11321. <Original>
  11322. returnsConstNull() == 0
  11323. </Original>
  11324. <Expanded>
  11325. {null string} == 0
  11326. </Expanded>
  11327. </Expression>
  11328. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  11329. <Original>
  11330. 0 != p
  11331. </Original>
  11332. <Expanded>
  11333. 0 != 0x<hex digits>
  11334. </Expanded>
  11335. </Expression>
  11336. <OverallResult success="true"/>
  11337. </TestCase>
  11338. <TestCase name="Precision of floating point stringification can be set" tags="[floatingPoint][toString]" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  11339. <Section name="Floats" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  11340. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  11341. <Original>
  11342. str1.size() == 3 + 5
  11343. </Original>
  11344. <Expanded>
  11345. 8 == 8
  11346. </Expanded>
  11347. </Expression>
  11348. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  11349. <Original>
  11350. str2.size() == 3 + 10
  11351. </Original>
  11352. <Expanded>
  11353. 13 == 13
  11354. </Expanded>
  11355. </Expression>
  11356. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11357. </Section>
  11358. <Section name="Double" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  11359. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  11360. <Original>
  11361. str1.size() == 2 + 5
  11362. </Original>
  11363. <Expanded>
  11364. 7 == 7
  11365. </Expanded>
  11366. </Expression>
  11367. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  11368. <Original>
  11369. str2.size() == 2 + 15
  11370. </Original>
  11371. <Expanded>
  11372. 17 == 17
  11373. </Expanded>
  11374. </Expression>
  11375. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11376. </Section>
  11377. <OverallResult success="true"/>
  11378. </TestCase>
  11379. <TestCase name="Predicate matcher can accept const char*" tags="[compilation][matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  11380. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  11381. <Original>
  11382. "foo", Predicate&lt;const char*>( []( const char* const&amp; ) { return true; } )
  11383. </Original>
  11384. <Expanded>
  11385. "foo" matches undescribed predicate
  11386. </Expanded>
  11387. </Expression>
  11388. <OverallResult success="true"/>
  11389. </TestCase>
  11390. <TestCase name="Process can be configured on command line" tags="[command-line][config]" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11391. <Section name="empty args don't cause a crash" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11392. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11393. <Original>
  11394. result
  11395. </Original>
  11396. <Expanded>
  11397. {?}
  11398. </Expanded>
  11399. </Expression>
  11400. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11401. <Original>
  11402. config.processName == ""
  11403. </Original>
  11404. <Expanded>
  11405. "" == ""
  11406. </Expanded>
  11407. </Expression>
  11408. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11409. </Section>
  11410. <Section name="default - no arguments" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11411. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11412. <Original>
  11413. result
  11414. </Original>
  11415. <Expanded>
  11416. {?}
  11417. </Expanded>
  11418. </Expression>
  11419. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11420. <Original>
  11421. config.processName == "test"
  11422. </Original>
  11423. <Expanded>
  11424. "test" == "test"
  11425. </Expanded>
  11426. </Expression>
  11427. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11428. <Original>
  11429. config.shouldDebugBreak == false
  11430. </Original>
  11431. <Expanded>
  11432. false == false
  11433. </Expanded>
  11434. </Expression>
  11435. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11436. <Original>
  11437. config.abortAfter == -1
  11438. </Original>
  11439. <Expanded>
  11440. -1 == -1
  11441. </Expanded>
  11442. </Expression>
  11443. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11444. <Original>
  11445. config.noThrow == false
  11446. </Original>
  11447. <Expanded>
  11448. false == false
  11449. </Expanded>
  11450. </Expression>
  11451. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11452. <Original>
  11453. config.reporterSpecifications.empty()
  11454. </Original>
  11455. <Expanded>
  11456. true
  11457. </Expanded>
  11458. </Expression>
  11459. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11460. <Original>
  11461. !(cfg.hasTestFilters())
  11462. </Original>
  11463. <Expanded>
  11464. !false
  11465. </Expanded>
  11466. </Expression>
  11467. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11468. <Original>
  11469. cfg.getReporterSpecs().size() == 1
  11470. </Original>
  11471. <Expanded>
  11472. 1 == 1
  11473. </Expanded>
  11474. </Expression>
  11475. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11476. <Original>
  11477. cfg.getReporterSpecs()[0] == Catch::ReporterSpec{ expectedReporter, {}, {}, {} }
  11478. </Original>
  11479. <Expanded>
  11480. {?} == {?}
  11481. </Expanded>
  11482. </Expression>
  11483. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11484. <Original>
  11485. cfg.getProcessedReporterSpecs().size() == 1
  11486. </Original>
  11487. <Expanded>
  11488. 1 == 1
  11489. </Expanded>
  11490. </Expression>
  11491. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11492. <Original>
  11493. cfg.getProcessedReporterSpecs()[0] == Catch::ProcessedReporterSpec{ expectedReporter, std::string{}, Catch::ColourMode::PlatformDefault, {} }
  11494. </Original>
  11495. <Expanded>
  11496. {?} == {?}
  11497. </Expanded>
  11498. </Expression>
  11499. <OverallResults successes="11" failures="0" expectedFailures="0"/>
  11500. </Section>
  11501. <Section name="test lists" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11502. <Section name="Specify one test case using" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11503. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11504. <Original>
  11505. result
  11506. </Original>
  11507. <Expanded>
  11508. {?}
  11509. </Expanded>
  11510. </Expression>
  11511. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11512. <Original>
  11513. cfg.hasTestFilters()
  11514. </Original>
  11515. <Expanded>
  11516. true
  11517. </Expanded>
  11518. </Expression>
  11519. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11520. <Original>
  11521. cfg.testSpec().matches(*fakeTestCase("notIncluded")) == false
  11522. </Original>
  11523. <Expanded>
  11524. false == false
  11525. </Expanded>
  11526. </Expression>
  11527. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11528. <Original>
  11529. cfg.testSpec().matches(*fakeTestCase("test1"))
  11530. </Original>
  11531. <Expanded>
  11532. true
  11533. </Expanded>
  11534. </Expression>
  11535. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  11536. </Section>
  11537. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  11538. </Section>
  11539. <Section name="test lists" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11540. <Section name="Specify one test case exclusion using exclude:" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11541. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11542. <Original>
  11543. result
  11544. </Original>
  11545. <Expanded>
  11546. {?}
  11547. </Expanded>
  11548. </Expression>
  11549. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11550. <Original>
  11551. cfg.hasTestFilters()
  11552. </Original>
  11553. <Expanded>
  11554. true
  11555. </Expanded>
  11556. </Expression>
  11557. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11558. <Original>
  11559. cfg.testSpec().matches(*fakeTestCase("test1")) == false
  11560. </Original>
  11561. <Expanded>
  11562. false == false
  11563. </Expanded>
  11564. </Expression>
  11565. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11566. <Original>
  11567. cfg.testSpec().matches(*fakeTestCase("alwaysIncluded"))
  11568. </Original>
  11569. <Expanded>
  11570. true
  11571. </Expanded>
  11572. </Expression>
  11573. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  11574. </Section>
  11575. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  11576. </Section>
  11577. <Section name="test lists" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11578. <Section name="Specify one test case exclusion using ~" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11579. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11580. <Original>
  11581. result
  11582. </Original>
  11583. <Expanded>
  11584. {?}
  11585. </Expanded>
  11586. </Expression>
  11587. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11588. <Original>
  11589. cfg.hasTestFilters()
  11590. </Original>
  11591. <Expanded>
  11592. true
  11593. </Expanded>
  11594. </Expression>
  11595. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11596. <Original>
  11597. cfg.testSpec().matches(*fakeTestCase("test1")) == false
  11598. </Original>
  11599. <Expanded>
  11600. false == false
  11601. </Expanded>
  11602. </Expression>
  11603. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11604. <Original>
  11605. cfg.testSpec().matches(*fakeTestCase("alwaysIncluded"))
  11606. </Original>
  11607. <Expanded>
  11608. true
  11609. </Expanded>
  11610. </Expression>
  11611. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  11612. </Section>
  11613. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  11614. </Section>
  11615. <Section name="reporter" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11616. <Section name="-r/console" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11617. <Info>
  11618. result.errorMessage() := ""
  11619. </Info>
  11620. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11621. <Original>
  11622. result
  11623. </Original>
  11624. <Expanded>
  11625. {?}
  11626. </Expanded>
  11627. </Expression>
  11628. <Info>
  11629. result.errorMessage() := ""
  11630. </Info>
  11631. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11632. <Original>
  11633. config.reporterSpecifications == vec_Specs{ { "console", {}, {}, {} } }
  11634. </Original>
  11635. <Expanded>
  11636. { {?} } == { {?} }
  11637. </Expanded>
  11638. </Expression>
  11639. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11640. </Section>
  11641. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11642. </Section>
  11643. <Section name="reporter" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11644. <Section name="-r/xml" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11645. <Info>
  11646. result.errorMessage() := ""
  11647. </Info>
  11648. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11649. <Original>
  11650. result
  11651. </Original>
  11652. <Expanded>
  11653. {?}
  11654. </Expanded>
  11655. </Expression>
  11656. <Info>
  11657. result.errorMessage() := ""
  11658. </Info>
  11659. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11660. <Original>
  11661. config.reporterSpecifications == vec_Specs{ { "xml", {}, {}, {} } }
  11662. </Original>
  11663. <Expanded>
  11664. { {?} } == { {?} }
  11665. </Expanded>
  11666. </Expression>
  11667. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11668. </Section>
  11669. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11670. </Section>
  11671. <Section name="reporter" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11672. <Section name="--reporter/junit" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11673. <Info>
  11674. result.errorMessage() := ""
  11675. </Info>
  11676. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11677. <Original>
  11678. result
  11679. </Original>
  11680. <Expanded>
  11681. {?}
  11682. </Expanded>
  11683. </Expression>
  11684. <Info>
  11685. result.errorMessage() := ""
  11686. </Info>
  11687. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11688. <Original>
  11689. config.reporterSpecifications == vec_Specs{ { "junit", {}, {}, {} } }
  11690. </Original>
  11691. <Expanded>
  11692. { {?} } == { {?} }
  11693. </Expanded>
  11694. </Expression>
  11695. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11696. </Section>
  11697. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11698. </Section>
  11699. <Section name="reporter" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11700. <Section name="must match one of the available ones" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11701. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11702. <Original>
  11703. !result
  11704. </Original>
  11705. <Expanded>
  11706. true
  11707. </Expanded>
  11708. </Expression>
  11709. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11710. <Original>
  11711. result.errorMessage(), ContainsSubstring("Unrecognized reporter")
  11712. </Original>
  11713. <Expanded>
  11714. "Unrecognized reporter, 'unsupported'. Check available with --list-reporters" contains: "Unrecognized reporter"
  11715. </Expanded>
  11716. </Expression>
  11717. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11718. </Section>
  11719. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11720. </Section>
  11721. <Section name="reporter" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11722. <Section name="With output file" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11723. <Info>
  11724. result.errorMessage() := ""
  11725. </Info>
  11726. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11727. <Original>
  11728. result
  11729. </Original>
  11730. <Expanded>
  11731. {?}
  11732. </Expanded>
  11733. </Expression>
  11734. <Info>
  11735. result.errorMessage() := ""
  11736. </Info>
  11737. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11738. <Original>
  11739. config.reporterSpecifications == vec_Specs{ { "console", "out.txt"s, {}, {} } }
  11740. </Original>
  11741. <Expanded>
  11742. { {?} } == { {?} }
  11743. </Expanded>
  11744. </Expression>
  11745. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11746. </Section>
  11747. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11748. </Section>
  11749. <Section name="reporter" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11750. <Section name="With Windows-like absolute path as output file" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11751. <Info>
  11752. result.errorMessage() := ""
  11753. </Info>
  11754. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11755. <Original>
  11756. result
  11757. </Original>
  11758. <Expanded>
  11759. {?}
  11760. </Expanded>
  11761. </Expression>
  11762. <Info>
  11763. result.errorMessage() := ""
  11764. </Info>
  11765. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11766. <Original>
  11767. config.reporterSpecifications == vec_Specs{ { "console", "C:\\Temp\\out.txt"s, {}, {} } }
  11768. </Original>
  11769. <Expanded>
  11770. { {?} } == { {?} }
  11771. </Expanded>
  11772. </Expression>
  11773. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11774. </Section>
  11775. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11776. </Section>
  11777. <Section name="reporter" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11778. <Section name="Multiple reporters" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11779. <Section name="All with output files" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11780. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11781. <Original>
  11782. cli.parse({ "test", "-r", "xml::out=output.xml", "-r", "junit::out=output-junit.xml" })
  11783. </Original>
  11784. <Expanded>
  11785. {?}
  11786. </Expanded>
  11787. </Expression>
  11788. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11789. <Original>
  11790. config.reporterSpecifications == vec_Specs{ { "xml", "output.xml"s, {}, {} }, { "junit", "output-junit.xml"s, {}, {} } }
  11791. </Original>
  11792. <Expanded>
  11793. { {?}, {?} } == { {?}, {?} }
  11794. </Expanded>
  11795. </Expression>
  11796. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11797. </Section>
  11798. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11799. </Section>
  11800. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11801. </Section>
  11802. <Section name="reporter" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11803. <Section name="Multiple reporters" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11804. <Section name="Mixed output files and default output" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11805. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11806. <Original>
  11807. cli.parse({ "test", "-r", "xml::out=output.xml", "-r", "console" })
  11808. </Original>
  11809. <Expanded>
  11810. {?}
  11811. </Expanded>
  11812. </Expression>
  11813. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11814. <Original>
  11815. config.reporterSpecifications == vec_Specs{ { "xml", "output.xml"s, {}, {} }, { "console", {}, {}, {} } }
  11816. </Original>
  11817. <Expanded>
  11818. { {?}, {?} } == { {?}, {?} }
  11819. </Expanded>
  11820. </Expression>
  11821. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11822. </Section>
  11823. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11824. </Section>
  11825. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11826. </Section>
  11827. <Section name="reporter" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11828. <Section name="Multiple reporters" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11829. <Section name="cannot have multiple reporters with default output" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11830. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11831. <Original>
  11832. !result
  11833. </Original>
  11834. <Expanded>
  11835. true
  11836. </Expanded>
  11837. </Expression>
  11838. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11839. <Original>
  11840. result.errorMessage(), ContainsSubstring("Only one reporter may have unspecified output file.")
  11841. </Original>
  11842. <Expanded>
  11843. "Only one reporter may have unspecified output file." contains: "Only one reporter may have unspecified output file."
  11844. </Expanded>
  11845. </Expression>
  11846. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11847. </Section>
  11848. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11849. </Section>
  11850. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11851. </Section>
  11852. <Section name="debugger" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11853. <Section name="-b" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11854. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11855. <Original>
  11856. cli.parse({"test", "-b"})
  11857. </Original>
  11858. <Expanded>
  11859. {?}
  11860. </Expanded>
  11861. </Expression>
  11862. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11863. <Original>
  11864. config.shouldDebugBreak == true
  11865. </Original>
  11866. <Expanded>
  11867. true == true
  11868. </Expanded>
  11869. </Expression>
  11870. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11871. </Section>
  11872. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11873. </Section>
  11874. <Section name="debugger" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11875. <Section name="--break" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11876. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11877. <Original>
  11878. cli.parse({"test", "--break"})
  11879. </Original>
  11880. <Expanded>
  11881. {?}
  11882. </Expanded>
  11883. </Expression>
  11884. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11885. <Original>
  11886. config.shouldDebugBreak
  11887. </Original>
  11888. <Expanded>
  11889. true
  11890. </Expanded>
  11891. </Expression>
  11892. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11893. </Section>
  11894. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11895. </Section>
  11896. <Section name="abort" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11897. <Section name="-a aborts after first failure" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11898. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11899. <Original>
  11900. cli.parse({"test", "-a"})
  11901. </Original>
  11902. <Expanded>
  11903. {?}
  11904. </Expanded>
  11905. </Expression>
  11906. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11907. <Original>
  11908. config.abortAfter == 1
  11909. </Original>
  11910. <Expanded>
  11911. 1 == 1
  11912. </Expanded>
  11913. </Expression>
  11914. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11915. </Section>
  11916. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11917. </Section>
  11918. <Section name="abort" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11919. <Section name="-x 2 aborts after two failures" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11920. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11921. <Original>
  11922. cli.parse({"test", "-x", "2"})
  11923. </Original>
  11924. <Expanded>
  11925. {?}
  11926. </Expanded>
  11927. </Expression>
  11928. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11929. <Original>
  11930. config.abortAfter == 2
  11931. </Original>
  11932. <Expanded>
  11933. 2 == 2
  11934. </Expanded>
  11935. </Expression>
  11936. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11937. </Section>
  11938. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11939. </Section>
  11940. <Section name="abort" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11941. <Section name="-x must be numeric" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11942. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11943. <Original>
  11944. !result
  11945. </Original>
  11946. <Expanded>
  11947. true
  11948. </Expanded>
  11949. </Expression>
  11950. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11951. <Original>
  11952. result.errorMessage(), ContainsSubstring("convert") &amp;&amp; ContainsSubstring("oops")
  11953. </Original>
  11954. <Expanded>
  11955. "Unable to convert 'oops' to destination type" ( contains: "convert" and contains: "oops" )
  11956. </Expanded>
  11957. </Expression>
  11958. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11959. </Section>
  11960. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11961. </Section>
  11962. <Section name="abort" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11963. <Section name="wait-for-keypress" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11964. <Section name="Accepted options" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11965. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11966. <Original>
  11967. cli.parse({"test", "--wait-for-keypress", std::get&lt;0>(input)})
  11968. </Original>
  11969. <Expanded>
  11970. {?}
  11971. </Expanded>
  11972. </Expression>
  11973. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11974. <Original>
  11975. config.waitForKeypress == std::get&lt;1>(input)
  11976. </Original>
  11977. <Expanded>
  11978. 0 == 0
  11979. </Expanded>
  11980. </Expression>
  11981. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11982. </Section>
  11983. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11984. </Section>
  11985. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11986. </Section>
  11987. <Section name="abort" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11988. <Section name="wait-for-keypress" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11989. <Section name="Accepted options" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11990. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11991. <Original>
  11992. cli.parse({"test", "--wait-for-keypress", std::get&lt;0>(input)})
  11993. </Original>
  11994. <Expanded>
  11995. {?}
  11996. </Expanded>
  11997. </Expression>
  11998. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  11999. <Original>
  12000. config.waitForKeypress == std::get&lt;1>(input)
  12001. </Original>
  12002. <Expanded>
  12003. 1 == 1
  12004. </Expanded>
  12005. </Expression>
  12006. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12007. </Section>
  12008. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12009. </Section>
  12010. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12011. </Section>
  12012. <Section name="abort" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12013. <Section name="wait-for-keypress" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12014. <Section name="Accepted options" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12015. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12016. <Original>
  12017. cli.parse({"test", "--wait-for-keypress", std::get&lt;0>(input)})
  12018. </Original>
  12019. <Expanded>
  12020. {?}
  12021. </Expanded>
  12022. </Expression>
  12023. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12024. <Original>
  12025. config.waitForKeypress == std::get&lt;1>(input)
  12026. </Original>
  12027. <Expanded>
  12028. 2 == 2
  12029. </Expanded>
  12030. </Expression>
  12031. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12032. </Section>
  12033. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12034. </Section>
  12035. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12036. </Section>
  12037. <Section name="abort" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12038. <Section name="wait-for-keypress" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12039. <Section name="Accepted options" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12040. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12041. <Original>
  12042. cli.parse({"test", "--wait-for-keypress", std::get&lt;0>(input)})
  12043. </Original>
  12044. <Expanded>
  12045. {?}
  12046. </Expanded>
  12047. </Expression>
  12048. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12049. <Original>
  12050. config.waitForKeypress == std::get&lt;1>(input)
  12051. </Original>
  12052. <Expanded>
  12053. 3 == 3
  12054. </Expanded>
  12055. </Expression>
  12056. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12057. </Section>
  12058. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12059. </Section>
  12060. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12061. </Section>
  12062. <Section name="abort" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12063. <Section name="wait-for-keypress" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12064. <Section name="invalid options are reported" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12065. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12066. <Original>
  12067. !result
  12068. </Original>
  12069. <Expanded>
  12070. true
  12071. </Expanded>
  12072. </Expression>
  12073. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12074. <Original>
  12075. result.errorMessage(), ContainsSubstring("never") &amp;&amp; ContainsSubstring("both")
  12076. </Original>
  12077. <Expanded>
  12078. "keypress argument must be one of: never, start, exit or both. 'sometimes' not recognised" ( contains: "never" and contains: "both" )
  12079. </Expanded>
  12080. </Expression>
  12081. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12082. </Section>
  12083. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12084. </Section>
  12085. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12086. </Section>
  12087. <Section name="nothrow" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12088. <Section name="-e" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12089. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12090. <Original>
  12091. cli.parse({"test", "-e"})
  12092. </Original>
  12093. <Expanded>
  12094. {?}
  12095. </Expanded>
  12096. </Expression>
  12097. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12098. <Original>
  12099. config.noThrow
  12100. </Original>
  12101. <Expanded>
  12102. true
  12103. </Expanded>
  12104. </Expression>
  12105. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12106. </Section>
  12107. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12108. </Section>
  12109. <Section name="nothrow" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12110. <Section name="--nothrow" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12111. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12112. <Original>
  12113. cli.parse({"test", "--nothrow"})
  12114. </Original>
  12115. <Expanded>
  12116. {?}
  12117. </Expanded>
  12118. </Expression>
  12119. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12120. <Original>
  12121. config.noThrow
  12122. </Original>
  12123. <Expanded>
  12124. true
  12125. </Expanded>
  12126. </Expression>
  12127. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12128. </Section>
  12129. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12130. </Section>
  12131. <Section name="output filename" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12132. <Section name="-o filename" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12133. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12134. <Original>
  12135. cli.parse({"test", "-o", "filename.ext"})
  12136. </Original>
  12137. <Expanded>
  12138. {?}
  12139. </Expanded>
  12140. </Expression>
  12141. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12142. <Original>
  12143. config.defaultOutputFilename == "filename.ext"
  12144. </Original>
  12145. <Expanded>
  12146. "filename.ext" == "filename.ext"
  12147. </Expanded>
  12148. </Expression>
  12149. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12150. </Section>
  12151. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12152. </Section>
  12153. <Section name="output filename" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12154. <Section name="--out" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12155. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12156. <Original>
  12157. cli.parse({"test", "--out", "filename.ext"})
  12158. </Original>
  12159. <Expanded>
  12160. {?}
  12161. </Expanded>
  12162. </Expression>
  12163. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12164. <Original>
  12165. config.defaultOutputFilename == "filename.ext"
  12166. </Original>
  12167. <Expanded>
  12168. "filename.ext" == "filename.ext"
  12169. </Expanded>
  12170. </Expression>
  12171. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12172. </Section>
  12173. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12174. </Section>
  12175. <Section name="combinations" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12176. <Section name="Single character flags can be combined" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12177. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12178. <Original>
  12179. cli.parse({"test", "-abe"})
  12180. </Original>
  12181. <Expanded>
  12182. {?}
  12183. </Expanded>
  12184. </Expression>
  12185. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12186. <Original>
  12187. config.abortAfter == 1
  12188. </Original>
  12189. <Expanded>
  12190. 1 == 1
  12191. </Expanded>
  12192. </Expression>
  12193. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12194. <Original>
  12195. config.shouldDebugBreak
  12196. </Original>
  12197. <Expanded>
  12198. true
  12199. </Expanded>
  12200. </Expression>
  12201. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12202. <Original>
  12203. config.noThrow == true
  12204. </Original>
  12205. <Expanded>
  12206. true == true
  12207. </Expanded>
  12208. </Expression>
  12209. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  12210. </Section>
  12211. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  12212. </Section>
  12213. <Section name="use-colour" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12214. <Section name="without option" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12215. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12216. <Original>
  12217. cli.parse({"test"})
  12218. </Original>
  12219. <Expanded>
  12220. {?}
  12221. </Expanded>
  12222. </Expression>
  12223. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12224. <Original>
  12225. config.defaultColourMode == ColourMode::PlatformDefault
  12226. </Original>
  12227. <Expanded>
  12228. 0 == 0
  12229. </Expanded>
  12230. </Expression>
  12231. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12232. </Section>
  12233. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12234. </Section>
  12235. <Section name="use-colour" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12236. <Section name="auto" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12237. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12238. <Original>
  12239. cli.parse( { "test", "--colour-mode", "default" } )
  12240. </Original>
  12241. <Expanded>
  12242. {?}
  12243. </Expanded>
  12244. </Expression>
  12245. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12246. <Original>
  12247. config.defaultColourMode == ColourMode::PlatformDefault
  12248. </Original>
  12249. <Expanded>
  12250. 0 == 0
  12251. </Expanded>
  12252. </Expression>
  12253. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12254. </Section>
  12255. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12256. </Section>
  12257. <Section name="use-colour" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12258. <Section name="yes" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12259. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12260. <Original>
  12261. cli.parse({"test", "--colour-mode", "ansi"})
  12262. </Original>
  12263. <Expanded>
  12264. {?}
  12265. </Expanded>
  12266. </Expression>
  12267. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12268. <Original>
  12269. config.defaultColourMode == ColourMode::ANSI
  12270. </Original>
  12271. <Expanded>
  12272. 1 == 1
  12273. </Expanded>
  12274. </Expression>
  12275. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12276. </Section>
  12277. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12278. </Section>
  12279. <Section name="use-colour" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12280. <Section name="no" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12281. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12282. <Original>
  12283. cli.parse({"test", "--colour-mode", "none"})
  12284. </Original>
  12285. <Expanded>
  12286. {?}
  12287. </Expanded>
  12288. </Expression>
  12289. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12290. <Original>
  12291. config.defaultColourMode == ColourMode::None
  12292. </Original>
  12293. <Expanded>
  12294. 3 == 3
  12295. </Expanded>
  12296. </Expression>
  12297. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12298. </Section>
  12299. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12300. </Section>
  12301. <Section name="use-colour" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12302. <Section name="error" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12303. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12304. <Original>
  12305. !result
  12306. </Original>
  12307. <Expanded>
  12308. true
  12309. </Expanded>
  12310. </Expression>
  12311. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12312. <Original>
  12313. result.errorMessage(), ContainsSubstring( "colour mode must be one of" )
  12314. </Original>
  12315. <Expanded>
  12316. "colour mode must be one of: default, ansi, win32, or none. 'wrong' is not recognised" contains: "colour mode must be one of"
  12317. </Expanded>
  12318. </Expression>
  12319. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12320. </Section>
  12321. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12322. </Section>
  12323. <Section name="Benchmark options" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12324. <Section name="samples" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12325. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12326. <Original>
  12327. cli.parse({ "test", "--benchmark-samples=200" })
  12328. </Original>
  12329. <Expanded>
  12330. {?}
  12331. </Expanded>
  12332. </Expression>
  12333. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12334. <Original>
  12335. config.benchmarkSamples == 200
  12336. </Original>
  12337. <Expanded>
  12338. 200 == 200
  12339. </Expanded>
  12340. </Expression>
  12341. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12342. </Section>
  12343. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12344. </Section>
  12345. <Section name="Benchmark options" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12346. <Section name="resamples" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12347. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12348. <Original>
  12349. cli.parse({ "test", "--benchmark-resamples=20000" })
  12350. </Original>
  12351. <Expanded>
  12352. {?}
  12353. </Expanded>
  12354. </Expression>
  12355. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12356. <Original>
  12357. config.benchmarkResamples == 20000
  12358. </Original>
  12359. <Expanded>
  12360. 20000 (0x<hex digits>) == 20000 (0x<hex digits>)
  12361. </Expanded>
  12362. </Expression>
  12363. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12364. </Section>
  12365. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12366. </Section>
  12367. <Section name="Benchmark options" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12368. <Section name="confidence-interval" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12369. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12370. <Original>
  12371. cli.parse({ "test", "--benchmark-confidence-interval=0.99" })
  12372. </Original>
  12373. <Expanded>
  12374. {?}
  12375. </Expanded>
  12376. </Expression>
  12377. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12378. <Original>
  12379. config.benchmarkConfidenceInterval == Catch::Approx(0.99)
  12380. </Original>
  12381. <Expanded>
  12382. 0.99 == Approx( 0.99 )
  12383. </Expanded>
  12384. </Expression>
  12385. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12386. </Section>
  12387. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12388. </Section>
  12389. <Section name="Benchmark options" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12390. <Section name="no-analysis" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12391. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12392. <Original>
  12393. cli.parse({ "test", "--benchmark-no-analysis" })
  12394. </Original>
  12395. <Expanded>
  12396. {?}
  12397. </Expanded>
  12398. </Expression>
  12399. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12400. <Original>
  12401. config.benchmarkNoAnalysis
  12402. </Original>
  12403. <Expanded>
  12404. true
  12405. </Expanded>
  12406. </Expression>
  12407. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12408. </Section>
  12409. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12410. </Section>
  12411. <Section name="Benchmark options" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12412. <Section name="warmup-time" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12413. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12414. <Original>
  12415. cli.parse({ "test", "--benchmark-warmup-time=10" })
  12416. </Original>
  12417. <Expanded>
  12418. {?}
  12419. </Expanded>
  12420. </Expression>
  12421. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  12422. <Original>
  12423. config.benchmarkWarmupTime == 10
  12424. </Original>
  12425. <Expanded>
  12426. 10 == 10
  12427. </Expanded>
  12428. </Expression>
  12429. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12430. </Section>
  12431. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12432. </Section>
  12433. <OverallResult success="true"/>
  12434. </TestCase>
  12435. <TestCase name="Product with differing arities - std::tuple&lt;int, double, float>" tags="[product][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  12436. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  12437. <Original>
  12438. std::tuple_size&lt;TestType>::value >= 1
  12439. </Original>
  12440. <Expanded>
  12441. 3 >= 1
  12442. </Expanded>
  12443. </Expression>
  12444. <OverallResult success="true"/>
  12445. </TestCase>
  12446. <TestCase name="Product with differing arities - std::tuple&lt;int, double>" tags="[product][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  12447. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  12448. <Original>
  12449. std::tuple_size&lt;TestType>::value >= 1
  12450. </Original>
  12451. <Expanded>
  12452. 2 >= 1
  12453. </Expanded>
  12454. </Expression>
  12455. <OverallResult success="true"/>
  12456. </TestCase>
  12457. <TestCase name="Product with differing arities - std::tuple&lt;int>" tags="[product][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  12458. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  12459. <Original>
  12460. std::tuple_size&lt;TestType>::value >= 1
  12461. </Original>
  12462. <Expanded>
  12463. 1 >= 1
  12464. </Expanded>
  12465. </Expression>
  12466. <OverallResult success="true"/>
  12467. </TestCase>
  12468. <TestCase name="Random seed generation accepts known methods" tags="[rng][seed]" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  12469. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  12470. <Original>
  12471. Catch::generateRandomSeed(method)
  12472. </Original>
  12473. <Expanded>
  12474. Catch::generateRandomSeed(method)
  12475. </Expanded>
  12476. </Expression>
  12477. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  12478. <Original>
  12479. Catch::generateRandomSeed(method)
  12480. </Original>
  12481. <Expanded>
  12482. Catch::generateRandomSeed(method)
  12483. </Expanded>
  12484. </Expression>
  12485. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  12486. <Original>
  12487. Catch::generateRandomSeed(method)
  12488. </Original>
  12489. <Expanded>
  12490. Catch::generateRandomSeed(method)
  12491. </Expanded>
  12492. </Expression>
  12493. <OverallResult success="true"/>
  12494. </TestCase>
  12495. <TestCase name="Random seed generation reports unknown methods" tags="[rng][seed]" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  12496. <Expression success="true" type="REQUIRE_THROWS" filename="tests/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  12497. <Original>
  12498. Catch::generateRandomSeed(static_cast&lt;Catch::GenerateFrom>(77))
  12499. </Original>
  12500. <Expanded>
  12501. Catch::generateRandomSeed(static_cast&lt;Catch::GenerateFrom>(77))
  12502. </Expanded>
  12503. </Expression>
  12504. <OverallResult success="true"/>
  12505. </TestCase>
  12506. <TestCase name="Range type with sentinel" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  12507. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  12508. <Original>
  12509. Catch::Detail::stringify(UsesSentinel{}) == "{ }"
  12510. </Original>
  12511. <Expanded>
  12512. "{ }" == "{ }"
  12513. </Expanded>
  12514. </Expression>
  12515. <OverallResult success="true"/>
  12516. </TestCase>
  12517. <TestCase name="Reconstruction should be based on stringification: #914" tags="[.][Decomposition][failing]" filename="tests/<exe-name>/UsageTests/Decomposition.tests.cpp" >
  12518. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Decomposition.tests.cpp" >
  12519. <Original>
  12520. truthy(false)
  12521. </Original>
  12522. <Expanded>
  12523. Hey, its truthy!
  12524. </Expanded>
  12525. </Expression>
  12526. <OverallResult success="false"/>
  12527. </TestCase>
  12528. <TestCase name="Regex string matcher" tags="[.][failing][matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  12529. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  12530. <Original>
  12531. testStringForMatching(), Matches( "this STRING contains 'abc' as a substring" )
  12532. </Original>
  12533. <Expanded>
  12534. "this string contains 'abc' as a substring" matches "this STRING contains 'abc' as a substring" case sensitively
  12535. </Expanded>
  12536. </Expression>
  12537. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  12538. <Original>
  12539. testStringForMatching(), Matches( "contains 'abc' as a substring" )
  12540. </Original>
  12541. <Expanded>
  12542. "this string contains 'abc' as a substring" matches "contains 'abc' as a substring" case sensitively
  12543. </Expanded>
  12544. </Expression>
  12545. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  12546. <Original>
  12547. testStringForMatching(), Matches( "this string contains 'abc' as a" )
  12548. </Original>
  12549. <Expanded>
  12550. "this string contains 'abc' as a substring" matches "this string contains 'abc' as a" case sensitively
  12551. </Expanded>
  12552. </Expression>
  12553. <OverallResult success="false"/>
  12554. </TestCase>
  12555. <TestCase name="Registering reporter with '::' in name fails" tags="[registration][reporters]" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12556. <Expression success="true" type="REQUIRE_THROWS_WITH" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12557. <Original>
  12558. registry.registerReporter( "with::doublecolons", Catch::Detail::make_unique&lt;TestReporterFactory>() ), "'::' is not allowed in reporter name: 'with::doublecolons'"
  12559. </Original>
  12560. <Expanded>
  12561. "'::' is not allowed in reporter name: 'with::doublecolons'" equals: "'::' is not allowed in reporter name: 'with::doublecolons'"
  12562. </Expanded>
  12563. </Expression>
  12564. <OverallResult success="true"/>
  12565. </TestCase>
  12566. <TestCase name="Regression test #1" tags="[matchers][vector]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  12567. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  12568. <Original>
  12569. actual, !UnorderedEquals( expected )
  12570. </Original>
  12571. <Expanded>
  12572. { 'a', 'b' } not UnorderedEquals: { 'c', 'b' }
  12573. </Expanded>
  12574. </Expression>
  12575. <OverallResult success="true"/>
  12576. </TestCase>
  12577. <TestCase name="Reporter's write listings to provided stream" tags="[reporters]" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12578. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12579. <Original>
  12580. !(factories.empty())
  12581. </Original>
  12582. <Expanded>
  12583. !false
  12584. </Expanded>
  12585. </Expression>
  12586. <Section name="Automake reporter lists tags" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12587. <Info>
  12588. Tested reporter: Automake
  12589. </Info>
  12590. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12591. <Original>
  12592. listingString, ContainsSubstring("fakeTag"s)
  12593. </Original>
  12594. <Expanded>
  12595. "All available tags:
  12596. 1 [fakeTag]
  12597. 1 tag
  12598. " contains: "fakeTag"
  12599. </Expanded>
  12600. </Expression>
  12601. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12602. </Section>
  12603. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12604. <Original>
  12605. !(factories.empty())
  12606. </Original>
  12607. <Expanded>
  12608. !false
  12609. </Expanded>
  12610. </Expression>
  12611. <Section name="Automake reporter lists reporters" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12612. <Info>
  12613. Tested reporter: Automake
  12614. </Info>
  12615. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12616. <Original>
  12617. listingString, ContainsSubstring("fake reporter"s)
  12618. </Original>
  12619. <Expanded>
  12620. "Available reporters:
  12621. fake reporter: fake description
  12622. " contains: "fake reporter"
  12623. </Expanded>
  12624. </Expression>
  12625. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12626. </Section>
  12627. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12628. <Original>
  12629. !(factories.empty())
  12630. </Original>
  12631. <Expanded>
  12632. !false
  12633. </Expanded>
  12634. </Expression>
  12635. <Section name="Automake reporter lists tests" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12636. <Info>
  12637. Tested reporter: Automake
  12638. </Info>
  12639. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12640. <Original>
  12641. listingString, ContainsSubstring( "fake test name"s ) &amp;&amp; ContainsSubstring( "fakeTestTag"s )
  12642. </Original>
  12643. <Expanded>
  12644. "All available test cases:
  12645. fake test name
  12646. [fakeTestTag]
  12647. 1 test case
  12648. " ( contains: "fake test name" and contains: "fakeTestTag" )
  12649. </Expanded>
  12650. </Expression>
  12651. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12652. </Section>
  12653. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12654. <Original>
  12655. !(factories.empty())
  12656. </Original>
  12657. <Expanded>
  12658. !false
  12659. </Expanded>
  12660. </Expression>
  12661. <Section name="compact reporter lists tags" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12662. <Info>
  12663. Tested reporter: compact
  12664. </Info>
  12665. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12666. <Original>
  12667. listingString, ContainsSubstring("fakeTag"s)
  12668. </Original>
  12669. <Expanded>
  12670. "All available tags:
  12671. 1 [fakeTag]
  12672. 1 tag
  12673. " contains: "fakeTag"
  12674. </Expanded>
  12675. </Expression>
  12676. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12677. </Section>
  12678. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12679. <Original>
  12680. !(factories.empty())
  12681. </Original>
  12682. <Expanded>
  12683. !false
  12684. </Expanded>
  12685. </Expression>
  12686. <Section name="compact reporter lists reporters" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12687. <Info>
  12688. Tested reporter: compact
  12689. </Info>
  12690. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12691. <Original>
  12692. listingString, ContainsSubstring("fake reporter"s)
  12693. </Original>
  12694. <Expanded>
  12695. "Available reporters:
  12696. fake reporter: fake description
  12697. " contains: "fake reporter"
  12698. </Expanded>
  12699. </Expression>
  12700. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12701. </Section>
  12702. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12703. <Original>
  12704. !(factories.empty())
  12705. </Original>
  12706. <Expanded>
  12707. !false
  12708. </Expanded>
  12709. </Expression>
  12710. <Section name="compact reporter lists tests" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12711. <Info>
  12712. Tested reporter: compact
  12713. </Info>
  12714. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12715. <Original>
  12716. listingString, ContainsSubstring( "fake test name"s ) &amp;&amp; ContainsSubstring( "fakeTestTag"s )
  12717. </Original>
  12718. <Expanded>
  12719. "All available test cases:
  12720. fake test name
  12721. [fakeTestTag]
  12722. 1 test case
  12723. " ( contains: "fake test name" and contains: "fakeTestTag" )
  12724. </Expanded>
  12725. </Expression>
  12726. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12727. </Section>
  12728. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12729. <Original>
  12730. !(factories.empty())
  12731. </Original>
  12732. <Expanded>
  12733. !false
  12734. </Expanded>
  12735. </Expression>
  12736. <Section name="console reporter lists tags" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12737. <Info>
  12738. Tested reporter: console
  12739. </Info>
  12740. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12741. <Original>
  12742. listingString, ContainsSubstring("fakeTag"s)
  12743. </Original>
  12744. <Expanded>
  12745. "All available tags:
  12746. 1 [fakeTag]
  12747. 1 tag
  12748. " contains: "fakeTag"
  12749. </Expanded>
  12750. </Expression>
  12751. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12752. </Section>
  12753. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12754. <Original>
  12755. !(factories.empty())
  12756. </Original>
  12757. <Expanded>
  12758. !false
  12759. </Expanded>
  12760. </Expression>
  12761. <Section name="console reporter lists reporters" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12762. <Info>
  12763. Tested reporter: console
  12764. </Info>
  12765. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12766. <Original>
  12767. listingString, ContainsSubstring("fake reporter"s)
  12768. </Original>
  12769. <Expanded>
  12770. "Available reporters:
  12771. fake reporter: fake description
  12772. " contains: "fake reporter"
  12773. </Expanded>
  12774. </Expression>
  12775. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12776. </Section>
  12777. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12778. <Original>
  12779. !(factories.empty())
  12780. </Original>
  12781. <Expanded>
  12782. !false
  12783. </Expanded>
  12784. </Expression>
  12785. <Section name="console reporter lists tests" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12786. <Info>
  12787. Tested reporter: console
  12788. </Info>
  12789. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12790. <Original>
  12791. listingString, ContainsSubstring( "fake test name"s ) &amp;&amp; ContainsSubstring( "fakeTestTag"s )
  12792. </Original>
  12793. <Expanded>
  12794. "All available test cases:
  12795. fake test name
  12796. [fakeTestTag]
  12797. 1 test case
  12798. " ( contains: "fake test name" and contains: "fakeTestTag" )
  12799. </Expanded>
  12800. </Expression>
  12801. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12802. </Section>
  12803. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12804. <Original>
  12805. !(factories.empty())
  12806. </Original>
  12807. <Expanded>
  12808. !false
  12809. </Expanded>
  12810. </Expression>
  12811. <Section name="JUnit reporter lists tags" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12812. <Info>
  12813. Tested reporter: JUnit
  12814. </Info>
  12815. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12816. <Original>
  12817. listingString, ContainsSubstring("fakeTag"s)
  12818. </Original>
  12819. <Expanded>
  12820. "&lt;?xml version="1.0" encoding="UTF-8"?>
  12821. All available tags:
  12822. 1 [fakeTag]
  12823. 1 tag
  12824. " contains: "fakeTag"
  12825. </Expanded>
  12826. </Expression>
  12827. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12828. </Section>
  12829. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12830. <Original>
  12831. !(factories.empty())
  12832. </Original>
  12833. <Expanded>
  12834. !false
  12835. </Expanded>
  12836. </Expression>
  12837. <Section name="JUnit reporter lists reporters" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12838. <Info>
  12839. Tested reporter: JUnit
  12840. </Info>
  12841. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12842. <Original>
  12843. listingString, ContainsSubstring("fake reporter"s)
  12844. </Original>
  12845. <Expanded>
  12846. "&lt;?xml version="1.0" encoding="UTF-8"?>
  12847. Available reporters:
  12848. fake reporter: fake description
  12849. " contains: "fake reporter"
  12850. </Expanded>
  12851. </Expression>
  12852. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12853. </Section>
  12854. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12855. <Original>
  12856. !(factories.empty())
  12857. </Original>
  12858. <Expanded>
  12859. !false
  12860. </Expanded>
  12861. </Expression>
  12862. <Section name="JUnit reporter lists tests" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12863. <Info>
  12864. Tested reporter: JUnit
  12865. </Info>
  12866. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12867. <Original>
  12868. listingString, ContainsSubstring( "fake test name"s ) &amp;&amp; ContainsSubstring( "fakeTestTag"s )
  12869. </Original>
  12870. <Expanded>
  12871. "&lt;?xml version="1.0" encoding="UTF-8"?>
  12872. All available test cases:
  12873. fake test name
  12874. [fakeTestTag]
  12875. 1 test case
  12876. " ( contains: "fake test name" and contains: "fakeTestTag" )
  12877. </Expanded>
  12878. </Expression>
  12879. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12880. </Section>
  12881. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12882. <Original>
  12883. !(factories.empty())
  12884. </Original>
  12885. <Expanded>
  12886. !false
  12887. </Expanded>
  12888. </Expression>
  12889. <Section name="SonarQube reporter lists tags" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12890. <Info>
  12891. Tested reporter: SonarQube
  12892. </Info>
  12893. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12894. <Original>
  12895. listingString, ContainsSubstring("fakeTag"s)
  12896. </Original>
  12897. <Expanded>
  12898. "&lt;?xml version="1.0" encoding="UTF-8"?>
  12899. All available tags:
  12900. 1 [fakeTag]
  12901. 1 tag
  12902. " contains: "fakeTag"
  12903. </Expanded>
  12904. </Expression>
  12905. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12906. </Section>
  12907. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12908. <Original>
  12909. !(factories.empty())
  12910. </Original>
  12911. <Expanded>
  12912. !false
  12913. </Expanded>
  12914. </Expression>
  12915. <Section name="SonarQube reporter lists reporters" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12916. <Info>
  12917. Tested reporter: SonarQube
  12918. </Info>
  12919. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12920. <Original>
  12921. listingString, ContainsSubstring("fake reporter"s)
  12922. </Original>
  12923. <Expanded>
  12924. "&lt;?xml version="1.0" encoding="UTF-8"?>
  12925. Available reporters:
  12926. fake reporter: fake description
  12927. " contains: "fake reporter"
  12928. </Expanded>
  12929. </Expression>
  12930. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12931. </Section>
  12932. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12933. <Original>
  12934. !(factories.empty())
  12935. </Original>
  12936. <Expanded>
  12937. !false
  12938. </Expanded>
  12939. </Expression>
  12940. <Section name="SonarQube reporter lists tests" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12941. <Info>
  12942. Tested reporter: SonarQube
  12943. </Info>
  12944. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12945. <Original>
  12946. listingString, ContainsSubstring( "fake test name"s ) &amp;&amp; ContainsSubstring( "fakeTestTag"s )
  12947. </Original>
  12948. <Expanded>
  12949. "&lt;?xml version="1.0" encoding="UTF-8"?>
  12950. All available test cases:
  12951. fake test name
  12952. [fakeTestTag]
  12953. 1 test case
  12954. " ( contains: "fake test name" and contains: "fakeTestTag" )
  12955. </Expanded>
  12956. </Expression>
  12957. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12958. </Section>
  12959. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12960. <Original>
  12961. !(factories.empty())
  12962. </Original>
  12963. <Expanded>
  12964. !false
  12965. </Expanded>
  12966. </Expression>
  12967. <Section name="TAP reporter lists tags" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12968. <Info>
  12969. Tested reporter: TAP
  12970. </Info>
  12971. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12972. <Original>
  12973. listingString, ContainsSubstring("fakeTag"s)
  12974. </Original>
  12975. <Expanded>
  12976. "All available tags:
  12977. 1 [fakeTag]
  12978. 1 tag
  12979. " contains: "fakeTag"
  12980. </Expanded>
  12981. </Expression>
  12982. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12983. </Section>
  12984. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12985. <Original>
  12986. !(factories.empty())
  12987. </Original>
  12988. <Expanded>
  12989. !false
  12990. </Expanded>
  12991. </Expression>
  12992. <Section name="TAP reporter lists reporters" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12993. <Info>
  12994. Tested reporter: TAP
  12995. </Info>
  12996. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  12997. <Original>
  12998. listingString, ContainsSubstring("fake reporter"s)
  12999. </Original>
  13000. <Expanded>
  13001. "Available reporters:
  13002. fake reporter: fake description
  13003. " contains: "fake reporter"
  13004. </Expanded>
  13005. </Expression>
  13006. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13007. </Section>
  13008. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13009. <Original>
  13010. !(factories.empty())
  13011. </Original>
  13012. <Expanded>
  13013. !false
  13014. </Expanded>
  13015. </Expression>
  13016. <Section name="TAP reporter lists tests" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13017. <Info>
  13018. Tested reporter: TAP
  13019. </Info>
  13020. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13021. <Original>
  13022. listingString, ContainsSubstring( "fake test name"s ) &amp;&amp; ContainsSubstring( "fakeTestTag"s )
  13023. </Original>
  13024. <Expanded>
  13025. "All available test cases:
  13026. fake test name
  13027. [fakeTestTag]
  13028. 1 test case
  13029. " ( contains: "fake test name" and contains: "fakeTestTag" )
  13030. </Expanded>
  13031. </Expression>
  13032. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13033. </Section>
  13034. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13035. <Original>
  13036. !(factories.empty())
  13037. </Original>
  13038. <Expanded>
  13039. !false
  13040. </Expanded>
  13041. </Expression>
  13042. <Section name="TeamCity reporter lists tags" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13043. <Info>
  13044. Tested reporter: TeamCity
  13045. </Info>
  13046. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13047. <Original>
  13048. listingString, ContainsSubstring("fakeTag"s)
  13049. </Original>
  13050. <Expanded>
  13051. "All available tags:
  13052. 1 [fakeTag]
  13053. 1 tag
  13054. " contains: "fakeTag"
  13055. </Expanded>
  13056. </Expression>
  13057. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13058. </Section>
  13059. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13060. <Original>
  13061. !(factories.empty())
  13062. </Original>
  13063. <Expanded>
  13064. !false
  13065. </Expanded>
  13066. </Expression>
  13067. <Section name="TeamCity reporter lists reporters" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13068. <Info>
  13069. Tested reporter: TeamCity
  13070. </Info>
  13071. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13072. <Original>
  13073. listingString, ContainsSubstring("fake reporter"s)
  13074. </Original>
  13075. <Expanded>
  13076. "Available reporters:
  13077. fake reporter: fake description
  13078. " contains: "fake reporter"
  13079. </Expanded>
  13080. </Expression>
  13081. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13082. </Section>
  13083. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13084. <Original>
  13085. !(factories.empty())
  13086. </Original>
  13087. <Expanded>
  13088. !false
  13089. </Expanded>
  13090. </Expression>
  13091. <Section name="TeamCity reporter lists tests" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13092. <Info>
  13093. Tested reporter: TeamCity
  13094. </Info>
  13095. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13096. <Original>
  13097. listingString, ContainsSubstring( "fake test name"s ) &amp;&amp; ContainsSubstring( "fakeTestTag"s )
  13098. </Original>
  13099. <Expanded>
  13100. "All available test cases:
  13101. fake test name
  13102. [fakeTestTag]
  13103. 1 test case
  13104. " ( contains: "fake test name" and contains: "fakeTestTag" )
  13105. </Expanded>
  13106. </Expression>
  13107. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13108. </Section>
  13109. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13110. <Original>
  13111. !(factories.empty())
  13112. </Original>
  13113. <Expanded>
  13114. !false
  13115. </Expanded>
  13116. </Expression>
  13117. <Section name="XML reporter lists tags" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13118. <Info>
  13119. Tested reporter: XML
  13120. </Info>
  13121. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13122. <Original>
  13123. listingString, ContainsSubstring("fakeTag"s)
  13124. </Original>
  13125. <Expanded>
  13126. "&lt;?xml version="1.0" encoding="UTF-8"?>
  13127. &lt;TagsFromMatchingTests>
  13128. &lt;Tag>
  13129. &lt;Count>1&lt;/Count>
  13130. &lt;Aliases>
  13131. &lt;Alias>fakeTag&lt;/Alias>
  13132. &lt;/Aliases>
  13133. &lt;/Tag>
  13134. &lt;/TagsFromMatchingTests>" contains: "fakeTag"
  13135. </Expanded>
  13136. </Expression>
  13137. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13138. </Section>
  13139. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13140. <Original>
  13141. !(factories.empty())
  13142. </Original>
  13143. <Expanded>
  13144. !false
  13145. </Expanded>
  13146. </Expression>
  13147. <Section name="XML reporter lists reporters" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13148. <Info>
  13149. Tested reporter: XML
  13150. </Info>
  13151. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13152. <Original>
  13153. listingString, ContainsSubstring("fake reporter"s)
  13154. </Original>
  13155. <Expanded>
  13156. "&lt;?xml version="1.0" encoding="UTF-8"?>
  13157. &lt;AvailableReporters>
  13158. &lt;Reporter>
  13159. &lt;Name>fake reporter&lt;/Name>
  13160. &lt;Description>fake description&lt;/Description>
  13161. &lt;/Reporter>
  13162. &lt;/AvailableReporters>" contains: "fake reporter"
  13163. </Expanded>
  13164. </Expression>
  13165. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13166. </Section>
  13167. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13168. <Original>
  13169. !(factories.empty())
  13170. </Original>
  13171. <Expanded>
  13172. !false
  13173. </Expanded>
  13174. </Expression>
  13175. <Section name="XML reporter lists tests" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13176. <Info>
  13177. Tested reporter: XML
  13178. </Info>
  13179. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13180. <Original>
  13181. listingString, ContainsSubstring( "fake test name"s ) &amp;&amp; ContainsSubstring( "fakeTestTag"s )
  13182. </Original>
  13183. <Expanded>
  13184. "&lt;?xml version="1.0" encoding="UTF-8"?>
  13185. &lt;MatchingTests>
  13186. &lt;TestCase>
  13187. &lt;Name>fake test name&lt;/Name>
  13188. &lt;ClassName/>
  13189. &lt;Tags>[fakeTestTag]&lt;/Tags>
  13190. &lt;SourceInfo>
  13191. &lt;File>fake-file.cpp&lt;/File>
  13192. &lt;Line>123456789&lt;/Line>
  13193. &lt;/SourceInfo>
  13194. &lt;/TestCase>
  13195. &lt;/MatchingTests>" ( contains: "fake test name" and contains: "fakeTestTag" )
  13196. </Expanded>
  13197. </Expression>
  13198. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13199. </Section>
  13200. <OverallResult success="true"/>
  13201. </TestCase>
  13202. <TestCase name="Reproducer for #2309 - a very long description past 80 chars (default console width) with a late colon : blablabla" tags="[console-reporter]" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  13203. <OverallResult success="true"/>
  13204. </TestCase>
  13205. <TestCase name="SUCCEED counts as a test pass" tags="[messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  13206. <OverallResult success="true"/>
  13207. </TestCase>
  13208. <TestCase name="SUCCEED does not require an argument" tags="[.][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  13209. <OverallResult success="true"/>
  13210. </TestCase>
  13211. <TestCase name="Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods" tags="[bdd][fixtures]" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13212. <Section name="Given: No operations precede me" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13213. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13214. <Original>
  13215. before == 0
  13216. </Original>
  13217. <Expanded>
  13218. 0 == 0
  13219. </Expanded>
  13220. </Expression>
  13221. <Section name="When: We get the count" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13222. <Section name="Then: Subsequently values are higher" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13223. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13224. <Original>
  13225. after > before
  13226. </Original>
  13227. <Expanded>
  13228. 1 > 0
  13229. </Expanded>
  13230. </Expression>
  13231. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13232. </Section>
  13233. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13234. </Section>
  13235. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13236. </Section>
  13237. <OverallResult success="true"/>
  13238. </TestCase>
  13239. <TestCase name="Scenario: Do that thing with the thing" tags="[Tags]" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13240. <Section name="Given: This stuff exists" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13241. <Section name="And given: And some assumption" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13242. <Section name="When: I do this" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13243. <Section name="Then: it should do this" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13244. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13245. <Original>
  13246. itDoesThis()
  13247. </Original>
  13248. <Expanded>
  13249. true
  13250. </Expanded>
  13251. </Expression>
  13252. <Section name="And: do that" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13253. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13254. <Original>
  13255. itDoesThat()
  13256. </Original>
  13257. <Expanded>
  13258. true
  13259. </Expanded>
  13260. </Expression>
  13261. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13262. </Section>
  13263. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13264. </Section>
  13265. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13266. </Section>
  13267. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13268. </Section>
  13269. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13270. </Section>
  13271. <OverallResult success="true"/>
  13272. </TestCase>
  13273. <TestCase name="Scenario: This is a really long scenario name to see how the list command deals with wrapping" tags="[anotherReallyLongTagNameButThisOneHasNoObviousWrapPointsSoShouldSplitWithinAWordUsingADashCharacter][long][lots][one very long tag name that should cause line wrapping writing out using the list command][tags][verbose][very long tags]" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13274. <Section name="Given: A section name that is so long that it cannot fit in a single console width" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13275. <Section name="When: The test headers are printed as part of the normal running of the scenario" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13276. <Section name="Then: The, deliberately very long and overly verbose (you see what I did there?) section names must wrap, along with an indent" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13277. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13278. </Section>
  13279. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13280. </Section>
  13281. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13282. </Section>
  13283. <OverallResult success="true"/>
  13284. </TestCase>
  13285. <TestCase name="Scenario: Vector resizing affects size and capacity" tags="[bdd][capacity][size][vector]" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13286. <Section name="Given: an empty vector" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13287. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13288. <Original>
  13289. v.size() == 0
  13290. </Original>
  13291. <Expanded>
  13292. 0 == 0
  13293. </Expanded>
  13294. </Expression>
  13295. <Section name="When: it is made larger" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13296. <Section name="Then: the size and capacity go up" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13297. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13298. <Original>
  13299. v.size() == 10
  13300. </Original>
  13301. <Expanded>
  13302. 10 == 10
  13303. </Expanded>
  13304. </Expression>
  13305. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13306. <Original>
  13307. v.capacity() >= 10
  13308. </Original>
  13309. <Expanded>
  13310. 10 >= 10
  13311. </Expanded>
  13312. </Expression>
  13313. <Section name="And when: it is made smaller again" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13314. <Section name="Then: the size goes down but the capacity stays the same" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13315. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13316. <Original>
  13317. v.size() == 5
  13318. </Original>
  13319. <Expanded>
  13320. 5 == 5
  13321. </Expanded>
  13322. </Expression>
  13323. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13324. <Original>
  13325. v.capacity() >= 10
  13326. </Original>
  13327. <Expanded>
  13328. 10 >= 10
  13329. </Expanded>
  13330. </Expression>
  13331. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13332. </Section>
  13333. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13334. </Section>
  13335. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  13336. </Section>
  13337. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  13338. </Section>
  13339. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  13340. </Section>
  13341. <Section name="Given: an empty vector" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13342. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13343. <Original>
  13344. v.size() == 0
  13345. </Original>
  13346. <Expanded>
  13347. 0 == 0
  13348. </Expanded>
  13349. </Expression>
  13350. <Section name="When: we reserve more space" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13351. <Section name="Then: The capacity is increased but the size remains the same" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13352. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13353. <Original>
  13354. v.capacity() >= 10
  13355. </Original>
  13356. <Expanded>
  13357. 10 >= 10
  13358. </Expanded>
  13359. </Expression>
  13360. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/BDD.tests.cpp" >
  13361. <Original>
  13362. v.size() == 0
  13363. </Original>
  13364. <Expanded>
  13365. 0 == 0
  13366. </Expanded>
  13367. </Expression>
  13368. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13369. </Section>
  13370. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13371. </Section>
  13372. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  13373. </Section>
  13374. <OverallResult success="true"/>
  13375. </TestCase>
  13376. <TestCase name="Sends stuff to stdout and stderr" tags="[.]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  13377. <OverallResult success="false">
  13378. <StdOut>
  13379. A string sent directly to stdout
  13380. </StdOut>
  13381. <StdErr>
  13382. A string sent directly to stderr
  13383. A string sent to stderr via clog
  13384. </StdErr>
  13385. </OverallResult>
  13386. </TestCase>
  13387. <TestCase name="Some simple comparisons between doubles" tags="[Approx]" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  13388. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  13389. <Original>
  13390. d == Approx( 1.23 )
  13391. </Original>
  13392. <Expanded>
  13393. 1.23 == Approx( 1.23 )
  13394. </Expanded>
  13395. </Expression>
  13396. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  13397. <Original>
  13398. d != Approx( 1.22 )
  13399. </Original>
  13400. <Expanded>
  13401. 1.23 != Approx( 1.22 )
  13402. </Expanded>
  13403. </Expression>
  13404. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  13405. <Original>
  13406. d != Approx( 1.24 )
  13407. </Original>
  13408. <Expanded>
  13409. 1.23 != Approx( 1.24 )
  13410. </Expanded>
  13411. </Expression>
  13412. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  13413. <Original>
  13414. d == 1.23_a
  13415. </Original>
  13416. <Expanded>
  13417. 1.23 == Approx( 1.23 )
  13418. </Expanded>
  13419. </Expression>
  13420. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  13421. <Original>
  13422. d != 1.22_a
  13423. </Original>
  13424. <Expanded>
  13425. 1.23 != Approx( 1.22 )
  13426. </Expanded>
  13427. </Expression>
  13428. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  13429. <Original>
  13430. Approx( d ) == 1.23
  13431. </Original>
  13432. <Expanded>
  13433. Approx( 1.23 ) == 1.23
  13434. </Expanded>
  13435. </Expression>
  13436. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  13437. <Original>
  13438. Approx( d ) != 1.22
  13439. </Original>
  13440. <Expanded>
  13441. Approx( 1.23 ) != 1.22
  13442. </Expanded>
  13443. </Expression>
  13444. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  13445. <Original>
  13446. Approx( d ) != 1.24
  13447. </Original>
  13448. <Expanded>
  13449. Approx( 1.23 ) != 1.24
  13450. </Expanded>
  13451. </Expression>
  13452. <OverallResult success="true"/>
  13453. </TestCase>
  13454. <TestCase name="Standard output from all sections is reported" tags="[.][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  13455. <Section name="one" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  13456. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  13457. </Section>
  13458. <Section name="two" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  13459. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  13460. </Section>
  13461. <OverallResult success="false">
  13462. <StdOut>
  13463. Message from section one
  13464. Message from section two
  13465. </StdOut>
  13466. </OverallResult>
  13467. </TestCase>
  13468. <TestCase name="StartsWith string matcher" tags="[.][failing][matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  13469. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  13470. <Original>
  13471. testStringForMatching(), StartsWith( "This String" )
  13472. </Original>
  13473. <Expanded>
  13474. "this string contains 'abc' as a substring" starts with: "This String"
  13475. </Expanded>
  13476. </Expression>
  13477. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  13478. <Original>
  13479. testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No )
  13480. </Original>
  13481. <Expanded>
  13482. "this string contains 'abc' as a substring" starts with: "string" (case insensitive)
  13483. </Expanded>
  13484. </Expression>
  13485. <OverallResult success="false"/>
  13486. </TestCase>
  13487. <TestCase name="Static arrays are convertible to string" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  13488. <Section name="Single item" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  13489. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  13490. <Original>
  13491. Catch::Detail::stringify(singular) == "{ 1 }"
  13492. </Original>
  13493. <Expanded>
  13494. "{ 1 }" == "{ 1 }"
  13495. </Expanded>
  13496. </Expression>
  13497. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13498. </Section>
  13499. <Section name="Multiple" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  13500. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  13501. <Original>
  13502. Catch::Detail::stringify(arr) == "{ 3, 2, 1 }"
  13503. </Original>
  13504. <Expanded>
  13505. "{ 3, 2, 1 }" == "{ 3, 2, 1 }"
  13506. </Expanded>
  13507. </Expression>
  13508. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13509. </Section>
  13510. <Section name="Non-trivial inner items" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  13511. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  13512. <Original>
  13513. Catch::Detail::stringify(arr) == R"({ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } })"
  13514. </Original>
  13515. <Expanded>
  13516. "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
  13517. ==
  13518. "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
  13519. </Expanded>
  13520. </Expression>
  13521. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13522. </Section>
  13523. <OverallResult success="true"/>
  13524. </TestCase>
  13525. <TestCase name="String matchers" tags="[matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  13526. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  13527. <Original>
  13528. testStringForMatching(), ContainsSubstring( "string" )
  13529. </Original>
  13530. <Expanded>
  13531. "this string contains 'abc' as a substring" contains: "string"
  13532. </Expanded>
  13533. </Expression>
  13534. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  13535. <Original>
  13536. testStringForMatching(), ContainsSubstring( "string", Catch::CaseSensitive::No )
  13537. </Original>
  13538. <Expanded>
  13539. "this string contains 'abc' as a substring" contains: "string" (case insensitive)
  13540. </Expanded>
  13541. </Expression>
  13542. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  13543. <Original>
  13544. testStringForMatching(), ContainsSubstring( "abc" )
  13545. </Original>
  13546. <Expanded>
  13547. "this string contains 'abc' as a substring" contains: "abc"
  13548. </Expanded>
  13549. </Expression>
  13550. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  13551. <Original>
  13552. testStringForMatching(), ContainsSubstring( "aBC", Catch::CaseSensitive::No )
  13553. </Original>
  13554. <Expanded>
  13555. "this string contains 'abc' as a substring" contains: "abc" (case insensitive)
  13556. </Expanded>
  13557. </Expression>
  13558. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  13559. <Original>
  13560. testStringForMatching(), StartsWith( "this" )
  13561. </Original>
  13562. <Expanded>
  13563. "this string contains 'abc' as a substring" starts with: "this"
  13564. </Expanded>
  13565. </Expression>
  13566. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  13567. <Original>
  13568. testStringForMatching(), StartsWith( "THIS", Catch::CaseSensitive::No )
  13569. </Original>
  13570. <Expanded>
  13571. "this string contains 'abc' as a substring" starts with: "this" (case insensitive)
  13572. </Expanded>
  13573. </Expression>
  13574. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  13575. <Original>
  13576. testStringForMatching(), EndsWith( "substring" )
  13577. </Original>
  13578. <Expanded>
  13579. "this string contains 'abc' as a substring" ends with: "substring"
  13580. </Expanded>
  13581. </Expression>
  13582. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  13583. <Original>
  13584. testStringForMatching(), EndsWith( " SuBsTrInG", Catch::CaseSensitive::No )
  13585. </Original>
  13586. <Expanded>
  13587. "this string contains 'abc' as a substring" ends with: " substring" (case insensitive)
  13588. </Expanded>
  13589. </Expression>
  13590. <OverallResult success="true"/>
  13591. </TestCase>
  13592. <TestCase name="StringRef" tags="[StringRef][Strings]" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13593. <Section name="Empty string" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13594. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13595. <Original>
  13596. empty.empty()
  13597. </Original>
  13598. <Expanded>
  13599. true
  13600. </Expanded>
  13601. </Expression>
  13602. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13603. <Original>
  13604. empty.size() == 0
  13605. </Original>
  13606. <Expanded>
  13607. 0 == 0
  13608. </Expanded>
  13609. </Expression>
  13610. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13611. <Original>
  13612. std::strcmp( empty.data(), "" ) == 0
  13613. </Original>
  13614. <Expanded>
  13615. 0 == 0
  13616. </Expanded>
  13617. </Expression>
  13618. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  13619. </Section>
  13620. <Section name="From string literal" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13621. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13622. <Original>
  13623. s.empty() == false
  13624. </Original>
  13625. <Expanded>
  13626. false == false
  13627. </Expanded>
  13628. </Expression>
  13629. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13630. <Original>
  13631. s.size() == 5
  13632. </Original>
  13633. <Expanded>
  13634. 5 == 5
  13635. </Expanded>
  13636. </Expression>
  13637. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13638. <Original>
  13639. std::strcmp( rawChars, "hello" ) == 0
  13640. </Original>
  13641. <Expanded>
  13642. 0 == 0
  13643. </Expanded>
  13644. </Expression>
  13645. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13646. <Original>
  13647. s.data() == rawChars
  13648. </Original>
  13649. <Expanded>
  13650. "hello" == "hello"
  13651. </Expanded>
  13652. </Expression>
  13653. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  13654. </Section>
  13655. <Section name="From sub-string" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13656. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13657. <Original>
  13658. original == "original"
  13659. </Original>
  13660. <Expanded>
  13661. original == "original"
  13662. </Expanded>
  13663. </Expression>
  13664. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13665. <Original>
  13666. original.data()
  13667. </Original>
  13668. <Expanded>
  13669. original.data()
  13670. </Expanded>
  13671. </Expression>
  13672. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13673. </Section>
  13674. <Section name="Copy construction is shallow" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13675. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13676. <Original>
  13677. original.begin() == copy.begin()
  13678. </Original>
  13679. <Expanded>
  13680. "original string" == "original string"
  13681. </Expanded>
  13682. </Expression>
  13683. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13684. </Section>
  13685. <Section name="Copy assignment is shallow" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13686. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13687. <Original>
  13688. original.begin() == copy.begin()
  13689. </Original>
  13690. <Expanded>
  13691. "original string" == "original string"
  13692. </Expanded>
  13693. </Expression>
  13694. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13695. </Section>
  13696. <Section name="Substrings" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13697. <Section name="zero-based substring" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13698. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13699. <Original>
  13700. ss.empty() == false
  13701. </Original>
  13702. <Expanded>
  13703. false == false
  13704. </Expanded>
  13705. </Expression>
  13706. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13707. <Original>
  13708. ss.size() == 5
  13709. </Original>
  13710. <Expanded>
  13711. 5 == 5
  13712. </Expanded>
  13713. </Expression>
  13714. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13715. <Original>
  13716. std::strncmp( ss.data(), "hello", 5 ) == 0
  13717. </Original>
  13718. <Expanded>
  13719. 0 == 0
  13720. </Expanded>
  13721. </Expression>
  13722. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13723. <Original>
  13724. ss == "hello"
  13725. </Original>
  13726. <Expanded>
  13727. hello == "hello"
  13728. </Expanded>
  13729. </Expression>
  13730. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  13731. </Section>
  13732. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  13733. </Section>
  13734. <Section name="Substrings" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13735. <Section name="non-zero-based substring" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13736. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13737. <Original>
  13738. ss.size() == 6
  13739. </Original>
  13740. <Expanded>
  13741. 6 == 6
  13742. </Expanded>
  13743. </Expression>
  13744. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13745. <Original>
  13746. std::strcmp( ss.data(), "world!" ) == 0
  13747. </Original>
  13748. <Expanded>
  13749. 0 == 0
  13750. </Expanded>
  13751. </Expression>
  13752. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13753. </Section>
  13754. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13755. </Section>
  13756. <Section name="Substrings" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13757. <Section name="Pointer values of full refs should match" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13758. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13759. <Original>
  13760. s.data() == s2.data()
  13761. </Original>
  13762. <Expanded>
  13763. "hello world!" == "hello world!"
  13764. </Expanded>
  13765. </Expression>
  13766. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13767. </Section>
  13768. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13769. </Section>
  13770. <Section name="Substrings" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13771. <Section name="Pointer values of substring refs should also match" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13772. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13773. <Original>
  13774. s.data() == ss.data()
  13775. </Original>
  13776. <Expanded>
  13777. "hello world!" == "hello world!"
  13778. </Expanded>
  13779. </Expression>
  13780. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13781. </Section>
  13782. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13783. </Section>
  13784. <Section name="Substrings" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13785. <Section name="Past the end substring" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13786. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13787. <Original>
  13788. s.substr(s.size() + 1, 123).empty()
  13789. </Original>
  13790. <Expanded>
  13791. true
  13792. </Expanded>
  13793. </Expression>
  13794. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13795. </Section>
  13796. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13797. </Section>
  13798. <Section name="Substrings" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13799. <Section name="Substring off the end are trimmed" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13800. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13801. <Original>
  13802. std::strcmp(ss.data(), "world!") == 0
  13803. </Original>
  13804. <Expanded>
  13805. 0 == 0
  13806. </Expanded>
  13807. </Expression>
  13808. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13809. </Section>
  13810. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13811. </Section>
  13812. <Section name="Substrings" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13813. <Section name="substring start after the end is empty" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13814. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13815. <Original>
  13816. s.substr(1'000'000, 1).empty()
  13817. </Original>
  13818. <Expanded>
  13819. true
  13820. </Expanded>
  13821. </Expression>
  13822. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13823. </Section>
  13824. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13825. </Section>
  13826. <Section name="Comparisons are deep" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13827. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13828. <Original>
  13829. reinterpret_cast&lt;char*>(buffer1) != reinterpret_cast&lt;char*>(buffer2)
  13830. </Original>
  13831. <Expanded>
  13832. "Hello" != "Hello"
  13833. </Expanded>
  13834. </Expression>
  13835. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13836. <Original>
  13837. left == right
  13838. </Original>
  13839. <Expanded>
  13840. Hello == Hello
  13841. </Expanded>
  13842. </Expression>
  13843. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13844. <Original>
  13845. left != left.substr(0, 3)
  13846. </Original>
  13847. <Expanded>
  13848. Hello != Hel
  13849. </Expanded>
  13850. </Expression>
  13851. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  13852. </Section>
  13853. <Section name="from std::string" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13854. <Section name="implicitly constructed" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13855. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13856. <Original>
  13857. sr == "a standard string"
  13858. </Original>
  13859. <Expanded>
  13860. a standard string == "a standard string"
  13861. </Expanded>
  13862. </Expression>
  13863. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13864. <Original>
  13865. sr.size() == stdStr.size()
  13866. </Original>
  13867. <Expanded>
  13868. 17 == 17
  13869. </Expanded>
  13870. </Expression>
  13871. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13872. </Section>
  13873. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13874. </Section>
  13875. <Section name="from std::string" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13876. <Section name="explicitly constructed" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13877. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13878. <Original>
  13879. sr == "a standard string"
  13880. </Original>
  13881. <Expanded>
  13882. a standard string == "a standard string"
  13883. </Expanded>
  13884. </Expression>
  13885. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13886. <Original>
  13887. sr.size() == stdStr.size()
  13888. </Original>
  13889. <Expanded>
  13890. 17 == 17
  13891. </Expanded>
  13892. </Expression>
  13893. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13894. </Section>
  13895. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13896. </Section>
  13897. <Section name="from std::string" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13898. <Section name="assigned" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13899. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13900. <Original>
  13901. sr == "a standard string"
  13902. </Original>
  13903. <Expanded>
  13904. a standard string == "a standard string"
  13905. </Expanded>
  13906. </Expression>
  13907. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13908. <Original>
  13909. sr.size() == stdStr.size()
  13910. </Original>
  13911. <Expanded>
  13912. 17 == 17
  13913. </Expanded>
  13914. </Expression>
  13915. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13916. </Section>
  13917. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13918. </Section>
  13919. <Section name="to std::string" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13920. <Section name="explicitly constructed" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13921. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13922. <Original>
  13923. stdStr == "a stringref"
  13924. </Original>
  13925. <Expanded>
  13926. "a stringref" == "a stringref"
  13927. </Expanded>
  13928. </Expression>
  13929. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13930. <Original>
  13931. stdStr.size() == sr.size()
  13932. </Original>
  13933. <Expanded>
  13934. 11 == 11
  13935. </Expanded>
  13936. </Expression>
  13937. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13938. </Section>
  13939. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13940. </Section>
  13941. <Section name="to std::string" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13942. <Section name="assigned" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13943. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13944. <Original>
  13945. stdStr == "a stringref"
  13946. </Original>
  13947. <Expanded>
  13948. "a stringref" == "a stringref"
  13949. </Expanded>
  13950. </Expression>
  13951. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13952. <Original>
  13953. stdStr.size() == sr.size()
  13954. </Original>
  13955. <Expanded>
  13956. 11 == 11
  13957. </Expanded>
  13958. </Expression>
  13959. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13960. </Section>
  13961. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13962. </Section>
  13963. <Section name="std::string += StringRef" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13964. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13965. <Original>
  13966. lhs == "some string += the stringref contents"
  13967. </Original>
  13968. <Expanded>
  13969. "some string += the stringref contents"
  13970. ==
  13971. "some string += the stringref contents"
  13972. </Expanded>
  13973. </Expression>
  13974. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13975. </Section>
  13976. <Section name="StringRef + StringRef" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13977. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13978. <Original>
  13979. together == "abrakadabra"
  13980. </Original>
  13981. <Expanded>
  13982. "abrakadabra" == "abrakadabra"
  13983. </Expanded>
  13984. </Expression>
  13985. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13986. </Section>
  13987. <OverallResult success="true"/>
  13988. </TestCase>
  13989. <TestCase name="StringRef at compilation time" tags="[constexpr][StringRef][Strings]" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13990. <Section name="Simple constructors" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13991. <OverallResults successes="12" failures="0" expectedFailures="0"/>
  13992. </Section>
  13993. <Section name="UDL construction" filename="tests/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  13994. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  13995. </Section>
  13996. <OverallResult success="true"/>
  13997. </TestCase>
  13998. <TestCase name="Stringifying char arrays with statically known sizes - char" tags="[toString]" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  13999. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  14000. <Original>
  14001. ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s
  14002. </Original>
  14003. <Expanded>
  14004. ""abc"" == ""abc""
  14005. </Expanded>
  14006. </Expression>
  14007. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  14008. <Original>
  14009. ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s
  14010. </Original>
  14011. <Expanded>
  14012. ""abc"" == ""abc""
  14013. </Expanded>
  14014. </Expression>
  14015. <OverallResult success="true"/>
  14016. </TestCase>
  14017. <TestCase name="Stringifying char arrays with statically known sizes - signed char" tags="[toString]" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  14018. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  14019. <Original>
  14020. ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s
  14021. </Original>
  14022. <Expanded>
  14023. ""abc"" == ""abc""
  14024. </Expanded>
  14025. </Expression>
  14026. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  14027. <Original>
  14028. ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s
  14029. </Original>
  14030. <Expanded>
  14031. ""abc"" == ""abc""
  14032. </Expanded>
  14033. </Expression>
  14034. <OverallResult success="true"/>
  14035. </TestCase>
  14036. <TestCase name="Stringifying char arrays with statically known sizes - unsigned char" tags="[toString]" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  14037. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  14038. <Original>
  14039. ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s
  14040. </Original>
  14041. <Expanded>
  14042. ""abc"" == ""abc""
  14043. </Expanded>
  14044. </Expression>
  14045. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  14046. <Original>
  14047. ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s
  14048. </Original>
  14049. <Expanded>
  14050. ""abc"" == ""abc""
  14051. </Expanded>
  14052. </Expression>
  14053. <OverallResult success="true"/>
  14054. </TestCase>
  14055. <TestCase name="Stringifying std::chrono::duration helpers" tags="[chrono][toString]" filename="tests/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  14056. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  14057. <Original>
  14058. minute == seconds
  14059. </Original>
  14060. <Expanded>
  14061. 1 m == 60 s
  14062. </Expanded>
  14063. </Expression>
  14064. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  14065. <Original>
  14066. hour != seconds
  14067. </Original>
  14068. <Expanded>
  14069. 1 h != 60 s
  14070. </Expanded>
  14071. </Expression>
  14072. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  14073. <Original>
  14074. micro != milli
  14075. </Original>
  14076. <Expanded>
  14077. 1 us != 1 ms
  14078. </Expanded>
  14079. </Expression>
  14080. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  14081. <Original>
  14082. nano != micro
  14083. </Original>
  14084. <Expanded>
  14085. 1 ns != 1 us
  14086. </Expanded>
  14087. </Expression>
  14088. <OverallResult success="true"/>
  14089. </TestCase>
  14090. <TestCase name="Stringifying std::chrono::duration with weird ratios" tags="[chrono][toString]" filename="tests/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  14091. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  14092. <Original>
  14093. half_minute != femto_second
  14094. </Original>
  14095. <Expanded>
  14096. 1 [30/1]s != 1 fs
  14097. </Expanded>
  14098. </Expression>
  14099. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  14100. <Original>
  14101. pico_second != atto_second
  14102. </Original>
  14103. <Expanded>
  14104. 1 ps != 1 as
  14105. </Expanded>
  14106. </Expression>
  14107. <OverallResult success="true"/>
  14108. </TestCase>
  14109. <TestCase name="Stringifying std::chrono::time_point&lt;system_clock>" tags="[chrono][toString]" filename="tests/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  14110. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  14111. <Original>
  14112. now != later
  14113. </Original>
  14114. <Expanded>
  14115. {iso8601-timestamp}
  14116. !=
  14117. {iso8601-timestamp}
  14118. </Expanded>
  14119. </Expression>
  14120. <OverallResult success="true"/>
  14121. </TestCase>
  14122. <TestCase name="Tabs and newlines show in output" tags="[.][failing][whitespace]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14123. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14124. <Original>
  14125. s1 == s2
  14126. </Original>
  14127. <Expanded>
  14128. "if ($b == 10) {
  14129. $a = 20;
  14130. }"
  14131. ==
  14132. "if ($b == 10) {
  14133. $a = 20;
  14134. }
  14135. "
  14136. </Expanded>
  14137. </Expression>
  14138. <OverallResult success="false"/>
  14139. </TestCase>
  14140. <TestCase name="Tag alias can be registered against tag patterns" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14141. <Section name="The same tag alias can only be registered once" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14142. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14143. <Original>
  14144. what, ContainsSubstring( "[@zzz]" )
  14145. </Original>
  14146. <Expanded>
  14147. "error: tag alias, '[@zzz]' already registered.
  14148. First seen at: file:2
  14149. Redefined at: file:10" contains: "[@zzz]"
  14150. </Expanded>
  14151. </Expression>
  14152. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14153. <Original>
  14154. what, ContainsSubstring( "file" )
  14155. </Original>
  14156. <Expanded>
  14157. "error: tag alias, '[@zzz]' already registered.
  14158. First seen at: file:2
  14159. Redefined at: file:10" contains: "file"
  14160. </Expanded>
  14161. </Expression>
  14162. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14163. <Original>
  14164. what, ContainsSubstring( "2" )
  14165. </Original>
  14166. <Expanded>
  14167. "error: tag alias, '[@zzz]' already registered.
  14168. First seen at: file:2
  14169. Redefined at: file:10" contains: "2"
  14170. </Expanded>
  14171. </Expression>
  14172. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14173. <Original>
  14174. what, ContainsSubstring( "10" )
  14175. </Original>
  14176. <Expanded>
  14177. "error: tag alias, '[@zzz]' already registered.
  14178. First seen at: file:2
  14179. Redefined at: file:10" contains: "10"
  14180. </Expanded>
  14181. </Expression>
  14182. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  14183. </Section>
  14184. <Section name="Tag aliases must be of the form [@name]" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14185. <Expression success="true" type="CHECK_THROWS" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14186. <Original>
  14187. registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) )
  14188. </Original>
  14189. <Expanded>
  14190. registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) )
  14191. </Expanded>
  14192. </Expression>
  14193. <Expression success="true" type="CHECK_THROWS" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14194. <Original>
  14195. registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) )
  14196. </Original>
  14197. <Expanded>
  14198. registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) )
  14199. </Expanded>
  14200. </Expression>
  14201. <Expression success="true" type="CHECK_THROWS" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14202. <Original>
  14203. registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) )
  14204. </Original>
  14205. <Expanded>
  14206. registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) )
  14207. </Expanded>
  14208. </Expression>
  14209. <Expression success="true" type="CHECK_THROWS" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14210. <Original>
  14211. registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) )
  14212. </Original>
  14213. <Expanded>
  14214. registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) )
  14215. </Expanded>
  14216. </Expression>
  14217. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  14218. </Section>
  14219. <OverallResult success="true"/>
  14220. </TestCase>
  14221. <TestCase name="Tags with spaces and non-alphanumerical characters are accepted" tags="[tags]" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14222. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14223. <Original>
  14224. testCase.tags.size() == 2
  14225. </Original>
  14226. <Expanded>
  14227. 2 == 2
  14228. </Expanded>
  14229. </Expression>
  14230. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14231. <Original>
  14232. testCase.tags, VectorContains( Tag( "tag with spaces" ) ) &amp;&amp; VectorContains( Tag( "I said \"good day\" sir!"_catch_sr ) )
  14233. </Original>
  14234. <Expanded>
  14235. { {?}, {?} } ( Contains: {?} and Contains: {?} )
  14236. </Expanded>
  14237. </Expression>
  14238. <OverallResult success="true"/>
  14239. </TestCase>
  14240. <TestCase name="Template test case method with test types specified inside std::tuple - MyTypes - 0" tags="[class][list][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  14241. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  14242. <Original>
  14243. Template_Fixture&lt;TestType>::m_a == 1
  14244. </Original>
  14245. <Expanded>
  14246. 1 == 1
  14247. </Expanded>
  14248. </Expression>
  14249. <OverallResult success="true"/>
  14250. </TestCase>
  14251. <TestCase name="Template test case method with test types specified inside std::tuple - MyTypes - 1" tags="[class][list][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  14252. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  14253. <Original>
  14254. Template_Fixture&lt;TestType>::m_a == 1
  14255. </Original>
  14256. <Expanded>
  14257. 1 == 1
  14258. </Expanded>
  14259. </Expression>
  14260. <OverallResult success="true"/>
  14261. </TestCase>
  14262. <TestCase name="Template test case method with test types specified inside std::tuple - MyTypes - 2" tags="[class][list][template]" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  14263. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Class.tests.cpp" >
  14264. <Original>
  14265. Template_Fixture&lt;TestType>::m_a == 1
  14266. </Original>
  14267. <Expanded>
  14268. 1.0 == 1
  14269. </Expanded>
  14270. </Expression>
  14271. <OverallResult success="true"/>
  14272. </TestCase>
  14273. <TestCase name="Template test case with test types specified inside non-copyable and non-movable std::tuple - NonCopyableAndNonMovableTypes - 0" tags="[list][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14274. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14275. <Original>
  14276. sizeof(TestType) > 0
  14277. </Original>
  14278. <Expanded>
  14279. 1 > 0
  14280. </Expanded>
  14281. </Expression>
  14282. <OverallResult success="true"/>
  14283. </TestCase>
  14284. <TestCase name="Template test case with test types specified inside non-copyable and non-movable std::tuple - NonCopyableAndNonMovableTypes - 1" tags="[list][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14285. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14286. <Original>
  14287. sizeof(TestType) > 0
  14288. </Original>
  14289. <Expanded>
  14290. 4 > 0
  14291. </Expanded>
  14292. </Expression>
  14293. <OverallResult success="true"/>
  14294. </TestCase>
  14295. <TestCase name="Template test case with test types specified inside non-default-constructible std::tuple - MyNonDefaultConstructibleTypes - 0" tags="[list][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14296. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14297. <Original>
  14298. sizeof(TestType) > 0
  14299. </Original>
  14300. <Expanded>
  14301. 1 > 0
  14302. </Expanded>
  14303. </Expression>
  14304. <OverallResult success="true"/>
  14305. </TestCase>
  14306. <TestCase name="Template test case with test types specified inside non-default-constructible std::tuple - MyNonDefaultConstructibleTypes - 1" tags="[list][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14307. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14308. <Original>
  14309. sizeof(TestType) > 0
  14310. </Original>
  14311. <Expanded>
  14312. 4 > 0
  14313. </Expanded>
  14314. </Expression>
  14315. <OverallResult success="true"/>
  14316. </TestCase>
  14317. <TestCase name="Template test case with test types specified inside std::tuple - MyTypes - 0" tags="[list][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14318. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14319. <Original>
  14320. sizeof(TestType) > 0
  14321. </Original>
  14322. <Expanded>
  14323. 4 > 0
  14324. </Expanded>
  14325. </Expression>
  14326. <OverallResult success="true"/>
  14327. </TestCase>
  14328. <TestCase name="Template test case with test types specified inside std::tuple - MyTypes - 1" tags="[list][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14329. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14330. <Original>
  14331. sizeof(TestType) > 0
  14332. </Original>
  14333. <Expanded>
  14334. 1 > 0
  14335. </Expanded>
  14336. </Expression>
  14337. <OverallResult success="true"/>
  14338. </TestCase>
  14339. <TestCase name="Template test case with test types specified inside std::tuple - MyTypes - 2" tags="[list][template]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14340. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14341. <Original>
  14342. sizeof(TestType) > 0
  14343. </Original>
  14344. <Expanded>
  14345. 4 > 0
  14346. </Expanded>
  14347. </Expression>
  14348. <OverallResult success="true"/>
  14349. </TestCase>
  14350. <TestCase name="TemplateTest: vectors can be sized and resized - float" tags="[template][vector]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14351. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14352. <Original>
  14353. v.size() == 5
  14354. </Original>
  14355. <Expanded>
  14356. 5 == 5
  14357. </Expanded>
  14358. </Expression>
  14359. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14360. <Original>
  14361. v.capacity() >= 5
  14362. </Original>
  14363. <Expanded>
  14364. 5 >= 5
  14365. </Expanded>
  14366. </Expression>
  14367. <Section name="resizing bigger changes size and capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14368. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14369. <Original>
  14370. v.size() == 10
  14371. </Original>
  14372. <Expanded>
  14373. 10 == 10
  14374. </Expanded>
  14375. </Expression>
  14376. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14377. <Original>
  14378. v.capacity() >= 10
  14379. </Original>
  14380. <Expanded>
  14381. 10 >= 10
  14382. </Expanded>
  14383. </Expression>
  14384. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  14385. </Section>
  14386. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14387. <Original>
  14388. v.size() == 5
  14389. </Original>
  14390. <Expanded>
  14391. 5 == 5
  14392. </Expanded>
  14393. </Expression>
  14394. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14395. <Original>
  14396. v.capacity() >= 5
  14397. </Original>
  14398. <Expanded>
  14399. 5 >= 5
  14400. </Expanded>
  14401. </Expression>
  14402. <Section name="resizing smaller changes size but not capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14403. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14404. <Original>
  14405. v.size() == 0
  14406. </Original>
  14407. <Expanded>
  14408. 0 == 0
  14409. </Expanded>
  14410. </Expression>
  14411. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14412. <Original>
  14413. v.capacity() >= 5
  14414. </Original>
  14415. <Expanded>
  14416. 5 >= 5
  14417. </Expanded>
  14418. </Expression>
  14419. <Section name="We can use the 'swap trick' to reset the capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14420. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14421. <Original>
  14422. v.capacity() == 0
  14423. </Original>
  14424. <Expanded>
  14425. 0 == 0
  14426. </Expanded>
  14427. </Expression>
  14428. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14429. </Section>
  14430. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  14431. </Section>
  14432. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14433. <Original>
  14434. v.size() == 5
  14435. </Original>
  14436. <Expanded>
  14437. 5 == 5
  14438. </Expanded>
  14439. </Expression>
  14440. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14441. <Original>
  14442. v.capacity() >= 5
  14443. </Original>
  14444. <Expanded>
  14445. 5 >= 5
  14446. </Expanded>
  14447. </Expression>
  14448. <Section name="reserving bigger changes capacity but not size" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14449. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14450. <Original>
  14451. v.size() == 5
  14452. </Original>
  14453. <Expanded>
  14454. 5 == 5
  14455. </Expanded>
  14456. </Expression>
  14457. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14458. <Original>
  14459. v.capacity() >= 10
  14460. </Original>
  14461. <Expanded>
  14462. 10 >= 10
  14463. </Expanded>
  14464. </Expression>
  14465. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  14466. </Section>
  14467. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14468. <Original>
  14469. v.size() == 5
  14470. </Original>
  14471. <Expanded>
  14472. 5 == 5
  14473. </Expanded>
  14474. </Expression>
  14475. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14476. <Original>
  14477. v.capacity() >= 5
  14478. </Original>
  14479. <Expanded>
  14480. 5 >= 5
  14481. </Expanded>
  14482. </Expression>
  14483. <Section name="reserving smaller does not change size or capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14484. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14485. <Original>
  14486. v.size() == 5
  14487. </Original>
  14488. <Expanded>
  14489. 5 == 5
  14490. </Expanded>
  14491. </Expression>
  14492. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14493. <Original>
  14494. v.capacity() >= 5
  14495. </Original>
  14496. <Expanded>
  14497. 5 >= 5
  14498. </Expanded>
  14499. </Expression>
  14500. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  14501. </Section>
  14502. <OverallResult success="true"/>
  14503. </TestCase>
  14504. <TestCase name="TemplateTest: vectors can be sized and resized - int" tags="[template][vector]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14505. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14506. <Original>
  14507. v.size() == 5
  14508. </Original>
  14509. <Expanded>
  14510. 5 == 5
  14511. </Expanded>
  14512. </Expression>
  14513. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14514. <Original>
  14515. v.capacity() >= 5
  14516. </Original>
  14517. <Expanded>
  14518. 5 >= 5
  14519. </Expanded>
  14520. </Expression>
  14521. <Section name="resizing bigger changes size and capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14522. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14523. <Original>
  14524. v.size() == 10
  14525. </Original>
  14526. <Expanded>
  14527. 10 == 10
  14528. </Expanded>
  14529. </Expression>
  14530. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14531. <Original>
  14532. v.capacity() >= 10
  14533. </Original>
  14534. <Expanded>
  14535. 10 >= 10
  14536. </Expanded>
  14537. </Expression>
  14538. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  14539. </Section>
  14540. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14541. <Original>
  14542. v.size() == 5
  14543. </Original>
  14544. <Expanded>
  14545. 5 == 5
  14546. </Expanded>
  14547. </Expression>
  14548. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14549. <Original>
  14550. v.capacity() >= 5
  14551. </Original>
  14552. <Expanded>
  14553. 5 >= 5
  14554. </Expanded>
  14555. </Expression>
  14556. <Section name="resizing smaller changes size but not capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14557. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14558. <Original>
  14559. v.size() == 0
  14560. </Original>
  14561. <Expanded>
  14562. 0 == 0
  14563. </Expanded>
  14564. </Expression>
  14565. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14566. <Original>
  14567. v.capacity() >= 5
  14568. </Original>
  14569. <Expanded>
  14570. 5 >= 5
  14571. </Expanded>
  14572. </Expression>
  14573. <Section name="We can use the 'swap trick' to reset the capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14574. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14575. <Original>
  14576. v.capacity() == 0
  14577. </Original>
  14578. <Expanded>
  14579. 0 == 0
  14580. </Expanded>
  14581. </Expression>
  14582. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14583. </Section>
  14584. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  14585. </Section>
  14586. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14587. <Original>
  14588. v.size() == 5
  14589. </Original>
  14590. <Expanded>
  14591. 5 == 5
  14592. </Expanded>
  14593. </Expression>
  14594. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14595. <Original>
  14596. v.capacity() >= 5
  14597. </Original>
  14598. <Expanded>
  14599. 5 >= 5
  14600. </Expanded>
  14601. </Expression>
  14602. <Section name="reserving bigger changes capacity but not size" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14603. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14604. <Original>
  14605. v.size() == 5
  14606. </Original>
  14607. <Expanded>
  14608. 5 == 5
  14609. </Expanded>
  14610. </Expression>
  14611. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14612. <Original>
  14613. v.capacity() >= 10
  14614. </Original>
  14615. <Expanded>
  14616. 10 >= 10
  14617. </Expanded>
  14618. </Expression>
  14619. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  14620. </Section>
  14621. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14622. <Original>
  14623. v.size() == 5
  14624. </Original>
  14625. <Expanded>
  14626. 5 == 5
  14627. </Expanded>
  14628. </Expression>
  14629. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14630. <Original>
  14631. v.capacity() >= 5
  14632. </Original>
  14633. <Expanded>
  14634. 5 >= 5
  14635. </Expanded>
  14636. </Expression>
  14637. <Section name="reserving smaller does not change size or capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14638. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14639. <Original>
  14640. v.size() == 5
  14641. </Original>
  14642. <Expanded>
  14643. 5 == 5
  14644. </Expanded>
  14645. </Expression>
  14646. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14647. <Original>
  14648. v.capacity() >= 5
  14649. </Original>
  14650. <Expanded>
  14651. 5 >= 5
  14652. </Expanded>
  14653. </Expression>
  14654. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  14655. </Section>
  14656. <OverallResult success="true"/>
  14657. </TestCase>
  14658. <TestCase name="TemplateTest: vectors can be sized and resized - std::string" tags="[template][vector]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14659. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14660. <Original>
  14661. v.size() == 5
  14662. </Original>
  14663. <Expanded>
  14664. 5 == 5
  14665. </Expanded>
  14666. </Expression>
  14667. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14668. <Original>
  14669. v.capacity() >= 5
  14670. </Original>
  14671. <Expanded>
  14672. 5 >= 5
  14673. </Expanded>
  14674. </Expression>
  14675. <Section name="resizing bigger changes size and capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14676. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14677. <Original>
  14678. v.size() == 10
  14679. </Original>
  14680. <Expanded>
  14681. 10 == 10
  14682. </Expanded>
  14683. </Expression>
  14684. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14685. <Original>
  14686. v.capacity() >= 10
  14687. </Original>
  14688. <Expanded>
  14689. 10 >= 10
  14690. </Expanded>
  14691. </Expression>
  14692. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  14693. </Section>
  14694. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14695. <Original>
  14696. v.size() == 5
  14697. </Original>
  14698. <Expanded>
  14699. 5 == 5
  14700. </Expanded>
  14701. </Expression>
  14702. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14703. <Original>
  14704. v.capacity() >= 5
  14705. </Original>
  14706. <Expanded>
  14707. 5 >= 5
  14708. </Expanded>
  14709. </Expression>
  14710. <Section name="resizing smaller changes size but not capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14711. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14712. <Original>
  14713. v.size() == 0
  14714. </Original>
  14715. <Expanded>
  14716. 0 == 0
  14717. </Expanded>
  14718. </Expression>
  14719. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14720. <Original>
  14721. v.capacity() >= 5
  14722. </Original>
  14723. <Expanded>
  14724. 5 >= 5
  14725. </Expanded>
  14726. </Expression>
  14727. <Section name="We can use the 'swap trick' to reset the capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14728. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14729. <Original>
  14730. v.capacity() == 0
  14731. </Original>
  14732. <Expanded>
  14733. 0 == 0
  14734. </Expanded>
  14735. </Expression>
  14736. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14737. </Section>
  14738. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  14739. </Section>
  14740. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14741. <Original>
  14742. v.size() == 5
  14743. </Original>
  14744. <Expanded>
  14745. 5 == 5
  14746. </Expanded>
  14747. </Expression>
  14748. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14749. <Original>
  14750. v.capacity() >= 5
  14751. </Original>
  14752. <Expanded>
  14753. 5 >= 5
  14754. </Expanded>
  14755. </Expression>
  14756. <Section name="reserving bigger changes capacity but not size" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14757. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14758. <Original>
  14759. v.size() == 5
  14760. </Original>
  14761. <Expanded>
  14762. 5 == 5
  14763. </Expanded>
  14764. </Expression>
  14765. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14766. <Original>
  14767. v.capacity() >= 10
  14768. </Original>
  14769. <Expanded>
  14770. 10 >= 10
  14771. </Expanded>
  14772. </Expression>
  14773. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  14774. </Section>
  14775. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14776. <Original>
  14777. v.size() == 5
  14778. </Original>
  14779. <Expanded>
  14780. 5 == 5
  14781. </Expanded>
  14782. </Expression>
  14783. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14784. <Original>
  14785. v.capacity() >= 5
  14786. </Original>
  14787. <Expanded>
  14788. 5 >= 5
  14789. </Expanded>
  14790. </Expression>
  14791. <Section name="reserving smaller does not change size or capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14792. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14793. <Original>
  14794. v.size() == 5
  14795. </Original>
  14796. <Expanded>
  14797. 5 == 5
  14798. </Expanded>
  14799. </Expression>
  14800. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14801. <Original>
  14802. v.capacity() >= 5
  14803. </Original>
  14804. <Expanded>
  14805. 5 >= 5
  14806. </Expanded>
  14807. </Expression>
  14808. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  14809. </Section>
  14810. <OverallResult success="true"/>
  14811. </TestCase>
  14812. <TestCase name="TemplateTest: vectors can be sized and resized - std::tuple&lt;int,float>" tags="[template][vector]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14813. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14814. <Original>
  14815. v.size() == 5
  14816. </Original>
  14817. <Expanded>
  14818. 5 == 5
  14819. </Expanded>
  14820. </Expression>
  14821. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14822. <Original>
  14823. v.capacity() >= 5
  14824. </Original>
  14825. <Expanded>
  14826. 5 >= 5
  14827. </Expanded>
  14828. </Expression>
  14829. <Section name="resizing bigger changes size and capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14830. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14831. <Original>
  14832. v.size() == 10
  14833. </Original>
  14834. <Expanded>
  14835. 10 == 10
  14836. </Expanded>
  14837. </Expression>
  14838. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14839. <Original>
  14840. v.capacity() >= 10
  14841. </Original>
  14842. <Expanded>
  14843. 10 >= 10
  14844. </Expanded>
  14845. </Expression>
  14846. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  14847. </Section>
  14848. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14849. <Original>
  14850. v.size() == 5
  14851. </Original>
  14852. <Expanded>
  14853. 5 == 5
  14854. </Expanded>
  14855. </Expression>
  14856. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14857. <Original>
  14858. v.capacity() >= 5
  14859. </Original>
  14860. <Expanded>
  14861. 5 >= 5
  14862. </Expanded>
  14863. </Expression>
  14864. <Section name="resizing smaller changes size but not capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14865. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14866. <Original>
  14867. v.size() == 0
  14868. </Original>
  14869. <Expanded>
  14870. 0 == 0
  14871. </Expanded>
  14872. </Expression>
  14873. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14874. <Original>
  14875. v.capacity() >= 5
  14876. </Original>
  14877. <Expanded>
  14878. 5 >= 5
  14879. </Expanded>
  14880. </Expression>
  14881. <Section name="We can use the 'swap trick' to reset the capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14882. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14883. <Original>
  14884. v.capacity() == 0
  14885. </Original>
  14886. <Expanded>
  14887. 0 == 0
  14888. </Expanded>
  14889. </Expression>
  14890. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14891. </Section>
  14892. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  14893. </Section>
  14894. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14895. <Original>
  14896. v.size() == 5
  14897. </Original>
  14898. <Expanded>
  14899. 5 == 5
  14900. </Expanded>
  14901. </Expression>
  14902. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14903. <Original>
  14904. v.capacity() >= 5
  14905. </Original>
  14906. <Expanded>
  14907. 5 >= 5
  14908. </Expanded>
  14909. </Expression>
  14910. <Section name="reserving bigger changes capacity but not size" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14911. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14912. <Original>
  14913. v.size() == 5
  14914. </Original>
  14915. <Expanded>
  14916. 5 == 5
  14917. </Expanded>
  14918. </Expression>
  14919. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14920. <Original>
  14921. v.capacity() >= 10
  14922. </Original>
  14923. <Expanded>
  14924. 10 >= 10
  14925. </Expanded>
  14926. </Expression>
  14927. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  14928. </Section>
  14929. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14930. <Original>
  14931. v.size() == 5
  14932. </Original>
  14933. <Expanded>
  14934. 5 == 5
  14935. </Expanded>
  14936. </Expression>
  14937. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14938. <Original>
  14939. v.capacity() >= 5
  14940. </Original>
  14941. <Expanded>
  14942. 5 >= 5
  14943. </Expanded>
  14944. </Expression>
  14945. <Section name="reserving smaller does not change size or capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14946. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14947. <Original>
  14948. v.size() == 5
  14949. </Original>
  14950. <Expanded>
  14951. 5 == 5
  14952. </Expanded>
  14953. </Expression>
  14954. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14955. <Original>
  14956. v.capacity() >= 5
  14957. </Original>
  14958. <Expanded>
  14959. 5 >= 5
  14960. </Expanded>
  14961. </Expression>
  14962. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  14963. </Section>
  14964. <OverallResult success="true"/>
  14965. </TestCase>
  14966. <TestCase name="TemplateTestSig: vectors can be sized and resized - (std::tuple&lt;int, float>), 6" tags="[nttp][template][vector]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14967. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14968. <Original>
  14969. v.size() == V
  14970. </Original>
  14971. <Expanded>
  14972. 6 == 6
  14973. </Expanded>
  14974. </Expression>
  14975. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14976. <Original>
  14977. v.capacity() >= V
  14978. </Original>
  14979. <Expanded>
  14980. 6 >= 6
  14981. </Expanded>
  14982. </Expression>
  14983. <Section name="resizing bigger changes size and capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14984. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14985. <Original>
  14986. v.size() == 2 * V
  14987. </Original>
  14988. <Expanded>
  14989. 12 == 12
  14990. </Expanded>
  14991. </Expression>
  14992. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  14993. <Original>
  14994. v.capacity() >= 2 * V
  14995. </Original>
  14996. <Expanded>
  14997. 12 >= 12
  14998. </Expanded>
  14999. </Expression>
  15000. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15001. </Section>
  15002. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15003. <Original>
  15004. v.size() == V
  15005. </Original>
  15006. <Expanded>
  15007. 6 == 6
  15008. </Expanded>
  15009. </Expression>
  15010. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15011. <Original>
  15012. v.capacity() >= V
  15013. </Original>
  15014. <Expanded>
  15015. 6 >= 6
  15016. </Expanded>
  15017. </Expression>
  15018. <Section name="resizing smaller changes size but not capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15019. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15020. <Original>
  15021. v.size() == 0
  15022. </Original>
  15023. <Expanded>
  15024. 0 == 0
  15025. </Expanded>
  15026. </Expression>
  15027. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15028. <Original>
  15029. v.capacity() >= V
  15030. </Original>
  15031. <Expanded>
  15032. 6 >= 6
  15033. </Expanded>
  15034. </Expression>
  15035. <Section name="We can use the 'swap trick' to reset the capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15036. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15037. <Original>
  15038. v.capacity() == 0
  15039. </Original>
  15040. <Expanded>
  15041. 0 == 0
  15042. </Expanded>
  15043. </Expression>
  15044. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15045. </Section>
  15046. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  15047. </Section>
  15048. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15049. <Original>
  15050. v.size() == V
  15051. </Original>
  15052. <Expanded>
  15053. 6 == 6
  15054. </Expanded>
  15055. </Expression>
  15056. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15057. <Original>
  15058. v.capacity() >= V
  15059. </Original>
  15060. <Expanded>
  15061. 6 >= 6
  15062. </Expanded>
  15063. </Expression>
  15064. <Section name="reserving bigger changes capacity but not size" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15065. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15066. <Original>
  15067. v.size() == V
  15068. </Original>
  15069. <Expanded>
  15070. 6 == 6
  15071. </Expanded>
  15072. </Expression>
  15073. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15074. <Original>
  15075. v.capacity() >= 2 * V
  15076. </Original>
  15077. <Expanded>
  15078. 12 >= 12
  15079. </Expanded>
  15080. </Expression>
  15081. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15082. </Section>
  15083. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15084. <Original>
  15085. v.size() == V
  15086. </Original>
  15087. <Expanded>
  15088. 6 == 6
  15089. </Expanded>
  15090. </Expression>
  15091. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15092. <Original>
  15093. v.capacity() >= V
  15094. </Original>
  15095. <Expanded>
  15096. 6 >= 6
  15097. </Expanded>
  15098. </Expression>
  15099. <Section name="reserving smaller does not change size or capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15100. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15101. <Original>
  15102. v.size() == V
  15103. </Original>
  15104. <Expanded>
  15105. 6 == 6
  15106. </Expanded>
  15107. </Expression>
  15108. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15109. <Original>
  15110. v.capacity() >= V
  15111. </Original>
  15112. <Expanded>
  15113. 6 >= 6
  15114. </Expanded>
  15115. </Expression>
  15116. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15117. </Section>
  15118. <OverallResult success="true"/>
  15119. </TestCase>
  15120. <TestCase name="TemplateTestSig: vectors can be sized and resized - float,4" tags="[nttp][template][vector]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15121. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15122. <Original>
  15123. v.size() == V
  15124. </Original>
  15125. <Expanded>
  15126. 4 == 4
  15127. </Expanded>
  15128. </Expression>
  15129. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15130. <Original>
  15131. v.capacity() >= V
  15132. </Original>
  15133. <Expanded>
  15134. 4 >= 4
  15135. </Expanded>
  15136. </Expression>
  15137. <Section name="resizing bigger changes size and capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15138. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15139. <Original>
  15140. v.size() == 2 * V
  15141. </Original>
  15142. <Expanded>
  15143. 8 == 8
  15144. </Expanded>
  15145. </Expression>
  15146. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15147. <Original>
  15148. v.capacity() >= 2 * V
  15149. </Original>
  15150. <Expanded>
  15151. 8 >= 8
  15152. </Expanded>
  15153. </Expression>
  15154. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15155. </Section>
  15156. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15157. <Original>
  15158. v.size() == V
  15159. </Original>
  15160. <Expanded>
  15161. 4 == 4
  15162. </Expanded>
  15163. </Expression>
  15164. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15165. <Original>
  15166. v.capacity() >= V
  15167. </Original>
  15168. <Expanded>
  15169. 4 >= 4
  15170. </Expanded>
  15171. </Expression>
  15172. <Section name="resizing smaller changes size but not capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15173. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15174. <Original>
  15175. v.size() == 0
  15176. </Original>
  15177. <Expanded>
  15178. 0 == 0
  15179. </Expanded>
  15180. </Expression>
  15181. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15182. <Original>
  15183. v.capacity() >= V
  15184. </Original>
  15185. <Expanded>
  15186. 4 >= 4
  15187. </Expanded>
  15188. </Expression>
  15189. <Section name="We can use the 'swap trick' to reset the capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15190. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15191. <Original>
  15192. v.capacity() == 0
  15193. </Original>
  15194. <Expanded>
  15195. 0 == 0
  15196. </Expanded>
  15197. </Expression>
  15198. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15199. </Section>
  15200. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  15201. </Section>
  15202. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15203. <Original>
  15204. v.size() == V
  15205. </Original>
  15206. <Expanded>
  15207. 4 == 4
  15208. </Expanded>
  15209. </Expression>
  15210. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15211. <Original>
  15212. v.capacity() >= V
  15213. </Original>
  15214. <Expanded>
  15215. 4 >= 4
  15216. </Expanded>
  15217. </Expression>
  15218. <Section name="reserving bigger changes capacity but not size" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15219. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15220. <Original>
  15221. v.size() == V
  15222. </Original>
  15223. <Expanded>
  15224. 4 == 4
  15225. </Expanded>
  15226. </Expression>
  15227. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15228. <Original>
  15229. v.capacity() >= 2 * V
  15230. </Original>
  15231. <Expanded>
  15232. 8 >= 8
  15233. </Expanded>
  15234. </Expression>
  15235. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15236. </Section>
  15237. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15238. <Original>
  15239. v.size() == V
  15240. </Original>
  15241. <Expanded>
  15242. 4 == 4
  15243. </Expanded>
  15244. </Expression>
  15245. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15246. <Original>
  15247. v.capacity() >= V
  15248. </Original>
  15249. <Expanded>
  15250. 4 >= 4
  15251. </Expanded>
  15252. </Expression>
  15253. <Section name="reserving smaller does not change size or capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15254. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15255. <Original>
  15256. v.size() == V
  15257. </Original>
  15258. <Expanded>
  15259. 4 == 4
  15260. </Expanded>
  15261. </Expression>
  15262. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15263. <Original>
  15264. v.capacity() >= V
  15265. </Original>
  15266. <Expanded>
  15267. 4 >= 4
  15268. </Expanded>
  15269. </Expression>
  15270. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15271. </Section>
  15272. <OverallResult success="true"/>
  15273. </TestCase>
  15274. <TestCase name="TemplateTestSig: vectors can be sized and resized - int,5" tags="[nttp][template][vector]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15275. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15276. <Original>
  15277. v.size() == V
  15278. </Original>
  15279. <Expanded>
  15280. 5 == 5
  15281. </Expanded>
  15282. </Expression>
  15283. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15284. <Original>
  15285. v.capacity() >= V
  15286. </Original>
  15287. <Expanded>
  15288. 5 >= 5
  15289. </Expanded>
  15290. </Expression>
  15291. <Section name="resizing bigger changes size and capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15292. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15293. <Original>
  15294. v.size() == 2 * V
  15295. </Original>
  15296. <Expanded>
  15297. 10 == 10
  15298. </Expanded>
  15299. </Expression>
  15300. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15301. <Original>
  15302. v.capacity() >= 2 * V
  15303. </Original>
  15304. <Expanded>
  15305. 10 >= 10
  15306. </Expanded>
  15307. </Expression>
  15308. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15309. </Section>
  15310. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15311. <Original>
  15312. v.size() == V
  15313. </Original>
  15314. <Expanded>
  15315. 5 == 5
  15316. </Expanded>
  15317. </Expression>
  15318. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15319. <Original>
  15320. v.capacity() >= V
  15321. </Original>
  15322. <Expanded>
  15323. 5 >= 5
  15324. </Expanded>
  15325. </Expression>
  15326. <Section name="resizing smaller changes size but not capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15327. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15328. <Original>
  15329. v.size() == 0
  15330. </Original>
  15331. <Expanded>
  15332. 0 == 0
  15333. </Expanded>
  15334. </Expression>
  15335. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15336. <Original>
  15337. v.capacity() >= V
  15338. </Original>
  15339. <Expanded>
  15340. 5 >= 5
  15341. </Expanded>
  15342. </Expression>
  15343. <Section name="We can use the 'swap trick' to reset the capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15344. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15345. <Original>
  15346. v.capacity() == 0
  15347. </Original>
  15348. <Expanded>
  15349. 0 == 0
  15350. </Expanded>
  15351. </Expression>
  15352. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15353. </Section>
  15354. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  15355. </Section>
  15356. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15357. <Original>
  15358. v.size() == V
  15359. </Original>
  15360. <Expanded>
  15361. 5 == 5
  15362. </Expanded>
  15363. </Expression>
  15364. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15365. <Original>
  15366. v.capacity() >= V
  15367. </Original>
  15368. <Expanded>
  15369. 5 >= 5
  15370. </Expanded>
  15371. </Expression>
  15372. <Section name="reserving bigger changes capacity but not size" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15373. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15374. <Original>
  15375. v.size() == V
  15376. </Original>
  15377. <Expanded>
  15378. 5 == 5
  15379. </Expanded>
  15380. </Expression>
  15381. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15382. <Original>
  15383. v.capacity() >= 2 * V
  15384. </Original>
  15385. <Expanded>
  15386. 10 >= 10
  15387. </Expanded>
  15388. </Expression>
  15389. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15390. </Section>
  15391. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15392. <Original>
  15393. v.size() == V
  15394. </Original>
  15395. <Expanded>
  15396. 5 == 5
  15397. </Expanded>
  15398. </Expression>
  15399. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15400. <Original>
  15401. v.capacity() >= V
  15402. </Original>
  15403. <Expanded>
  15404. 5 >= 5
  15405. </Expanded>
  15406. </Expression>
  15407. <Section name="reserving smaller does not change size or capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15408. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15409. <Original>
  15410. v.size() == V
  15411. </Original>
  15412. <Expanded>
  15413. 5 == 5
  15414. </Expanded>
  15415. </Expression>
  15416. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15417. <Original>
  15418. v.capacity() >= V
  15419. </Original>
  15420. <Expanded>
  15421. 5 >= 5
  15422. </Expanded>
  15423. </Expression>
  15424. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15425. </Section>
  15426. <OverallResult success="true"/>
  15427. </TestCase>
  15428. <TestCase name="TemplateTestSig: vectors can be sized and resized - std::string,15" tags="[nttp][template][vector]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15429. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15430. <Original>
  15431. v.size() == V
  15432. </Original>
  15433. <Expanded>
  15434. 15 == 15
  15435. </Expanded>
  15436. </Expression>
  15437. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15438. <Original>
  15439. v.capacity() >= V
  15440. </Original>
  15441. <Expanded>
  15442. 15 >= 15
  15443. </Expanded>
  15444. </Expression>
  15445. <Section name="resizing bigger changes size and capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15446. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15447. <Original>
  15448. v.size() == 2 * V
  15449. </Original>
  15450. <Expanded>
  15451. 30 == 30
  15452. </Expanded>
  15453. </Expression>
  15454. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15455. <Original>
  15456. v.capacity() >= 2 * V
  15457. </Original>
  15458. <Expanded>
  15459. 30 >= 30
  15460. </Expanded>
  15461. </Expression>
  15462. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15463. </Section>
  15464. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15465. <Original>
  15466. v.size() == V
  15467. </Original>
  15468. <Expanded>
  15469. 15 == 15
  15470. </Expanded>
  15471. </Expression>
  15472. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15473. <Original>
  15474. v.capacity() >= V
  15475. </Original>
  15476. <Expanded>
  15477. 15 >= 15
  15478. </Expanded>
  15479. </Expression>
  15480. <Section name="resizing smaller changes size but not capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15481. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15482. <Original>
  15483. v.size() == 0
  15484. </Original>
  15485. <Expanded>
  15486. 0 == 0
  15487. </Expanded>
  15488. </Expression>
  15489. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15490. <Original>
  15491. v.capacity() >= V
  15492. </Original>
  15493. <Expanded>
  15494. 15 >= 15
  15495. </Expanded>
  15496. </Expression>
  15497. <Section name="We can use the 'swap trick' to reset the capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15498. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15499. <Original>
  15500. v.capacity() == 0
  15501. </Original>
  15502. <Expanded>
  15503. 0 == 0
  15504. </Expanded>
  15505. </Expression>
  15506. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15507. </Section>
  15508. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  15509. </Section>
  15510. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15511. <Original>
  15512. v.size() == V
  15513. </Original>
  15514. <Expanded>
  15515. 15 == 15
  15516. </Expanded>
  15517. </Expression>
  15518. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15519. <Original>
  15520. v.capacity() >= V
  15521. </Original>
  15522. <Expanded>
  15523. 15 >= 15
  15524. </Expanded>
  15525. </Expression>
  15526. <Section name="reserving bigger changes capacity but not size" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15527. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15528. <Original>
  15529. v.size() == V
  15530. </Original>
  15531. <Expanded>
  15532. 15 == 15
  15533. </Expanded>
  15534. </Expression>
  15535. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15536. <Original>
  15537. v.capacity() >= 2 * V
  15538. </Original>
  15539. <Expanded>
  15540. 30 >= 30
  15541. </Expanded>
  15542. </Expression>
  15543. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15544. </Section>
  15545. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15546. <Original>
  15547. v.size() == V
  15548. </Original>
  15549. <Expanded>
  15550. 15 == 15
  15551. </Expanded>
  15552. </Expression>
  15553. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15554. <Original>
  15555. v.capacity() >= V
  15556. </Original>
  15557. <Expanded>
  15558. 15 >= 15
  15559. </Expanded>
  15560. </Expression>
  15561. <Section name="reserving smaller does not change size or capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15562. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15563. <Original>
  15564. v.size() == V
  15565. </Original>
  15566. <Expanded>
  15567. 15 == 15
  15568. </Expanded>
  15569. </Expression>
  15570. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15571. <Original>
  15572. v.capacity() >= V
  15573. </Original>
  15574. <Expanded>
  15575. 15 >= 15
  15576. </Expanded>
  15577. </Expression>
  15578. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15579. </Section>
  15580. <OverallResult success="true"/>
  15581. </TestCase>
  15582. <TestCase name="Test case with identical tags keeps just one" tags="[tags]" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  15583. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  15584. <Original>
  15585. testCase.tags.size() == 1
  15586. </Original>
  15587. <Expanded>
  15588. 1 == 1
  15589. </Expanded>
  15590. </Expression>
  15591. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  15592. <Original>
  15593. testCase.tags[0] == Tag( "tag1" )
  15594. </Original>
  15595. <Expanded>
  15596. {?} == {?}
  15597. </Expanded>
  15598. </Expression>
  15599. <OverallResult success="true"/>
  15600. </TestCase>
  15601. <TestCase name="Test case with one argument" filename="tests/<exe-name>/UsageTests/VariadicMacros.tests.cpp" >
  15602. <OverallResult success="true"/>
  15603. </TestCase>
  15604. <TestCase name="Test enum bit values" tags="[Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  15605. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  15606. <Original>
  15607. 0x<hex digits> == bit30and31
  15608. </Original>
  15609. <Expanded>
  15610. 3221225472 (0x<hex digits>) == 3221225472
  15611. </Expanded>
  15612. </Expression>
  15613. <OverallResult success="true"/>
  15614. </TestCase>
  15615. <TestCase name="Test with special, characters &quot;in name" tags="[cli][regression]" filename="tests/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  15616. <OverallResult success="true"/>
  15617. </TestCase>
  15618. <TestCase name="Testing checked-if" tags="[checked-if]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15619. <Expression success="true" type="CHECKED_IF" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15620. <Original>
  15621. true
  15622. </Original>
  15623. <Expanded>
  15624. true
  15625. </Expanded>
  15626. </Expression>
  15627. <Expression success="false" type="CHECKED_IF" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15628. <Original>
  15629. false
  15630. </Original>
  15631. <Expanded>
  15632. false
  15633. </Expanded>
  15634. </Expression>
  15635. <Expression success="true" type="CHECKED_ELSE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15636. <Original>
  15637. true
  15638. </Original>
  15639. <Expanded>
  15640. true
  15641. </Expanded>
  15642. </Expression>
  15643. <Expression success="false" type="CHECKED_ELSE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15644. <Original>
  15645. false
  15646. </Original>
  15647. <Expanded>
  15648. false
  15649. </Expanded>
  15650. </Expression>
  15651. <OverallResult success="true"/>
  15652. </TestCase>
  15653. <TestCase name="Testing checked-if 2" tags="[!shouldfail][checked-if]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15654. <Expression success="true" type="CHECKED_IF" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15655. <Original>
  15656. true
  15657. </Original>
  15658. <Expanded>
  15659. true
  15660. </Expanded>
  15661. </Expression>
  15662. <Failure filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" />
  15663. <OverallResult success="true"/>
  15664. </TestCase>
  15665. <TestCase name="Testing checked-if 3" tags="[!shouldfail][checked-if]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15666. <Expression success="false" type="CHECKED_ELSE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15667. <Original>
  15668. false
  15669. </Original>
  15670. <Expanded>
  15671. false
  15672. </Expanded>
  15673. </Expression>
  15674. <Failure filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" />
  15675. <OverallResult success="true"/>
  15676. </TestCase>
  15677. <TestCase name="The NO_FAIL macro reports a failure but does not fail the test" tags="[messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  15678. <Expression success="false" type="CHECK_NOFAIL" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  15679. <Original>
  15680. 1 == 2
  15681. </Original>
  15682. <Expanded>
  15683. 1 == 2
  15684. </Expanded>
  15685. </Expression>
  15686. <OverallResult success="false"/>
  15687. </TestCase>
  15688. <TestCase name="The default listing implementation write to provided stream" tags="[reporter-helpers][reporters]" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  15689. <Section name="Listing tags" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  15690. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  15691. <Original>
  15692. listingString, ContainsSubstring("[fakeTag]"s)
  15693. </Original>
  15694. <Expanded>
  15695. "All available tags:
  15696. 1 [fakeTag]
  15697. 1 tag
  15698. " contains: "[fakeTag]"
  15699. </Expanded>
  15700. </Expression>
  15701. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15702. </Section>
  15703. <Section name="Listing reporters" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  15704. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  15705. <Original>
  15706. listingString, ContainsSubstring( "fake reporter"s ) &amp;&amp; ContainsSubstring( "fake description"s )
  15707. </Original>
  15708. <Expanded>
  15709. "Available reporters:
  15710. fake reporter: fake description
  15711. " ( contains: "fake reporter" and contains: "fake description" )
  15712. </Expanded>
  15713. </Expression>
  15714. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15715. </Section>
  15716. <Section name="Listing tests" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  15717. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  15718. <Original>
  15719. listingString, ContainsSubstring( "fake test name"s ) &amp;&amp; ContainsSubstring( "fakeTestTag"s )
  15720. </Original>
  15721. <Expanded>
  15722. "All available test cases:
  15723. fake test name
  15724. [fakeTestTag]
  15725. 1 test case
  15726. " ( contains: "fake test name" and contains: "fakeTestTag" )
  15727. </Expanded>
  15728. </Expression>
  15729. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15730. </Section>
  15731. <Section name="Listing listeners" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  15732. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Reporters.tests.cpp" >
  15733. <Original>
  15734. listingString, ContainsSubstring( "fakeListener"s ) &amp;&amp; ContainsSubstring( "fake description"s )
  15735. </Original>
  15736. <Expanded>
  15737. "Registered listeners:
  15738. fakeListener: fake description
  15739. " ( contains: "fakeListener" and contains: "fake description" )
  15740. </Expanded>
  15741. </Expression>
  15742. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15743. </Section>
  15744. <OverallResult success="true"/>
  15745. </TestCase>
  15746. <TestCase name="This test 'should' fail but doesn't" tags="[!shouldfail][.][failing]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  15747. <OverallResult success="false"/>
  15748. </TestCase>
  15749. <TestCase name="Thrown string literals are translated" tags="[!throws][.][failing]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  15750. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  15751. For some reason someone is throwing a string literal!
  15752. </Exception>
  15753. <OverallResult success="false"/>
  15754. </TestCase>
  15755. <TestCase name="Tracker" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15756. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15757. <Original>
  15758. testCase.isOpen()
  15759. </Original>
  15760. <Expanded>
  15761. true
  15762. </Expanded>
  15763. </Expression>
  15764. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15765. <Original>
  15766. s1.isOpen()
  15767. </Original>
  15768. <Expanded>
  15769. true
  15770. </Expanded>
  15771. </Expression>
  15772. <Section name="successfully close one section" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15773. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15774. <Original>
  15775. s1.isSuccessfullyCompleted()
  15776. </Original>
  15777. <Expanded>
  15778. true
  15779. </Expanded>
  15780. </Expression>
  15781. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15782. <Original>
  15783. testCase.isComplete() == false
  15784. </Original>
  15785. <Expanded>
  15786. false == false
  15787. </Expanded>
  15788. </Expression>
  15789. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15790. <Original>
  15791. ctx.completedCycle()
  15792. </Original>
  15793. <Expanded>
  15794. true
  15795. </Expanded>
  15796. </Expression>
  15797. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15798. <Original>
  15799. testCase.isSuccessfullyCompleted()
  15800. </Original>
  15801. <Expanded>
  15802. true
  15803. </Expanded>
  15804. </Expression>
  15805. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  15806. </Section>
  15807. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15808. <Original>
  15809. testCase.isOpen()
  15810. </Original>
  15811. <Expanded>
  15812. true
  15813. </Expanded>
  15814. </Expression>
  15815. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15816. <Original>
  15817. s1.isOpen()
  15818. </Original>
  15819. <Expanded>
  15820. true
  15821. </Expanded>
  15822. </Expression>
  15823. <Section name="fail one section" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15824. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15825. <Original>
  15826. s1.isComplete()
  15827. </Original>
  15828. <Expanded>
  15829. true
  15830. </Expanded>
  15831. </Expression>
  15832. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15833. <Original>
  15834. s1.isSuccessfullyCompleted() == false
  15835. </Original>
  15836. <Expanded>
  15837. false == false
  15838. </Expanded>
  15839. </Expression>
  15840. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15841. <Original>
  15842. testCase.isComplete() == false
  15843. </Original>
  15844. <Expanded>
  15845. false == false
  15846. </Expanded>
  15847. </Expression>
  15848. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15849. <Original>
  15850. ctx.completedCycle()
  15851. </Original>
  15852. <Expanded>
  15853. true
  15854. </Expanded>
  15855. </Expression>
  15856. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15857. <Original>
  15858. testCase.isSuccessfullyCompleted() == false
  15859. </Original>
  15860. <Expanded>
  15861. false == false
  15862. </Expanded>
  15863. </Expression>
  15864. <Section name="re-enter after failed section" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15865. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15866. <Original>
  15867. testCase2.isOpen()
  15868. </Original>
  15869. <Expanded>
  15870. true
  15871. </Expanded>
  15872. </Expression>
  15873. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15874. <Original>
  15875. s1b.isOpen() == false
  15876. </Original>
  15877. <Expanded>
  15878. false == false
  15879. </Expanded>
  15880. </Expression>
  15881. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15882. <Original>
  15883. ctx.completedCycle()
  15884. </Original>
  15885. <Expanded>
  15886. true
  15887. </Expanded>
  15888. </Expression>
  15889. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15890. <Original>
  15891. testCase.isComplete()
  15892. </Original>
  15893. <Expanded>
  15894. true
  15895. </Expanded>
  15896. </Expression>
  15897. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15898. <Original>
  15899. testCase.isSuccessfullyCompleted()
  15900. </Original>
  15901. <Expanded>
  15902. true
  15903. </Expanded>
  15904. </Expression>
  15905. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  15906. </Section>
  15907. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  15908. </Section>
  15909. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15910. <Original>
  15911. testCase.isOpen()
  15912. </Original>
  15913. <Expanded>
  15914. true
  15915. </Expanded>
  15916. </Expression>
  15917. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15918. <Original>
  15919. s1.isOpen()
  15920. </Original>
  15921. <Expanded>
  15922. true
  15923. </Expanded>
  15924. </Expression>
  15925. <Section name="fail one section" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15926. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15927. <Original>
  15928. s1.isComplete()
  15929. </Original>
  15930. <Expanded>
  15931. true
  15932. </Expanded>
  15933. </Expression>
  15934. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15935. <Original>
  15936. s1.isSuccessfullyCompleted() == false
  15937. </Original>
  15938. <Expanded>
  15939. false == false
  15940. </Expanded>
  15941. </Expression>
  15942. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15943. <Original>
  15944. testCase.isComplete() == false
  15945. </Original>
  15946. <Expanded>
  15947. false == false
  15948. </Expanded>
  15949. </Expression>
  15950. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15951. <Original>
  15952. ctx.completedCycle()
  15953. </Original>
  15954. <Expanded>
  15955. true
  15956. </Expanded>
  15957. </Expression>
  15958. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15959. <Original>
  15960. testCase.isSuccessfullyCompleted() == false
  15961. </Original>
  15962. <Expanded>
  15963. false == false
  15964. </Expanded>
  15965. </Expression>
  15966. <Section name="re-enter after failed section and find next section" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15967. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15968. <Original>
  15969. testCase2.isOpen()
  15970. </Original>
  15971. <Expanded>
  15972. true
  15973. </Expanded>
  15974. </Expression>
  15975. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15976. <Original>
  15977. s1b.isOpen() == false
  15978. </Original>
  15979. <Expanded>
  15980. false == false
  15981. </Expanded>
  15982. </Expression>
  15983. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15984. <Original>
  15985. s2.isOpen()
  15986. </Original>
  15987. <Expanded>
  15988. true
  15989. </Expanded>
  15990. </Expression>
  15991. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  15992. <Original>
  15993. ctx.completedCycle()
  15994. </Original>
  15995. <Expanded>
  15996. true
  15997. </Expanded>
  15998. </Expression>
  15999. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16000. <Original>
  16001. testCase.isComplete()
  16002. </Original>
  16003. <Expanded>
  16004. true
  16005. </Expanded>
  16006. </Expression>
  16007. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16008. <Original>
  16009. testCase.isSuccessfullyCompleted()
  16010. </Original>
  16011. <Expanded>
  16012. true
  16013. </Expanded>
  16014. </Expression>
  16015. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  16016. </Section>
  16017. <OverallResults successes="11" failures="0" expectedFailures="0"/>
  16018. </Section>
  16019. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16020. <Original>
  16021. testCase.isOpen()
  16022. </Original>
  16023. <Expanded>
  16024. true
  16025. </Expanded>
  16026. </Expression>
  16027. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16028. <Original>
  16029. s1.isOpen()
  16030. </Original>
  16031. <Expanded>
  16032. true
  16033. </Expanded>
  16034. </Expression>
  16035. <Section name="successfully close one section, then find another" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16036. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16037. <Original>
  16038. s2.isOpen() == false
  16039. </Original>
  16040. <Expanded>
  16041. false == false
  16042. </Expanded>
  16043. </Expression>
  16044. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16045. <Original>
  16046. testCase.isComplete() == false
  16047. </Original>
  16048. <Expanded>
  16049. false == false
  16050. </Expanded>
  16051. </Expression>
  16052. <Section name="Re-enter - skips S1 and enters S2" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16053. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16054. <Original>
  16055. testCase2.isOpen()
  16056. </Original>
  16057. <Expanded>
  16058. true
  16059. </Expanded>
  16060. </Expression>
  16061. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16062. <Original>
  16063. s1b.isOpen() == false
  16064. </Original>
  16065. <Expanded>
  16066. false == false
  16067. </Expanded>
  16068. </Expression>
  16069. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16070. <Original>
  16071. s2b.isOpen()
  16072. </Original>
  16073. <Expanded>
  16074. true
  16075. </Expanded>
  16076. </Expression>
  16077. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16078. <Original>
  16079. ctx.completedCycle() == false
  16080. </Original>
  16081. <Expanded>
  16082. false == false
  16083. </Expanded>
  16084. </Expression>
  16085. <Section name="Successfully close S2" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16086. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16087. <Original>
  16088. ctx.completedCycle()
  16089. </Original>
  16090. <Expanded>
  16091. true
  16092. </Expanded>
  16093. </Expression>
  16094. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16095. <Original>
  16096. s2b.isSuccessfullyCompleted()
  16097. </Original>
  16098. <Expanded>
  16099. true
  16100. </Expanded>
  16101. </Expression>
  16102. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16103. <Original>
  16104. testCase2.isComplete() == false
  16105. </Original>
  16106. <Expanded>
  16107. false == false
  16108. </Expanded>
  16109. </Expression>
  16110. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16111. <Original>
  16112. testCase2.isSuccessfullyCompleted()
  16113. </Original>
  16114. <Expanded>
  16115. true
  16116. </Expanded>
  16117. </Expression>
  16118. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  16119. </Section>
  16120. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  16121. </Section>
  16122. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  16123. </Section>
  16124. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16125. <Original>
  16126. testCase.isOpen()
  16127. </Original>
  16128. <Expanded>
  16129. true
  16130. </Expanded>
  16131. </Expression>
  16132. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16133. <Original>
  16134. s1.isOpen()
  16135. </Original>
  16136. <Expanded>
  16137. true
  16138. </Expanded>
  16139. </Expression>
  16140. <Section name="successfully close one section, then find another" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16141. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16142. <Original>
  16143. s2.isOpen() == false
  16144. </Original>
  16145. <Expanded>
  16146. false == false
  16147. </Expanded>
  16148. </Expression>
  16149. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16150. <Original>
  16151. testCase.isComplete() == false
  16152. </Original>
  16153. <Expanded>
  16154. false == false
  16155. </Expanded>
  16156. </Expression>
  16157. <Section name="Re-enter - skips S1 and enters S2" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16158. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16159. <Original>
  16160. testCase2.isOpen()
  16161. </Original>
  16162. <Expanded>
  16163. true
  16164. </Expanded>
  16165. </Expression>
  16166. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16167. <Original>
  16168. s1b.isOpen() == false
  16169. </Original>
  16170. <Expanded>
  16171. false == false
  16172. </Expanded>
  16173. </Expression>
  16174. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16175. <Original>
  16176. s2b.isOpen()
  16177. </Original>
  16178. <Expanded>
  16179. true
  16180. </Expanded>
  16181. </Expression>
  16182. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16183. <Original>
  16184. ctx.completedCycle() == false
  16185. </Original>
  16186. <Expanded>
  16187. false == false
  16188. </Expanded>
  16189. </Expression>
  16190. <Section name="fail S2" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16191. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16192. <Original>
  16193. ctx.completedCycle()
  16194. </Original>
  16195. <Expanded>
  16196. true
  16197. </Expanded>
  16198. </Expression>
  16199. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16200. <Original>
  16201. s2b.isComplete()
  16202. </Original>
  16203. <Expanded>
  16204. true
  16205. </Expanded>
  16206. </Expression>
  16207. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16208. <Original>
  16209. s2b.isSuccessfullyCompleted() == false
  16210. </Original>
  16211. <Expanded>
  16212. false == false
  16213. </Expanded>
  16214. </Expression>
  16215. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16216. <Original>
  16217. testCase2.isSuccessfullyCompleted() == false
  16218. </Original>
  16219. <Expanded>
  16220. false == false
  16221. </Expanded>
  16222. </Expression>
  16223. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16224. <Original>
  16225. testCase3.isOpen()
  16226. </Original>
  16227. <Expanded>
  16228. true
  16229. </Expanded>
  16230. </Expression>
  16231. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16232. <Original>
  16233. s1c.isOpen() == false
  16234. </Original>
  16235. <Expanded>
  16236. false == false
  16237. </Expanded>
  16238. </Expression>
  16239. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16240. <Original>
  16241. s2c.isOpen() == false
  16242. </Original>
  16243. <Expanded>
  16244. false == false
  16245. </Expanded>
  16246. </Expression>
  16247. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16248. <Original>
  16249. testCase3.isSuccessfullyCompleted()
  16250. </Original>
  16251. <Expanded>
  16252. true
  16253. </Expanded>
  16254. </Expression>
  16255. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  16256. </Section>
  16257. <OverallResults successes="12" failures="0" expectedFailures="0"/>
  16258. </Section>
  16259. <OverallResults successes="14" failures="0" expectedFailures="0"/>
  16260. </Section>
  16261. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16262. <Original>
  16263. testCase.isOpen()
  16264. </Original>
  16265. <Expanded>
  16266. true
  16267. </Expanded>
  16268. </Expression>
  16269. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16270. <Original>
  16271. s1.isOpen()
  16272. </Original>
  16273. <Expanded>
  16274. true
  16275. </Expanded>
  16276. </Expression>
  16277. <Section name="open a nested section" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16278. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16279. <Original>
  16280. s2.isOpen()
  16281. </Original>
  16282. <Expanded>
  16283. true
  16284. </Expanded>
  16285. </Expression>
  16286. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16287. <Original>
  16288. s2.isComplete()
  16289. </Original>
  16290. <Expanded>
  16291. true
  16292. </Expanded>
  16293. </Expression>
  16294. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16295. <Original>
  16296. s1.isComplete() == false
  16297. </Original>
  16298. <Expanded>
  16299. false == false
  16300. </Expanded>
  16301. </Expression>
  16302. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16303. <Original>
  16304. s1.isComplete()
  16305. </Original>
  16306. <Expanded>
  16307. true
  16308. </Expanded>
  16309. </Expression>
  16310. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16311. <Original>
  16312. testCase.isComplete() == false
  16313. </Original>
  16314. <Expanded>
  16315. false == false
  16316. </Expanded>
  16317. </Expression>
  16318. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  16319. <Original>
  16320. testCase.isComplete()
  16321. </Original>
  16322. <Expanded>
  16323. true
  16324. </Expanded>
  16325. </Expression>
  16326. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  16327. </Section>
  16328. <OverallResult success="true"/>
  16329. </TestCase>
  16330. <TestCase name="Trim strings" tags="[string-manip]" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  16331. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  16332. <Original>
  16333. trim(std::string(no_whitespace)) == no_whitespace
  16334. </Original>
  16335. <Expanded>
  16336. "There is no extra whitespace here"
  16337. ==
  16338. "There is no extra whitespace here"
  16339. </Expanded>
  16340. </Expression>
  16341. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  16342. <Original>
  16343. trim(std::string(leading_whitespace)) == no_whitespace
  16344. </Original>
  16345. <Expanded>
  16346. "There is no extra whitespace here"
  16347. ==
  16348. "There is no extra whitespace here"
  16349. </Expanded>
  16350. </Expression>
  16351. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  16352. <Original>
  16353. trim(std::string(trailing_whitespace)) == no_whitespace
  16354. </Original>
  16355. <Expanded>
  16356. "There is no extra whitespace here"
  16357. ==
  16358. "There is no extra whitespace here"
  16359. </Expanded>
  16360. </Expression>
  16361. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  16362. <Original>
  16363. trim(std::string(whitespace_at_both_ends)) == no_whitespace
  16364. </Original>
  16365. <Expanded>
  16366. "There is no extra whitespace here"
  16367. ==
  16368. "There is no extra whitespace here"
  16369. </Expanded>
  16370. </Expression>
  16371. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  16372. <Original>
  16373. trim(StringRef(no_whitespace)) == StringRef(no_whitespace)
  16374. </Original>
  16375. <Expanded>
  16376. There is no extra whitespace here
  16377. ==
  16378. There is no extra whitespace here
  16379. </Expanded>
  16380. </Expression>
  16381. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  16382. <Original>
  16383. trim(StringRef(leading_whitespace)) == StringRef(no_whitespace)
  16384. </Original>
  16385. <Expanded>
  16386. There is no extra whitespace here
  16387. ==
  16388. There is no extra whitespace here
  16389. </Expanded>
  16390. </Expression>
  16391. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  16392. <Original>
  16393. trim(StringRef(trailing_whitespace)) == StringRef(no_whitespace)
  16394. </Original>
  16395. <Expanded>
  16396. There is no extra whitespace here
  16397. ==
  16398. There is no extra whitespace here
  16399. </Expanded>
  16400. </Expression>
  16401. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  16402. <Original>
  16403. trim(StringRef(whitespace_at_both_ends)) == StringRef(no_whitespace)
  16404. </Original>
  16405. <Expanded>
  16406. There is no extra whitespace here
  16407. ==
  16408. There is no extra whitespace here
  16409. </Expanded>
  16410. </Expression>
  16411. <OverallResult success="true"/>
  16412. </TestCase>
  16413. <TestCase name="Unexpected exceptions can be translated" tags="[!throws][.][failing]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  16414. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  16415. 3.14
  16416. </Exception>
  16417. <OverallResult success="false"/>
  16418. </TestCase>
  16419. <TestCase name="Upcasting special member functions" tags="[internals][unique-ptr]" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  16420. <Section name="Move constructor" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  16421. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  16422. <Original>
  16423. bptr->i == 3
  16424. </Original>
  16425. <Expanded>
  16426. 3 == 3
  16427. </Expanded>
  16428. </Expression>
  16429. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16430. </Section>
  16431. <Section name="move assignment" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  16432. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  16433. <Original>
  16434. bptr->i == 3
  16435. </Original>
  16436. <Expanded>
  16437. 3 == 3
  16438. </Expanded>
  16439. </Expression>
  16440. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16441. </Section>
  16442. <OverallResult success="true"/>
  16443. </TestCase>
  16444. <TestCase name="Usage of AllMatch range matcher" tags="[matchers][quantifiers][templated]" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16445. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16446. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16447. <Original>
  16448. data, AllMatch(SizeIs(5))
  16449. </Original>
  16450. <Expanded>
  16451. { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } all match has size == 5
  16452. </Expanded>
  16453. </Expression>
  16454. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16455. <Original>
  16456. data, !AllMatch(Contains(0) &amp;&amp; Contains(1))
  16457. </Original>
  16458. <Expanded>
  16459. { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } not all match ( contains element 0 and contains element 1 )
  16460. </Expanded>
  16461. </Expression>
  16462. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  16463. </Section>
  16464. <Section name="Type requires ADL found begin and end" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16465. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16466. <Original>
  16467. needs_adl, AllMatch( Predicate&lt;int>( []( int elem ) { return elem &lt; 6; } ) )
  16468. </Original>
  16469. <Expanded>
  16470. { 1, 2, 3, 4, 5 } all match matches undescribed predicate
  16471. </Expanded>
  16472. </Expression>
  16473. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16474. </Section>
  16475. <Section name="Shortcircuiting" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16476. <Section name="All are read" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16477. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16478. <Original>
  16479. mocked, allMatch
  16480. </Original>
  16481. <Expanded>
  16482. { 1, 2, 3, 4, 5 } all match matches undescribed predicate
  16483. </Expanded>
  16484. </Expression>
  16485. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16486. <Original>
  16487. mocked.m_derefed[0]
  16488. </Original>
  16489. <Expanded>
  16490. true
  16491. </Expanded>
  16492. </Expression>
  16493. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16494. <Original>
  16495. mocked.m_derefed[1]
  16496. </Original>
  16497. <Expanded>
  16498. true
  16499. </Expanded>
  16500. </Expression>
  16501. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16502. <Original>
  16503. mocked.m_derefed[2]
  16504. </Original>
  16505. <Expanded>
  16506. true
  16507. </Expanded>
  16508. </Expression>
  16509. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16510. <Original>
  16511. mocked.m_derefed[3]
  16512. </Original>
  16513. <Expanded>
  16514. true
  16515. </Expanded>
  16516. </Expression>
  16517. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16518. <Original>
  16519. mocked.m_derefed[4]
  16520. </Original>
  16521. <Expanded>
  16522. true
  16523. </Expanded>
  16524. </Expression>
  16525. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  16526. </Section>
  16527. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  16528. </Section>
  16529. <Section name="Shortcircuiting" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16530. <Section name="Short-circuited" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16531. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16532. <Original>
  16533. mocked, !allMatch
  16534. </Original>
  16535. <Expanded>
  16536. { 1, 2, 3, 4, 5 } not all match matches undescribed predicate
  16537. </Expanded>
  16538. </Expression>
  16539. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16540. <Original>
  16541. mocked.m_derefed[0]
  16542. </Original>
  16543. <Expanded>
  16544. true
  16545. </Expanded>
  16546. </Expression>
  16547. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16548. <Original>
  16549. mocked.m_derefed[1]
  16550. </Original>
  16551. <Expanded>
  16552. true
  16553. </Expanded>
  16554. </Expression>
  16555. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16556. <Original>
  16557. mocked.m_derefed[2]
  16558. </Original>
  16559. <Expanded>
  16560. true
  16561. </Expanded>
  16562. </Expression>
  16563. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16564. <Original>
  16565. !(mocked.m_derefed[3])
  16566. </Original>
  16567. <Expanded>
  16568. !false
  16569. </Expanded>
  16570. </Expression>
  16571. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16572. <Original>
  16573. !(mocked.m_derefed[4])
  16574. </Original>
  16575. <Expanded>
  16576. !false
  16577. </Expanded>
  16578. </Expression>
  16579. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  16580. </Section>
  16581. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  16582. </Section>
  16583. <OverallResult success="true"/>
  16584. </TestCase>
  16585. <TestCase name="Usage of AllTrue range matcher" tags="[matchers][quantifiers][templated]" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16586. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16587. <Section name="All true evaluates to true" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16588. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16589. <Original>
  16590. data, AllTrue()
  16591. </Original>
  16592. <Expanded>
  16593. { true, true, true, true, true } contains only true
  16594. </Expanded>
  16595. </Expression>
  16596. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16597. </Section>
  16598. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16599. </Section>
  16600. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16601. <Section name="Empty evaluates to true" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16602. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16603. <Original>
  16604. data, AllTrue()
  16605. </Original>
  16606. <Expanded>
  16607. { } contains only true
  16608. </Expanded>
  16609. </Expression>
  16610. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16611. </Section>
  16612. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16613. </Section>
  16614. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16615. <Section name="One false evalutes to false" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16616. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16617. <Original>
  16618. data, !AllTrue()
  16619. </Original>
  16620. <Expanded>
  16621. { true, true, false, true, true } not contains only true
  16622. </Expanded>
  16623. </Expression>
  16624. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16625. </Section>
  16626. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16627. </Section>
  16628. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16629. <Section name="All false evaluates to false" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16630. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16631. <Original>
  16632. data, !AllTrue()
  16633. </Original>
  16634. <Expanded>
  16635. { false, false, false, false, false } not contains only true
  16636. </Expanded>
  16637. </Expression>
  16638. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16639. </Section>
  16640. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16641. </Section>
  16642. <Section name="Contained type is convertible to bool" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16643. <Section name="All true evaluates to true" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16644. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16645. <Original>
  16646. data, AllTrue()
  16647. </Original>
  16648. <Expanded>
  16649. { true, true, true, true, true } contains only true
  16650. </Expanded>
  16651. </Expression>
  16652. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16653. </Section>
  16654. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16655. </Section>
  16656. <Section name="Contained type is convertible to bool" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16657. <Section name="One false evalutes to false" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16658. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16659. <Original>
  16660. data, !AllTrue()
  16661. </Original>
  16662. <Expanded>
  16663. { true, true, false, true, true } not contains only true
  16664. </Expanded>
  16665. </Expression>
  16666. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16667. </Section>
  16668. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16669. </Section>
  16670. <Section name="Contained type is convertible to bool" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16671. <Section name="All false evaluates to false" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16672. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16673. <Original>
  16674. data, !AllTrue()
  16675. </Original>
  16676. <Expanded>
  16677. { false, false, false, false, false } not contains only true
  16678. </Expanded>
  16679. </Expression>
  16680. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16681. </Section>
  16682. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16683. </Section>
  16684. <Section name="Shortcircuiting" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16685. <Section name="All are read" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16686. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16687. <Original>
  16688. mocked, AllTrue()
  16689. </Original>
  16690. <Expanded>
  16691. { true, true, true, true, true } contains only true
  16692. </Expanded>
  16693. </Expression>
  16694. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16695. <Original>
  16696. mocked.m_derefed[0]
  16697. </Original>
  16698. <Expanded>
  16699. true
  16700. </Expanded>
  16701. </Expression>
  16702. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16703. <Original>
  16704. mocked.m_derefed[1]
  16705. </Original>
  16706. <Expanded>
  16707. true
  16708. </Expanded>
  16709. </Expression>
  16710. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16711. <Original>
  16712. mocked.m_derefed[2]
  16713. </Original>
  16714. <Expanded>
  16715. true
  16716. </Expanded>
  16717. </Expression>
  16718. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16719. <Original>
  16720. mocked.m_derefed[3]
  16721. </Original>
  16722. <Expanded>
  16723. true
  16724. </Expanded>
  16725. </Expression>
  16726. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16727. <Original>
  16728. mocked.m_derefed[4]
  16729. </Original>
  16730. <Expanded>
  16731. true
  16732. </Expanded>
  16733. </Expression>
  16734. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  16735. </Section>
  16736. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  16737. </Section>
  16738. <Section name="Shortcircuiting" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16739. <Section name="Short-circuited" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16740. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16741. <Original>
  16742. mocked, !AllTrue()
  16743. </Original>
  16744. <Expanded>
  16745. { true, true, false, true, true } not contains only true
  16746. </Expanded>
  16747. </Expression>
  16748. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16749. <Original>
  16750. mocked.m_derefed[0]
  16751. </Original>
  16752. <Expanded>
  16753. true
  16754. </Expanded>
  16755. </Expression>
  16756. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16757. <Original>
  16758. mocked.m_derefed[1]
  16759. </Original>
  16760. <Expanded>
  16761. true
  16762. </Expanded>
  16763. </Expression>
  16764. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16765. <Original>
  16766. mocked.m_derefed[2]
  16767. </Original>
  16768. <Expanded>
  16769. true
  16770. </Expanded>
  16771. </Expression>
  16772. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16773. <Original>
  16774. !(mocked.m_derefed[3])
  16775. </Original>
  16776. <Expanded>
  16777. !false
  16778. </Expanded>
  16779. </Expression>
  16780. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16781. <Original>
  16782. !(mocked.m_derefed[4])
  16783. </Original>
  16784. <Expanded>
  16785. !false
  16786. </Expanded>
  16787. </Expression>
  16788. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  16789. </Section>
  16790. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  16791. </Section>
  16792. <OverallResult success="true"/>
  16793. </TestCase>
  16794. <TestCase name="Usage of AnyMatch range matcher" tags="[matchers][quantifiers][templated]" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16795. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16796. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16797. <Original>
  16798. data, AnyMatch(SizeIs(5))
  16799. </Original>
  16800. <Expanded>
  16801. { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } any match has size == 5
  16802. </Expanded>
  16803. </Expression>
  16804. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16805. <Original>
  16806. data, !AnyMatch(Contains(0) &amp;&amp; Contains(10))
  16807. </Original>
  16808. <Expanded>
  16809. { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } not any match ( contains element 0 and contains element 10 )
  16810. </Expanded>
  16811. </Expression>
  16812. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  16813. </Section>
  16814. <Section name="Type requires ADL found begin and end" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16815. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16816. <Original>
  16817. needs_adl, AnyMatch( Predicate&lt;int>( []( int elem ) { return elem &lt; 3; } ) )
  16818. </Original>
  16819. <Expanded>
  16820. { 1, 2, 3, 4, 5 } any match matches undescribed predicate
  16821. </Expanded>
  16822. </Expression>
  16823. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16824. </Section>
  16825. <Section name="Shortcircuiting" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16826. <Section name="All are read" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16827. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16828. <Original>
  16829. mocked, !anyMatch
  16830. </Original>
  16831. <Expanded>
  16832. { 1, 2, 3, 4, 5 } not any match matches undescribed predicate
  16833. </Expanded>
  16834. </Expression>
  16835. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16836. <Original>
  16837. mocked.m_derefed[0]
  16838. </Original>
  16839. <Expanded>
  16840. true
  16841. </Expanded>
  16842. </Expression>
  16843. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16844. <Original>
  16845. mocked.m_derefed[1]
  16846. </Original>
  16847. <Expanded>
  16848. true
  16849. </Expanded>
  16850. </Expression>
  16851. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16852. <Original>
  16853. mocked.m_derefed[2]
  16854. </Original>
  16855. <Expanded>
  16856. true
  16857. </Expanded>
  16858. </Expression>
  16859. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16860. <Original>
  16861. mocked.m_derefed[3]
  16862. </Original>
  16863. <Expanded>
  16864. true
  16865. </Expanded>
  16866. </Expression>
  16867. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16868. <Original>
  16869. mocked.m_derefed[4]
  16870. </Original>
  16871. <Expanded>
  16872. true
  16873. </Expanded>
  16874. </Expression>
  16875. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  16876. </Section>
  16877. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  16878. </Section>
  16879. <Section name="Shortcircuiting" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16880. <Section name="Short-circuited" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16881. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16882. <Original>
  16883. mocked, anyMatch
  16884. </Original>
  16885. <Expanded>
  16886. { 1, 2, 3, 4, 5 } any match matches undescribed predicate
  16887. </Expanded>
  16888. </Expression>
  16889. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16890. <Original>
  16891. mocked.m_derefed[0]
  16892. </Original>
  16893. <Expanded>
  16894. true
  16895. </Expanded>
  16896. </Expression>
  16897. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16898. <Original>
  16899. !(mocked.m_derefed[1])
  16900. </Original>
  16901. <Expanded>
  16902. !false
  16903. </Expanded>
  16904. </Expression>
  16905. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16906. <Original>
  16907. !(mocked.m_derefed[2])
  16908. </Original>
  16909. <Expanded>
  16910. !false
  16911. </Expanded>
  16912. </Expression>
  16913. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16914. <Original>
  16915. !(mocked.m_derefed[3])
  16916. </Original>
  16917. <Expanded>
  16918. !false
  16919. </Expanded>
  16920. </Expression>
  16921. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16922. <Original>
  16923. !(mocked.m_derefed[4])
  16924. </Original>
  16925. <Expanded>
  16926. !false
  16927. </Expanded>
  16928. </Expression>
  16929. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  16930. </Section>
  16931. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  16932. </Section>
  16933. <OverallResult success="true"/>
  16934. </TestCase>
  16935. <TestCase name="Usage of AnyTrue range matcher" tags="[matchers][quantifiers][templated]" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16936. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16937. <Section name="All true evaluates to true" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16938. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16939. <Original>
  16940. data, AnyTrue()
  16941. </Original>
  16942. <Expanded>
  16943. { true, true, true, true, true } contains at least one true
  16944. </Expanded>
  16945. </Expression>
  16946. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16947. </Section>
  16948. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16949. </Section>
  16950. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16951. <Section name="Empty evaluates to false" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16952. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16953. <Original>
  16954. data, !AnyTrue()
  16955. </Original>
  16956. <Expanded>
  16957. { } not contains at least one true
  16958. </Expanded>
  16959. </Expression>
  16960. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16961. </Section>
  16962. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16963. </Section>
  16964. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16965. <Section name="One true evalutes to true" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16966. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16967. <Original>
  16968. data, AnyTrue()
  16969. </Original>
  16970. <Expanded>
  16971. { false, false, true, false, false } contains at least one true
  16972. </Expanded>
  16973. </Expression>
  16974. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16975. </Section>
  16976. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16977. </Section>
  16978. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16979. <Section name="All false evaluates to false" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16980. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16981. <Original>
  16982. data, !AnyTrue()
  16983. </Original>
  16984. <Expanded>
  16985. { false, false, false, false, false } not contains at least one true
  16986. </Expanded>
  16987. </Expression>
  16988. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16989. </Section>
  16990. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16991. </Section>
  16992. <Section name="Contained type is convertible to bool" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16993. <Section name="All true evaluates to true" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16994. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  16995. <Original>
  16996. data, AnyTrue()
  16997. </Original>
  16998. <Expanded>
  16999. { true, true, true, true, true } contains at least one true
  17000. </Expanded>
  17001. </Expression>
  17002. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17003. </Section>
  17004. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17005. </Section>
  17006. <Section name="Contained type is convertible to bool" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17007. <Section name="One true evalutes to true" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17008. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17009. <Original>
  17010. data, AnyTrue()
  17011. </Original>
  17012. <Expanded>
  17013. { false, false, true, false, false } contains at least one true
  17014. </Expanded>
  17015. </Expression>
  17016. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17017. </Section>
  17018. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17019. </Section>
  17020. <Section name="Contained type is convertible to bool" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17021. <Section name="All false evaluates to false" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17022. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17023. <Original>
  17024. data, !AnyTrue()
  17025. </Original>
  17026. <Expanded>
  17027. { false, false, false, false, false } not contains at least one true
  17028. </Expanded>
  17029. </Expression>
  17030. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17031. </Section>
  17032. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17033. </Section>
  17034. <Section name="Shortcircuiting" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17035. <Section name="All are read" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17036. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17037. <Original>
  17038. mocked, AnyTrue()
  17039. </Original>
  17040. <Expanded>
  17041. { false, false, false, false, true } contains at least one true
  17042. </Expanded>
  17043. </Expression>
  17044. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17045. <Original>
  17046. mocked.m_derefed[0]
  17047. </Original>
  17048. <Expanded>
  17049. true
  17050. </Expanded>
  17051. </Expression>
  17052. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17053. <Original>
  17054. mocked.m_derefed[1]
  17055. </Original>
  17056. <Expanded>
  17057. true
  17058. </Expanded>
  17059. </Expression>
  17060. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17061. <Original>
  17062. mocked.m_derefed[2]
  17063. </Original>
  17064. <Expanded>
  17065. true
  17066. </Expanded>
  17067. </Expression>
  17068. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17069. <Original>
  17070. mocked.m_derefed[3]
  17071. </Original>
  17072. <Expanded>
  17073. true
  17074. </Expanded>
  17075. </Expression>
  17076. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17077. <Original>
  17078. mocked.m_derefed[4]
  17079. </Original>
  17080. <Expanded>
  17081. true
  17082. </Expanded>
  17083. </Expression>
  17084. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  17085. </Section>
  17086. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  17087. </Section>
  17088. <Section name="Shortcircuiting" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17089. <Section name="Short-circuited" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17090. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17091. <Original>
  17092. mocked, AnyTrue()
  17093. </Original>
  17094. <Expanded>
  17095. { false, false, true, true, true } contains at least one true
  17096. </Expanded>
  17097. </Expression>
  17098. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17099. <Original>
  17100. mocked.m_derefed[0]
  17101. </Original>
  17102. <Expanded>
  17103. true
  17104. </Expanded>
  17105. </Expression>
  17106. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17107. <Original>
  17108. mocked.m_derefed[1]
  17109. </Original>
  17110. <Expanded>
  17111. true
  17112. </Expanded>
  17113. </Expression>
  17114. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17115. <Original>
  17116. mocked.m_derefed[2]
  17117. </Original>
  17118. <Expanded>
  17119. true
  17120. </Expanded>
  17121. </Expression>
  17122. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17123. <Original>
  17124. !(mocked.m_derefed[3])
  17125. </Original>
  17126. <Expanded>
  17127. !false
  17128. </Expanded>
  17129. </Expression>
  17130. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17131. <Original>
  17132. !(mocked.m_derefed[4])
  17133. </Original>
  17134. <Expanded>
  17135. !false
  17136. </Expanded>
  17137. </Expression>
  17138. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  17139. </Section>
  17140. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  17141. </Section>
  17142. <OverallResult success="true"/>
  17143. </TestCase>
  17144. <TestCase name="Usage of NoneMatch range matcher" tags="[matchers][quantifiers][templated]" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17145. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17146. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17147. <Original>
  17148. data, NoneMatch(SizeIs(6))
  17149. </Original>
  17150. <Expanded>
  17151. { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } none match has size == 6
  17152. </Expanded>
  17153. </Expression>
  17154. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17155. <Original>
  17156. data, !NoneMatch(Contains(0) &amp;&amp; Contains(1))
  17157. </Original>
  17158. <Expanded>
  17159. { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } not none match ( contains element 0 and contains element 1 )
  17160. </Expanded>
  17161. </Expression>
  17162. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  17163. </Section>
  17164. <Section name="Type requires ADL found begin and end" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17165. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17166. <Original>
  17167. needs_adl, NoneMatch( Predicate&lt;int>( []( int elem ) { return elem > 6; } ) )
  17168. </Original>
  17169. <Expanded>
  17170. { 1, 2, 3, 4, 5 } none match matches undescribed predicate
  17171. </Expanded>
  17172. </Expression>
  17173. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17174. </Section>
  17175. <Section name="Shortcircuiting" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17176. <Section name="All are read" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17177. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17178. <Original>
  17179. mocked, noneMatch
  17180. </Original>
  17181. <Expanded>
  17182. { 1, 2, 3, 4, 5 } none match matches undescribed predicate
  17183. </Expanded>
  17184. </Expression>
  17185. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17186. <Original>
  17187. mocked.m_derefed[0]
  17188. </Original>
  17189. <Expanded>
  17190. true
  17191. </Expanded>
  17192. </Expression>
  17193. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17194. <Original>
  17195. mocked.m_derefed[1]
  17196. </Original>
  17197. <Expanded>
  17198. true
  17199. </Expanded>
  17200. </Expression>
  17201. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17202. <Original>
  17203. mocked.m_derefed[2]
  17204. </Original>
  17205. <Expanded>
  17206. true
  17207. </Expanded>
  17208. </Expression>
  17209. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17210. <Original>
  17211. mocked.m_derefed[3]
  17212. </Original>
  17213. <Expanded>
  17214. true
  17215. </Expanded>
  17216. </Expression>
  17217. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17218. <Original>
  17219. mocked.m_derefed[4]
  17220. </Original>
  17221. <Expanded>
  17222. true
  17223. </Expanded>
  17224. </Expression>
  17225. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  17226. </Section>
  17227. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  17228. </Section>
  17229. <Section name="Shortcircuiting" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17230. <Section name="Short-circuited" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17231. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17232. <Original>
  17233. mocked, !noneMatch
  17234. </Original>
  17235. <Expanded>
  17236. { 1, 2, 3, 4, 5 } not none match matches undescribed predicate
  17237. </Expanded>
  17238. </Expression>
  17239. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17240. <Original>
  17241. mocked.m_derefed[0]
  17242. </Original>
  17243. <Expanded>
  17244. true
  17245. </Expanded>
  17246. </Expression>
  17247. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17248. <Original>
  17249. !(mocked.m_derefed[1])
  17250. </Original>
  17251. <Expanded>
  17252. !false
  17253. </Expanded>
  17254. </Expression>
  17255. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17256. <Original>
  17257. !(mocked.m_derefed[2])
  17258. </Original>
  17259. <Expanded>
  17260. !false
  17261. </Expanded>
  17262. </Expression>
  17263. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17264. <Original>
  17265. !(mocked.m_derefed[3])
  17266. </Original>
  17267. <Expanded>
  17268. !false
  17269. </Expanded>
  17270. </Expression>
  17271. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17272. <Original>
  17273. !(mocked.m_derefed[4])
  17274. </Original>
  17275. <Expanded>
  17276. !false
  17277. </Expanded>
  17278. </Expression>
  17279. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  17280. </Section>
  17281. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  17282. </Section>
  17283. <OverallResult success="true"/>
  17284. </TestCase>
  17285. <TestCase name="Usage of NoneTrue range matcher" tags="[matchers][quantifiers][templated]" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17286. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17287. <Section name="All true evaluates to false" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17288. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17289. <Original>
  17290. data, !NoneTrue()
  17291. </Original>
  17292. <Expanded>
  17293. { true, true, true, true, true } not contains no true
  17294. </Expanded>
  17295. </Expression>
  17296. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17297. </Section>
  17298. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17299. </Section>
  17300. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17301. <Section name="Empty evaluates to true" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17302. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17303. <Original>
  17304. data, NoneTrue()
  17305. </Original>
  17306. <Expanded>
  17307. { } contains no true
  17308. </Expanded>
  17309. </Expression>
  17310. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17311. </Section>
  17312. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17313. </Section>
  17314. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17315. <Section name="One true evalutes to false" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17316. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17317. <Original>
  17318. data, !NoneTrue()
  17319. </Original>
  17320. <Expanded>
  17321. { false, false, true, false, false } not contains no true
  17322. </Expanded>
  17323. </Expression>
  17324. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17325. </Section>
  17326. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17327. </Section>
  17328. <Section name="Basic usage" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17329. <Section name="All false evaluates to true" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17330. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17331. <Original>
  17332. data, NoneTrue()
  17333. </Original>
  17334. <Expanded>
  17335. { false, false, false, false, false } contains no true
  17336. </Expanded>
  17337. </Expression>
  17338. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17339. </Section>
  17340. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17341. </Section>
  17342. <Section name="Contained type is convertible to bool" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17343. <Section name="All true evaluates to false" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17344. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17345. <Original>
  17346. data, !NoneTrue()
  17347. </Original>
  17348. <Expanded>
  17349. { true, true, true, true, true } not contains no true
  17350. </Expanded>
  17351. </Expression>
  17352. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17353. </Section>
  17354. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17355. </Section>
  17356. <Section name="Contained type is convertible to bool" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17357. <Section name="One true evalutes to false" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17358. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17359. <Original>
  17360. data, !NoneTrue()
  17361. </Original>
  17362. <Expanded>
  17363. { false, false, true, false, false } not contains no true
  17364. </Expanded>
  17365. </Expression>
  17366. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17367. </Section>
  17368. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17369. </Section>
  17370. <Section name="Contained type is convertible to bool" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17371. <Section name="All false evaluates to true" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17372. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17373. <Original>
  17374. data, NoneTrue()
  17375. </Original>
  17376. <Expanded>
  17377. { false, false, false, false, false } contains no true
  17378. </Expanded>
  17379. </Expression>
  17380. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17381. </Section>
  17382. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17383. </Section>
  17384. <Section name="Shortcircuiting" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17385. <Section name="All are read" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17386. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17387. <Original>
  17388. mocked, NoneTrue()
  17389. </Original>
  17390. <Expanded>
  17391. { false, false, false, false, false } contains no true
  17392. </Expanded>
  17393. </Expression>
  17394. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17395. <Original>
  17396. mocked.m_derefed[0]
  17397. </Original>
  17398. <Expanded>
  17399. true
  17400. </Expanded>
  17401. </Expression>
  17402. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17403. <Original>
  17404. mocked.m_derefed[1]
  17405. </Original>
  17406. <Expanded>
  17407. true
  17408. </Expanded>
  17409. </Expression>
  17410. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17411. <Original>
  17412. mocked.m_derefed[2]
  17413. </Original>
  17414. <Expanded>
  17415. true
  17416. </Expanded>
  17417. </Expression>
  17418. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17419. <Original>
  17420. mocked.m_derefed[3]
  17421. </Original>
  17422. <Expanded>
  17423. true
  17424. </Expanded>
  17425. </Expression>
  17426. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17427. <Original>
  17428. mocked.m_derefed[4]
  17429. </Original>
  17430. <Expanded>
  17431. true
  17432. </Expanded>
  17433. </Expression>
  17434. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  17435. </Section>
  17436. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  17437. </Section>
  17438. <Section name="Shortcircuiting" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17439. <Section name="Short-circuited" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17440. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17441. <Original>
  17442. mocked, !NoneTrue()
  17443. </Original>
  17444. <Expanded>
  17445. { false, false, true, true, true } not contains no true
  17446. </Expanded>
  17447. </Expression>
  17448. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17449. <Original>
  17450. mocked.m_derefed[0]
  17451. </Original>
  17452. <Expanded>
  17453. true
  17454. </Expanded>
  17455. </Expression>
  17456. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17457. <Original>
  17458. mocked.m_derefed[1]
  17459. </Original>
  17460. <Expanded>
  17461. true
  17462. </Expanded>
  17463. </Expression>
  17464. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17465. <Original>
  17466. mocked.m_derefed[2]
  17467. </Original>
  17468. <Expanded>
  17469. true
  17470. </Expanded>
  17471. </Expression>
  17472. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17473. <Original>
  17474. !(mocked.m_derefed[3])
  17475. </Original>
  17476. <Expanded>
  17477. !false
  17478. </Expanded>
  17479. </Expression>
  17480. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17481. <Original>
  17482. !(mocked.m_derefed[4])
  17483. </Original>
  17484. <Expanded>
  17485. !false
  17486. </Expanded>
  17487. </Expression>
  17488. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  17489. </Section>
  17490. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  17491. </Section>
  17492. <OverallResult success="true"/>
  17493. </TestCase>
  17494. <TestCase name="Usage of the SizeIs range matcher" tags="[matchers][size][templated]" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17495. <Section name="Some with stdlib containers" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17496. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17497. <Original>
  17498. empty_vec, SizeIs(0)
  17499. </Original>
  17500. <Expanded>
  17501. { } has size == 0
  17502. </Expanded>
  17503. </Expression>
  17504. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17505. <Original>
  17506. empty_vec, !SizeIs(2)
  17507. </Original>
  17508. <Expanded>
  17509. { } not has size == 2
  17510. </Expanded>
  17511. </Expression>
  17512. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17513. <Original>
  17514. empty_vec, SizeIs(Lt(2))
  17515. </Original>
  17516. <Expanded>
  17517. { } size matches is less than 2
  17518. </Expanded>
  17519. </Expression>
  17520. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17521. <Original>
  17522. arr, SizeIs(2)
  17523. </Original>
  17524. <Expanded>
  17525. { 0, 0 } has size == 2
  17526. </Expanded>
  17527. </Expression>
  17528. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17529. <Original>
  17530. arr, SizeIs( Lt(3))
  17531. </Original>
  17532. <Expanded>
  17533. { 0, 0 } size matches is less than 3
  17534. </Expanded>
  17535. </Expression>
  17536. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17537. <Original>
  17538. arr, !SizeIs(!Lt(3))
  17539. </Original>
  17540. <Expanded>
  17541. { 0, 0 } not size matches not is less than 3
  17542. </Expanded>
  17543. </Expression>
  17544. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17545. <Original>
  17546. map, SizeIs(3)
  17547. </Original>
  17548. <Expanded>
  17549. { {?}, {?}, {?} } has size == 3
  17550. </Expanded>
  17551. </Expression>
  17552. <OverallResults successes="7" failures="0" expectedFailures="0"/>
  17553. </Section>
  17554. <Section name="Type requires ADL found size free function" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17555. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17556. <Original>
  17557. unrelated::ADL_size{}, SizeIs(12)
  17558. </Original>
  17559. <Expanded>
  17560. {?} has size == 12
  17561. </Expanded>
  17562. </Expression>
  17563. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17564. </Section>
  17565. <Section name="Type has size member" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17566. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/MatchersRanges.tests.cpp" >
  17567. <Original>
  17568. has_size{}, SizeIs(13)
  17569. </Original>
  17570. <Expanded>
  17571. {?} has size == 13
  17572. </Expanded>
  17573. </Expression>
  17574. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17575. </Section>
  17576. <OverallResult success="true"/>
  17577. </TestCase>
  17578. <TestCase name="Use a custom approx" tags="[Approx][custom]" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  17579. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  17580. <Original>
  17581. d == approx( 1.23 )
  17582. </Original>
  17583. <Expanded>
  17584. 1.23 == Approx( 1.23 )
  17585. </Expanded>
  17586. </Expression>
  17587. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  17588. <Original>
  17589. d == approx( 1.22 )
  17590. </Original>
  17591. <Expanded>
  17592. 1.23 == Approx( 1.22 )
  17593. </Expanded>
  17594. </Expression>
  17595. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  17596. <Original>
  17597. d == approx( 1.24 )
  17598. </Original>
  17599. <Expanded>
  17600. 1.23 == Approx( 1.24 )
  17601. </Expanded>
  17602. </Expression>
  17603. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  17604. <Original>
  17605. d != approx( 1.25 )
  17606. </Original>
  17607. <Expanded>
  17608. 1.23 != Approx( 1.25 )
  17609. </Expanded>
  17610. </Expression>
  17611. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  17612. <Original>
  17613. approx( d ) == 1.23
  17614. </Original>
  17615. <Expanded>
  17616. Approx( 1.23 ) == 1.23
  17617. </Expanded>
  17618. </Expression>
  17619. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  17620. <Original>
  17621. approx( d ) == 1.22
  17622. </Original>
  17623. <Expanded>
  17624. Approx( 1.23 ) == 1.22
  17625. </Expanded>
  17626. </Expression>
  17627. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  17628. <Original>
  17629. approx( d ) == 1.24
  17630. </Original>
  17631. <Expanded>
  17632. Approx( 1.23 ) == 1.24
  17633. </Expanded>
  17634. </Expression>
  17635. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Approx.tests.cpp" >
  17636. <Original>
  17637. approx( d ) != 1.25
  17638. </Original>
  17639. <Expanded>
  17640. Approx( 1.23 ) != 1.25
  17641. </Expanded>
  17642. </Expression>
  17643. <OverallResult success="true"/>
  17644. </TestCase>
  17645. <TestCase name="Variadic macros" tags="[sections][variadic]" filename="tests/<exe-name>/UsageTests/VariadicMacros.tests.cpp" >
  17646. <Section name="Section with one argument" filename="tests/<exe-name>/UsageTests/VariadicMacros.tests.cpp" >
  17647. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17648. </Section>
  17649. <OverallResult success="true"/>
  17650. </TestCase>
  17651. <TestCase name="Vector Approx matcher" tags="[approx][matchers][vector]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17652. <Section name="Empty vector is roughly equal to an empty vector" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17653. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17654. <Original>
  17655. empty, Approx( empty )
  17656. </Original>
  17657. <Expanded>
  17658. { } is approx: { }
  17659. </Expanded>
  17660. </Expression>
  17661. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17662. </Section>
  17663. <Section name="Vectors with elements" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17664. <Section name="A vector is approx equal to itself" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17665. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17666. <Original>
  17667. v1, Approx( v1 )
  17668. </Original>
  17669. <Expanded>
  17670. { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
  17671. </Expanded>
  17672. </Expression>
  17673. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17674. <Original>
  17675. v1, Approx&lt;double>( { 1., 2., 3. } )
  17676. </Original>
  17677. <Expanded>
  17678. { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
  17679. </Expanded>
  17680. </Expression>
  17681. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  17682. </Section>
  17683. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  17684. </Section>
  17685. <Section name="Vectors with elements" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17686. <Section name="Different length" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17687. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17688. <Original>
  17689. v1, !Approx( temp )
  17690. </Original>
  17691. <Expanded>
  17692. { 1.0, 2.0, 3.0 } not is approx: { 1.0, 2.0, 3.0, 4.0 }
  17693. </Expanded>
  17694. </Expression>
  17695. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17696. </Section>
  17697. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17698. </Section>
  17699. <Section name="Vectors with elements" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17700. <Section name="Same length, different elements" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17701. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17702. <Original>
  17703. v1, !Approx( v2 )
  17704. </Original>
  17705. <Expanded>
  17706. { 1.0, 2.0, 3.0 } not is approx: { 1.5, 2.5, 3.5 }
  17707. </Expanded>
  17708. </Expression>
  17709. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17710. <Original>
  17711. v1, Approx( v2 ).margin( 0.5 )
  17712. </Original>
  17713. <Expanded>
  17714. { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
  17715. </Expanded>
  17716. </Expression>
  17717. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17718. <Original>
  17719. v1, Approx( v2 ).epsilon( 0.5 )
  17720. </Original>
  17721. <Expanded>
  17722. { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
  17723. </Expanded>
  17724. </Expression>
  17725. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17726. <Original>
  17727. v1, Approx( v2 ).epsilon( 0.1 ).scale( 500 )
  17728. </Original>
  17729. <Expanded>
  17730. { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
  17731. </Expanded>
  17732. </Expression>
  17733. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  17734. </Section>
  17735. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  17736. </Section>
  17737. <OverallResult success="true"/>
  17738. </TestCase>
  17739. <TestCase name="Vector Approx matcher -- failing" tags="[.][approx][failing][matchers][vector]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17740. <Section name="Empty and non empty vectors are not approx equal" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17741. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17742. <Original>
  17743. empty, Approx( t1 )
  17744. </Original>
  17745. <Expanded>
  17746. { } is approx: { 1.0, 2.0 }
  17747. </Expanded>
  17748. </Expression>
  17749. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  17750. </Section>
  17751. <Section name="Just different vectors" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17752. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17753. <Original>
  17754. v1, Approx( v2 )
  17755. </Original>
  17756. <Expanded>
  17757. { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 }
  17758. </Expanded>
  17759. </Expression>
  17760. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  17761. </Section>
  17762. <OverallResult success="false"/>
  17763. </TestCase>
  17764. <TestCase name="Vector matchers" tags="[matchers][vector]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17765. <Section name="Contains (element)" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17766. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17767. <Original>
  17768. v, VectorContains( 1 )
  17769. </Original>
  17770. <Expanded>
  17771. { 1, 2, 3 } Contains: 1
  17772. </Expanded>
  17773. </Expression>
  17774. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17775. <Original>
  17776. v, VectorContains( 2 )
  17777. </Original>
  17778. <Expanded>
  17779. { 1, 2, 3 } Contains: 2
  17780. </Expanded>
  17781. </Expression>
  17782. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17783. <Original>
  17784. v5, ( VectorContains&lt;int, CustomAllocator&lt;int>>( 2 ) )
  17785. </Original>
  17786. <Expanded>
  17787. { 1, 2, 3 } Contains: 2
  17788. </Expanded>
  17789. </Expression>
  17790. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  17791. </Section>
  17792. <Section name="Contains (vector)" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17793. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17794. <Original>
  17795. v, Contains( v2 )
  17796. </Original>
  17797. <Expanded>
  17798. { 1, 2, 3 } Contains: { 1, 2 }
  17799. </Expanded>
  17800. </Expression>
  17801. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17802. <Original>
  17803. v, Contains&lt;int>( { 1, 2 } )
  17804. </Original>
  17805. <Expanded>
  17806. { 1, 2, 3 } Contains: { 1, 2 }
  17807. </Expanded>
  17808. </Expression>
  17809. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17810. <Original>
  17811. v5, ( Contains&lt;int, std::allocator&lt;int>, CustomAllocator&lt;int>>( v2 ) )
  17812. </Original>
  17813. <Expanded>
  17814. { 1, 2, 3 } Contains: { 1, 2 }
  17815. </Expanded>
  17816. </Expression>
  17817. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17818. <Original>
  17819. v, Contains( v2 )
  17820. </Original>
  17821. <Expanded>
  17822. { 1, 2, 3 } Contains: { 1, 2, 3 }
  17823. </Expanded>
  17824. </Expression>
  17825. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17826. <Original>
  17827. v, Contains( empty )
  17828. </Original>
  17829. <Expanded>
  17830. { 1, 2, 3 } Contains: { }
  17831. </Expanded>
  17832. </Expression>
  17833. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17834. <Original>
  17835. empty, Contains( empty )
  17836. </Original>
  17837. <Expanded>
  17838. { } Contains: { }
  17839. </Expanded>
  17840. </Expression>
  17841. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17842. <Original>
  17843. v5, ( Contains&lt;int, std::allocator&lt;int>, CustomAllocator&lt;int>>( v2 ) )
  17844. </Original>
  17845. <Expanded>
  17846. { 1, 2, 3 } Contains: { 1, 2, 3 }
  17847. </Expanded>
  17848. </Expression>
  17849. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17850. <Original>
  17851. v5, Contains( v6 )
  17852. </Original>
  17853. <Expanded>
  17854. { 1, 2, 3 } Contains: { 1, 2 }
  17855. </Expanded>
  17856. </Expression>
  17857. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  17858. </Section>
  17859. <Section name="Contains (element), composed" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17860. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17861. <Original>
  17862. v, VectorContains( 1 ) &amp;&amp; VectorContains( 2 )
  17863. </Original>
  17864. <Expanded>
  17865. { 1, 2, 3 } ( Contains: 1 and Contains: 2 )
  17866. </Expanded>
  17867. </Expression>
  17868. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  17869. </Section>
  17870. <Section name="Equals" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17871. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17872. <Original>
  17873. v, Equals( v )
  17874. </Original>
  17875. <Expanded>
  17876. { 1, 2, 3 } Equals: { 1, 2, 3 }
  17877. </Expanded>
  17878. </Expression>
  17879. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17880. <Original>
  17881. empty, Equals( empty )
  17882. </Original>
  17883. <Expanded>
  17884. { } Equals: { }
  17885. </Expanded>
  17886. </Expression>
  17887. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17888. <Original>
  17889. v, Equals&lt;int>( { 1, 2, 3 } )
  17890. </Original>
  17891. <Expanded>
  17892. { 1, 2, 3 } Equals: { 1, 2, 3 }
  17893. </Expanded>
  17894. </Expression>
  17895. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17896. <Original>
  17897. v, Equals( v2 )
  17898. </Original>
  17899. <Expanded>
  17900. { 1, 2, 3 } Equals: { 1, 2, 3 }
  17901. </Expanded>
  17902. </Expression>
  17903. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17904. <Original>
  17905. v5, ( Equals&lt;int, std::allocator&lt;int>, CustomAllocator&lt;int>>( v2 ) )
  17906. </Original>
  17907. <Expanded>
  17908. { 1, 2, 3 } Equals: { 1, 2, 3 }
  17909. </Expanded>
  17910. </Expression>
  17911. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17912. <Original>
  17913. v5, Equals( v6 )
  17914. </Original>
  17915. <Expanded>
  17916. { 1, 2, 3 } Equals: { 1, 2, 3 }
  17917. </Expanded>
  17918. </Expression>
  17919. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  17920. </Section>
  17921. <Section name="UnorderedEquals" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17922. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17923. <Original>
  17924. v, UnorderedEquals( v )
  17925. </Original>
  17926. <Expanded>
  17927. { 1, 2, 3 } UnorderedEquals: { 1, 2, 3 }
  17928. </Expanded>
  17929. </Expression>
  17930. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17931. <Original>
  17932. v, UnorderedEquals&lt;int>( { 3, 2, 1 } )
  17933. </Original>
  17934. <Expanded>
  17935. { 1, 2, 3 } UnorderedEquals: { 3, 2, 1 }
  17936. </Expanded>
  17937. </Expression>
  17938. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17939. <Original>
  17940. empty, UnorderedEquals( empty )
  17941. </Original>
  17942. <Expanded>
  17943. { } UnorderedEquals: { }
  17944. </Expanded>
  17945. </Expression>
  17946. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17947. <Original>
  17948. permuted, UnorderedEquals( v )
  17949. </Original>
  17950. <Expanded>
  17951. { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
  17952. </Expanded>
  17953. </Expression>
  17954. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17955. <Original>
  17956. permuted, UnorderedEquals( v )
  17957. </Original>
  17958. <Expanded>
  17959. { 2, 3, 1 } UnorderedEquals: { 1, 2, 3 }
  17960. </Expanded>
  17961. </Expression>
  17962. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17963. <Original>
  17964. v5, ( UnorderedEquals&lt;int, std::allocator&lt;int>, CustomAllocator&lt;int>>( permuted ) )
  17965. </Original>
  17966. <Expanded>
  17967. { 1, 2, 3 } UnorderedEquals: { 2, 3, 1 }
  17968. </Expanded>
  17969. </Expression>
  17970. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17971. <Original>
  17972. v5_permuted, UnorderedEquals( v5 )
  17973. </Original>
  17974. <Expanded>
  17975. { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
  17976. </Expanded>
  17977. </Expression>
  17978. <OverallResults successes="7" failures="0" expectedFailures="0"/>
  17979. </Section>
  17980. <OverallResult success="true"/>
  17981. </TestCase>
  17982. <TestCase name="Vector matchers that fail" tags="[.][failing][matchers][vector]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17983. <Section name="Contains (element)" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17984. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17985. <Original>
  17986. v, VectorContains( -1 )
  17987. </Original>
  17988. <Expanded>
  17989. { 1, 2, 3 } Contains: -1
  17990. </Expanded>
  17991. </Expression>
  17992. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  17993. <Original>
  17994. empty, VectorContains( 1 )
  17995. </Original>
  17996. <Expanded>
  17997. { } Contains: 1
  17998. </Expanded>
  17999. </Expression>
  18000. <OverallResults successes="0" failures="2" expectedFailures="0"/>
  18001. </Section>
  18002. <Section name="Contains (vector)" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  18003. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  18004. <Original>
  18005. empty, Contains( v )
  18006. </Original>
  18007. <Expanded>
  18008. { } Contains: { 1, 2, 3 }
  18009. </Expanded>
  18010. </Expression>
  18011. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  18012. <Original>
  18013. v, Contains( v2 )
  18014. </Original>
  18015. <Expanded>
  18016. { 1, 2, 3 } Contains: { 1, 2, 4 }
  18017. </Expanded>
  18018. </Expression>
  18019. <OverallResults successes="0" failures="2" expectedFailures="0"/>
  18020. </Section>
  18021. <Section name="Equals" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  18022. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  18023. <Original>
  18024. v, Equals( v2 )
  18025. </Original>
  18026. <Expanded>
  18027. { 1, 2, 3 } Equals: { 1, 2 }
  18028. </Expanded>
  18029. </Expression>
  18030. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  18031. <Original>
  18032. v2, Equals( v )
  18033. </Original>
  18034. <Expanded>
  18035. { 1, 2 } Equals: { 1, 2, 3 }
  18036. </Expanded>
  18037. </Expression>
  18038. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  18039. <Original>
  18040. empty, Equals( v )
  18041. </Original>
  18042. <Expanded>
  18043. { } Equals: { 1, 2, 3 }
  18044. </Expanded>
  18045. </Expression>
  18046. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  18047. <Original>
  18048. v, Equals( empty )
  18049. </Original>
  18050. <Expanded>
  18051. { 1, 2, 3 } Equals: { }
  18052. </Expanded>
  18053. </Expression>
  18054. <OverallResults successes="0" failures="4" expectedFailures="0"/>
  18055. </Section>
  18056. <Section name="UnorderedEquals" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  18057. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  18058. <Original>
  18059. v, UnorderedEquals( empty )
  18060. </Original>
  18061. <Expanded>
  18062. { 1, 2, 3 } UnorderedEquals: { }
  18063. </Expanded>
  18064. </Expression>
  18065. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  18066. <Original>
  18067. empty, UnorderedEquals( v )
  18068. </Original>
  18069. <Expanded>
  18070. { } UnorderedEquals: { 1, 2, 3 }
  18071. </Expanded>
  18072. </Expression>
  18073. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  18074. <Original>
  18075. permuted, UnorderedEquals( v )
  18076. </Original>
  18077. <Expanded>
  18078. { 1, 3 } UnorderedEquals: { 1, 2, 3 }
  18079. </Expanded>
  18080. </Expression>
  18081. <Expression success="false" type="CHECK_THAT" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" >
  18082. <Original>
  18083. permuted, UnorderedEquals( v )
  18084. </Original>
  18085. <Expanded>
  18086. { 3, 1 } UnorderedEquals: { 1, 2, 3 }
  18087. </Expanded>
  18088. </Expression>
  18089. <OverallResults successes="0" failures="4" expectedFailures="0"/>
  18090. </Section>
  18091. <OverallResult success="false"/>
  18092. </TestCase>
  18093. <TestCase name="When checked exceptions are thrown they can be expected or unexpected" tags="[!throws]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18094. <Expression success="true" type="REQUIRE_THROWS_AS" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18095. <Original>
  18096. thisThrows(), std::domain_error
  18097. </Original>
  18098. <Expanded>
  18099. thisThrows(), std::domain_error
  18100. </Expanded>
  18101. </Expression>
  18102. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18103. <Original>
  18104. thisDoesntThrow()
  18105. </Original>
  18106. <Expanded>
  18107. thisDoesntThrow()
  18108. </Expanded>
  18109. </Expression>
  18110. <Expression success="true" type="REQUIRE_THROWS" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18111. <Original>
  18112. thisThrows()
  18113. </Original>
  18114. <Expanded>
  18115. thisThrows()
  18116. </Expanded>
  18117. </Expression>
  18118. <OverallResult success="true"/>
  18119. </TestCase>
  18120. <TestCase name="When unchecked exceptions are thrown directly they are always failures" tags="[!throws][.][failing]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18121. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18122. unexpected exception
  18123. </Exception>
  18124. <OverallResult success="false"/>
  18125. </TestCase>
  18126. <TestCase name="When unchecked exceptions are thrown during a CHECK the test should continue" tags="[!throws][.][failing]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18127. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18128. <Original>
  18129. thisThrows() == 0
  18130. </Original>
  18131. <Expanded>
  18132. thisThrows() == 0
  18133. </Expanded>
  18134. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18135. expected exception
  18136. </Exception>
  18137. </Expression>
  18138. <OverallResult success="false"/>
  18139. </TestCase>
  18140. <TestCase name="When unchecked exceptions are thrown during a REQUIRE the test should abort fail" tags="[!throws][.][failing]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18141. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18142. <Original>
  18143. thisThrows() == 0
  18144. </Original>
  18145. <Expanded>
  18146. thisThrows() == 0
  18147. </Expanded>
  18148. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18149. expected exception
  18150. </Exception>
  18151. </Expression>
  18152. <OverallResult success="false"/>
  18153. </TestCase>
  18154. <TestCase name="When unchecked exceptions are thrown from functions they are always failures" tags="[!throws][.][failing]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18155. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18156. <Original>
  18157. thisThrows() == 0
  18158. </Original>
  18159. <Expanded>
  18160. thisThrows() == 0
  18161. </Expanded>
  18162. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18163. expected exception
  18164. </Exception>
  18165. </Expression>
  18166. <OverallResult success="false"/>
  18167. </TestCase>
  18168. <TestCase name="When unchecked exceptions are thrown from sections they are always failures" tags="[!throws][.][failing]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18169. <Section name="section name" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18170. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18171. unexpected exception
  18172. </Exception>
  18173. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  18174. </Section>
  18175. <OverallResult success="false"/>
  18176. </TestCase>
  18177. <TestCase name="When unchecked exceptions are thrown, but caught, they do not affect the test" tags="[!throws]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  18178. <OverallResult success="false"/>
  18179. </TestCase>
  18180. <TestCase name="X/level/0/a" tags="[Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  18181. <OverallResult success="true"/>
  18182. </TestCase>
  18183. <TestCase name="X/level/0/b" tags="[fizz][Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  18184. <OverallResult success="true"/>
  18185. </TestCase>
  18186. <TestCase name="X/level/1/a" tags="[Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  18187. <OverallResult success="true"/>
  18188. </TestCase>
  18189. <TestCase name="X/level/1/b" tags="[Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  18190. <OverallResult success="true"/>
  18191. </TestCase>
  18192. <TestCase name="XmlEncode" tags="[XML]" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18193. <Section name="normal string" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18194. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18195. <Original>
  18196. encode( "normal string" ) == "normal string"
  18197. </Original>
  18198. <Expanded>
  18199. "normal string" == "normal string"
  18200. </Expanded>
  18201. </Expression>
  18202. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  18203. </Section>
  18204. <Section name="empty string" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18205. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18206. <Original>
  18207. encode( "" ) == ""
  18208. </Original>
  18209. <Expanded>
  18210. "" == ""
  18211. </Expanded>
  18212. </Expression>
  18213. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  18214. </Section>
  18215. <Section name="string with ampersand" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18216. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18217. <Original>
  18218. encode( "smith &amp; jones" ) == "smith &amp;amp; jones"
  18219. </Original>
  18220. <Expanded>
  18221. "smith &amp;amp; jones" == "smith &amp;amp; jones"
  18222. </Expanded>
  18223. </Expression>
  18224. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  18225. </Section>
  18226. <Section name="string with less-than" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18227. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18228. <Original>
  18229. encode( "smith &lt; jones" ) == "smith &amp;lt; jones"
  18230. </Original>
  18231. <Expanded>
  18232. "smith &amp;lt; jones" == "smith &amp;lt; jones"
  18233. </Expanded>
  18234. </Expression>
  18235. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  18236. </Section>
  18237. <Section name="string with greater-than" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18238. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18239. <Original>
  18240. encode( "smith > jones" ) == "smith > jones"
  18241. </Original>
  18242. <Expanded>
  18243. "smith > jones" == "smith > jones"
  18244. </Expanded>
  18245. </Expression>
  18246. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18247. <Original>
  18248. encode( "smith ]]&gt; jones" ) == "smith ]]&amp;gt; jones"
  18249. </Original>
  18250. <Expanded>
  18251. "smith ]]&amp;gt; jones"
  18252. ==
  18253. "smith ]]&amp;gt; jones"
  18254. </Expanded>
  18255. </Expression>
  18256. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  18257. </Section>
  18258. <Section name="string with quotes" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18259. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18260. <Original>
  18261. encode( stringWithQuotes ) == stringWithQuotes
  18262. </Original>
  18263. <Expanded>
  18264. "don't "quote" me on that"
  18265. ==
  18266. "don't "quote" me on that"
  18267. </Expanded>
  18268. </Expression>
  18269. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18270. <Original>
  18271. encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't &amp;quot;quote&amp;quot; me on that"
  18272. </Original>
  18273. <Expanded>
  18274. "don't &amp;quot;quote&amp;quot; me on that"
  18275. ==
  18276. "don't &amp;quot;quote&amp;quot; me on that"
  18277. </Expanded>
  18278. </Expression>
  18279. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  18280. </Section>
  18281. <Section name="string with control char (1)" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18282. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18283. <Original>
  18284. encode( "[\x01]" ) == "[\\x01]"
  18285. </Original>
  18286. <Expanded>
  18287. "[\x01]" == "[\x01]"
  18288. </Expanded>
  18289. </Expression>
  18290. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  18291. </Section>
  18292. <Section name="string with control char (x7F)" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18293. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18294. <Original>
  18295. encode( "[\x7F]" ) == "[\\x7F]"
  18296. </Original>
  18297. <Expanded>
  18298. "[\x7F]" == "[\x7F]"
  18299. </Expanded>
  18300. </Expression>
  18301. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  18302. </Section>
  18303. <OverallResult success="true"/>
  18304. </TestCase>
  18305. <TestCase name="XmlWriter writes boolean attributes as true/false" tags="[XML][XmlWriter]" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18306. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  18307. <Original>
  18308. stream.str(), ContainsSubstring(R"(attr1="true")") &amp;&amp; ContainsSubstring(R"(attr2="false")")
  18309. </Original>
  18310. <Expanded>
  18311. "&lt;?xml version="1.0" encoding="UTF-8"?>
  18312. &lt;Element1 attr1="true" attr2="false"/>
  18313. " ( contains: "attr1="true"" and contains: "attr2="false"" )
  18314. </Expanded>
  18315. </Expression>
  18316. <OverallResult success="true"/>
  18317. </TestCase>
  18318. <TestCase name="analyse no analysis" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18319. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18320. <Original>
  18321. analysis.mean.point.count() == 23
  18322. </Original>
  18323. <Expanded>
  18324. 23.0 == 23
  18325. </Expanded>
  18326. </Expression>
  18327. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18328. <Original>
  18329. analysis.mean.lower_bound.count() == 23
  18330. </Original>
  18331. <Expanded>
  18332. 23.0 == 23
  18333. </Expanded>
  18334. </Expression>
  18335. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18336. <Original>
  18337. analysis.mean.upper_bound.count() == 23
  18338. </Original>
  18339. <Expanded>
  18340. 23.0 == 23
  18341. </Expanded>
  18342. </Expression>
  18343. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18344. <Original>
  18345. analysis.standard_deviation.point.count() == 0
  18346. </Original>
  18347. <Expanded>
  18348. 0.0 == 0
  18349. </Expanded>
  18350. </Expression>
  18351. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18352. <Original>
  18353. analysis.standard_deviation.lower_bound.count() == 0
  18354. </Original>
  18355. <Expanded>
  18356. 0.0 == 0
  18357. </Expanded>
  18358. </Expression>
  18359. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18360. <Original>
  18361. analysis.standard_deviation.upper_bound.count() == 0
  18362. </Original>
  18363. <Expanded>
  18364. 0.0 == 0
  18365. </Expanded>
  18366. </Expression>
  18367. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18368. <Original>
  18369. analysis.outliers.total() == 0
  18370. </Original>
  18371. <Expanded>
  18372. 0 == 0
  18373. </Expanded>
  18374. </Expression>
  18375. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18376. <Original>
  18377. analysis.outliers.low_mild == 0
  18378. </Original>
  18379. <Expanded>
  18380. 0 == 0
  18381. </Expanded>
  18382. </Expression>
  18383. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18384. <Original>
  18385. analysis.outliers.low_severe == 0
  18386. </Original>
  18387. <Expanded>
  18388. 0 == 0
  18389. </Expanded>
  18390. </Expression>
  18391. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18392. <Original>
  18393. analysis.outliers.high_mild == 0
  18394. </Original>
  18395. <Expanded>
  18396. 0 == 0
  18397. </Expanded>
  18398. </Expression>
  18399. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18400. <Original>
  18401. analysis.outliers.high_severe == 0
  18402. </Original>
  18403. <Expanded>
  18404. 0 == 0
  18405. </Expanded>
  18406. </Expression>
  18407. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18408. <Original>
  18409. analysis.outliers.samples_seen == 0
  18410. </Original>
  18411. <Expanded>
  18412. 0 == 0
  18413. </Expanded>
  18414. </Expression>
  18415. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18416. <Original>
  18417. analysis.outlier_variance == 0
  18418. </Original>
  18419. <Expanded>
  18420. 0.0 == 0
  18421. </Expanded>
  18422. </Expression>
  18423. <OverallResult success="true"/>
  18424. </TestCase>
  18425. <TestCase name="array&lt;int, N> -> toString" tags="[array][containers][toString]" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  18426. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  18427. <Original>
  18428. Catch::Detail::stringify( empty ) == "{ }"
  18429. </Original>
  18430. <Expanded>
  18431. "{ }" == "{ }"
  18432. </Expanded>
  18433. </Expression>
  18434. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  18435. <Original>
  18436. Catch::Detail::stringify( oneValue ) == "{ 42 }"
  18437. </Original>
  18438. <Expanded>
  18439. "{ 42 }" == "{ 42 }"
  18440. </Expanded>
  18441. </Expression>
  18442. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  18443. <Original>
  18444. Catch::Detail::stringify( twoValues ) == "{ 42, 250 }"
  18445. </Original>
  18446. <Expanded>
  18447. "{ 42, 250 }" == "{ 42, 250 }"
  18448. </Expanded>
  18449. </Expression>
  18450. <OverallResult success="true"/>
  18451. </TestCase>
  18452. <TestCase name="benchmark function call" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18453. <Section name="without chronometer" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18454. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18455. <Original>
  18456. model.started == 1
  18457. </Original>
  18458. <Expanded>
  18459. 1 == 1
  18460. </Expanded>
  18461. </Expression>
  18462. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18463. <Original>
  18464. model.finished == 0
  18465. </Original>
  18466. <Expanded>
  18467. 0 == 0
  18468. </Expanded>
  18469. </Expression>
  18470. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18471. <Original>
  18472. model.started == 1
  18473. </Original>
  18474. <Expanded>
  18475. 1 == 1
  18476. </Expanded>
  18477. </Expression>
  18478. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18479. <Original>
  18480. model.finished == 1
  18481. </Original>
  18482. <Expanded>
  18483. 1 == 1
  18484. </Expanded>
  18485. </Expression>
  18486. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18487. <Original>
  18488. called == 1
  18489. </Original>
  18490. <Expanded>
  18491. 1 == 1
  18492. </Expanded>
  18493. </Expression>
  18494. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  18495. </Section>
  18496. <Section name="with chronometer" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18497. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18498. <Original>
  18499. model.started == 0
  18500. </Original>
  18501. <Expanded>
  18502. 0 == 0
  18503. </Expanded>
  18504. </Expression>
  18505. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18506. <Original>
  18507. model.finished == 0
  18508. </Original>
  18509. <Expanded>
  18510. 0 == 0
  18511. </Expanded>
  18512. </Expression>
  18513. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18514. <Original>
  18515. model.started == 0
  18516. </Original>
  18517. <Expanded>
  18518. 0 == 0
  18519. </Expanded>
  18520. </Expression>
  18521. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18522. <Original>
  18523. model.finished == 0
  18524. </Original>
  18525. <Expanded>
  18526. 0 == 0
  18527. </Expanded>
  18528. </Expression>
  18529. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18530. <Original>
  18531. called == 1
  18532. </Original>
  18533. <Expanded>
  18534. 1 == 1
  18535. </Expanded>
  18536. </Expression>
  18537. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  18538. </Section>
  18539. <OverallResult success="true"/>
  18540. </TestCase>
  18541. <TestCase name="boolean member" tags="[Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  18542. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  18543. <Original>
  18544. obj.prop != 0
  18545. </Original>
  18546. <Expanded>
  18547. 0x<hex digits> != 0
  18548. </Expanded>
  18549. </Expression>
  18550. <OverallResult success="true"/>
  18551. </TestCase>
  18552. <TestCase name="checkedElse" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  18553. <Expression success="true" type="CHECKED_ELSE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  18554. <Original>
  18555. flag
  18556. </Original>
  18557. <Expanded>
  18558. true
  18559. </Expanded>
  18560. </Expression>
  18561. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  18562. <Original>
  18563. testCheckedElse( true )
  18564. </Original>
  18565. <Expanded>
  18566. true
  18567. </Expanded>
  18568. </Expression>
  18569. <OverallResult success="true"/>
  18570. </TestCase>
  18571. <TestCase name="checkedElse, failing" tags="[.][failing]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  18572. <Expression success="false" type="CHECKED_ELSE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  18573. <Original>
  18574. flag
  18575. </Original>
  18576. <Expanded>
  18577. false
  18578. </Expanded>
  18579. </Expression>
  18580. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  18581. <Original>
  18582. testCheckedElse( false )
  18583. </Original>
  18584. <Expanded>
  18585. false
  18586. </Expanded>
  18587. </Expression>
  18588. <OverallResult success="false"/>
  18589. </TestCase>
  18590. <TestCase name="checkedIf" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  18591. <Expression success="true" type="CHECKED_IF" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  18592. <Original>
  18593. flag
  18594. </Original>
  18595. <Expanded>
  18596. true
  18597. </Expanded>
  18598. </Expression>
  18599. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  18600. <Original>
  18601. testCheckedIf( true )
  18602. </Original>
  18603. <Expanded>
  18604. true
  18605. </Expanded>
  18606. </Expression>
  18607. <OverallResult success="true"/>
  18608. </TestCase>
  18609. <TestCase name="checkedIf, failing" tags="[.][failing]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  18610. <Expression success="false" type="CHECKED_IF" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  18611. <Original>
  18612. flag
  18613. </Original>
  18614. <Expanded>
  18615. false
  18616. </Expanded>
  18617. </Expression>
  18618. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  18619. <Original>
  18620. testCheckedIf( false )
  18621. </Original>
  18622. <Expanded>
  18623. false
  18624. </Expanded>
  18625. </Expression>
  18626. <OverallResult success="false"/>
  18627. </TestCase>
  18628. <TestCase name="classify_outliers" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18629. <Section name="none" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18630. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18631. <Original>
  18632. o.samples_seen == static_cast&lt;int>(x.size())
  18633. </Original>
  18634. <Expanded>
  18635. 6 == 6
  18636. </Expanded>
  18637. </Expression>
  18638. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18639. <Original>
  18640. o.low_severe == los
  18641. </Original>
  18642. <Expanded>
  18643. 0 == 0
  18644. </Expanded>
  18645. </Expression>
  18646. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18647. <Original>
  18648. o.low_mild == lom
  18649. </Original>
  18650. <Expanded>
  18651. 0 == 0
  18652. </Expanded>
  18653. </Expression>
  18654. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18655. <Original>
  18656. o.high_mild == him
  18657. </Original>
  18658. <Expanded>
  18659. 0 == 0
  18660. </Expanded>
  18661. </Expression>
  18662. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18663. <Original>
  18664. o.high_severe == his
  18665. </Original>
  18666. <Expanded>
  18667. 0 == 0
  18668. </Expanded>
  18669. </Expression>
  18670. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18671. <Original>
  18672. o.total() == los + lom + him + his
  18673. </Original>
  18674. <Expanded>
  18675. 0 == 0
  18676. </Expanded>
  18677. </Expression>
  18678. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  18679. </Section>
  18680. <Section name="low severe" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18681. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18682. <Original>
  18683. o.samples_seen == static_cast&lt;int>(x.size())
  18684. </Original>
  18685. <Expanded>
  18686. 6 == 6
  18687. </Expanded>
  18688. </Expression>
  18689. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18690. <Original>
  18691. o.low_severe == los
  18692. </Original>
  18693. <Expanded>
  18694. 1 == 1
  18695. </Expanded>
  18696. </Expression>
  18697. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18698. <Original>
  18699. o.low_mild == lom
  18700. </Original>
  18701. <Expanded>
  18702. 0 == 0
  18703. </Expanded>
  18704. </Expression>
  18705. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18706. <Original>
  18707. o.high_mild == him
  18708. </Original>
  18709. <Expanded>
  18710. 0 == 0
  18711. </Expanded>
  18712. </Expression>
  18713. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18714. <Original>
  18715. o.high_severe == his
  18716. </Original>
  18717. <Expanded>
  18718. 0 == 0
  18719. </Expanded>
  18720. </Expression>
  18721. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18722. <Original>
  18723. o.total() == los + lom + him + his
  18724. </Original>
  18725. <Expanded>
  18726. 1 == 1
  18727. </Expanded>
  18728. </Expression>
  18729. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  18730. </Section>
  18731. <Section name="low mild" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18732. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18733. <Original>
  18734. o.samples_seen == static_cast&lt;int>(x.size())
  18735. </Original>
  18736. <Expanded>
  18737. 6 == 6
  18738. </Expanded>
  18739. </Expression>
  18740. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18741. <Original>
  18742. o.low_severe == los
  18743. </Original>
  18744. <Expanded>
  18745. 0 == 0
  18746. </Expanded>
  18747. </Expression>
  18748. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18749. <Original>
  18750. o.low_mild == lom
  18751. </Original>
  18752. <Expanded>
  18753. 1 == 1
  18754. </Expanded>
  18755. </Expression>
  18756. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18757. <Original>
  18758. o.high_mild == him
  18759. </Original>
  18760. <Expanded>
  18761. 0 == 0
  18762. </Expanded>
  18763. </Expression>
  18764. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18765. <Original>
  18766. o.high_severe == his
  18767. </Original>
  18768. <Expanded>
  18769. 0 == 0
  18770. </Expanded>
  18771. </Expression>
  18772. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18773. <Original>
  18774. o.total() == los + lom + him + his
  18775. </Original>
  18776. <Expanded>
  18777. 1 == 1
  18778. </Expanded>
  18779. </Expression>
  18780. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  18781. </Section>
  18782. <Section name="high mild" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18783. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18784. <Original>
  18785. o.samples_seen == static_cast&lt;int>(x.size())
  18786. </Original>
  18787. <Expanded>
  18788. 6 == 6
  18789. </Expanded>
  18790. </Expression>
  18791. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18792. <Original>
  18793. o.low_severe == los
  18794. </Original>
  18795. <Expanded>
  18796. 0 == 0
  18797. </Expanded>
  18798. </Expression>
  18799. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18800. <Original>
  18801. o.low_mild == lom
  18802. </Original>
  18803. <Expanded>
  18804. 0 == 0
  18805. </Expanded>
  18806. </Expression>
  18807. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18808. <Original>
  18809. o.high_mild == him
  18810. </Original>
  18811. <Expanded>
  18812. 1 == 1
  18813. </Expanded>
  18814. </Expression>
  18815. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18816. <Original>
  18817. o.high_severe == his
  18818. </Original>
  18819. <Expanded>
  18820. 0 == 0
  18821. </Expanded>
  18822. </Expression>
  18823. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18824. <Original>
  18825. o.total() == los + lom + him + his
  18826. </Original>
  18827. <Expanded>
  18828. 1 == 1
  18829. </Expanded>
  18830. </Expression>
  18831. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  18832. </Section>
  18833. <Section name="high severe" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18834. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18835. <Original>
  18836. o.samples_seen == static_cast&lt;int>(x.size())
  18837. </Original>
  18838. <Expanded>
  18839. 6 == 6
  18840. </Expanded>
  18841. </Expression>
  18842. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18843. <Original>
  18844. o.low_severe == los
  18845. </Original>
  18846. <Expanded>
  18847. 0 == 0
  18848. </Expanded>
  18849. </Expression>
  18850. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18851. <Original>
  18852. o.low_mild == lom
  18853. </Original>
  18854. <Expanded>
  18855. 0 == 0
  18856. </Expanded>
  18857. </Expression>
  18858. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18859. <Original>
  18860. o.high_mild == him
  18861. </Original>
  18862. <Expanded>
  18863. 0 == 0
  18864. </Expanded>
  18865. </Expression>
  18866. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18867. <Original>
  18868. o.high_severe == his
  18869. </Original>
  18870. <Expanded>
  18871. 1 == 1
  18872. </Expanded>
  18873. </Expression>
  18874. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18875. <Original>
  18876. o.total() == los + lom + him + his
  18877. </Original>
  18878. <Expanded>
  18879. 1 == 1
  18880. </Expanded>
  18881. </Expression>
  18882. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  18883. </Section>
  18884. <Section name="mixed" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18885. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18886. <Original>
  18887. o.samples_seen == static_cast&lt;int>(x.size())
  18888. </Original>
  18889. <Expanded>
  18890. 6 == 6
  18891. </Expanded>
  18892. </Expression>
  18893. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18894. <Original>
  18895. o.low_severe == los
  18896. </Original>
  18897. <Expanded>
  18898. 1 == 1
  18899. </Expanded>
  18900. </Expression>
  18901. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18902. <Original>
  18903. o.low_mild == lom
  18904. </Original>
  18905. <Expanded>
  18906. 0 == 0
  18907. </Expanded>
  18908. </Expression>
  18909. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18910. <Original>
  18911. o.high_mild == him
  18912. </Original>
  18913. <Expanded>
  18914. 1 == 1
  18915. </Expanded>
  18916. </Expression>
  18917. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18918. <Original>
  18919. o.high_severe == his
  18920. </Original>
  18921. <Expanded>
  18922. 0 == 0
  18923. </Expanded>
  18924. </Expression>
  18925. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  18926. <Original>
  18927. o.total() == los + lom + him + his
  18928. </Original>
  18929. <Expanded>
  18930. 2 == 2
  18931. </Expanded>
  18932. </Expression>
  18933. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  18934. </Section>
  18935. <OverallResult success="true"/>
  18936. </TestCase>
  18937. <TestCase name="comparisons between const int variables" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  18938. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  18939. <Original>
  18940. unsigned_char_var == 1
  18941. </Original>
  18942. <Expanded>
  18943. 1 == 1
  18944. </Expanded>
  18945. </Expression>
  18946. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  18947. <Original>
  18948. unsigned_short_var == 1
  18949. </Original>
  18950. <Expanded>
  18951. 1 == 1
  18952. </Expanded>
  18953. </Expression>
  18954. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  18955. <Original>
  18956. unsigned_int_var == 1
  18957. </Original>
  18958. <Expanded>
  18959. 1 == 1
  18960. </Expanded>
  18961. </Expression>
  18962. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  18963. <Original>
  18964. unsigned_long_var == 1
  18965. </Original>
  18966. <Expanded>
  18967. 1 == 1
  18968. </Expanded>
  18969. </Expression>
  18970. <OverallResult success="true"/>
  18971. </TestCase>
  18972. <TestCase name="comparisons between int variables" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  18973. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  18974. <Original>
  18975. long_var == unsigned_char_var
  18976. </Original>
  18977. <Expanded>
  18978. 1 == 1
  18979. </Expanded>
  18980. </Expression>
  18981. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  18982. <Original>
  18983. long_var == unsigned_short_var
  18984. </Original>
  18985. <Expanded>
  18986. 1 == 1
  18987. </Expanded>
  18988. </Expression>
  18989. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  18990. <Original>
  18991. long_var == unsigned_int_var
  18992. </Original>
  18993. <Expanded>
  18994. 1 == 1
  18995. </Expanded>
  18996. </Expression>
  18997. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Condition.tests.cpp" >
  18998. <Original>
  18999. long_var == unsigned_long_var
  19000. </Original>
  19001. <Expanded>
  19002. 1 == 1
  19003. </Expanded>
  19004. </Expression>
  19005. <OverallResult success="true"/>
  19006. </TestCase>
  19007. <TestCase name="convertToBits" tags="[conversion][floating-point]" filename="tests/<exe-name>/IntrospectiveTests/FloatingPoint.tests.cpp" >
  19008. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/FloatingPoint.tests.cpp" >
  19009. <Original>
  19010. convertToBits( 0.f ) == 0
  19011. </Original>
  19012. <Expanded>
  19013. 0 == 0
  19014. </Expanded>
  19015. </Expression>
  19016. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/FloatingPoint.tests.cpp" >
  19017. <Original>
  19018. convertToBits( -0.f ) == ( 1ULL &lt;&lt; 31 )
  19019. </Original>
  19020. <Expanded>
  19021. 2147483648 (0x<hex digits>)
  19022. ==
  19023. 2147483648 (0x<hex digits>)
  19024. </Expanded>
  19025. </Expression>
  19026. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/FloatingPoint.tests.cpp" >
  19027. <Original>
  19028. convertToBits( 0. ) == 0
  19029. </Original>
  19030. <Expanded>
  19031. 0 == 0
  19032. </Expanded>
  19033. </Expression>
  19034. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/FloatingPoint.tests.cpp" >
  19035. <Original>
  19036. convertToBits( -0. ) == ( 1ULL &lt;&lt; 63 )
  19037. </Original>
  19038. <Expanded>
  19039. 9223372036854775808 (0x<hex digits>)
  19040. ==
  19041. 9223372036854775808 (0x<hex digits>)
  19042. </Expanded>
  19043. </Expression>
  19044. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/FloatingPoint.tests.cpp" >
  19045. <Original>
  19046. convertToBits( std::numeric_limits&lt;float>::denorm_min() ) == 1
  19047. </Original>
  19048. <Expanded>
  19049. 1 == 1
  19050. </Expanded>
  19051. </Expression>
  19052. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/FloatingPoint.tests.cpp" >
  19053. <Original>
  19054. convertToBits( std::numeric_limits&lt;double>::denorm_min() ) == 1
  19055. </Original>
  19056. <Expanded>
  19057. 1 == 1
  19058. </Expanded>
  19059. </Expression>
  19060. <OverallResult success="true"/>
  19061. </TestCase>
  19062. <TestCase name="empty tags are not allowed" tags="[tags]" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  19063. <Expression success="true" type="REQUIRE_THROWS" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  19064. <Original>
  19065. Catch::TestCaseInfo("", { "test with an empty tag", "[]" }, dummySourceLineInfo)
  19066. </Original>
  19067. <Expanded>
  19068. Catch::TestCaseInfo("", { "test with an empty tag", "[]" }, dummySourceLineInfo)
  19069. </Expanded>
  19070. </Expression>
  19071. <OverallResult success="true"/>
  19072. </TestCase>
  19073. <TestCase name="erfc_inv" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19074. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19075. <Original>
  19076. erfc_inv(1.103560) == Approx(-0.09203687623843015)
  19077. </Original>
  19078. <Expanded>
  19079. -0.0920368762 == Approx( -0.0920368762 )
  19080. </Expanded>
  19081. </Expression>
  19082. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19083. <Original>
  19084. erfc_inv(1.067400) == Approx(-0.05980291115763361)
  19085. </Original>
  19086. <Expanded>
  19087. -0.0598029112 == Approx( -0.0598029112 )
  19088. </Expanded>
  19089. </Expression>
  19090. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19091. <Original>
  19092. erfc_inv(0.050000) == Approx(1.38590382434967796)
  19093. </Original>
  19094. <Expanded>
  19095. 1.3859038243 == Approx( 1.3859038243 )
  19096. </Expanded>
  19097. </Expression>
  19098. <OverallResult success="true"/>
  19099. </TestCase>
  19100. <TestCase name="estimate_clock_resolution" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19101. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19102. <Original>
  19103. res.mean.count() == rate
  19104. </Original>
  19105. <Expanded>
  19106. 2000.0 == 2000 (0x<hex digits>)
  19107. </Expanded>
  19108. </Expression>
  19109. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19110. <Original>
  19111. res.outliers.total() == 0
  19112. </Original>
  19113. <Expanded>
  19114. 0 == 0
  19115. </Expanded>
  19116. </Expression>
  19117. <OverallResult success="true"/>
  19118. </TestCase>
  19119. <TestCase name="even more nested SECTION tests" tags="[sections]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19120. <Section name="c" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19121. <Section name="d (leaf)" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19122. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19123. </Section>
  19124. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19125. </Section>
  19126. <Section name="c" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19127. <Section name="e (leaf)" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19128. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19129. </Section>
  19130. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19131. </Section>
  19132. <Section name="f (leaf)" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19133. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19134. </Section>
  19135. <OverallResult success="true"/>
  19136. </TestCase>
  19137. <TestCase name="first tag" tags="[tag1]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19138. <OverallResult success="false"/>
  19139. </TestCase>
  19140. <TestCase name="has printf" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  19141. loose text artifact
  19142. <OverallResult success="false"/>
  19143. </TestCase>
  19144. <TestCase name="is_unary_function" tags="[clara][compilation]" filename="tests/<exe-name>/IntrospectiveTests/Clara.tests.cpp" >
  19145. <OverallResult success="true"/>
  19146. </TestCase>
  19147. <TestCase name="just failure" tags="[.][fail][isolated info][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19148. <Failure filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19149. Previous info should not be seen
  19150. </Failure>
  19151. <OverallResult success="false"/>
  19152. </TestCase>
  19153. <TestCase name="just failure after unscoped info" tags="[.][failing][info][unscoped]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19154. <Failure filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19155. previous unscoped info SHOULD not be seen
  19156. </Failure>
  19157. <OverallResult success="false"/>
  19158. </TestCase>
  19159. <TestCase name="just info" tags="[info][isolated info][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19160. <OverallResult success="false"/>
  19161. </TestCase>
  19162. <TestCase name="just unscoped info" tags="[info][unscoped]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19163. <OverallResult success="false"/>
  19164. </TestCase>
  19165. <TestCase name="long long" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19166. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19167. <Original>
  19168. l == std::numeric_limits&lt;long long>::max()
  19169. </Original>
  19170. <Expanded>
  19171. 9223372036854775807 (0x<hex digits>)
  19172. ==
  19173. 9223372036854775807 (0x<hex digits>)
  19174. </Expanded>
  19175. </Expression>
  19176. <OverallResult success="true"/>
  19177. </TestCase>
  19178. <TestCase name="looped SECTION tests" tags="[.][failing][sections]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19179. <Section name="b is currently: 0" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19180. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19181. <Original>
  19182. b > a
  19183. </Original>
  19184. <Expanded>
  19185. 0 > 1
  19186. </Expanded>
  19187. </Expression>
  19188. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  19189. </Section>
  19190. <Section name="b is currently: 1" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19191. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19192. <Original>
  19193. b > a
  19194. </Original>
  19195. <Expanded>
  19196. 1 > 1
  19197. </Expanded>
  19198. </Expression>
  19199. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  19200. </Section>
  19201. <Section name="b is currently: 2" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19202. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19203. <Original>
  19204. b > a
  19205. </Original>
  19206. <Expanded>
  19207. 2 > 1
  19208. </Expanded>
  19209. </Expression>
  19210. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19211. </Section>
  19212. <Section name="b is currently: 3" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19213. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19214. <Original>
  19215. b > a
  19216. </Original>
  19217. <Expanded>
  19218. 3 > 1
  19219. </Expanded>
  19220. </Expression>
  19221. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19222. </Section>
  19223. <Section name="b is currently: 4" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19224. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19225. <Original>
  19226. b > a
  19227. </Original>
  19228. <Expanded>
  19229. 4 > 1
  19230. </Expanded>
  19231. </Expression>
  19232. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19233. </Section>
  19234. <Section name="b is currently: 5" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19235. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19236. <Original>
  19237. b > a
  19238. </Original>
  19239. <Expanded>
  19240. 5 > 1
  19241. </Expanded>
  19242. </Expression>
  19243. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19244. </Section>
  19245. <Section name="b is currently: 6" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19246. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19247. <Original>
  19248. b > a
  19249. </Original>
  19250. <Expanded>
  19251. 6 > 1
  19252. </Expanded>
  19253. </Expression>
  19254. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19255. </Section>
  19256. <Section name="b is currently: 7" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19257. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19258. <Original>
  19259. b > a
  19260. </Original>
  19261. <Expanded>
  19262. 7 > 1
  19263. </Expanded>
  19264. </Expression>
  19265. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19266. </Section>
  19267. <Section name="b is currently: 8" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19268. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19269. <Original>
  19270. b > a
  19271. </Original>
  19272. <Expanded>
  19273. 8 > 1
  19274. </Expanded>
  19275. </Expression>
  19276. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19277. </Section>
  19278. <Section name="b is currently: 9" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19279. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19280. <Original>
  19281. b > a
  19282. </Original>
  19283. <Expanded>
  19284. 9 > 1
  19285. </Expanded>
  19286. </Expression>
  19287. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19288. </Section>
  19289. <OverallResult success="false"/>
  19290. </TestCase>
  19291. <TestCase name="looped tests" tags="[.][failing]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19292. <Info>
  19293. Testing if fib[0] (1) is even
  19294. </Info>
  19295. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19296. <Original>
  19297. ( fib[i] % 2 ) == 0
  19298. </Original>
  19299. <Expanded>
  19300. 1 == 0
  19301. </Expanded>
  19302. </Expression>
  19303. <Info>
  19304. Testing if fib[1] (1) is even
  19305. </Info>
  19306. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19307. <Original>
  19308. ( fib[i] % 2 ) == 0
  19309. </Original>
  19310. <Expanded>
  19311. 1 == 0
  19312. </Expanded>
  19313. </Expression>
  19314. <Info>
  19315. Testing if fib[2] (2) is even
  19316. </Info>
  19317. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19318. <Original>
  19319. ( fib[i] % 2 ) == 0
  19320. </Original>
  19321. <Expanded>
  19322. 0 == 0
  19323. </Expanded>
  19324. </Expression>
  19325. <Info>
  19326. Testing if fib[3] (3) is even
  19327. </Info>
  19328. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19329. <Original>
  19330. ( fib[i] % 2 ) == 0
  19331. </Original>
  19332. <Expanded>
  19333. 1 == 0
  19334. </Expanded>
  19335. </Expression>
  19336. <Info>
  19337. Testing if fib[4] (5) is even
  19338. </Info>
  19339. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19340. <Original>
  19341. ( fib[i] % 2 ) == 0
  19342. </Original>
  19343. <Expanded>
  19344. 1 == 0
  19345. </Expanded>
  19346. </Expression>
  19347. <Info>
  19348. Testing if fib[5] (8) is even
  19349. </Info>
  19350. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19351. <Original>
  19352. ( fib[i] % 2 ) == 0
  19353. </Original>
  19354. <Expanded>
  19355. 0 == 0
  19356. </Expanded>
  19357. </Expression>
  19358. <Info>
  19359. Testing if fib[6] (13) is even
  19360. </Info>
  19361. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19362. <Original>
  19363. ( fib[i] % 2 ) == 0
  19364. </Original>
  19365. <Expanded>
  19366. 1 == 0
  19367. </Expanded>
  19368. </Expression>
  19369. <Info>
  19370. Testing if fib[7] (21) is even
  19371. </Info>
  19372. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19373. <Original>
  19374. ( fib[i] % 2 ) == 0
  19375. </Original>
  19376. <Expanded>
  19377. 1 == 0
  19378. </Expanded>
  19379. </Expression>
  19380. <OverallResult success="false"/>
  19381. </TestCase>
  19382. <TestCase name="makeStream recognizes %debug stream name" tags="[streams]" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  19383. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  19384. <Original>
  19385. Catch::makeStream( "%debug" )
  19386. </Original>
  19387. <Expanded>
  19388. Catch::makeStream( "%debug" )
  19389. </Expanded>
  19390. </Expression>
  19391. <OverallResult success="true"/>
  19392. </TestCase>
  19393. <TestCase name="make_unique reimplementation" tags="[internals][unique-ptr]" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  19394. <Section name="From lvalue copies" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  19395. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  19396. <Original>
  19397. !(lval.has_moved)
  19398. </Original>
  19399. <Expanded>
  19400. !false
  19401. </Expanded>
  19402. </Expression>
  19403. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19404. </Section>
  19405. <Section name="From rvalue moves" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  19406. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  19407. <Original>
  19408. rval.has_moved
  19409. </Original>
  19410. <Expanded>
  19411. true
  19412. </Expanded>
  19413. </Expression>
  19414. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19415. </Section>
  19416. <Section name="Variadic constructor" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  19417. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  19418. <Original>
  19419. *ptr == std::tuple&lt;int, double, int>{1, 2., 3}
  19420. </Original>
  19421. <Expanded>
  19422. {?} == {?}
  19423. </Expanded>
  19424. </Expression>
  19425. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19426. </Section>
  19427. <OverallResult success="true"/>
  19428. </TestCase>
  19429. <TestCase name="mean" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19430. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19431. <Original>
  19432. m == 19.
  19433. </Original>
  19434. <Expanded>
  19435. 19.0 == 19.0
  19436. </Expanded>
  19437. </Expression>
  19438. <OverallResult success="true"/>
  19439. </TestCase>
  19440. <TestCase name="measure" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19441. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19442. <Original>
  19443. x == 17
  19444. </Original>
  19445. <Expanded>
  19446. 17 == 17
  19447. </Expanded>
  19448. </Expression>
  19449. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19450. <Original>
  19451. x == 23
  19452. </Original>
  19453. <Expanded>
  19454. 23 == 23
  19455. </Expanded>
  19456. </Expression>
  19457. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19458. <Original>
  19459. r.elapsed.count() == 42
  19460. </Original>
  19461. <Expanded>
  19462. 42 == 42
  19463. </Expanded>
  19464. </Expression>
  19465. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19466. <Original>
  19467. r.result == 23
  19468. </Original>
  19469. <Expanded>
  19470. 23 == 23
  19471. </Expanded>
  19472. </Expression>
  19473. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19474. <Original>
  19475. r.iterations == 1
  19476. </Original>
  19477. <Expanded>
  19478. 1 == 1
  19479. </Expanded>
  19480. </Expression>
  19481. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19482. <Original>
  19483. s.elapsed.count() == 69
  19484. </Original>
  19485. <Expanded>
  19486. 69 == 69
  19487. </Expanded>
  19488. </Expression>
  19489. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19490. <Original>
  19491. s.result == 17
  19492. </Original>
  19493. <Expanded>
  19494. 17 == 17
  19495. </Expanded>
  19496. </Expression>
  19497. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19498. <Original>
  19499. s.iterations == 1
  19500. </Original>
  19501. <Expanded>
  19502. 1 == 1
  19503. </Expanded>
  19504. </Expression>
  19505. <OverallResult success="true"/>
  19506. </TestCase>
  19507. <TestCase name="mix info, unscoped info and warning" tags="[info][unscoped]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19508. <Info>
  19509. info
  19510. </Info>
  19511. <Info>
  19512. unscoped info
  19513. </Info>
  19514. <Warning>
  19515. and warn may mix
  19516. </Warning>
  19517. <Info>
  19518. info
  19519. </Info>
  19520. <Info>
  19521. unscoped info
  19522. </Info>
  19523. <Warning>
  19524. they are not cleared after warnings
  19525. </Warning>
  19526. <OverallResult success="false"/>
  19527. </TestCase>
  19528. <TestCase name="more nested SECTION tests" tags="[.][failing][sections]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19529. <Section name="doesn't equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19530. <Section name="equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19531. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19532. <Original>
  19533. a == b
  19534. </Original>
  19535. <Expanded>
  19536. 1 == 2
  19537. </Expanded>
  19538. </Expression>
  19539. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  19540. </Section>
  19541. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  19542. </Section>
  19543. <Section name="doesn't equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19544. <Section name="not equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19545. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19546. <Original>
  19547. a != b
  19548. </Original>
  19549. <Expanded>
  19550. 1 != 2
  19551. </Expanded>
  19552. </Expression>
  19553. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19554. </Section>
  19555. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19556. </Section>
  19557. <Section name="doesn't equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19558. <Section name="less than" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19559. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19560. <Original>
  19561. a &lt; b
  19562. </Original>
  19563. <Expanded>
  19564. 1 &lt; 2
  19565. </Expanded>
  19566. </Expression>
  19567. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19568. </Section>
  19569. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19570. </Section>
  19571. <OverallResult success="false"/>
  19572. </TestCase>
  19573. <TestCase name="nested SECTION tests" tags="[.][failing][sections]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19574. <Section name="doesn't equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19575. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19576. <Original>
  19577. a != b
  19578. </Original>
  19579. <Expanded>
  19580. 1 != 2
  19581. </Expanded>
  19582. </Expression>
  19583. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19584. <Original>
  19585. b != a
  19586. </Original>
  19587. <Expanded>
  19588. 2 != 1
  19589. </Expanded>
  19590. </Expression>
  19591. <Section name="not equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19592. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19593. <Original>
  19594. a != b
  19595. </Original>
  19596. <Expanded>
  19597. 1 != 2
  19598. </Expanded>
  19599. </Expression>
  19600. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19601. </Section>
  19602. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  19603. </Section>
  19604. <OverallResult success="true"/>
  19605. </TestCase>
  19606. <TestCase name="non streamable - with conv. op" tags="[Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  19607. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  19608. <Original>
  19609. s == "7"
  19610. </Original>
  19611. <Expanded>
  19612. "7" == "7"
  19613. </Expanded>
  19614. </Expression>
  19615. <OverallResult success="true"/>
  19616. </TestCase>
  19617. <TestCase name="non-copyable objects" tags="[.][failing]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  19618. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  19619. <Original>
  19620. ti == typeid(int)
  19621. </Original>
  19622. <Expanded>
  19623. {?} == {?}
  19624. </Expanded>
  19625. </Expression>
  19626. <OverallResult success="true"/>
  19627. </TestCase>
  19628. <TestCase name="normal_cdf" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19629. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19630. <Original>
  19631. normal_cdf(0.000000) == Approx(0.50000000000000000)
  19632. </Original>
  19633. <Expanded>
  19634. 0.5 == Approx( 0.5 )
  19635. </Expanded>
  19636. </Expression>
  19637. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19638. <Original>
  19639. normal_cdf(1.000000) == Approx(0.84134474606854293)
  19640. </Original>
  19641. <Expanded>
  19642. 0.8413447461 == Approx( 0.8413447461 )
  19643. </Expanded>
  19644. </Expression>
  19645. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19646. <Original>
  19647. normal_cdf(-1.000000) == Approx(0.15865525393145705)
  19648. </Original>
  19649. <Expanded>
  19650. 0.1586552539 == Approx( 0.1586552539 )
  19651. </Expanded>
  19652. </Expression>
  19653. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19654. <Original>
  19655. normal_cdf(2.809729) == Approx(0.99752083845315409)
  19656. </Original>
  19657. <Expanded>
  19658. 0.9975208385 == Approx( 0.9975208385 )
  19659. </Expanded>
  19660. </Expression>
  19661. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19662. <Original>
  19663. normal_cdf(-1.352570) == Approx(0.08809652095066035)
  19664. </Original>
  19665. <Expanded>
  19666. 0.088096521 == Approx( 0.088096521 )
  19667. </Expanded>
  19668. </Expression>
  19669. <OverallResult success="true"/>
  19670. </TestCase>
  19671. <TestCase name="normal_quantile" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19672. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19673. <Original>
  19674. normal_quantile(0.551780) == Approx(0.13015979861484198)
  19675. </Original>
  19676. <Expanded>
  19677. 0.1301597986 == Approx( 0.1301597986 )
  19678. </Expanded>
  19679. </Expression>
  19680. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19681. <Original>
  19682. normal_quantile(0.533700) == Approx(0.08457408802851875)
  19683. </Original>
  19684. <Expanded>
  19685. 0.084574088 == Approx( 0.084574088 )
  19686. </Expanded>
  19687. </Expression>
  19688. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19689. <Original>
  19690. normal_quantile(0.025000) == Approx(-1.95996398454005449)
  19691. </Original>
  19692. <Expanded>
  19693. -1.9599639845 == Approx( -1.9599639845 )
  19694. </Expanded>
  19695. </Expression>
  19696. <OverallResult success="true"/>
  19697. </TestCase>
  19698. <TestCase name="not allowed" tags="[!throws]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19699. <OverallResult success="true"/>
  19700. </TestCase>
  19701. <TestCase name="not prints unscoped info from previous failures" tags="[.][failing][info][unscoped]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19702. <Info>
  19703. this MAY be seen only for the FIRST assertion IF info is printed for passing assertions
  19704. </Info>
  19705. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19706. <Original>
  19707. true
  19708. </Original>
  19709. <Expanded>
  19710. true
  19711. </Expanded>
  19712. </Expression>
  19713. <Info>
  19714. this MAY be seen only for the SECOND assertion IF info is printed for passing assertions
  19715. </Info>
  19716. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19717. <Original>
  19718. true
  19719. </Original>
  19720. <Expanded>
  19721. true
  19722. </Expanded>
  19723. </Expression>
  19724. <Info>
  19725. this SHOULD be seen
  19726. </Info>
  19727. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19728. <Original>
  19729. false
  19730. </Original>
  19731. <Expanded>
  19732. false
  19733. </Expanded>
  19734. </Expression>
  19735. <OverallResult success="false"/>
  19736. </TestCase>
  19737. <TestCase name="null strings" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19738. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19739. <Original>
  19740. makeString( false ) != static_cast&lt;char*>(0)
  19741. </Original>
  19742. <Expanded>
  19743. "valid string" != {null string}
  19744. </Expanded>
  19745. </Expression>
  19746. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19747. <Original>
  19748. makeString( true ) == static_cast&lt;char*>(0)
  19749. </Original>
  19750. <Expanded>
  19751. {null string} == {null string}
  19752. </Expanded>
  19753. </Expression>
  19754. <OverallResult success="true"/>
  19755. </TestCase>
  19756. <TestCase name="null_ptr" tags="[Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  19757. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  19758. <Original>
  19759. ptr.get() == 0
  19760. </Original>
  19761. <Expanded>
  19762. 0 == 0
  19763. </Expanded>
  19764. </Expression>
  19765. <OverallResult success="true"/>
  19766. </TestCase>
  19767. <TestCase name="pair&lt;pair&lt;int,const char *,pair&lt;std::string,int> > -> toString" tags="[pair][toString]" filename="tests/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  19768. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  19769. <Original>
  19770. ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }"
  19771. </Original>
  19772. <Expanded>
  19773. "{ { 42, "Arthur" }, { "Ford", 24 } }"
  19774. ==
  19775. "{ { 42, "Arthur" }, { "Ford", 24 } }"
  19776. </Expanded>
  19777. </Expression>
  19778. <OverallResult success="true"/>
  19779. </TestCase>
  19780. <TestCase name="parseEnums" tags="[enums][Strings]" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19781. <Section name="No enums" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19782. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19783. <Original>
  19784. parseEnums( "" ), Equals( std::vector&lt;Catch::StringRef>{} )
  19785. </Original>
  19786. <Expanded>
  19787. { } Equals: { }
  19788. </Expanded>
  19789. </Expression>
  19790. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19791. </Section>
  19792. <Section name="One enum value" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19793. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19794. <Original>
  19795. parseEnums( "ClassName::EnumName::Value1" ), Equals(std::vector&lt;Catch::StringRef>{"Value1"} )
  19796. </Original>
  19797. <Expanded>
  19798. { Value1 } Equals: { Value1 }
  19799. </Expanded>
  19800. </Expression>
  19801. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19802. <Original>
  19803. parseEnums( "Value1" ), Equals( std::vector&lt;Catch::StringRef>{"Value1"} )
  19804. </Original>
  19805. <Expanded>
  19806. { Value1 } Equals: { Value1 }
  19807. </Expanded>
  19808. </Expression>
  19809. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19810. <Original>
  19811. parseEnums( "EnumName::Value1" ), Equals(std::vector&lt;Catch::StringRef>{"Value1"} )
  19812. </Original>
  19813. <Expanded>
  19814. { Value1 } Equals: { Value1 }
  19815. </Expanded>
  19816. </Expression>
  19817. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  19818. </Section>
  19819. <Section name="Multiple enum values" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19820. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19821. <Original>
  19822. parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2" ), Equals( std::vector&lt;Catch::StringRef>{"Value1", "Value2"} )
  19823. </Original>
  19824. <Expanded>
  19825. { Value1, Value2 } Equals: { Value1, Value2 }
  19826. </Expanded>
  19827. </Expression>
  19828. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19829. <Original>
  19830. parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2, ClassName::EnumName::Value3" ), Equals( std::vector&lt;Catch::StringRef>{"Value1", "Value2", "Value3"} )
  19831. </Original>
  19832. <Expanded>
  19833. { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
  19834. </Expanded>
  19835. </Expression>
  19836. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19837. <Original>
  19838. parseEnums( "ClassName::EnumName::Value1,ClassName::EnumName::Value2 , ClassName::EnumName::Value3" ), Equals( std::vector&lt;Catch::StringRef>{"Value1", "Value2", "Value3"} )
  19839. </Original>
  19840. <Expanded>
  19841. { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
  19842. </Expanded>
  19843. </Expression>
  19844. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  19845. </Section>
  19846. <OverallResult success="true"/>
  19847. </TestCase>
  19848. <TestCase name="pointer to class" tags="[Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  19849. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  19850. <Original>
  19851. p == 0
  19852. </Original>
  19853. <Expanded>
  19854. 0 == 0
  19855. </Expanded>
  19856. </Expression>
  19857. <OverallResult success="true"/>
  19858. </TestCase>
  19859. <TestCase name="print unscoped info if passing unscoped info is printed" tags="[info][unscoped]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19860. <Info>
  19861. this MAY be seen IF info is printed for passing assertions
  19862. </Info>
  19863. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19864. <Original>
  19865. true
  19866. </Original>
  19867. <Expanded>
  19868. true
  19869. </Expanded>
  19870. </Expression>
  19871. <OverallResult success="true"/>
  19872. </TestCase>
  19873. <TestCase name="prints unscoped info on failure" tags="[.][failing][info][unscoped]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19874. <Info>
  19875. this SHOULD be seen
  19876. </Info>
  19877. <Info>
  19878. this SHOULD also be seen
  19879. </Info>
  19880. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19881. <Original>
  19882. false
  19883. </Original>
  19884. <Expanded>
  19885. false
  19886. </Expanded>
  19887. </Expression>
  19888. <OverallResult success="false"/>
  19889. </TestCase>
  19890. <TestCase name="prints unscoped info only for the first assertion" tags="[.][failing][info][unscoped]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19891. <Info>
  19892. this SHOULD be seen only ONCE
  19893. </Info>
  19894. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19895. <Original>
  19896. false
  19897. </Original>
  19898. <Expanded>
  19899. false
  19900. </Expanded>
  19901. </Expression>
  19902. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19903. <Original>
  19904. true
  19905. </Original>
  19906. <Expanded>
  19907. true
  19908. </Expanded>
  19909. </Expression>
  19910. <Info>
  19911. this MAY also be seen only ONCE IF info is printed for passing assertions
  19912. </Info>
  19913. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19914. <Original>
  19915. true
  19916. </Original>
  19917. <Expanded>
  19918. true
  19919. </Expanded>
  19920. </Expression>
  19921. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19922. <Original>
  19923. true
  19924. </Original>
  19925. <Expanded>
  19926. true
  19927. </Expanded>
  19928. </Expression>
  19929. <OverallResult success="false"/>
  19930. </TestCase>
  19931. <TestCase name="random SECTION tests" tags="[.][failing][sections]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19932. <Section name="doesn't equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19933. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19934. <Original>
  19935. a != b
  19936. </Original>
  19937. <Expanded>
  19938. 1 != 2
  19939. </Expanded>
  19940. </Expression>
  19941. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19942. <Original>
  19943. b != a
  19944. </Original>
  19945. <Expanded>
  19946. 2 != 1
  19947. </Expanded>
  19948. </Expression>
  19949. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  19950. </Section>
  19951. <Section name="not equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19952. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19953. <Original>
  19954. a != b
  19955. </Original>
  19956. <Expanded>
  19957. 1 != 2
  19958. </Expanded>
  19959. </Expression>
  19960. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19961. </Section>
  19962. <OverallResult success="true"/>
  19963. </TestCase>
  19964. <TestCase name="replaceInPlace" tags="[string-manip]" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  19965. <Section name="replace single char" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  19966. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  19967. <Original>
  19968. Catch::replaceInPlace(letters, "b", "z")
  19969. </Original>
  19970. <Expanded>
  19971. true
  19972. </Expanded>
  19973. </Expression>
  19974. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  19975. <Original>
  19976. letters == "azcdefcg"
  19977. </Original>
  19978. <Expanded>
  19979. "azcdefcg" == "azcdefcg"
  19980. </Expanded>
  19981. </Expression>
  19982. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  19983. </Section>
  19984. <Section name="replace two chars" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  19985. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  19986. <Original>
  19987. Catch::replaceInPlace(letters, "c", "z")
  19988. </Original>
  19989. <Expanded>
  19990. true
  19991. </Expanded>
  19992. </Expression>
  19993. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  19994. <Original>
  19995. letters == "abzdefzg"
  19996. </Original>
  19997. <Expanded>
  19998. "abzdefzg" == "abzdefzg"
  19999. </Expanded>
  20000. </Expression>
  20001. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  20002. </Section>
  20003. <Section name="replace first char" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20004. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20005. <Original>
  20006. Catch::replaceInPlace(letters, "a", "z")
  20007. </Original>
  20008. <Expanded>
  20009. true
  20010. </Expanded>
  20011. </Expression>
  20012. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20013. <Original>
  20014. letters == "zbcdefcg"
  20015. </Original>
  20016. <Expanded>
  20017. "zbcdefcg" == "zbcdefcg"
  20018. </Expanded>
  20019. </Expression>
  20020. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  20021. </Section>
  20022. <Section name="replace last char" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20023. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20024. <Original>
  20025. Catch::replaceInPlace(letters, "g", "z")
  20026. </Original>
  20027. <Expanded>
  20028. true
  20029. </Expanded>
  20030. </Expression>
  20031. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20032. <Original>
  20033. letters == "abcdefcz"
  20034. </Original>
  20035. <Expanded>
  20036. "abcdefcz" == "abcdefcz"
  20037. </Expanded>
  20038. </Expression>
  20039. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  20040. </Section>
  20041. <Section name="replace all chars" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20042. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20043. <Original>
  20044. Catch::replaceInPlace(letters, letters, "replaced")
  20045. </Original>
  20046. <Expanded>
  20047. true
  20048. </Expanded>
  20049. </Expression>
  20050. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20051. <Original>
  20052. letters == "replaced"
  20053. </Original>
  20054. <Expanded>
  20055. "replaced" == "replaced"
  20056. </Expanded>
  20057. </Expression>
  20058. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  20059. </Section>
  20060. <Section name="replace no chars" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20061. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20062. <Original>
  20063. !(Catch::replaceInPlace(letters, "x", "z"))
  20064. </Original>
  20065. <Expanded>
  20066. !false
  20067. </Expanded>
  20068. </Expression>
  20069. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20070. <Original>
  20071. letters == letters
  20072. </Original>
  20073. <Expanded>
  20074. "abcdefcg" == "abcdefcg"
  20075. </Expanded>
  20076. </Expression>
  20077. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  20078. </Section>
  20079. <Section name="escape '" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20080. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20081. <Original>
  20082. Catch::replaceInPlace(s, "'", "|'")
  20083. </Original>
  20084. <Expanded>
  20085. true
  20086. </Expanded>
  20087. </Expression>
  20088. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20089. <Original>
  20090. s == "didn|'t"
  20091. </Original>
  20092. <Expanded>
  20093. "didn|'t" == "didn|'t"
  20094. </Expanded>
  20095. </Expression>
  20096. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  20097. </Section>
  20098. <OverallResult success="true"/>
  20099. </TestCase>
  20100. <TestCase name="request an unknown %-starting stream fails" tags="[streams]" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  20101. <Expression success="true" type="REQUIRE_THROWS" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  20102. <Original>
  20103. Catch::makeStream( "%somestream" )
  20104. </Original>
  20105. <Expanded>
  20106. Catch::makeStream( "%somestream" )
  20107. </Expanded>
  20108. </Expression>
  20109. <OverallResult success="true"/>
  20110. </TestCase>
  20111. <TestCase name="resolution" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20112. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20113. <Original>
  20114. res.size() == count
  20115. </Original>
  20116. <Expanded>
  20117. 10 == 10
  20118. </Expanded>
  20119. </Expression>
  20120. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20121. <Original>
  20122. res[i] == rate
  20123. </Original>
  20124. <Expanded>
  20125. 1000.0 == 1000 (0x<hex digits>)
  20126. </Expanded>
  20127. </Expression>
  20128. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20129. <Original>
  20130. res[i] == rate
  20131. </Original>
  20132. <Expanded>
  20133. 1000.0 == 1000 (0x<hex digits>)
  20134. </Expanded>
  20135. </Expression>
  20136. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20137. <Original>
  20138. res[i] == rate
  20139. </Original>
  20140. <Expanded>
  20141. 1000.0 == 1000 (0x<hex digits>)
  20142. </Expanded>
  20143. </Expression>
  20144. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20145. <Original>
  20146. res[i] == rate
  20147. </Original>
  20148. <Expanded>
  20149. 1000.0 == 1000 (0x<hex digits>)
  20150. </Expanded>
  20151. </Expression>
  20152. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20153. <Original>
  20154. res[i] == rate
  20155. </Original>
  20156. <Expanded>
  20157. 1000.0 == 1000 (0x<hex digits>)
  20158. </Expanded>
  20159. </Expression>
  20160. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20161. <Original>
  20162. res[i] == rate
  20163. </Original>
  20164. <Expanded>
  20165. 1000.0 == 1000 (0x<hex digits>)
  20166. </Expanded>
  20167. </Expression>
  20168. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20169. <Original>
  20170. res[i] == rate
  20171. </Original>
  20172. <Expanded>
  20173. 1000.0 == 1000 (0x<hex digits>)
  20174. </Expanded>
  20175. </Expression>
  20176. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20177. <Original>
  20178. res[i] == rate
  20179. </Original>
  20180. <Expanded>
  20181. 1000.0 == 1000 (0x<hex digits>)
  20182. </Expanded>
  20183. </Expression>
  20184. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20185. <Original>
  20186. res[i] == rate
  20187. </Original>
  20188. <Expanded>
  20189. 1000.0 == 1000 (0x<hex digits>)
  20190. </Expanded>
  20191. </Expression>
  20192. <OverallResult success="true"/>
  20193. </TestCase>
  20194. <TestCase name="run_for_at_least, chronometer" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20195. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20196. <Original>
  20197. meter.runs() >= old_runs
  20198. </Original>
  20199. <Expanded>
  20200. 1 >= 1
  20201. </Expanded>
  20202. </Expression>
  20203. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20204. <Original>
  20205. meter.runs() >= old_runs
  20206. </Original>
  20207. <Expanded>
  20208. 2 >= 1
  20209. </Expanded>
  20210. </Expression>
  20211. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20212. <Original>
  20213. meter.runs() >= old_runs
  20214. </Original>
  20215. <Expanded>
  20216. 4 >= 2
  20217. </Expanded>
  20218. </Expression>
  20219. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20220. <Original>
  20221. meter.runs() >= old_runs
  20222. </Original>
  20223. <Expanded>
  20224. 8 >= 4
  20225. </Expanded>
  20226. </Expression>
  20227. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20228. <Original>
  20229. meter.runs() >= old_runs
  20230. </Original>
  20231. <Expanded>
  20232. 16 >= 8
  20233. </Expanded>
  20234. </Expression>
  20235. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20236. <Original>
  20237. meter.runs() >= old_runs
  20238. </Original>
  20239. <Expanded>
  20240. 32 >= 16
  20241. </Expanded>
  20242. </Expression>
  20243. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20244. <Original>
  20245. meter.runs() >= old_runs
  20246. </Original>
  20247. <Expanded>
  20248. 64 >= 32
  20249. </Expanded>
  20250. </Expression>
  20251. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20252. <Original>
  20253. meter.runs() >= old_runs
  20254. </Original>
  20255. <Expanded>
  20256. 128 >= 64
  20257. </Expanded>
  20258. </Expression>
  20259. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20260. <Original>
  20261. Timing.elapsed >= time
  20262. </Original>
  20263. <Expanded>
  20264. 128 ns >= 100 ns
  20265. </Expanded>
  20266. </Expression>
  20267. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20268. <Original>
  20269. Timing.result == Timing.iterations + 17
  20270. </Original>
  20271. <Expanded>
  20272. 145 == 145
  20273. </Expanded>
  20274. </Expression>
  20275. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20276. <Original>
  20277. Timing.iterations >= time.count()
  20278. </Original>
  20279. <Expanded>
  20280. 128 >= 100
  20281. </Expanded>
  20282. </Expression>
  20283. <OverallResult success="true"/>
  20284. </TestCase>
  20285. <TestCase name="run_for_at_least, int" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20286. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20287. <Original>
  20288. x >= old_x
  20289. </Original>
  20290. <Expanded>
  20291. 1 >= 1
  20292. </Expanded>
  20293. </Expression>
  20294. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20295. <Original>
  20296. x >= old_x
  20297. </Original>
  20298. <Expanded>
  20299. 2 >= 1
  20300. </Expanded>
  20301. </Expression>
  20302. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20303. <Original>
  20304. x >= old_x
  20305. </Original>
  20306. <Expanded>
  20307. 4 >= 2
  20308. </Expanded>
  20309. </Expression>
  20310. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20311. <Original>
  20312. x >= old_x
  20313. </Original>
  20314. <Expanded>
  20315. 8 >= 4
  20316. </Expanded>
  20317. </Expression>
  20318. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20319. <Original>
  20320. x >= old_x
  20321. </Original>
  20322. <Expanded>
  20323. 16 >= 8
  20324. </Expanded>
  20325. </Expression>
  20326. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20327. <Original>
  20328. x >= old_x
  20329. </Original>
  20330. <Expanded>
  20331. 32 >= 16
  20332. </Expanded>
  20333. </Expression>
  20334. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20335. <Original>
  20336. x >= old_x
  20337. </Original>
  20338. <Expanded>
  20339. 64 >= 32
  20340. </Expanded>
  20341. </Expression>
  20342. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20343. <Original>
  20344. x >= old_x
  20345. </Original>
  20346. <Expanded>
  20347. 128 >= 64
  20348. </Expanded>
  20349. </Expression>
  20350. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20351. <Original>
  20352. Timing.elapsed >= time
  20353. </Original>
  20354. <Expanded>
  20355. 128 ns >= 100 ns
  20356. </Expanded>
  20357. </Expression>
  20358. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20359. <Original>
  20360. Timing.result == Timing.iterations + 17
  20361. </Original>
  20362. <Expanded>
  20363. 145 == 145
  20364. </Expanded>
  20365. </Expression>
  20366. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20367. <Original>
  20368. Timing.iterations >= time.count()
  20369. </Original>
  20370. <Expanded>
  20371. 128 >= 100
  20372. </Expanded>
  20373. </Expression>
  20374. <OverallResult success="true"/>
  20375. </TestCase>
  20376. <TestCase name="second tag" tags="[tag2]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20377. <OverallResult success="false"/>
  20378. </TestCase>
  20379. <TestCase name="send a single char to INFO" tags="[.][failing]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20380. <Info>
  20381. 3
  20382. </Info>
  20383. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20384. <Original>
  20385. false
  20386. </Original>
  20387. <Expanded>
  20388. false
  20389. </Expanded>
  20390. </Expression>
  20391. <OverallResult success="false"/>
  20392. </TestCase>
  20393. <TestCase name="sends information to INFO" tags="[.][failing]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  20394. <Info>
  20395. hi
  20396. </Info>
  20397. <Info>
  20398. i := 7
  20399. </Info>
  20400. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  20401. <Original>
  20402. false
  20403. </Original>
  20404. <Expanded>
  20405. false
  20406. </Expanded>
  20407. </Expression>
  20408. <OverallResult success="false"/>
  20409. </TestCase>
  20410. <TestCase name="shortened hide tags are split apart" tags="[tags]" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  20411. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  20412. <Original>
  20413. testcase.tags, VectorContains( Tag( "magic-tag" ) ) &amp;&amp; VectorContains( Tag( "."_catch_sr ) )
  20414. </Original>
  20415. <Expanded>
  20416. { {?}, {?} } ( Contains: {?} and Contains: {?} )
  20417. </Expanded>
  20418. </Expression>
  20419. <OverallResult success="true"/>
  20420. </TestCase>
  20421. <TestCase name="splitString" tags="[string-manip]" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20422. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20423. <Original>
  20424. splitStringRef("", ','), Equals(std::vector&lt;StringRef>())
  20425. </Original>
  20426. <Expanded>
  20427. { } Equals: { }
  20428. </Expanded>
  20429. </Expression>
  20430. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20431. <Original>
  20432. splitStringRef("abc", ','), Equals(std::vector&lt;StringRef>{"abc"})
  20433. </Original>
  20434. <Expanded>
  20435. { abc } Equals: { abc }
  20436. </Expanded>
  20437. </Expression>
  20438. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20439. <Original>
  20440. splitStringRef("abc,def", ','), Equals(std::vector&lt;StringRef>{"abc", "def"})
  20441. </Original>
  20442. <Expanded>
  20443. { abc, def } Equals: { abc, def }
  20444. </Expanded>
  20445. </Expression>
  20446. <OverallResult success="true"/>
  20447. </TestCase>
  20448. <TestCase name="stacks unscoped info in loops" tags="[.][failing][info][unscoped]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  20449. <Info>
  20450. Count 1 to 3...
  20451. </Info>
  20452. <Info>
  20453. 1
  20454. </Info>
  20455. <Info>
  20456. 2
  20457. </Info>
  20458. <Info>
  20459. 3
  20460. </Info>
  20461. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  20462. <Original>
  20463. false
  20464. </Original>
  20465. <Expanded>
  20466. false
  20467. </Expanded>
  20468. </Expression>
  20469. <Info>
  20470. Count 4 to 6...
  20471. </Info>
  20472. <Info>
  20473. 4
  20474. </Info>
  20475. <Info>
  20476. 5
  20477. </Info>
  20478. <Info>
  20479. 6
  20480. </Info>
  20481. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  20482. <Original>
  20483. false
  20484. </Original>
  20485. <Expanded>
  20486. false
  20487. </Expanded>
  20488. </Expression>
  20489. <OverallResult success="false"/>
  20490. </TestCase>
  20491. <TestCase name="startsWith" tags="[string-manip]" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20492. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20493. <Original>
  20494. !(startsWith("", 'c'))
  20495. </Original>
  20496. <Expanded>
  20497. !false
  20498. </Expanded>
  20499. </Expression>
  20500. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20501. <Original>
  20502. startsWith(std::string("abc"), 'a')
  20503. </Original>
  20504. <Expanded>
  20505. true
  20506. </Expanded>
  20507. </Expression>
  20508. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20509. <Original>
  20510. startsWith("def"_catch_sr, 'd')
  20511. </Original>
  20512. <Expanded>
  20513. true
  20514. </Expanded>
  20515. </Expression>
  20516. <OverallResult success="true"/>
  20517. </TestCase>
  20518. <TestCase name="std::map is convertible string" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20519. <Section name="empty" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20520. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20521. <Original>
  20522. Catch::Detail::stringify( emptyMap ) == "{ }"
  20523. </Original>
  20524. <Expanded>
  20525. "{ }" == "{ }"
  20526. </Expanded>
  20527. </Expression>
  20528. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  20529. </Section>
  20530. <Section name="single item" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20531. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20532. <Original>
  20533. Catch::Detail::stringify( map ) == "{ { \"one\", 1 } }"
  20534. </Original>
  20535. <Expanded>
  20536. "{ { "one", 1 } }" == "{ { "one", 1 } }"
  20537. </Expanded>
  20538. </Expression>
  20539. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  20540. </Section>
  20541. <Section name="several items" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20542. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20543. <Original>
  20544. Catch::Detail::stringify( map ) == "{ { \"abc\", 1 }, { \"def\", 2 }, { \"ghi\", 3 } }"
  20545. </Original>
  20546. <Expanded>
  20547. "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
  20548. ==
  20549. "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
  20550. </Expanded>
  20551. </Expression>
  20552. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  20553. </Section>
  20554. <OverallResult success="true"/>
  20555. </TestCase>
  20556. <TestCase name="std::pair&lt;int,const std::string> -> toString" tags="[pair][toString]" filename="tests/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  20557. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  20558. <Original>
  20559. ::Catch::Detail::stringify(value) == "{ 34, \"xyzzy\" }"
  20560. </Original>
  20561. <Expanded>
  20562. "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
  20563. </Expanded>
  20564. </Expression>
  20565. <OverallResult success="true"/>
  20566. </TestCase>
  20567. <TestCase name="std::pair&lt;int,std::string> -> toString" tags="[pair][toString]" filename="tests/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  20568. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  20569. <Original>
  20570. ::Catch::Detail::stringify( value ) == "{ 34, \"xyzzy\" }"
  20571. </Original>
  20572. <Expanded>
  20573. "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
  20574. </Expanded>
  20575. </Expression>
  20576. <OverallResult success="true"/>
  20577. </TestCase>
  20578. <TestCase name="std::set is convertible string" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20579. <Section name="empty" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20580. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20581. <Original>
  20582. Catch::Detail::stringify( emptySet ) == "{ }"
  20583. </Original>
  20584. <Expanded>
  20585. "{ }" == "{ }"
  20586. </Expanded>
  20587. </Expression>
  20588. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  20589. </Section>
  20590. <Section name="single item" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20591. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20592. <Original>
  20593. Catch::Detail::stringify( set ) == "{ \"one\" }"
  20594. </Original>
  20595. <Expanded>
  20596. "{ "one" }" == "{ "one" }"
  20597. </Expanded>
  20598. </Expression>
  20599. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  20600. </Section>
  20601. <Section name="several items" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20602. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20603. <Original>
  20604. Catch::Detail::stringify( set ) == "{ \"abc\", \"def\", \"ghi\" }"
  20605. </Original>
  20606. <Expanded>
  20607. "{ "abc", "def", "ghi" }"
  20608. ==
  20609. "{ "abc", "def", "ghi" }"
  20610. </Expanded>
  20611. </Expression>
  20612. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  20613. </Section>
  20614. <OverallResult success="true"/>
  20615. </TestCase>
  20616. <TestCase name="std::vector&lt;std::pair&lt;std::string,int> > -> toString" tags="[pair][toString]" filename="tests/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  20617. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  20618. <Original>
  20619. ::Catch::Detail::stringify( pr ) == "{ { \"green\", 55 } }"
  20620. </Original>
  20621. <Expanded>
  20622. "{ { "green", 55 } }"
  20623. ==
  20624. "{ { "green", 55 } }"
  20625. </Expanded>
  20626. </Expression>
  20627. <OverallResult success="true"/>
  20628. </TestCase>
  20629. <TestCase name="stdout and stderr streams have %-starting name" tags="[streams]" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  20630. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  20631. <Original>
  20632. Catch::makeStream( "%stderr" )->isConsole()
  20633. </Original>
  20634. <Expanded>
  20635. true
  20636. </Expanded>
  20637. </Expression>
  20638. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  20639. <Original>
  20640. Catch::makeStream( "%stdout" )->isConsole()
  20641. </Original>
  20642. <Expanded>
  20643. true
  20644. </Expanded>
  20645. </Expression>
  20646. <OverallResult success="true"/>
  20647. </TestCase>
  20648. <TestCase name="stringify ranges" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20649. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20650. <Original>
  20651. ::Catch::Detail::stringify(streamable_range{}) == "op&lt;&lt;(streamable_range)"
  20652. </Original>
  20653. <Expanded>
  20654. "op&lt;&lt;(streamable_range)"
  20655. ==
  20656. "op&lt;&lt;(streamable_range)"
  20657. </Expanded>
  20658. </Expression>
  20659. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20660. <Original>
  20661. ::Catch::Detail::stringify(stringmaker_range{}) == "stringmaker(streamable_range)"
  20662. </Original>
  20663. <Expanded>
  20664. "stringmaker(streamable_range)"
  20665. ==
  20666. "stringmaker(streamable_range)"
  20667. </Expanded>
  20668. </Expression>
  20669. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20670. <Original>
  20671. ::Catch::Detail::stringify(just_range{}) == "{ 1, 2, 3, 4 }"
  20672. </Original>
  20673. <Expanded>
  20674. "{ 1, 2, 3, 4 }" == "{ 1, 2, 3, 4 }"
  20675. </Expanded>
  20676. </Expression>
  20677. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20678. <Original>
  20679. ::Catch::Detail::stringify(disabled_range{}) == "{?}"
  20680. </Original>
  20681. <Expanded>
  20682. "{?}" == "{?}"
  20683. </Expanded>
  20684. </Expression>
  20685. <OverallResult success="true"/>
  20686. </TestCase>
  20687. <TestCase name="stringify( has_maker )" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20688. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20689. <Original>
  20690. ::Catch::Detail::stringify( item ) == "StringMaker&lt;has_maker>"
  20691. </Original>
  20692. <Expanded>
  20693. "StringMaker&lt;has_maker>"
  20694. ==
  20695. "StringMaker&lt;has_maker>"
  20696. </Expanded>
  20697. </Expression>
  20698. <OverallResult success="true"/>
  20699. </TestCase>
  20700. <TestCase name="stringify( has_maker_and_operator )" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20701. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20702. <Original>
  20703. ::Catch::Detail::stringify( item ) == "StringMaker&lt;has_maker_and_operator>"
  20704. </Original>
  20705. <Expanded>
  20706. "StringMaker&lt;has_maker_and_operator>"
  20707. ==
  20708. "StringMaker&lt;has_maker_and_operator>"
  20709. </Expanded>
  20710. </Expression>
  20711. <OverallResult success="true"/>
  20712. </TestCase>
  20713. <TestCase name="stringify( has_neither )" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20714. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20715. <Original>
  20716. ::Catch::Detail::stringify(item) == "{?}"
  20717. </Original>
  20718. <Expanded>
  20719. "{?}" == "{?}"
  20720. </Expanded>
  20721. </Expression>
  20722. <OverallResult success="true"/>
  20723. </TestCase>
  20724. <TestCase name="stringify( has_operator )" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20725. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20726. <Original>
  20727. ::Catch::Detail::stringify( item ) == "operator&lt;&lt;( has_operator )"
  20728. </Original>
  20729. <Expanded>
  20730. "operator&lt;&lt;( has_operator )"
  20731. ==
  20732. "operator&lt;&lt;( has_operator )"
  20733. </Expanded>
  20734. </Expression>
  20735. <OverallResult success="true"/>
  20736. </TestCase>
  20737. <TestCase name="stringify( has_template_operator )" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20738. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20739. <Original>
  20740. ::Catch::Detail::stringify( item ) == "operator&lt;&lt;( has_template_operator )"
  20741. </Original>
  20742. <Expanded>
  20743. "operator&lt;&lt;( has_template_operator )"
  20744. ==
  20745. "operator&lt;&lt;( has_template_operator )"
  20746. </Expanded>
  20747. </Expression>
  20748. <OverallResult success="true"/>
  20749. </TestCase>
  20750. <TestCase name="stringify( vectors&lt;has_maker> )" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20751. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20752. <Original>
  20753. ::Catch::Detail::stringify( v ) == "{ StringMaker&lt;has_maker> }"
  20754. </Original>
  20755. <Expanded>
  20756. "{ StringMaker&lt;has_maker> }"
  20757. ==
  20758. "{ StringMaker&lt;has_maker> }"
  20759. </Expanded>
  20760. </Expression>
  20761. <OverallResult success="true"/>
  20762. </TestCase>
  20763. <TestCase name="stringify( vectors&lt;has_maker_and_operator> )" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20764. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20765. <Original>
  20766. ::Catch::Detail::stringify( v ) == "{ StringMaker&lt;has_maker_and_operator> }"
  20767. </Original>
  20768. <Expanded>
  20769. "{ StringMaker&lt;has_maker_and_operator> }"
  20770. ==
  20771. "{ StringMaker&lt;has_maker_and_operator> }"
  20772. </Expanded>
  20773. </Expression>
  20774. <OverallResult success="true"/>
  20775. </TestCase>
  20776. <TestCase name="stringify( vectors&lt;has_operator> )" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20777. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20778. <Original>
  20779. ::Catch::Detail::stringify( v ) == "{ operator&lt;&lt;( has_operator ) }"
  20780. </Original>
  20781. <Expanded>
  20782. "{ operator&lt;&lt;( has_operator ) }"
  20783. ==
  20784. "{ operator&lt;&lt;( has_operator ) }"
  20785. </Expanded>
  20786. </Expression>
  20787. <OverallResult success="true"/>
  20788. </TestCase>
  20789. <TestCase name="strlen3" tags="[generators]" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20790. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20791. <Original>
  20792. data.str.size() == data.len
  20793. </Original>
  20794. <Expanded>
  20795. 3 == 3
  20796. </Expanded>
  20797. </Expression>
  20798. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20799. <Original>
  20800. data.str.size() == data.len
  20801. </Original>
  20802. <Expanded>
  20803. 3 == 3
  20804. </Expanded>
  20805. </Expression>
  20806. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20807. <Original>
  20808. data.str.size() == data.len
  20809. </Original>
  20810. <Expanded>
  20811. 5 == 5
  20812. </Expanded>
  20813. </Expression>
  20814. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20815. <Original>
  20816. data.str.size() == data.len
  20817. </Original>
  20818. <Expanded>
  20819. 4 == 4
  20820. </Expanded>
  20821. </Expression>
  20822. <OverallResult success="true"/>
  20823. </TestCase>
  20824. <TestCase name="tables" tags="[generators]" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20825. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20826. <Original>
  20827. strlen(std::get&lt;0>(data)) == static_cast&lt;size_t>(std::get&lt;1>(data))
  20828. </Original>
  20829. <Expanded>
  20830. 5 == 5
  20831. </Expanded>
  20832. </Expression>
  20833. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20834. <Original>
  20835. strlen(std::get&lt;0>(data)) == static_cast&lt;size_t>(std::get&lt;1>(data))
  20836. </Original>
  20837. <Expanded>
  20838. 6 == 6
  20839. </Expanded>
  20840. </Expression>
  20841. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20842. <Original>
  20843. strlen(std::get&lt;0>(data)) == static_cast&lt;size_t>(std::get&lt;1>(data))
  20844. </Original>
  20845. <Expanded>
  20846. 5 == 5
  20847. </Expanded>
  20848. </Expression>
  20849. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20850. <Original>
  20851. strlen(std::get&lt;0>(data)) == static_cast&lt;size_t>(std::get&lt;1>(data))
  20852. </Original>
  20853. <Expanded>
  20854. 6 == 6
  20855. </Expanded>
  20856. </Expression>
  20857. <OverallResult success="true"/>
  20858. </TestCase>
  20859. <TestCase name="tags with dots in later positions are not parsed as hidden" tags="[tags]" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  20860. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  20861. <Original>
  20862. testcase.tags.size() == 1
  20863. </Original>
  20864. <Expanded>
  20865. 1 == 1
  20866. </Expanded>
  20867. </Expression>
  20868. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  20869. <Original>
  20870. testcase.tags[0].original == "magic.tag"_catch_sr
  20871. </Original>
  20872. <Expanded>
  20873. magic.tag == magic.tag
  20874. </Expanded>
  20875. </Expression>
  20876. <OverallResult success="true"/>
  20877. </TestCase>
  20878. <TestCase name="thrown std::strings are translated" tags="[!throws][.][failing]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  20879. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  20880. Why would you throw a std::string?
  20881. </Exception>
  20882. <OverallResult success="false"/>
  20883. </TestCase>
  20884. <TestCase name="toString on const wchar_t const pointer returns the string contents" tags="[toString]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20885. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20886. <Original>
  20887. result == "\"wide load\""
  20888. </Original>
  20889. <Expanded>
  20890. ""wide load"" == ""wide load""
  20891. </Expanded>
  20892. </Expression>
  20893. <OverallResult success="true"/>
  20894. </TestCase>
  20895. <TestCase name="toString on const wchar_t pointer returns the string contents" tags="[toString]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20896. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20897. <Original>
  20898. result == "\"wide load\""
  20899. </Original>
  20900. <Expanded>
  20901. ""wide load"" == ""wide load""
  20902. </Expanded>
  20903. </Expression>
  20904. <OverallResult success="true"/>
  20905. </TestCase>
  20906. <TestCase name="toString on wchar_t const pointer returns the string contents" tags="[toString]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20907. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20908. <Original>
  20909. result == "\"wide load\""
  20910. </Original>
  20911. <Expanded>
  20912. ""wide load"" == ""wide load""
  20913. </Expanded>
  20914. </Expression>
  20915. <OverallResult success="true"/>
  20916. </TestCase>
  20917. <TestCase name="toString on wchar_t returns the string contents" tags="[toString]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20918. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20919. <Original>
  20920. result == "\"wide load\""
  20921. </Original>
  20922. <Expanded>
  20923. ""wide load"" == ""wide load""
  20924. </Expanded>
  20925. </Expression>
  20926. <OverallResult success="true"/>
  20927. </TestCase>
  20928. <TestCase name="toString(enum class w/operator&lt;&lt;)" tags="[enum][enumClass][toString]" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20929. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20930. <Original>
  20931. ::Catch::Detail::stringify(e0) == "E2/V0"
  20932. </Original>
  20933. <Expanded>
  20934. "E2/V0" == "E2/V0"
  20935. </Expanded>
  20936. </Expression>
  20937. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20938. <Original>
  20939. ::Catch::Detail::stringify(e1) == "E2/V1"
  20940. </Original>
  20941. <Expanded>
  20942. "E2/V1" == "E2/V1"
  20943. </Expanded>
  20944. </Expression>
  20945. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20946. <Original>
  20947. ::Catch::Detail::stringify(e3) == "Unknown enum value 10"
  20948. </Original>
  20949. <Expanded>
  20950. "Unknown enum value 10"
  20951. ==
  20952. "Unknown enum value 10"
  20953. </Expanded>
  20954. </Expression>
  20955. <OverallResult success="true"/>
  20956. </TestCase>
  20957. <TestCase name="toString(enum class)" tags="[enum][enumClass][toString]" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20958. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20959. <Original>
  20960. ::Catch::Detail::stringify(e0) == "0"
  20961. </Original>
  20962. <Expanded>
  20963. "0" == "0"
  20964. </Expanded>
  20965. </Expression>
  20966. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20967. <Original>
  20968. ::Catch::Detail::stringify(e1) == "1"
  20969. </Original>
  20970. <Expanded>
  20971. "1" == "1"
  20972. </Expanded>
  20973. </Expression>
  20974. <OverallResult success="true"/>
  20975. </TestCase>
  20976. <TestCase name="toString(enum w/operator&lt;&lt;)" tags="[enum][toString]" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20977. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20978. <Original>
  20979. ::Catch::Detail::stringify(e0) == "E2{0}"
  20980. </Original>
  20981. <Expanded>
  20982. "E2{0}" == "E2{0}"
  20983. </Expanded>
  20984. </Expression>
  20985. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20986. <Original>
  20987. ::Catch::Detail::stringify(e1) == "E2{1}"
  20988. </Original>
  20989. <Expanded>
  20990. "E2{1}" == "E2{1}"
  20991. </Expanded>
  20992. </Expression>
  20993. <OverallResult success="true"/>
  20994. </TestCase>
  20995. <TestCase name="toString(enum)" tags="[enum][toString]" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20996. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20997. <Original>
  20998. ::Catch::Detail::stringify(e0) == "0"
  20999. </Original>
  21000. <Expanded>
  21001. "0" == "0"
  21002. </Expanded>
  21003. </Expression>
  21004. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  21005. <Original>
  21006. ::Catch::Detail::stringify(e1) == "1"
  21007. </Original>
  21008. <Expanded>
  21009. "1" == "1"
  21010. </Expanded>
  21011. </Expression>
  21012. <OverallResult success="true"/>
  21013. </TestCase>
  21014. <TestCase name="tuple&lt;>" tags="[toString][tuple]" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21015. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21016. <Original>
  21017. "{ }" == ::Catch::Detail::stringify(type{})
  21018. </Original>
  21019. <Expanded>
  21020. "{ }" == "{ }"
  21021. </Expanded>
  21022. </Expression>
  21023. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21024. <Original>
  21025. "{ }" == ::Catch::Detail::stringify(value)
  21026. </Original>
  21027. <Expanded>
  21028. "{ }" == "{ }"
  21029. </Expanded>
  21030. </Expression>
  21031. <OverallResult success="true"/>
  21032. </TestCase>
  21033. <TestCase name="tuple&lt;float,int>" tags="[toString][tuple]" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21034. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21035. <Original>
  21036. "1.2f" == ::Catch::Detail::stringify(float(1.2))
  21037. </Original>
  21038. <Expanded>
  21039. "1.2f" == "1.2f"
  21040. </Expanded>
  21041. </Expression>
  21042. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21043. <Original>
  21044. "{ 1.2f, 0 }" == ::Catch::Detail::stringify(type{1.2f,0})
  21045. </Original>
  21046. <Expanded>
  21047. "{ 1.2f, 0 }" == "{ 1.2f, 0 }"
  21048. </Expanded>
  21049. </Expression>
  21050. <OverallResult success="true"/>
  21051. </TestCase>
  21052. <TestCase name="tuple&lt;int>" tags="[toString][tuple]" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21053. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21054. <Original>
  21055. "{ 0 }" == ::Catch::Detail::stringify(type{0})
  21056. </Original>
  21057. <Expanded>
  21058. "{ 0 }" == "{ 0 }"
  21059. </Expanded>
  21060. </Expression>
  21061. <OverallResult success="true"/>
  21062. </TestCase>
  21063. <TestCase name="tuple&lt;string,string>" tags="[toString][tuple]" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21064. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21065. <Original>
  21066. "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"})
  21067. </Original>
  21068. <Expanded>
  21069. "{ "hello", "world" }"
  21070. ==
  21071. "{ "hello", "world" }"
  21072. </Expanded>
  21073. </Expression>
  21074. <OverallResult success="true"/>
  21075. </TestCase>
  21076. <TestCase name="tuple&lt;tuple&lt;int>,tuple&lt;>,float>" tags="[toString][tuple]" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21077. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21078. <Original>
  21079. "{ { 42 }, { }, 1.2f }" == ::Catch::Detail::stringify(value)
  21080. </Original>
  21081. <Expanded>
  21082. "{ { 42 }, { }, 1.2f }"
  21083. ==
  21084. "{ { 42 }, { }, 1.2f }"
  21085. </Expanded>
  21086. </Expression>
  21087. <OverallResult success="true"/>
  21088. </TestCase>
  21089. <TestCase name="uniform samples" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21090. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21091. <Original>
  21092. e.point == 23
  21093. </Original>
  21094. <Expanded>
  21095. 23.0 == 23
  21096. </Expanded>
  21097. </Expression>
  21098. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21099. <Original>
  21100. e.upper_bound == 23
  21101. </Original>
  21102. <Expanded>
  21103. 23.0 == 23
  21104. </Expanded>
  21105. </Expression>
  21106. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21107. <Original>
  21108. e.lower_bound == 23
  21109. </Original>
  21110. <Expanded>
  21111. 23.0 == 23
  21112. </Expanded>
  21113. </Expression>
  21114. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21115. <Original>
  21116. e.confidence_interval == 0.95
  21117. </Original>
  21118. <Expanded>
  21119. 0.95 == 0.95
  21120. </Expanded>
  21121. </Expression>
  21122. <OverallResult success="true"/>
  21123. </TestCase>
  21124. <TestCase name="unique_ptr reimplementation: basic functionality" tags="[internals][unique-ptr]" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21125. <Section name="Default constructed unique_ptr is empty" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21126. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21127. <Original>
  21128. !(ptr)
  21129. </Original>
  21130. <Expanded>
  21131. !{?}
  21132. </Expanded>
  21133. </Expression>
  21134. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21135. <Original>
  21136. ptr.get() == 0
  21137. </Original>
  21138. <Expanded>
  21139. 0 == 0
  21140. </Expanded>
  21141. </Expression>
  21142. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  21143. </Section>
  21144. <Section name="Take ownership of allocation" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21145. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21146. <Original>
  21147. ptr
  21148. </Original>
  21149. <Expanded>
  21150. {?}
  21151. </Expanded>
  21152. </Expression>
  21153. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21154. <Original>
  21155. *ptr == 0
  21156. </Original>
  21157. <Expanded>
  21158. 0 == 0
  21159. </Expanded>
  21160. </Expression>
  21161. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21162. <Original>
  21163. ptr.get() == naked_ptr
  21164. </Original>
  21165. <Expanded>
  21166. 0x<hex digits> == 0x<hex digits>
  21167. </Expanded>
  21168. </Expression>
  21169. <Section name="Plain reset deallocates" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21170. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21171. <Original>
  21172. !(ptr)
  21173. </Original>
  21174. <Expanded>
  21175. !{?}
  21176. </Expanded>
  21177. </Expression>
  21178. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21179. <Original>
  21180. ptr.get() == 0
  21181. </Original>
  21182. <Expanded>
  21183. 0 == 0
  21184. </Expanded>
  21185. </Expression>
  21186. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  21187. </Section>
  21188. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  21189. </Section>
  21190. <Section name="Take ownership of allocation" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21191. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21192. <Original>
  21193. ptr
  21194. </Original>
  21195. <Expanded>
  21196. {?}
  21197. </Expanded>
  21198. </Expression>
  21199. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21200. <Original>
  21201. *ptr == 0
  21202. </Original>
  21203. <Expanded>
  21204. 0 == 0
  21205. </Expanded>
  21206. </Expression>
  21207. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21208. <Original>
  21209. ptr.get() == naked_ptr
  21210. </Original>
  21211. <Expanded>
  21212. 0x<hex digits> == 0x<hex digits>
  21213. </Expanded>
  21214. </Expression>
  21215. <Section name="Reset replaces ownership" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21216. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21217. <Original>
  21218. ptr
  21219. </Original>
  21220. <Expanded>
  21221. {?}
  21222. </Expanded>
  21223. </Expression>
  21224. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21225. <Original>
  21226. ptr.get() != 0
  21227. </Original>
  21228. <Expanded>
  21229. 0x<hex digits> != 0
  21230. </Expanded>
  21231. </Expression>
  21232. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21233. <Original>
  21234. *ptr == 2
  21235. </Original>
  21236. <Expanded>
  21237. 2 == 2
  21238. </Expanded>
  21239. </Expression>
  21240. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  21241. </Section>
  21242. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  21243. </Section>
  21244. <Section name="Release releases ownership" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21245. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21246. <Original>
  21247. !(ptr)
  21248. </Original>
  21249. <Expanded>
  21250. !{?}
  21251. </Expanded>
  21252. </Expression>
  21253. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21254. <Original>
  21255. ptr.get() == 0
  21256. </Original>
  21257. <Expanded>
  21258. 0 == 0
  21259. </Expanded>
  21260. </Expression>
  21261. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  21262. </Section>
  21263. <Section name="Move constructor" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21264. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21265. <Original>
  21266. !(ptr1)
  21267. </Original>
  21268. <Expanded>
  21269. !{?}
  21270. </Expanded>
  21271. </Expression>
  21272. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21273. <Original>
  21274. ptr2
  21275. </Original>
  21276. <Expanded>
  21277. {?}
  21278. </Expanded>
  21279. </Expression>
  21280. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21281. <Original>
  21282. *ptr2 == 1
  21283. </Original>
  21284. <Expanded>
  21285. 1 == 1
  21286. </Expanded>
  21287. </Expression>
  21288. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  21289. </Section>
  21290. <Section name="Move assignment" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21291. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21292. <Original>
  21293. !(ptr2)
  21294. </Original>
  21295. <Expanded>
  21296. !{?}
  21297. </Expanded>
  21298. </Expression>
  21299. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21300. <Original>
  21301. ptr1
  21302. </Original>
  21303. <Expanded>
  21304. {?}
  21305. </Expanded>
  21306. </Expression>
  21307. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21308. <Original>
  21309. *ptr1 == 2
  21310. </Original>
  21311. <Expanded>
  21312. 2 == 2
  21313. </Expanded>
  21314. </Expression>
  21315. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  21316. </Section>
  21317. <Section name="free swap" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21318. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21319. <Original>
  21320. *ptr1 == 2
  21321. </Original>
  21322. <Expanded>
  21323. 2 == 2
  21324. </Expanded>
  21325. </Expression>
  21326. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21327. <Original>
  21328. *ptr2 == 1
  21329. </Original>
  21330. <Expanded>
  21331. 1 == 1
  21332. </Expanded>
  21333. </Expression>
  21334. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  21335. </Section>
  21336. <OverallResult success="true"/>
  21337. </TestCase>
  21338. <TestCase name="vec&lt;vec&lt;string,alloc>> -> toString" tags="[toString][vector,allocator]" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21339. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21340. <Original>
  21341. ::Catch::Detail::stringify(v) == "{ }"
  21342. </Original>
  21343. <Expanded>
  21344. "{ }" == "{ }"
  21345. </Expanded>
  21346. </Expression>
  21347. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21348. <Original>
  21349. ::Catch::Detail::stringify(v) == "{ { \"hello\" }, { \"world\" } }"
  21350. </Original>
  21351. <Expanded>
  21352. "{ { "hello" }, { "world" } }"
  21353. ==
  21354. "{ { "hello" }, { "world" } }"
  21355. </Expanded>
  21356. </Expression>
  21357. <OverallResult success="true"/>
  21358. </TestCase>
  21359. <TestCase name="vector&lt;bool> -> toString" tags="[containers][toString][vector]" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21360. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21361. <Original>
  21362. ::Catch::Detail::stringify(bools) == "{ }"
  21363. </Original>
  21364. <Expanded>
  21365. "{ }" == "{ }"
  21366. </Expanded>
  21367. </Expression>
  21368. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21369. <Original>
  21370. ::Catch::Detail::stringify(bools) == "{ true }"
  21371. </Original>
  21372. <Expanded>
  21373. "{ true }" == "{ true }"
  21374. </Expanded>
  21375. </Expression>
  21376. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21377. <Original>
  21378. ::Catch::Detail::stringify(bools) == "{ true, false }"
  21379. </Original>
  21380. <Expanded>
  21381. "{ true, false }" == "{ true, false }"
  21382. </Expanded>
  21383. </Expression>
  21384. <OverallResult success="true"/>
  21385. </TestCase>
  21386. <TestCase name="vector&lt;int,allocator> -> toString" tags="[toString][vector,allocator]" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21387. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21388. <Original>
  21389. ::Catch::Detail::stringify(vv) == "{ }"
  21390. </Original>
  21391. <Expanded>
  21392. "{ }" == "{ }"
  21393. </Expanded>
  21394. </Expression>
  21395. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21396. <Original>
  21397. ::Catch::Detail::stringify(vv) == "{ 42 }"
  21398. </Original>
  21399. <Expanded>
  21400. "{ 42 }" == "{ 42 }"
  21401. </Expanded>
  21402. </Expression>
  21403. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21404. <Original>
  21405. ::Catch::Detail::stringify(vv) == "{ 42, 250 }"
  21406. </Original>
  21407. <Expanded>
  21408. "{ 42, 250 }" == "{ 42, 250 }"
  21409. </Expanded>
  21410. </Expression>
  21411. <OverallResult success="true"/>
  21412. </TestCase>
  21413. <TestCase name="vector&lt;int> -> toString" tags="[toString][vector]" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21414. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21415. <Original>
  21416. ::Catch::Detail::stringify(vv) == "{ }"
  21417. </Original>
  21418. <Expanded>
  21419. "{ }" == "{ }"
  21420. </Expanded>
  21421. </Expression>
  21422. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21423. <Original>
  21424. ::Catch::Detail::stringify(vv) == "{ 42 }"
  21425. </Original>
  21426. <Expanded>
  21427. "{ 42 }" == "{ 42 }"
  21428. </Expanded>
  21429. </Expression>
  21430. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21431. <Original>
  21432. ::Catch::Detail::stringify(vv) == "{ 42, 250 }"
  21433. </Original>
  21434. <Expanded>
  21435. "{ 42, 250 }" == "{ 42, 250 }"
  21436. </Expanded>
  21437. </Expression>
  21438. <OverallResult success="true"/>
  21439. </TestCase>
  21440. <TestCase name="vector&lt;string> -> toString" tags="[toString][vector]" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21441. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21442. <Original>
  21443. ::Catch::Detail::stringify(vv) == "{ }"
  21444. </Original>
  21445. <Expanded>
  21446. "{ }" == "{ }"
  21447. </Expanded>
  21448. </Expression>
  21449. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21450. <Original>
  21451. ::Catch::Detail::stringify(vv) == "{ \"hello\" }"
  21452. </Original>
  21453. <Expanded>
  21454. "{ "hello" }" == "{ "hello" }"
  21455. </Expanded>
  21456. </Expression>
  21457. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21458. <Original>
  21459. ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }"
  21460. </Original>
  21461. <Expanded>
  21462. "{ "hello", "world" }"
  21463. ==
  21464. "{ "hello", "world" }"
  21465. </Expanded>
  21466. </Expression>
  21467. <OverallResult success="true"/>
  21468. </TestCase>
  21469. <TestCase name="vectors can be sized and resized" tags="[vector]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21470. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21471. <Original>
  21472. v.size() == 5
  21473. </Original>
  21474. <Expanded>
  21475. 5 == 5
  21476. </Expanded>
  21477. </Expression>
  21478. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21479. <Original>
  21480. v.capacity() >= 5
  21481. </Original>
  21482. <Expanded>
  21483. 5 >= 5
  21484. </Expanded>
  21485. </Expression>
  21486. <Section name="resizing bigger changes size and capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21487. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21488. <Original>
  21489. v.size() == 10
  21490. </Original>
  21491. <Expanded>
  21492. 10 == 10
  21493. </Expanded>
  21494. </Expression>
  21495. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21496. <Original>
  21497. v.capacity() >= 10
  21498. </Original>
  21499. <Expanded>
  21500. 10 >= 10
  21501. </Expanded>
  21502. </Expression>
  21503. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  21504. </Section>
  21505. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21506. <Original>
  21507. v.size() == 5
  21508. </Original>
  21509. <Expanded>
  21510. 5 == 5
  21511. </Expanded>
  21512. </Expression>
  21513. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21514. <Original>
  21515. v.capacity() >= 5
  21516. </Original>
  21517. <Expanded>
  21518. 5 >= 5
  21519. </Expanded>
  21520. </Expression>
  21521. <Section name="resizing smaller changes size but not capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21522. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21523. <Original>
  21524. v.size() == 0
  21525. </Original>
  21526. <Expanded>
  21527. 0 == 0
  21528. </Expanded>
  21529. </Expression>
  21530. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21531. <Original>
  21532. v.capacity() >= 5
  21533. </Original>
  21534. <Expanded>
  21535. 5 >= 5
  21536. </Expanded>
  21537. </Expression>
  21538. <Section name="We can use the 'swap trick' to reset the capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21539. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21540. <Original>
  21541. v.capacity() == 0
  21542. </Original>
  21543. <Expanded>
  21544. 0 == 0
  21545. </Expanded>
  21546. </Expression>
  21547. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  21548. </Section>
  21549. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  21550. </Section>
  21551. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21552. <Original>
  21553. v.size() == 5
  21554. </Original>
  21555. <Expanded>
  21556. 5 == 5
  21557. </Expanded>
  21558. </Expression>
  21559. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21560. <Original>
  21561. v.capacity() >= 5
  21562. </Original>
  21563. <Expanded>
  21564. 5 >= 5
  21565. </Expanded>
  21566. </Expression>
  21567. <Section name="reserving bigger changes capacity but not size" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21568. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21569. <Original>
  21570. v.size() == 5
  21571. </Original>
  21572. <Expanded>
  21573. 5 == 5
  21574. </Expanded>
  21575. </Expression>
  21576. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21577. <Original>
  21578. v.capacity() >= 10
  21579. </Original>
  21580. <Expanded>
  21581. 10 >= 10
  21582. </Expanded>
  21583. </Expression>
  21584. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  21585. </Section>
  21586. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21587. <Original>
  21588. v.size() == 5
  21589. </Original>
  21590. <Expanded>
  21591. 5 == 5
  21592. </Expanded>
  21593. </Expression>
  21594. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21595. <Original>
  21596. v.capacity() >= 5
  21597. </Original>
  21598. <Expanded>
  21599. 5 >= 5
  21600. </Expanded>
  21601. </Expression>
  21602. <Section name="reserving smaller does not change size or capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21603. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21604. <Original>
  21605. v.size() == 5
  21606. </Original>
  21607. <Expanded>
  21608. 5 == 5
  21609. </Expanded>
  21610. </Expression>
  21611. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21612. <Original>
  21613. v.capacity() >= 5
  21614. </Original>
  21615. <Expanded>
  21616. 5 >= 5
  21617. </Expanded>
  21618. </Expression>
  21619. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  21620. </Section>
  21621. <OverallResult success="true"/>
  21622. </TestCase>
  21623. <TestCase name="warmup" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21624. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21625. <Original>
  21626. (iterations * rate) > Catch::Benchmark::Detail::warmup_time.count()
  21627. </Original>
  21628. <Expanded>
  21629. 160000000 (0x<hex digits>) > 100
  21630. </Expanded>
  21631. </Expression>
  21632. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21633. <Original>
  21634. (end - start) > Catch::Benchmark::Detail::warmup_time
  21635. </Original>
  21636. <Expanded>
  21637. 310016000 ns > 100 ms
  21638. </Expanded>
  21639. </Expression>
  21640. <OverallResult success="true"/>
  21641. </TestCase>
  21642. <TestCase name="weighted_average_quantile" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21643. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21644. <Original>
  21645. q1 == 14.5
  21646. </Original>
  21647. <Expanded>
  21648. 14.5 == 14.5
  21649. </Expanded>
  21650. </Expression>
  21651. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21652. <Original>
  21653. med == 18.
  21654. </Original>
  21655. <Expanded>
  21656. 18.0 == 18.0
  21657. </Expanded>
  21658. </Expression>
  21659. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21660. <Original>
  21661. q3 == 23.
  21662. </Original>
  21663. <Expanded>
  21664. 23.0 == 23.0
  21665. </Expanded>
  21666. </Expression>
  21667. <OverallResult success="true"/>
  21668. </TestCase>
  21669. <TestCase name="xmlentitycheck" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21670. <Section name="embedded xml: &lt;test>it should be possible to embed xml characters, such as &lt;, &quot; or &amp;, or even whole &lt;xml>documents&lt;/xml> within an attribute&lt;/test>" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21671. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  21672. </Section>
  21673. <Section name="encoded chars: these should all be encoded: &amp;&amp;&amp;&quot;&quot;&quot;&lt;&lt;&lt;&amp;&quot;&lt;&lt;&amp;&quot;" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21674. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  21675. </Section>
  21676. <OverallResult success="true"/>
  21677. </TestCase>
  21678. <OverallResults successes="2129" failures="143" expectedFailures="27"/>
  21679. <OverallResultsCases successes="304" failures="83" expectedFailures="7"/>
  21680. </Catch2TestRun>