xml.sw.multi.approved.txt 820 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706
  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. <OverallResult success="false"/>
  19142. </TestCase>
  19143. <TestCase name="is_unary_function" tags="[clara][compilation]" filename="tests/<exe-name>/IntrospectiveTests/Clara.tests.cpp" >
  19144. <OverallResult success="true"/>
  19145. </TestCase>
  19146. <TestCase name="just failure" tags="[.][fail][isolated info][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19147. <Failure filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19148. Previous info should not be seen
  19149. </Failure>
  19150. <OverallResult success="false"/>
  19151. </TestCase>
  19152. <TestCase name="just failure after unscoped info" tags="[.][failing][info][unscoped]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19153. <Failure filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19154. previous unscoped info SHOULD not be seen
  19155. </Failure>
  19156. <OverallResult success="false"/>
  19157. </TestCase>
  19158. <TestCase name="just info" tags="[info][isolated info][messages]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19159. <OverallResult success="false"/>
  19160. </TestCase>
  19161. <TestCase name="just unscoped info" tags="[info][unscoped]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19162. <OverallResult success="false"/>
  19163. </TestCase>
  19164. <TestCase name="long long" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19165. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19166. <Original>
  19167. l == std::numeric_limits&lt;long long>::max()
  19168. </Original>
  19169. <Expanded>
  19170. 9223372036854775807 (0x<hex digits>)
  19171. ==
  19172. 9223372036854775807 (0x<hex digits>)
  19173. </Expanded>
  19174. </Expression>
  19175. <OverallResult success="true"/>
  19176. </TestCase>
  19177. <TestCase name="looped SECTION tests" tags="[.][failing][sections]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19178. <Section name="b is currently: 0" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19179. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19180. <Original>
  19181. b > a
  19182. </Original>
  19183. <Expanded>
  19184. 0 > 1
  19185. </Expanded>
  19186. </Expression>
  19187. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  19188. </Section>
  19189. <Section name="b is currently: 1" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19190. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19191. <Original>
  19192. b > a
  19193. </Original>
  19194. <Expanded>
  19195. 1 > 1
  19196. </Expanded>
  19197. </Expression>
  19198. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  19199. </Section>
  19200. <Section name="b is currently: 2" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19201. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19202. <Original>
  19203. b > a
  19204. </Original>
  19205. <Expanded>
  19206. 2 > 1
  19207. </Expanded>
  19208. </Expression>
  19209. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19210. </Section>
  19211. <Section name="b is currently: 3" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19212. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19213. <Original>
  19214. b > a
  19215. </Original>
  19216. <Expanded>
  19217. 3 > 1
  19218. </Expanded>
  19219. </Expression>
  19220. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19221. </Section>
  19222. <Section name="b is currently: 4" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19223. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19224. <Original>
  19225. b > a
  19226. </Original>
  19227. <Expanded>
  19228. 4 > 1
  19229. </Expanded>
  19230. </Expression>
  19231. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19232. </Section>
  19233. <Section name="b is currently: 5" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19234. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19235. <Original>
  19236. b > a
  19237. </Original>
  19238. <Expanded>
  19239. 5 > 1
  19240. </Expanded>
  19241. </Expression>
  19242. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19243. </Section>
  19244. <Section name="b is currently: 6" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19245. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19246. <Original>
  19247. b > a
  19248. </Original>
  19249. <Expanded>
  19250. 6 > 1
  19251. </Expanded>
  19252. </Expression>
  19253. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19254. </Section>
  19255. <Section name="b is currently: 7" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19256. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19257. <Original>
  19258. b > a
  19259. </Original>
  19260. <Expanded>
  19261. 7 > 1
  19262. </Expanded>
  19263. </Expression>
  19264. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19265. </Section>
  19266. <Section name="b is currently: 8" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19267. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19268. <Original>
  19269. b > a
  19270. </Original>
  19271. <Expanded>
  19272. 8 > 1
  19273. </Expanded>
  19274. </Expression>
  19275. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19276. </Section>
  19277. <Section name="b is currently: 9" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19278. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19279. <Original>
  19280. b > a
  19281. </Original>
  19282. <Expanded>
  19283. 9 > 1
  19284. </Expanded>
  19285. </Expression>
  19286. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19287. </Section>
  19288. <OverallResult success="false"/>
  19289. </TestCase>
  19290. <TestCase name="looped tests" tags="[.][failing]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19291. <Info>
  19292. Testing if fib[0] (1) is even
  19293. </Info>
  19294. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19295. <Original>
  19296. ( fib[i] % 2 ) == 0
  19297. </Original>
  19298. <Expanded>
  19299. 1 == 0
  19300. </Expanded>
  19301. </Expression>
  19302. <Info>
  19303. Testing if fib[1] (1) is even
  19304. </Info>
  19305. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19306. <Original>
  19307. ( fib[i] % 2 ) == 0
  19308. </Original>
  19309. <Expanded>
  19310. 1 == 0
  19311. </Expanded>
  19312. </Expression>
  19313. <Info>
  19314. Testing if fib[2] (2) is even
  19315. </Info>
  19316. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19317. <Original>
  19318. ( fib[i] % 2 ) == 0
  19319. </Original>
  19320. <Expanded>
  19321. 0 == 0
  19322. </Expanded>
  19323. </Expression>
  19324. <Info>
  19325. Testing if fib[3] (3) is even
  19326. </Info>
  19327. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19328. <Original>
  19329. ( fib[i] % 2 ) == 0
  19330. </Original>
  19331. <Expanded>
  19332. 1 == 0
  19333. </Expanded>
  19334. </Expression>
  19335. <Info>
  19336. Testing if fib[4] (5) is even
  19337. </Info>
  19338. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19339. <Original>
  19340. ( fib[i] % 2 ) == 0
  19341. </Original>
  19342. <Expanded>
  19343. 1 == 0
  19344. </Expanded>
  19345. </Expression>
  19346. <Info>
  19347. Testing if fib[5] (8) is even
  19348. </Info>
  19349. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19350. <Original>
  19351. ( fib[i] % 2 ) == 0
  19352. </Original>
  19353. <Expanded>
  19354. 0 == 0
  19355. </Expanded>
  19356. </Expression>
  19357. <Info>
  19358. Testing if fib[6] (13) is even
  19359. </Info>
  19360. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19361. <Original>
  19362. ( fib[i] % 2 ) == 0
  19363. </Original>
  19364. <Expanded>
  19365. 1 == 0
  19366. </Expanded>
  19367. </Expression>
  19368. <Info>
  19369. Testing if fib[7] (21) is even
  19370. </Info>
  19371. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19372. <Original>
  19373. ( fib[i] % 2 ) == 0
  19374. </Original>
  19375. <Expanded>
  19376. 1 == 0
  19377. </Expanded>
  19378. </Expression>
  19379. <OverallResult success="false"/>
  19380. </TestCase>
  19381. <TestCase name="makeStream recognizes %debug stream name" tags="[streams]" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  19382. <Expression success="true" type="REQUIRE_NOTHROW" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  19383. <Original>
  19384. Catch::makeStream( "%debug" )
  19385. </Original>
  19386. <Expanded>
  19387. Catch::makeStream( "%debug" )
  19388. </Expanded>
  19389. </Expression>
  19390. <OverallResult success="true"/>
  19391. </TestCase>
  19392. <TestCase name="make_unique reimplementation" tags="[internals][unique-ptr]" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  19393. <Section name="From lvalue copies" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  19394. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  19395. <Original>
  19396. !(lval.has_moved)
  19397. </Original>
  19398. <Expanded>
  19399. !false
  19400. </Expanded>
  19401. </Expression>
  19402. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19403. </Section>
  19404. <Section name="From rvalue moves" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  19405. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  19406. <Original>
  19407. rval.has_moved
  19408. </Original>
  19409. <Expanded>
  19410. true
  19411. </Expanded>
  19412. </Expression>
  19413. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19414. </Section>
  19415. <Section name="Variadic constructor" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  19416. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  19417. <Original>
  19418. *ptr == std::tuple&lt;int, double, int>{1, 2., 3}
  19419. </Original>
  19420. <Expanded>
  19421. {?} == {?}
  19422. </Expanded>
  19423. </Expression>
  19424. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19425. </Section>
  19426. <OverallResult success="true"/>
  19427. </TestCase>
  19428. <TestCase name="mean" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19429. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19430. <Original>
  19431. m == 19.
  19432. </Original>
  19433. <Expanded>
  19434. 19.0 == 19.0
  19435. </Expanded>
  19436. </Expression>
  19437. <OverallResult success="true"/>
  19438. </TestCase>
  19439. <TestCase name="measure" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19440. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19441. <Original>
  19442. x == 17
  19443. </Original>
  19444. <Expanded>
  19445. 17 == 17
  19446. </Expanded>
  19447. </Expression>
  19448. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19449. <Original>
  19450. x == 23
  19451. </Original>
  19452. <Expanded>
  19453. 23 == 23
  19454. </Expanded>
  19455. </Expression>
  19456. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19457. <Original>
  19458. r.elapsed.count() == 42
  19459. </Original>
  19460. <Expanded>
  19461. 42 == 42
  19462. </Expanded>
  19463. </Expression>
  19464. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19465. <Original>
  19466. r.result == 23
  19467. </Original>
  19468. <Expanded>
  19469. 23 == 23
  19470. </Expanded>
  19471. </Expression>
  19472. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19473. <Original>
  19474. r.iterations == 1
  19475. </Original>
  19476. <Expanded>
  19477. 1 == 1
  19478. </Expanded>
  19479. </Expression>
  19480. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19481. <Original>
  19482. s.elapsed.count() == 69
  19483. </Original>
  19484. <Expanded>
  19485. 69 == 69
  19486. </Expanded>
  19487. </Expression>
  19488. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19489. <Original>
  19490. s.result == 17
  19491. </Original>
  19492. <Expanded>
  19493. 17 == 17
  19494. </Expanded>
  19495. </Expression>
  19496. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19497. <Original>
  19498. s.iterations == 1
  19499. </Original>
  19500. <Expanded>
  19501. 1 == 1
  19502. </Expanded>
  19503. </Expression>
  19504. <OverallResult success="true"/>
  19505. </TestCase>
  19506. <TestCase name="mix info, unscoped info and warning" tags="[info][unscoped]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19507. <Info>
  19508. info
  19509. </Info>
  19510. <Info>
  19511. unscoped info
  19512. </Info>
  19513. <Warning>
  19514. and warn may mix
  19515. </Warning>
  19516. <Info>
  19517. info
  19518. </Info>
  19519. <Info>
  19520. unscoped info
  19521. </Info>
  19522. <Warning>
  19523. they are not cleared after warnings
  19524. </Warning>
  19525. <OverallResult success="false"/>
  19526. </TestCase>
  19527. <TestCase name="more nested SECTION tests" tags="[.][failing][sections]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19528. <Section name="doesn't equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19529. <Section name="equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19530. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19531. <Original>
  19532. a == b
  19533. </Original>
  19534. <Expanded>
  19535. 1 == 2
  19536. </Expanded>
  19537. </Expression>
  19538. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  19539. </Section>
  19540. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  19541. </Section>
  19542. <Section name="doesn't equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19543. <Section name="not equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19544. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19545. <Original>
  19546. a != b
  19547. </Original>
  19548. <Expanded>
  19549. 1 != 2
  19550. </Expanded>
  19551. </Expression>
  19552. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19553. </Section>
  19554. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19555. </Section>
  19556. <Section name="doesn't equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19557. <Section name="less than" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19558. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19559. <Original>
  19560. a &lt; b
  19561. </Original>
  19562. <Expanded>
  19563. 1 &lt; 2
  19564. </Expanded>
  19565. </Expression>
  19566. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19567. </Section>
  19568. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19569. </Section>
  19570. <OverallResult success="false"/>
  19571. </TestCase>
  19572. <TestCase name="nested SECTION tests" tags="[.][failing][sections]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19573. <Section name="doesn't equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19574. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19575. <Original>
  19576. a != b
  19577. </Original>
  19578. <Expanded>
  19579. 1 != 2
  19580. </Expanded>
  19581. </Expression>
  19582. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19583. <Original>
  19584. b != a
  19585. </Original>
  19586. <Expanded>
  19587. 2 != 1
  19588. </Expanded>
  19589. </Expression>
  19590. <Section name="not equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19591. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19592. <Original>
  19593. a != b
  19594. </Original>
  19595. <Expanded>
  19596. 1 != 2
  19597. </Expanded>
  19598. </Expression>
  19599. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19600. </Section>
  19601. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  19602. </Section>
  19603. <OverallResult success="true"/>
  19604. </TestCase>
  19605. <TestCase name="non streamable - with conv. op" tags="[Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  19606. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  19607. <Original>
  19608. s == "7"
  19609. </Original>
  19610. <Expanded>
  19611. "7" == "7"
  19612. </Expanded>
  19613. </Expression>
  19614. <OverallResult success="true"/>
  19615. </TestCase>
  19616. <TestCase name="non-copyable objects" tags="[.][failing]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  19617. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  19618. <Original>
  19619. ti == typeid(int)
  19620. </Original>
  19621. <Expanded>
  19622. {?} == {?}
  19623. </Expanded>
  19624. </Expression>
  19625. <OverallResult success="true"/>
  19626. </TestCase>
  19627. <TestCase name="normal_cdf" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19628. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19629. <Original>
  19630. normal_cdf(0.000000) == Approx(0.50000000000000000)
  19631. </Original>
  19632. <Expanded>
  19633. 0.5 == Approx( 0.5 )
  19634. </Expanded>
  19635. </Expression>
  19636. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19637. <Original>
  19638. normal_cdf(1.000000) == Approx(0.84134474606854293)
  19639. </Original>
  19640. <Expanded>
  19641. 0.8413447461 == Approx( 0.8413447461 )
  19642. </Expanded>
  19643. </Expression>
  19644. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19645. <Original>
  19646. normal_cdf(-1.000000) == Approx(0.15865525393145705)
  19647. </Original>
  19648. <Expanded>
  19649. 0.1586552539 == Approx( 0.1586552539 )
  19650. </Expanded>
  19651. </Expression>
  19652. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19653. <Original>
  19654. normal_cdf(2.809729) == Approx(0.99752083845315409)
  19655. </Original>
  19656. <Expanded>
  19657. 0.9975208385 == Approx( 0.9975208385 )
  19658. </Expanded>
  19659. </Expression>
  19660. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19661. <Original>
  19662. normal_cdf(-1.352570) == Approx(0.08809652095066035)
  19663. </Original>
  19664. <Expanded>
  19665. 0.088096521 == Approx( 0.088096521 )
  19666. </Expanded>
  19667. </Expression>
  19668. <OverallResult success="true"/>
  19669. </TestCase>
  19670. <TestCase name="normal_quantile" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19671. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19672. <Original>
  19673. normal_quantile(0.551780) == Approx(0.13015979861484198)
  19674. </Original>
  19675. <Expanded>
  19676. 0.1301597986 == Approx( 0.1301597986 )
  19677. </Expanded>
  19678. </Expression>
  19679. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19680. <Original>
  19681. normal_quantile(0.533700) == Approx(0.08457408802851875)
  19682. </Original>
  19683. <Expanded>
  19684. 0.084574088 == Approx( 0.084574088 )
  19685. </Expanded>
  19686. </Expression>
  19687. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  19688. <Original>
  19689. normal_quantile(0.025000) == Approx(-1.95996398454005449)
  19690. </Original>
  19691. <Expanded>
  19692. -1.9599639845 == Approx( -1.9599639845 )
  19693. </Expanded>
  19694. </Expression>
  19695. <OverallResult success="true"/>
  19696. </TestCase>
  19697. <TestCase name="not allowed" tags="[!throws]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19698. <OverallResult success="true"/>
  19699. </TestCase>
  19700. <TestCase name="not prints unscoped info from previous failures" tags="[.][failing][info][unscoped]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19701. <Info>
  19702. this MAY be seen only for the FIRST assertion IF info is printed for passing assertions
  19703. </Info>
  19704. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19705. <Original>
  19706. true
  19707. </Original>
  19708. <Expanded>
  19709. true
  19710. </Expanded>
  19711. </Expression>
  19712. <Info>
  19713. this MAY be seen only for the SECOND assertion IF info is printed for passing assertions
  19714. </Info>
  19715. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19716. <Original>
  19717. true
  19718. </Original>
  19719. <Expanded>
  19720. true
  19721. </Expanded>
  19722. </Expression>
  19723. <Info>
  19724. this SHOULD be seen
  19725. </Info>
  19726. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19727. <Original>
  19728. false
  19729. </Original>
  19730. <Expanded>
  19731. false
  19732. </Expanded>
  19733. </Expression>
  19734. <OverallResult success="false"/>
  19735. </TestCase>
  19736. <TestCase name="null strings" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19737. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19738. <Original>
  19739. makeString( false ) != static_cast&lt;char*>(0)
  19740. </Original>
  19741. <Expanded>
  19742. "valid string" != {null string}
  19743. </Expanded>
  19744. </Expression>
  19745. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19746. <Original>
  19747. makeString( true ) == static_cast&lt;char*>(0)
  19748. </Original>
  19749. <Expanded>
  19750. {null string} == {null string}
  19751. </Expanded>
  19752. </Expression>
  19753. <OverallResult success="true"/>
  19754. </TestCase>
  19755. <TestCase name="null_ptr" tags="[Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  19756. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  19757. <Original>
  19758. ptr.get() == 0
  19759. </Original>
  19760. <Expanded>
  19761. 0 == 0
  19762. </Expanded>
  19763. </Expression>
  19764. <OverallResult success="true"/>
  19765. </TestCase>
  19766. <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" >
  19767. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  19768. <Original>
  19769. ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }"
  19770. </Original>
  19771. <Expanded>
  19772. "{ { 42, "Arthur" }, { "Ford", 24 } }"
  19773. ==
  19774. "{ { 42, "Arthur" }, { "Ford", 24 } }"
  19775. </Expanded>
  19776. </Expression>
  19777. <OverallResult success="true"/>
  19778. </TestCase>
  19779. <TestCase name="parseEnums" tags="[enums][Strings]" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19780. <Section name="No enums" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19781. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19782. <Original>
  19783. parseEnums( "" ), Equals( std::vector&lt;Catch::StringRef>{} )
  19784. </Original>
  19785. <Expanded>
  19786. { } Equals: { }
  19787. </Expanded>
  19788. </Expression>
  19789. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19790. </Section>
  19791. <Section name="One enum value" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19792. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19793. <Original>
  19794. parseEnums( "ClassName::EnumName::Value1" ), Equals(std::vector&lt;Catch::StringRef>{"Value1"} )
  19795. </Original>
  19796. <Expanded>
  19797. { Value1 } Equals: { Value1 }
  19798. </Expanded>
  19799. </Expression>
  19800. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19801. <Original>
  19802. parseEnums( "Value1" ), Equals( std::vector&lt;Catch::StringRef>{"Value1"} )
  19803. </Original>
  19804. <Expanded>
  19805. { Value1 } Equals: { Value1 }
  19806. </Expanded>
  19807. </Expression>
  19808. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19809. <Original>
  19810. parseEnums( "EnumName::Value1" ), Equals(std::vector&lt;Catch::StringRef>{"Value1"} )
  19811. </Original>
  19812. <Expanded>
  19813. { Value1 } Equals: { Value1 }
  19814. </Expanded>
  19815. </Expression>
  19816. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  19817. </Section>
  19818. <Section name="Multiple enum values" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19819. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19820. <Original>
  19821. parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2" ), Equals( std::vector&lt;Catch::StringRef>{"Value1", "Value2"} )
  19822. </Original>
  19823. <Expanded>
  19824. { Value1, Value2 } Equals: { Value1, Value2 }
  19825. </Expanded>
  19826. </Expression>
  19827. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19828. <Original>
  19829. parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2, ClassName::EnumName::Value3" ), Equals( std::vector&lt;Catch::StringRef>{"Value1", "Value2", "Value3"} )
  19830. </Original>
  19831. <Expanded>
  19832. { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
  19833. </Expanded>
  19834. </Expression>
  19835. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  19836. <Original>
  19837. parseEnums( "ClassName::EnumName::Value1,ClassName::EnumName::Value2 , ClassName::EnumName::Value3" ), Equals( std::vector&lt;Catch::StringRef>{"Value1", "Value2", "Value3"} )
  19838. </Original>
  19839. <Expanded>
  19840. { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
  19841. </Expanded>
  19842. </Expression>
  19843. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  19844. </Section>
  19845. <OverallResult success="true"/>
  19846. </TestCase>
  19847. <TestCase name="pointer to class" tags="[Tricky]" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  19848. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Tricky.tests.cpp" >
  19849. <Original>
  19850. p == 0
  19851. </Original>
  19852. <Expanded>
  19853. 0 == 0
  19854. </Expanded>
  19855. </Expression>
  19856. <OverallResult success="true"/>
  19857. </TestCase>
  19858. <TestCase name="print unscoped info if passing unscoped info is printed" tags="[info][unscoped]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19859. <Info>
  19860. this MAY be seen IF info is printed for passing assertions
  19861. </Info>
  19862. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19863. <Original>
  19864. true
  19865. </Original>
  19866. <Expanded>
  19867. true
  19868. </Expanded>
  19869. </Expression>
  19870. <OverallResult success="true"/>
  19871. </TestCase>
  19872. <TestCase name="prints unscoped info on failure" tags="[.][failing][info][unscoped]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19873. <Info>
  19874. this SHOULD be seen
  19875. </Info>
  19876. <Info>
  19877. this SHOULD also be seen
  19878. </Info>
  19879. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19880. <Original>
  19881. false
  19882. </Original>
  19883. <Expanded>
  19884. false
  19885. </Expanded>
  19886. </Expression>
  19887. <OverallResult success="false"/>
  19888. </TestCase>
  19889. <TestCase name="prints unscoped info only for the first assertion" tags="[.][failing][info][unscoped]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19890. <Info>
  19891. this SHOULD be seen only ONCE
  19892. </Info>
  19893. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19894. <Original>
  19895. false
  19896. </Original>
  19897. <Expanded>
  19898. false
  19899. </Expanded>
  19900. </Expression>
  19901. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19902. <Original>
  19903. true
  19904. </Original>
  19905. <Expanded>
  19906. true
  19907. </Expanded>
  19908. </Expression>
  19909. <Info>
  19910. this MAY also be seen only ONCE IF info is printed for passing assertions
  19911. </Info>
  19912. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19913. <Original>
  19914. true
  19915. </Original>
  19916. <Expanded>
  19917. true
  19918. </Expanded>
  19919. </Expression>
  19920. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  19921. <Original>
  19922. true
  19923. </Original>
  19924. <Expanded>
  19925. true
  19926. </Expanded>
  19927. </Expression>
  19928. <OverallResult success="false"/>
  19929. </TestCase>
  19930. <TestCase name="random SECTION tests" tags="[.][failing][sections]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19931. <Section name="doesn't equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19932. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19933. <Original>
  19934. a != b
  19935. </Original>
  19936. <Expanded>
  19937. 1 != 2
  19938. </Expanded>
  19939. </Expression>
  19940. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19941. <Original>
  19942. b != a
  19943. </Original>
  19944. <Expanded>
  19945. 2 != 1
  19946. </Expanded>
  19947. </Expression>
  19948. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  19949. </Section>
  19950. <Section name="not equal" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19951. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  19952. <Original>
  19953. a != b
  19954. </Original>
  19955. <Expanded>
  19956. 1 != 2
  19957. </Expanded>
  19958. </Expression>
  19959. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  19960. </Section>
  19961. <OverallResult success="true"/>
  19962. </TestCase>
  19963. <TestCase name="replaceInPlace" tags="[string-manip]" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  19964. <Section name="replace single char" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  19965. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  19966. <Original>
  19967. Catch::replaceInPlace(letters, "b", "z")
  19968. </Original>
  19969. <Expanded>
  19970. true
  19971. </Expanded>
  19972. </Expression>
  19973. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  19974. <Original>
  19975. letters == "azcdefcg"
  19976. </Original>
  19977. <Expanded>
  19978. "azcdefcg" == "azcdefcg"
  19979. </Expanded>
  19980. </Expression>
  19981. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  19982. </Section>
  19983. <Section name="replace two chars" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  19984. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  19985. <Original>
  19986. Catch::replaceInPlace(letters, "c", "z")
  19987. </Original>
  19988. <Expanded>
  19989. true
  19990. </Expanded>
  19991. </Expression>
  19992. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  19993. <Original>
  19994. letters == "abzdefzg"
  19995. </Original>
  19996. <Expanded>
  19997. "abzdefzg" == "abzdefzg"
  19998. </Expanded>
  19999. </Expression>
  20000. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  20001. </Section>
  20002. <Section name="replace first char" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20003. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20004. <Original>
  20005. Catch::replaceInPlace(letters, "a", "z")
  20006. </Original>
  20007. <Expanded>
  20008. true
  20009. </Expanded>
  20010. </Expression>
  20011. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20012. <Original>
  20013. letters == "zbcdefcg"
  20014. </Original>
  20015. <Expanded>
  20016. "zbcdefcg" == "zbcdefcg"
  20017. </Expanded>
  20018. </Expression>
  20019. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  20020. </Section>
  20021. <Section name="replace last char" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20022. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20023. <Original>
  20024. Catch::replaceInPlace(letters, "g", "z")
  20025. </Original>
  20026. <Expanded>
  20027. true
  20028. </Expanded>
  20029. </Expression>
  20030. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20031. <Original>
  20032. letters == "abcdefcz"
  20033. </Original>
  20034. <Expanded>
  20035. "abcdefcz" == "abcdefcz"
  20036. </Expanded>
  20037. </Expression>
  20038. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  20039. </Section>
  20040. <Section name="replace all chars" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20041. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20042. <Original>
  20043. Catch::replaceInPlace(letters, letters, "replaced")
  20044. </Original>
  20045. <Expanded>
  20046. true
  20047. </Expanded>
  20048. </Expression>
  20049. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20050. <Original>
  20051. letters == "replaced"
  20052. </Original>
  20053. <Expanded>
  20054. "replaced" == "replaced"
  20055. </Expanded>
  20056. </Expression>
  20057. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  20058. </Section>
  20059. <Section name="replace no chars" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20060. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20061. <Original>
  20062. !(Catch::replaceInPlace(letters, "x", "z"))
  20063. </Original>
  20064. <Expanded>
  20065. !false
  20066. </Expanded>
  20067. </Expression>
  20068. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20069. <Original>
  20070. letters == letters
  20071. </Original>
  20072. <Expanded>
  20073. "abcdefcg" == "abcdefcg"
  20074. </Expanded>
  20075. </Expression>
  20076. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  20077. </Section>
  20078. <Section name="escape '" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20079. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20080. <Original>
  20081. Catch::replaceInPlace(s, "'", "|'")
  20082. </Original>
  20083. <Expanded>
  20084. true
  20085. </Expanded>
  20086. </Expression>
  20087. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20088. <Original>
  20089. s == "didn|'t"
  20090. </Original>
  20091. <Expanded>
  20092. "didn|'t" == "didn|'t"
  20093. </Expanded>
  20094. </Expression>
  20095. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  20096. </Section>
  20097. <OverallResult success="true"/>
  20098. </TestCase>
  20099. <TestCase name="request an unknown %-starting stream fails" tags="[streams]" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  20100. <Expression success="true" type="REQUIRE_THROWS" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  20101. <Original>
  20102. Catch::makeStream( "%somestream" )
  20103. </Original>
  20104. <Expanded>
  20105. Catch::makeStream( "%somestream" )
  20106. </Expanded>
  20107. </Expression>
  20108. <OverallResult success="true"/>
  20109. </TestCase>
  20110. <TestCase name="resolution" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20111. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20112. <Original>
  20113. res.size() == count
  20114. </Original>
  20115. <Expanded>
  20116. 10 == 10
  20117. </Expanded>
  20118. </Expression>
  20119. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20120. <Original>
  20121. res[i] == rate
  20122. </Original>
  20123. <Expanded>
  20124. 1000.0 == 1000 (0x<hex digits>)
  20125. </Expanded>
  20126. </Expression>
  20127. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20128. <Original>
  20129. res[i] == rate
  20130. </Original>
  20131. <Expanded>
  20132. 1000.0 == 1000 (0x<hex digits>)
  20133. </Expanded>
  20134. </Expression>
  20135. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20136. <Original>
  20137. res[i] == rate
  20138. </Original>
  20139. <Expanded>
  20140. 1000.0 == 1000 (0x<hex digits>)
  20141. </Expanded>
  20142. </Expression>
  20143. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20144. <Original>
  20145. res[i] == rate
  20146. </Original>
  20147. <Expanded>
  20148. 1000.0 == 1000 (0x<hex digits>)
  20149. </Expanded>
  20150. </Expression>
  20151. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20152. <Original>
  20153. res[i] == rate
  20154. </Original>
  20155. <Expanded>
  20156. 1000.0 == 1000 (0x<hex digits>)
  20157. </Expanded>
  20158. </Expression>
  20159. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20160. <Original>
  20161. res[i] == rate
  20162. </Original>
  20163. <Expanded>
  20164. 1000.0 == 1000 (0x<hex digits>)
  20165. </Expanded>
  20166. </Expression>
  20167. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20168. <Original>
  20169. res[i] == rate
  20170. </Original>
  20171. <Expanded>
  20172. 1000.0 == 1000 (0x<hex digits>)
  20173. </Expanded>
  20174. </Expression>
  20175. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20176. <Original>
  20177. res[i] == rate
  20178. </Original>
  20179. <Expanded>
  20180. 1000.0 == 1000 (0x<hex digits>)
  20181. </Expanded>
  20182. </Expression>
  20183. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20184. <Original>
  20185. res[i] == rate
  20186. </Original>
  20187. <Expanded>
  20188. 1000.0 == 1000 (0x<hex digits>)
  20189. </Expanded>
  20190. </Expression>
  20191. <OverallResult success="true"/>
  20192. </TestCase>
  20193. <TestCase name="run_for_at_least, chronometer" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20194. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20195. <Original>
  20196. meter.runs() >= old_runs
  20197. </Original>
  20198. <Expanded>
  20199. 1 >= 1
  20200. </Expanded>
  20201. </Expression>
  20202. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20203. <Original>
  20204. meter.runs() >= old_runs
  20205. </Original>
  20206. <Expanded>
  20207. 2 >= 1
  20208. </Expanded>
  20209. </Expression>
  20210. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20211. <Original>
  20212. meter.runs() >= old_runs
  20213. </Original>
  20214. <Expanded>
  20215. 4 >= 2
  20216. </Expanded>
  20217. </Expression>
  20218. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20219. <Original>
  20220. meter.runs() >= old_runs
  20221. </Original>
  20222. <Expanded>
  20223. 8 >= 4
  20224. </Expanded>
  20225. </Expression>
  20226. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20227. <Original>
  20228. meter.runs() >= old_runs
  20229. </Original>
  20230. <Expanded>
  20231. 16 >= 8
  20232. </Expanded>
  20233. </Expression>
  20234. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20235. <Original>
  20236. meter.runs() >= old_runs
  20237. </Original>
  20238. <Expanded>
  20239. 32 >= 16
  20240. </Expanded>
  20241. </Expression>
  20242. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20243. <Original>
  20244. meter.runs() >= old_runs
  20245. </Original>
  20246. <Expanded>
  20247. 64 >= 32
  20248. </Expanded>
  20249. </Expression>
  20250. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20251. <Original>
  20252. meter.runs() >= old_runs
  20253. </Original>
  20254. <Expanded>
  20255. 128 >= 64
  20256. </Expanded>
  20257. </Expression>
  20258. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20259. <Original>
  20260. Timing.elapsed >= time
  20261. </Original>
  20262. <Expanded>
  20263. 128 ns >= 100 ns
  20264. </Expanded>
  20265. </Expression>
  20266. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20267. <Original>
  20268. Timing.result == Timing.iterations + 17
  20269. </Original>
  20270. <Expanded>
  20271. 145 == 145
  20272. </Expanded>
  20273. </Expression>
  20274. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20275. <Original>
  20276. Timing.iterations >= time.count()
  20277. </Original>
  20278. <Expanded>
  20279. 128 >= 100
  20280. </Expanded>
  20281. </Expression>
  20282. <OverallResult success="true"/>
  20283. </TestCase>
  20284. <TestCase name="run_for_at_least, int" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20285. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20286. <Original>
  20287. x >= old_x
  20288. </Original>
  20289. <Expanded>
  20290. 1 >= 1
  20291. </Expanded>
  20292. </Expression>
  20293. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20294. <Original>
  20295. x >= old_x
  20296. </Original>
  20297. <Expanded>
  20298. 2 >= 1
  20299. </Expanded>
  20300. </Expression>
  20301. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20302. <Original>
  20303. x >= old_x
  20304. </Original>
  20305. <Expanded>
  20306. 4 >= 2
  20307. </Expanded>
  20308. </Expression>
  20309. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20310. <Original>
  20311. x >= old_x
  20312. </Original>
  20313. <Expanded>
  20314. 8 >= 4
  20315. </Expanded>
  20316. </Expression>
  20317. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20318. <Original>
  20319. x >= old_x
  20320. </Original>
  20321. <Expanded>
  20322. 16 >= 8
  20323. </Expanded>
  20324. </Expression>
  20325. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20326. <Original>
  20327. x >= old_x
  20328. </Original>
  20329. <Expanded>
  20330. 32 >= 16
  20331. </Expanded>
  20332. </Expression>
  20333. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20334. <Original>
  20335. x >= old_x
  20336. </Original>
  20337. <Expanded>
  20338. 64 >= 32
  20339. </Expanded>
  20340. </Expression>
  20341. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20342. <Original>
  20343. x >= old_x
  20344. </Original>
  20345. <Expanded>
  20346. 128 >= 64
  20347. </Expanded>
  20348. </Expression>
  20349. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20350. <Original>
  20351. Timing.elapsed >= time
  20352. </Original>
  20353. <Expanded>
  20354. 128 ns >= 100 ns
  20355. </Expanded>
  20356. </Expression>
  20357. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20358. <Original>
  20359. Timing.result == Timing.iterations + 17
  20360. </Original>
  20361. <Expanded>
  20362. 145 == 145
  20363. </Expanded>
  20364. </Expression>
  20365. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  20366. <Original>
  20367. Timing.iterations >= time.count()
  20368. </Original>
  20369. <Expanded>
  20370. 128 >= 100
  20371. </Expanded>
  20372. </Expression>
  20373. <OverallResult success="true"/>
  20374. </TestCase>
  20375. <TestCase name="second tag" tags="[tag2]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20376. <OverallResult success="false"/>
  20377. </TestCase>
  20378. <TestCase name="send a single char to INFO" tags="[.][failing]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20379. <Info>
  20380. 3
  20381. </Info>
  20382. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20383. <Original>
  20384. false
  20385. </Original>
  20386. <Expanded>
  20387. false
  20388. </Expanded>
  20389. </Expression>
  20390. <OverallResult success="false"/>
  20391. </TestCase>
  20392. <TestCase name="sends information to INFO" tags="[.][failing]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  20393. <Info>
  20394. hi
  20395. </Info>
  20396. <Info>
  20397. i := 7
  20398. </Info>
  20399. <Expression success="false" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  20400. <Original>
  20401. false
  20402. </Original>
  20403. <Expanded>
  20404. false
  20405. </Expanded>
  20406. </Expression>
  20407. <OverallResult success="false"/>
  20408. </TestCase>
  20409. <TestCase name="shortened hide tags are split apart" tags="[tags]" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  20410. <Expression success="true" type="REQUIRE_THAT" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  20411. <Original>
  20412. testcase.tags, VectorContains( Tag( "magic-tag" ) ) &amp;&amp; VectorContains( Tag( "."_catch_sr ) )
  20413. </Original>
  20414. <Expanded>
  20415. { {?}, {?} } ( Contains: {?} and Contains: {?} )
  20416. </Expanded>
  20417. </Expression>
  20418. <OverallResult success="true"/>
  20419. </TestCase>
  20420. <TestCase name="splitString" tags="[string-manip]" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20421. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20422. <Original>
  20423. splitStringRef("", ','), Equals(std::vector&lt;StringRef>())
  20424. </Original>
  20425. <Expanded>
  20426. { } Equals: { }
  20427. </Expanded>
  20428. </Expression>
  20429. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20430. <Original>
  20431. splitStringRef("abc", ','), Equals(std::vector&lt;StringRef>{"abc"})
  20432. </Original>
  20433. <Expanded>
  20434. { abc } Equals: { abc }
  20435. </Expanded>
  20436. </Expression>
  20437. <Expression success="true" type="CHECK_THAT" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20438. <Original>
  20439. splitStringRef("abc,def", ','), Equals(std::vector&lt;StringRef>{"abc", "def"})
  20440. </Original>
  20441. <Expanded>
  20442. { abc, def } Equals: { abc, def }
  20443. </Expanded>
  20444. </Expression>
  20445. <OverallResult success="true"/>
  20446. </TestCase>
  20447. <TestCase name="stacks unscoped info in loops" tags="[.][failing][info][unscoped]" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  20448. <Info>
  20449. Count 1 to 3...
  20450. </Info>
  20451. <Info>
  20452. 1
  20453. </Info>
  20454. <Info>
  20455. 2
  20456. </Info>
  20457. <Info>
  20458. 3
  20459. </Info>
  20460. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  20461. <Original>
  20462. false
  20463. </Original>
  20464. <Expanded>
  20465. false
  20466. </Expanded>
  20467. </Expression>
  20468. <Info>
  20469. Count 4 to 6...
  20470. </Info>
  20471. <Info>
  20472. 4
  20473. </Info>
  20474. <Info>
  20475. 5
  20476. </Info>
  20477. <Info>
  20478. 6
  20479. </Info>
  20480. <Expression success="false" type="CHECK" filename="tests/<exe-name>/UsageTests/Message.tests.cpp" >
  20481. <Original>
  20482. false
  20483. </Original>
  20484. <Expanded>
  20485. false
  20486. </Expanded>
  20487. </Expression>
  20488. <OverallResult success="false"/>
  20489. </TestCase>
  20490. <TestCase name="startsWith" tags="[string-manip]" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20491. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20492. <Original>
  20493. !(startsWith("", 'c'))
  20494. </Original>
  20495. <Expanded>
  20496. !false
  20497. </Expanded>
  20498. </Expression>
  20499. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20500. <Original>
  20501. startsWith(std::string("abc"), 'a')
  20502. </Original>
  20503. <Expanded>
  20504. true
  20505. </Expanded>
  20506. </Expression>
  20507. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  20508. <Original>
  20509. startsWith("def"_catch_sr, 'd')
  20510. </Original>
  20511. <Expanded>
  20512. true
  20513. </Expanded>
  20514. </Expression>
  20515. <OverallResult success="true"/>
  20516. </TestCase>
  20517. <TestCase name="std::map is convertible string" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20518. <Section name="empty" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20519. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20520. <Original>
  20521. Catch::Detail::stringify( emptyMap ) == "{ }"
  20522. </Original>
  20523. <Expanded>
  20524. "{ }" == "{ }"
  20525. </Expanded>
  20526. </Expression>
  20527. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  20528. </Section>
  20529. <Section name="single item" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20530. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20531. <Original>
  20532. Catch::Detail::stringify( map ) == "{ { \"one\", 1 } }"
  20533. </Original>
  20534. <Expanded>
  20535. "{ { "one", 1 } }" == "{ { "one", 1 } }"
  20536. </Expanded>
  20537. </Expression>
  20538. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  20539. </Section>
  20540. <Section name="several items" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20541. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20542. <Original>
  20543. Catch::Detail::stringify( map ) == "{ { \"abc\", 1 }, { \"def\", 2 }, { \"ghi\", 3 } }"
  20544. </Original>
  20545. <Expanded>
  20546. "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
  20547. ==
  20548. "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
  20549. </Expanded>
  20550. </Expression>
  20551. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  20552. </Section>
  20553. <OverallResult success="true"/>
  20554. </TestCase>
  20555. <TestCase name="std::pair&lt;int,const std::string> -> toString" tags="[pair][toString]" filename="tests/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  20556. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  20557. <Original>
  20558. ::Catch::Detail::stringify(value) == "{ 34, \"xyzzy\" }"
  20559. </Original>
  20560. <Expanded>
  20561. "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
  20562. </Expanded>
  20563. </Expression>
  20564. <OverallResult success="true"/>
  20565. </TestCase>
  20566. <TestCase name="std::pair&lt;int,std::string> -> toString" tags="[pair][toString]" filename="tests/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  20567. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  20568. <Original>
  20569. ::Catch::Detail::stringify( value ) == "{ 34, \"xyzzy\" }"
  20570. </Original>
  20571. <Expanded>
  20572. "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
  20573. </Expanded>
  20574. </Expression>
  20575. <OverallResult success="true"/>
  20576. </TestCase>
  20577. <TestCase name="std::set is convertible string" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20578. <Section name="empty" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20579. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20580. <Original>
  20581. Catch::Detail::stringify( emptySet ) == "{ }"
  20582. </Original>
  20583. <Expanded>
  20584. "{ }" == "{ }"
  20585. </Expanded>
  20586. </Expression>
  20587. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  20588. </Section>
  20589. <Section name="single item" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20590. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20591. <Original>
  20592. Catch::Detail::stringify( set ) == "{ \"one\" }"
  20593. </Original>
  20594. <Expanded>
  20595. "{ "one" }" == "{ "one" }"
  20596. </Expanded>
  20597. </Expression>
  20598. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  20599. </Section>
  20600. <Section name="several items" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20601. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  20602. <Original>
  20603. Catch::Detail::stringify( set ) == "{ \"abc\", \"def\", \"ghi\" }"
  20604. </Original>
  20605. <Expanded>
  20606. "{ "abc", "def", "ghi" }"
  20607. ==
  20608. "{ "abc", "def", "ghi" }"
  20609. </Expanded>
  20610. </Expression>
  20611. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  20612. </Section>
  20613. <OverallResult success="true"/>
  20614. </TestCase>
  20615. <TestCase name="std::vector&lt;std::pair&lt;std::string,int> > -> toString" tags="[pair][toString]" filename="tests/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  20616. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  20617. <Original>
  20618. ::Catch::Detail::stringify( pr ) == "{ { \"green\", 55 } }"
  20619. </Original>
  20620. <Expanded>
  20621. "{ { "green", 55 } }"
  20622. ==
  20623. "{ { "green", 55 } }"
  20624. </Expanded>
  20625. </Expression>
  20626. <OverallResult success="true"/>
  20627. </TestCase>
  20628. <TestCase name="stdout and stderr streams have %-starting name" tags="[streams]" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  20629. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  20630. <Original>
  20631. Catch::makeStream( "%stderr" )->isConsole()
  20632. </Original>
  20633. <Expanded>
  20634. true
  20635. </Expanded>
  20636. </Expression>
  20637. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Stream.tests.cpp" >
  20638. <Original>
  20639. Catch::makeStream( "%stdout" )->isConsole()
  20640. </Original>
  20641. <Expanded>
  20642. true
  20643. </Expanded>
  20644. </Expression>
  20645. <OverallResult success="true"/>
  20646. </TestCase>
  20647. <TestCase name="stringify ranges" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20648. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20649. <Original>
  20650. ::Catch::Detail::stringify(streamable_range{}) == "op&lt;&lt;(streamable_range)"
  20651. </Original>
  20652. <Expanded>
  20653. "op&lt;&lt;(streamable_range)"
  20654. ==
  20655. "op&lt;&lt;(streamable_range)"
  20656. </Expanded>
  20657. </Expression>
  20658. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20659. <Original>
  20660. ::Catch::Detail::stringify(stringmaker_range{}) == "stringmaker(streamable_range)"
  20661. </Original>
  20662. <Expanded>
  20663. "stringmaker(streamable_range)"
  20664. ==
  20665. "stringmaker(streamable_range)"
  20666. </Expanded>
  20667. </Expression>
  20668. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20669. <Original>
  20670. ::Catch::Detail::stringify(just_range{}) == "{ 1, 2, 3, 4 }"
  20671. </Original>
  20672. <Expanded>
  20673. "{ 1, 2, 3, 4 }" == "{ 1, 2, 3, 4 }"
  20674. </Expanded>
  20675. </Expression>
  20676. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20677. <Original>
  20678. ::Catch::Detail::stringify(disabled_range{}) == "{?}"
  20679. </Original>
  20680. <Expanded>
  20681. "{?}" == "{?}"
  20682. </Expanded>
  20683. </Expression>
  20684. <OverallResult success="true"/>
  20685. </TestCase>
  20686. <TestCase name="stringify( has_maker )" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20687. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20688. <Original>
  20689. ::Catch::Detail::stringify( item ) == "StringMaker&lt;has_maker>"
  20690. </Original>
  20691. <Expanded>
  20692. "StringMaker&lt;has_maker>"
  20693. ==
  20694. "StringMaker&lt;has_maker>"
  20695. </Expanded>
  20696. </Expression>
  20697. <OverallResult success="true"/>
  20698. </TestCase>
  20699. <TestCase name="stringify( has_maker_and_operator )" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20700. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20701. <Original>
  20702. ::Catch::Detail::stringify( item ) == "StringMaker&lt;has_maker_and_operator>"
  20703. </Original>
  20704. <Expanded>
  20705. "StringMaker&lt;has_maker_and_operator>"
  20706. ==
  20707. "StringMaker&lt;has_maker_and_operator>"
  20708. </Expanded>
  20709. </Expression>
  20710. <OverallResult success="true"/>
  20711. </TestCase>
  20712. <TestCase name="stringify( has_neither )" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20713. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20714. <Original>
  20715. ::Catch::Detail::stringify(item) == "{?}"
  20716. </Original>
  20717. <Expanded>
  20718. "{?}" == "{?}"
  20719. </Expanded>
  20720. </Expression>
  20721. <OverallResult success="true"/>
  20722. </TestCase>
  20723. <TestCase name="stringify( has_operator )" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20724. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20725. <Original>
  20726. ::Catch::Detail::stringify( item ) == "operator&lt;&lt;( has_operator )"
  20727. </Original>
  20728. <Expanded>
  20729. "operator&lt;&lt;( has_operator )"
  20730. ==
  20731. "operator&lt;&lt;( has_operator )"
  20732. </Expanded>
  20733. </Expression>
  20734. <OverallResult success="true"/>
  20735. </TestCase>
  20736. <TestCase name="stringify( has_template_operator )" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20737. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20738. <Original>
  20739. ::Catch::Detail::stringify( item ) == "operator&lt;&lt;( has_template_operator )"
  20740. </Original>
  20741. <Expanded>
  20742. "operator&lt;&lt;( has_template_operator )"
  20743. ==
  20744. "operator&lt;&lt;( has_template_operator )"
  20745. </Expanded>
  20746. </Expression>
  20747. <OverallResult success="true"/>
  20748. </TestCase>
  20749. <TestCase name="stringify( vectors&lt;has_maker> )" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20750. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20751. <Original>
  20752. ::Catch::Detail::stringify( v ) == "{ StringMaker&lt;has_maker> }"
  20753. </Original>
  20754. <Expanded>
  20755. "{ StringMaker&lt;has_maker> }"
  20756. ==
  20757. "{ StringMaker&lt;has_maker> }"
  20758. </Expanded>
  20759. </Expression>
  20760. <OverallResult success="true"/>
  20761. </TestCase>
  20762. <TestCase name="stringify( vectors&lt;has_maker_and_operator> )" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20763. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20764. <Original>
  20765. ::Catch::Detail::stringify( v ) == "{ StringMaker&lt;has_maker_and_operator> }"
  20766. </Original>
  20767. <Expanded>
  20768. "{ StringMaker&lt;has_maker_and_operator> }"
  20769. ==
  20770. "{ StringMaker&lt;has_maker_and_operator> }"
  20771. </Expanded>
  20772. </Expression>
  20773. <OverallResult success="true"/>
  20774. </TestCase>
  20775. <TestCase name="stringify( vectors&lt;has_operator> )" tags="[toString]" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20776. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  20777. <Original>
  20778. ::Catch::Detail::stringify( v ) == "{ operator&lt;&lt;( has_operator ) }"
  20779. </Original>
  20780. <Expanded>
  20781. "{ operator&lt;&lt;( has_operator ) }"
  20782. ==
  20783. "{ operator&lt;&lt;( has_operator ) }"
  20784. </Expanded>
  20785. </Expression>
  20786. <OverallResult success="true"/>
  20787. </TestCase>
  20788. <TestCase name="strlen3" tags="[generators]" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20789. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20790. <Original>
  20791. data.str.size() == data.len
  20792. </Original>
  20793. <Expanded>
  20794. 3 == 3
  20795. </Expanded>
  20796. </Expression>
  20797. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20798. <Original>
  20799. data.str.size() == data.len
  20800. </Original>
  20801. <Expanded>
  20802. 3 == 3
  20803. </Expanded>
  20804. </Expression>
  20805. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20806. <Original>
  20807. data.str.size() == data.len
  20808. </Original>
  20809. <Expanded>
  20810. 5 == 5
  20811. </Expanded>
  20812. </Expression>
  20813. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20814. <Original>
  20815. data.str.size() == data.len
  20816. </Original>
  20817. <Expanded>
  20818. 4 == 4
  20819. </Expanded>
  20820. </Expression>
  20821. <OverallResult success="true"/>
  20822. </TestCase>
  20823. <TestCase name="tables" tags="[generators]" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20824. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20825. <Original>
  20826. strlen(std::get&lt;0>(data)) == static_cast&lt;size_t>(std::get&lt;1>(data))
  20827. </Original>
  20828. <Expanded>
  20829. 5 == 5
  20830. </Expanded>
  20831. </Expression>
  20832. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20833. <Original>
  20834. strlen(std::get&lt;0>(data)) == static_cast&lt;size_t>(std::get&lt;1>(data))
  20835. </Original>
  20836. <Expanded>
  20837. 6 == 6
  20838. </Expanded>
  20839. </Expression>
  20840. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20841. <Original>
  20842. strlen(std::get&lt;0>(data)) == static_cast&lt;size_t>(std::get&lt;1>(data))
  20843. </Original>
  20844. <Expanded>
  20845. 5 == 5
  20846. </Expanded>
  20847. </Expression>
  20848. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Generators.tests.cpp" >
  20849. <Original>
  20850. strlen(std::get&lt;0>(data)) == static_cast&lt;size_t>(std::get&lt;1>(data))
  20851. </Original>
  20852. <Expanded>
  20853. 6 == 6
  20854. </Expanded>
  20855. </Expression>
  20856. <OverallResult success="true"/>
  20857. </TestCase>
  20858. <TestCase name="tags with dots in later positions are not parsed as hidden" tags="[tags]" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  20859. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  20860. <Original>
  20861. testcase.tags.size() == 1
  20862. </Original>
  20863. <Expanded>
  20864. 1 == 1
  20865. </Expanded>
  20866. </Expression>
  20867. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  20868. <Original>
  20869. testcase.tags[0].original == "magic.tag"_catch_sr
  20870. </Original>
  20871. <Expanded>
  20872. magic.tag == magic.tag
  20873. </Expanded>
  20874. </Expression>
  20875. <OverallResult success="true"/>
  20876. </TestCase>
  20877. <TestCase name="thrown std::strings are translated" tags="[!throws][.][failing]" filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  20878. <Exception filename="tests/<exe-name>/UsageTests/Exception.tests.cpp" >
  20879. Why would you throw a std::string?
  20880. </Exception>
  20881. <OverallResult success="false"/>
  20882. </TestCase>
  20883. <TestCase name="toString on const wchar_t const pointer returns the string contents" tags="[toString]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20884. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20885. <Original>
  20886. result == "\"wide load\""
  20887. </Original>
  20888. <Expanded>
  20889. ""wide load"" == ""wide load""
  20890. </Expanded>
  20891. </Expression>
  20892. <OverallResult success="true"/>
  20893. </TestCase>
  20894. <TestCase name="toString on const wchar_t pointer returns the string contents" tags="[toString]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20895. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20896. <Original>
  20897. result == "\"wide load\""
  20898. </Original>
  20899. <Expanded>
  20900. ""wide load"" == ""wide load""
  20901. </Expanded>
  20902. </Expression>
  20903. <OverallResult success="true"/>
  20904. </TestCase>
  20905. <TestCase name="toString on wchar_t const pointer returns the string contents" tags="[toString]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20906. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20907. <Original>
  20908. result == "\"wide load\""
  20909. </Original>
  20910. <Expanded>
  20911. ""wide load"" == ""wide load""
  20912. </Expanded>
  20913. </Expression>
  20914. <OverallResult success="true"/>
  20915. </TestCase>
  20916. <TestCase name="toString on wchar_t returns the string contents" tags="[toString]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20917. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  20918. <Original>
  20919. result == "\"wide load\""
  20920. </Original>
  20921. <Expanded>
  20922. ""wide load"" == ""wide load""
  20923. </Expanded>
  20924. </Expression>
  20925. <OverallResult success="true"/>
  20926. </TestCase>
  20927. <TestCase name="toString(enum class w/operator&lt;&lt;)" tags="[enum][enumClass][toString]" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20928. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20929. <Original>
  20930. ::Catch::Detail::stringify(e0) == "E2/V0"
  20931. </Original>
  20932. <Expanded>
  20933. "E2/V0" == "E2/V0"
  20934. </Expanded>
  20935. </Expression>
  20936. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20937. <Original>
  20938. ::Catch::Detail::stringify(e1) == "E2/V1"
  20939. </Original>
  20940. <Expanded>
  20941. "E2/V1" == "E2/V1"
  20942. </Expanded>
  20943. </Expression>
  20944. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20945. <Original>
  20946. ::Catch::Detail::stringify(e3) == "Unknown enum value 10"
  20947. </Original>
  20948. <Expanded>
  20949. "Unknown enum value 10"
  20950. ==
  20951. "Unknown enum value 10"
  20952. </Expanded>
  20953. </Expression>
  20954. <OverallResult success="true"/>
  20955. </TestCase>
  20956. <TestCase name="toString(enum class)" tags="[enum][enumClass][toString]" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20957. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20958. <Original>
  20959. ::Catch::Detail::stringify(e0) == "0"
  20960. </Original>
  20961. <Expanded>
  20962. "0" == "0"
  20963. </Expanded>
  20964. </Expression>
  20965. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20966. <Original>
  20967. ::Catch::Detail::stringify(e1) == "1"
  20968. </Original>
  20969. <Expanded>
  20970. "1" == "1"
  20971. </Expanded>
  20972. </Expression>
  20973. <OverallResult success="true"/>
  20974. </TestCase>
  20975. <TestCase name="toString(enum w/operator&lt;&lt;)" tags="[enum][toString]" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20976. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20977. <Original>
  20978. ::Catch::Detail::stringify(e0) == "E2{0}"
  20979. </Original>
  20980. <Expanded>
  20981. "E2{0}" == "E2{0}"
  20982. </Expanded>
  20983. </Expression>
  20984. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20985. <Original>
  20986. ::Catch::Detail::stringify(e1) == "E2{1}"
  20987. </Original>
  20988. <Expanded>
  20989. "E2{1}" == "E2{1}"
  20990. </Expanded>
  20991. </Expression>
  20992. <OverallResult success="true"/>
  20993. </TestCase>
  20994. <TestCase name="toString(enum)" tags="[enum][toString]" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20995. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  20996. <Original>
  20997. ::Catch::Detail::stringify(e0) == "0"
  20998. </Original>
  20999. <Expanded>
  21000. "0" == "0"
  21001. </Expanded>
  21002. </Expression>
  21003. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  21004. <Original>
  21005. ::Catch::Detail::stringify(e1) == "1"
  21006. </Original>
  21007. <Expanded>
  21008. "1" == "1"
  21009. </Expanded>
  21010. </Expression>
  21011. <OverallResult success="true"/>
  21012. </TestCase>
  21013. <TestCase name="tuple&lt;>" tags="[toString][tuple]" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21014. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21015. <Original>
  21016. "{ }" == ::Catch::Detail::stringify(type{})
  21017. </Original>
  21018. <Expanded>
  21019. "{ }" == "{ }"
  21020. </Expanded>
  21021. </Expression>
  21022. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21023. <Original>
  21024. "{ }" == ::Catch::Detail::stringify(value)
  21025. </Original>
  21026. <Expanded>
  21027. "{ }" == "{ }"
  21028. </Expanded>
  21029. </Expression>
  21030. <OverallResult success="true"/>
  21031. </TestCase>
  21032. <TestCase name="tuple&lt;float,int>" tags="[toString][tuple]" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21033. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21034. <Original>
  21035. "1.2f" == ::Catch::Detail::stringify(float(1.2))
  21036. </Original>
  21037. <Expanded>
  21038. "1.2f" == "1.2f"
  21039. </Expanded>
  21040. </Expression>
  21041. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21042. <Original>
  21043. "{ 1.2f, 0 }" == ::Catch::Detail::stringify(type{1.2f,0})
  21044. </Original>
  21045. <Expanded>
  21046. "{ 1.2f, 0 }" == "{ 1.2f, 0 }"
  21047. </Expanded>
  21048. </Expression>
  21049. <OverallResult success="true"/>
  21050. </TestCase>
  21051. <TestCase name="tuple&lt;int>" tags="[toString][tuple]" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21052. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21053. <Original>
  21054. "{ 0 }" == ::Catch::Detail::stringify(type{0})
  21055. </Original>
  21056. <Expanded>
  21057. "{ 0 }" == "{ 0 }"
  21058. </Expanded>
  21059. </Expression>
  21060. <OverallResult success="true"/>
  21061. </TestCase>
  21062. <TestCase name="tuple&lt;string,string>" tags="[toString][tuple]" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21063. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21064. <Original>
  21065. "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"})
  21066. </Original>
  21067. <Expanded>
  21068. "{ "hello", "world" }"
  21069. ==
  21070. "{ "hello", "world" }"
  21071. </Expanded>
  21072. </Expression>
  21073. <OverallResult success="true"/>
  21074. </TestCase>
  21075. <TestCase name="tuple&lt;tuple&lt;int>,tuple&lt;>,float>" tags="[toString][tuple]" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21076. <Expression success="true" type="CHECK" filename="tests/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  21077. <Original>
  21078. "{ { 42 }, { }, 1.2f }" == ::Catch::Detail::stringify(value)
  21079. </Original>
  21080. <Expanded>
  21081. "{ { 42 }, { }, 1.2f }"
  21082. ==
  21083. "{ { 42 }, { }, 1.2f }"
  21084. </Expanded>
  21085. </Expression>
  21086. <OverallResult success="true"/>
  21087. </TestCase>
  21088. <TestCase name="uniform samples" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21089. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21090. <Original>
  21091. e.point == 23
  21092. </Original>
  21093. <Expanded>
  21094. 23.0 == 23
  21095. </Expanded>
  21096. </Expression>
  21097. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21098. <Original>
  21099. e.upper_bound == 23
  21100. </Original>
  21101. <Expanded>
  21102. 23.0 == 23
  21103. </Expanded>
  21104. </Expression>
  21105. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21106. <Original>
  21107. e.lower_bound == 23
  21108. </Original>
  21109. <Expanded>
  21110. 23.0 == 23
  21111. </Expanded>
  21112. </Expression>
  21113. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21114. <Original>
  21115. e.confidence_interval == 0.95
  21116. </Original>
  21117. <Expanded>
  21118. 0.95 == 0.95
  21119. </Expanded>
  21120. </Expression>
  21121. <OverallResult success="true"/>
  21122. </TestCase>
  21123. <TestCase name="unique_ptr reimplementation: basic functionality" tags="[internals][unique-ptr]" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21124. <Section name="Default constructed unique_ptr is empty" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21125. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21126. <Original>
  21127. !(ptr)
  21128. </Original>
  21129. <Expanded>
  21130. !{?}
  21131. </Expanded>
  21132. </Expression>
  21133. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21134. <Original>
  21135. ptr.get() == 0
  21136. </Original>
  21137. <Expanded>
  21138. 0 == 0
  21139. </Expanded>
  21140. </Expression>
  21141. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  21142. </Section>
  21143. <Section name="Take ownership of allocation" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21144. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21145. <Original>
  21146. ptr
  21147. </Original>
  21148. <Expanded>
  21149. {?}
  21150. </Expanded>
  21151. </Expression>
  21152. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21153. <Original>
  21154. *ptr == 0
  21155. </Original>
  21156. <Expanded>
  21157. 0 == 0
  21158. </Expanded>
  21159. </Expression>
  21160. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21161. <Original>
  21162. ptr.get() == naked_ptr
  21163. </Original>
  21164. <Expanded>
  21165. 0x<hex digits> == 0x<hex digits>
  21166. </Expanded>
  21167. </Expression>
  21168. <Section name="Plain reset deallocates" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21169. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21170. <Original>
  21171. !(ptr)
  21172. </Original>
  21173. <Expanded>
  21174. !{?}
  21175. </Expanded>
  21176. </Expression>
  21177. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21178. <Original>
  21179. ptr.get() == 0
  21180. </Original>
  21181. <Expanded>
  21182. 0 == 0
  21183. </Expanded>
  21184. </Expression>
  21185. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  21186. </Section>
  21187. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  21188. </Section>
  21189. <Section name="Take ownership of allocation" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21190. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21191. <Original>
  21192. ptr
  21193. </Original>
  21194. <Expanded>
  21195. {?}
  21196. </Expanded>
  21197. </Expression>
  21198. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21199. <Original>
  21200. *ptr == 0
  21201. </Original>
  21202. <Expanded>
  21203. 0 == 0
  21204. </Expanded>
  21205. </Expression>
  21206. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21207. <Original>
  21208. ptr.get() == naked_ptr
  21209. </Original>
  21210. <Expanded>
  21211. 0x<hex digits> == 0x<hex digits>
  21212. </Expanded>
  21213. </Expression>
  21214. <Section name="Reset replaces ownership" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21215. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21216. <Original>
  21217. ptr
  21218. </Original>
  21219. <Expanded>
  21220. {?}
  21221. </Expanded>
  21222. </Expression>
  21223. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21224. <Original>
  21225. ptr.get() != 0
  21226. </Original>
  21227. <Expanded>
  21228. 0x<hex digits> != 0
  21229. </Expanded>
  21230. </Expression>
  21231. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21232. <Original>
  21233. *ptr == 2
  21234. </Original>
  21235. <Expanded>
  21236. 2 == 2
  21237. </Expanded>
  21238. </Expression>
  21239. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  21240. </Section>
  21241. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  21242. </Section>
  21243. <Section name="Release releases ownership" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21244. <Expression success="true" type="CHECK_FALSE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21245. <Original>
  21246. !(ptr)
  21247. </Original>
  21248. <Expanded>
  21249. !{?}
  21250. </Expanded>
  21251. </Expression>
  21252. <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21253. <Original>
  21254. ptr.get() == 0
  21255. </Original>
  21256. <Expanded>
  21257. 0 == 0
  21258. </Expanded>
  21259. </Expression>
  21260. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  21261. </Section>
  21262. <Section name="Move constructor" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21263. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21264. <Original>
  21265. !(ptr1)
  21266. </Original>
  21267. <Expanded>
  21268. !{?}
  21269. </Expanded>
  21270. </Expression>
  21271. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21272. <Original>
  21273. ptr2
  21274. </Original>
  21275. <Expanded>
  21276. {?}
  21277. </Expanded>
  21278. </Expression>
  21279. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21280. <Original>
  21281. *ptr2 == 1
  21282. </Original>
  21283. <Expanded>
  21284. 1 == 1
  21285. </Expanded>
  21286. </Expression>
  21287. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  21288. </Section>
  21289. <Section name="Move assignment" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21290. <Expression success="true" type="REQUIRE_FALSE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21291. <Original>
  21292. !(ptr2)
  21293. </Original>
  21294. <Expanded>
  21295. !{?}
  21296. </Expanded>
  21297. </Expression>
  21298. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21299. <Original>
  21300. ptr1
  21301. </Original>
  21302. <Expanded>
  21303. {?}
  21304. </Expanded>
  21305. </Expression>
  21306. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21307. <Original>
  21308. *ptr1 == 2
  21309. </Original>
  21310. <Expanded>
  21311. 2 == 2
  21312. </Expanded>
  21313. </Expression>
  21314. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  21315. </Section>
  21316. <Section name="free swap" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21317. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21318. <Original>
  21319. *ptr1 == 2
  21320. </Original>
  21321. <Expanded>
  21322. 2 == 2
  21323. </Expanded>
  21324. </Expression>
  21325. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/UniquePtr.tests.cpp" >
  21326. <Original>
  21327. *ptr2 == 1
  21328. </Original>
  21329. <Expanded>
  21330. 1 == 1
  21331. </Expanded>
  21332. </Expression>
  21333. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  21334. </Section>
  21335. <OverallResult success="true"/>
  21336. </TestCase>
  21337. <TestCase name="vec&lt;vec&lt;string,alloc>> -> toString" tags="[toString][vector,allocator]" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21338. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21339. <Original>
  21340. ::Catch::Detail::stringify(v) == "{ }"
  21341. </Original>
  21342. <Expanded>
  21343. "{ }" == "{ }"
  21344. </Expanded>
  21345. </Expression>
  21346. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21347. <Original>
  21348. ::Catch::Detail::stringify(v) == "{ { \"hello\" }, { \"world\" } }"
  21349. </Original>
  21350. <Expanded>
  21351. "{ { "hello" }, { "world" } }"
  21352. ==
  21353. "{ { "hello" }, { "world" } }"
  21354. </Expanded>
  21355. </Expression>
  21356. <OverallResult success="true"/>
  21357. </TestCase>
  21358. <TestCase name="vector&lt;bool> -> toString" tags="[containers][toString][vector]" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21359. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21360. <Original>
  21361. ::Catch::Detail::stringify(bools) == "{ }"
  21362. </Original>
  21363. <Expanded>
  21364. "{ }" == "{ }"
  21365. </Expanded>
  21366. </Expression>
  21367. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21368. <Original>
  21369. ::Catch::Detail::stringify(bools) == "{ true }"
  21370. </Original>
  21371. <Expanded>
  21372. "{ true }" == "{ true }"
  21373. </Expanded>
  21374. </Expression>
  21375. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21376. <Original>
  21377. ::Catch::Detail::stringify(bools) == "{ true, false }"
  21378. </Original>
  21379. <Expanded>
  21380. "{ true, false }" == "{ true, false }"
  21381. </Expanded>
  21382. </Expression>
  21383. <OverallResult success="true"/>
  21384. </TestCase>
  21385. <TestCase name="vector&lt;int,allocator> -> toString" tags="[toString][vector,allocator]" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21386. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21387. <Original>
  21388. ::Catch::Detail::stringify(vv) == "{ }"
  21389. </Original>
  21390. <Expanded>
  21391. "{ }" == "{ }"
  21392. </Expanded>
  21393. </Expression>
  21394. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21395. <Original>
  21396. ::Catch::Detail::stringify(vv) == "{ 42 }"
  21397. </Original>
  21398. <Expanded>
  21399. "{ 42 }" == "{ 42 }"
  21400. </Expanded>
  21401. </Expression>
  21402. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21403. <Original>
  21404. ::Catch::Detail::stringify(vv) == "{ 42, 250 }"
  21405. </Original>
  21406. <Expanded>
  21407. "{ 42, 250 }" == "{ 42, 250 }"
  21408. </Expanded>
  21409. </Expression>
  21410. <OverallResult success="true"/>
  21411. </TestCase>
  21412. <TestCase name="vector&lt;int> -> toString" tags="[toString][vector]" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21413. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21414. <Original>
  21415. ::Catch::Detail::stringify(vv) == "{ }"
  21416. </Original>
  21417. <Expanded>
  21418. "{ }" == "{ }"
  21419. </Expanded>
  21420. </Expression>
  21421. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21422. <Original>
  21423. ::Catch::Detail::stringify(vv) == "{ 42 }"
  21424. </Original>
  21425. <Expanded>
  21426. "{ 42 }" == "{ 42 }"
  21427. </Expanded>
  21428. </Expression>
  21429. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21430. <Original>
  21431. ::Catch::Detail::stringify(vv) == "{ 42, 250 }"
  21432. </Original>
  21433. <Expanded>
  21434. "{ 42, 250 }" == "{ 42, 250 }"
  21435. </Expanded>
  21436. </Expression>
  21437. <OverallResult success="true"/>
  21438. </TestCase>
  21439. <TestCase name="vector&lt;string> -> toString" tags="[toString][vector]" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21440. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21441. <Original>
  21442. ::Catch::Detail::stringify(vv) == "{ }"
  21443. </Original>
  21444. <Expanded>
  21445. "{ }" == "{ }"
  21446. </Expanded>
  21447. </Expression>
  21448. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21449. <Original>
  21450. ::Catch::Detail::stringify(vv) == "{ \"hello\" }"
  21451. </Original>
  21452. <Expanded>
  21453. "{ "hello" }" == "{ "hello" }"
  21454. </Expanded>
  21455. </Expression>
  21456. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  21457. <Original>
  21458. ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }"
  21459. </Original>
  21460. <Expanded>
  21461. "{ "hello", "world" }"
  21462. ==
  21463. "{ "hello", "world" }"
  21464. </Expanded>
  21465. </Expression>
  21466. <OverallResult success="true"/>
  21467. </TestCase>
  21468. <TestCase name="vectors can be sized and resized" tags="[vector]" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21469. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21470. <Original>
  21471. v.size() == 5
  21472. </Original>
  21473. <Expanded>
  21474. 5 == 5
  21475. </Expanded>
  21476. </Expression>
  21477. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21478. <Original>
  21479. v.capacity() >= 5
  21480. </Original>
  21481. <Expanded>
  21482. 5 >= 5
  21483. </Expanded>
  21484. </Expression>
  21485. <Section name="resizing bigger changes size and capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21486. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21487. <Original>
  21488. v.size() == 10
  21489. </Original>
  21490. <Expanded>
  21491. 10 == 10
  21492. </Expanded>
  21493. </Expression>
  21494. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21495. <Original>
  21496. v.capacity() >= 10
  21497. </Original>
  21498. <Expanded>
  21499. 10 >= 10
  21500. </Expanded>
  21501. </Expression>
  21502. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  21503. </Section>
  21504. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21505. <Original>
  21506. v.size() == 5
  21507. </Original>
  21508. <Expanded>
  21509. 5 == 5
  21510. </Expanded>
  21511. </Expression>
  21512. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21513. <Original>
  21514. v.capacity() >= 5
  21515. </Original>
  21516. <Expanded>
  21517. 5 >= 5
  21518. </Expanded>
  21519. </Expression>
  21520. <Section name="resizing smaller changes size but not capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21521. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21522. <Original>
  21523. v.size() == 0
  21524. </Original>
  21525. <Expanded>
  21526. 0 == 0
  21527. </Expanded>
  21528. </Expression>
  21529. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21530. <Original>
  21531. v.capacity() >= 5
  21532. </Original>
  21533. <Expanded>
  21534. 5 >= 5
  21535. </Expanded>
  21536. </Expression>
  21537. <Section name="We can use the 'swap trick' to reset the capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21538. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21539. <Original>
  21540. v.capacity() == 0
  21541. </Original>
  21542. <Expanded>
  21543. 0 == 0
  21544. </Expanded>
  21545. </Expression>
  21546. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  21547. </Section>
  21548. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  21549. </Section>
  21550. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21551. <Original>
  21552. v.size() == 5
  21553. </Original>
  21554. <Expanded>
  21555. 5 == 5
  21556. </Expanded>
  21557. </Expression>
  21558. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21559. <Original>
  21560. v.capacity() >= 5
  21561. </Original>
  21562. <Expanded>
  21563. 5 >= 5
  21564. </Expanded>
  21565. </Expression>
  21566. <Section name="reserving bigger changes capacity but not size" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21567. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21568. <Original>
  21569. v.size() == 5
  21570. </Original>
  21571. <Expanded>
  21572. 5 == 5
  21573. </Expanded>
  21574. </Expression>
  21575. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21576. <Original>
  21577. v.capacity() >= 10
  21578. </Original>
  21579. <Expanded>
  21580. 10 >= 10
  21581. </Expanded>
  21582. </Expression>
  21583. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  21584. </Section>
  21585. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21586. <Original>
  21587. v.size() == 5
  21588. </Original>
  21589. <Expanded>
  21590. 5 == 5
  21591. </Expanded>
  21592. </Expression>
  21593. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21594. <Original>
  21595. v.capacity() >= 5
  21596. </Original>
  21597. <Expanded>
  21598. 5 >= 5
  21599. </Expanded>
  21600. </Expression>
  21601. <Section name="reserving smaller does not change size or capacity" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21602. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21603. <Original>
  21604. v.size() == 5
  21605. </Original>
  21606. <Expanded>
  21607. 5 == 5
  21608. </Expanded>
  21609. </Expression>
  21610. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21611. <Original>
  21612. v.capacity() >= 5
  21613. </Original>
  21614. <Expanded>
  21615. 5 >= 5
  21616. </Expanded>
  21617. </Expression>
  21618. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  21619. </Section>
  21620. <OverallResult success="true"/>
  21621. </TestCase>
  21622. <TestCase name="warmup" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21623. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21624. <Original>
  21625. (iterations * rate) > Catch::Benchmark::Detail::warmup_time.count()
  21626. </Original>
  21627. <Expanded>
  21628. 160000000 (0x<hex digits>) > 100
  21629. </Expanded>
  21630. </Expression>
  21631. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21632. <Original>
  21633. (end - start) > Catch::Benchmark::Detail::warmup_time
  21634. </Original>
  21635. <Expanded>
  21636. 310016000 ns > 100 ms
  21637. </Expanded>
  21638. </Expression>
  21639. <OverallResult success="true"/>
  21640. </TestCase>
  21641. <TestCase name="weighted_average_quantile" tags="[benchmark]" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21642. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21643. <Original>
  21644. q1 == 14.5
  21645. </Original>
  21646. <Expanded>
  21647. 14.5 == 14.5
  21648. </Expanded>
  21649. </Expression>
  21650. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21651. <Original>
  21652. med == 18.
  21653. </Original>
  21654. <Expanded>
  21655. 18.0 == 18.0
  21656. </Expanded>
  21657. </Expression>
  21658. <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/InternalBenchmark.tests.cpp" >
  21659. <Original>
  21660. q3 == 23.
  21661. </Original>
  21662. <Expanded>
  21663. 23.0 == 23.0
  21664. </Expanded>
  21665. </Expression>
  21666. <OverallResult success="true"/>
  21667. </TestCase>
  21668. <TestCase name="xmlentitycheck" filename="tests/<exe-name>/UsageTests/Misc.tests.cpp" >
  21669. <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" >
  21670. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  21671. </Section>
  21672. <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" >
  21673. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  21674. </Section>
  21675. <OverallResult success="true"/>
  21676. </TestCase>
  21677. <OverallResults successes="2129" failures="143" expectedFailures="27"/>
  21678. <OverallResultsCases successes="304" failures="83" expectedFailures="7"/>
  21679. </Catch2TestRun>