xml.sw.approved.txt 663 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Catch name="<exe-name>" filters="~[!nonportable]~[!benchmark]~[approvals]">
  3. <Randomness seed="1"/>
  4. <Group name="<exe-name>">
  5. <TestCase name="# A test name that starts with a #" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  6. <OverallResult success="true"/>
  7. </TestCase>
  8. <TestCase name="#1005: Comparing pointer to int and long (NULL can be either on various systems)" tags="[Decomposition]" filename="projects/<exe-name>/UsageTests/Decomposition.tests.cpp" >
  9. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Decomposition.tests.cpp" >
  10. <Original>
  11. fptr == 0
  12. </Original>
  13. <Expanded>
  14. 0 == 0
  15. </Expanded>
  16. </Expression>
  17. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Decomposition.tests.cpp" >
  18. <Original>
  19. fptr == 0l
  20. </Original>
  21. <Expanded>
  22. 0 == 0
  23. </Expanded>
  24. </Expression>
  25. <OverallResult success="true"/>
  26. </TestCase>
  27. <TestCase name="#1027" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  28. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  29. <Original>
  30. y.v == 0
  31. </Original>
  32. <Expanded>
  33. 0 == 0
  34. </Expanded>
  35. </Expression>
  36. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  37. <Original>
  38. 0 == y.v
  39. </Original>
  40. <Expanded>
  41. 0 == 0
  42. </Expanded>
  43. </Expression>
  44. <OverallResult success="true"/>
  45. </TestCase>
  46. <TestCase name="#1027: Bitfields can be captured" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  47. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  48. <Original>
  49. y.v == 0
  50. </Original>
  51. <Expanded>
  52. 0 == 0
  53. </Expanded>
  54. </Expression>
  55. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  56. <Original>
  57. 0 == y.v
  58. </Original>
  59. <Expanded>
  60. 0 == 0
  61. </Expanded>
  62. </Expression>
  63. <OverallResult success="true"/>
  64. </TestCase>
  65. <TestCase name="#1147" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  66. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  67. <Original>
  68. t1 == t2
  69. </Original>
  70. <Expanded>
  71. {?} == {?}
  72. </Expanded>
  73. </Expression>
  74. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  75. <Original>
  76. t1 != t2
  77. </Original>
  78. <Expanded>
  79. {?} != {?}
  80. </Expanded>
  81. </Expression>
  82. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  83. <Original>
  84. t1 &lt; t2
  85. </Original>
  86. <Expanded>
  87. {?} &lt; {?}
  88. </Expanded>
  89. </Expression>
  90. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  91. <Original>
  92. t1 > t2
  93. </Original>
  94. <Expanded>
  95. {?} > {?}
  96. </Expanded>
  97. </Expression>
  98. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  99. <Original>
  100. t1 &lt;= t2
  101. </Original>
  102. <Expanded>
  103. {?} &lt;= {?}
  104. </Expanded>
  105. </Expression>
  106. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  107. <Original>
  108. t1 >= t2
  109. </Original>
  110. <Expanded>
  111. {?} >= {?}
  112. </Expanded>
  113. </Expression>
  114. <OverallResult success="true"/>
  115. </TestCase>
  116. <TestCase name="#1175 - Hidden Test" tags="[!hide][.]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  117. <OverallResult success="true"/>
  118. </TestCase>
  119. <TestCase name="#1238" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  120. <Info>
  121. uarr := "123"
  122. </Info>
  123. <Info>
  124. sarr := "456"
  125. </Info>
  126. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  127. <Original>
  128. std::memcmp(uarr, "123", sizeof(uarr)) == 0
  129. </Original>
  130. <Expanded>
  131. 0 == 0
  132. </Expanded>
  133. </Expression>
  134. <Info>
  135. uarr := "123"
  136. </Info>
  137. <Info>
  138. sarr := "456"
  139. </Info>
  140. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  141. <Original>
  142. std::memcmp(sarr, "456", sizeof(sarr)) == 0
  143. </Original>
  144. <Expanded>
  145. 0 == 0
  146. </Expanded>
  147. </Expression>
  148. <OverallResult success="true"/>
  149. </TestCase>
  150. <TestCase name="#1245" tags="[compilation]" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  151. <OverallResult success="true"/>
  152. </TestCase>
  153. <TestCase name="#1403" tags="[compilation]" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  154. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  155. <Original>
  156. h1 == h2
  157. </Original>
  158. <Expanded>
  159. [1403 helper] == [1403 helper]
  160. </Expanded>
  161. </Expression>
  162. <OverallResult success="true"/>
  163. </TestCase>
  164. <TestCase name="#1455 - INFO and WARN can start with a linebreak" tags="[!hide][.][messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  165. <Info>
  166. This info message starts with a linebreak
  167. </Info>
  168. <Warning>
  169. This warning message starts with a linebreak
  170. </Warning>
  171. <OverallResult success="false"/>
  172. </TestCase>
  173. <TestCase name="#1514: stderr/stdout is not captured in tests aborted by an exception" tags="[!hide][.][output-capture][regression]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  174. <Failure filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  175. 1514
  176. </Failure>
  177. <OverallResult success="false">
  178. <StdOut>
  179. This would not be caught previously
  180. </StdOut>
  181. <StdErr>
  182. Nor would this
  183. </StdErr>
  184. </OverallResult>
  185. </TestCase>
  186. <TestCase name="#1548" tags="[compilation]" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  187. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  188. <Original>
  189. std::is_same&lt;TypeList&lt;int>, TypeList&lt;int>>::value
  190. </Original>
  191. <Expanded>
  192. true
  193. </Expanded>
  194. </Expression>
  195. <OverallResult success="true"/>
  196. </TestCase>
  197. <TestCase name="#1905 -- test spec parser properly clears internal state between compound tests" tags="[command-line][test-spec]" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  198. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  199. <Original>
  200. spec.matches(fakeTestCase("spec . char"))
  201. </Original>
  202. <Expanded>
  203. true
  204. </Expanded>
  205. </Expression>
  206. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  207. <Original>
  208. spec.matches(fakeTestCase("spec , char"))
  209. </Original>
  210. <Expanded>
  211. true
  212. </Expanded>
  213. </Expression>
  214. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  215. <Original>
  216. !(spec.matches(fakeTestCase(R"(spec \, char)")))
  217. </Original>
  218. <Expanded>
  219. !false
  220. </Expanded>
  221. </Expression>
  222. <OverallResult success="true"/>
  223. </TestCase>
  224. <TestCase name="#1912 -- test spec parser handles escaping" tags="[command-line][test-spec]" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  225. <Section name="Various parentheses" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  226. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  227. <Original>
  228. spec.matches(fakeTestCase(R"(spec {a} char)"))
  229. </Original>
  230. <Expanded>
  231. true
  232. </Expanded>
  233. </Expression>
  234. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  235. <Original>
  236. spec.matches(fakeTestCase(R"(spec [a] char)"))
  237. </Original>
  238. <Expanded>
  239. true
  240. </Expanded>
  241. </Expression>
  242. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  243. <Original>
  244. !(spec.matches(fakeTestCase("differs but has similar tag", "[a]")))
  245. </Original>
  246. <Expanded>
  247. !false
  248. </Expanded>
  249. </Expression>
  250. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  251. </Section>
  252. <Section name="backslash in test name" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  253. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  254. <Original>
  255. spec.matches(fakeTestCase(R"(spec \ char)"))
  256. </Original>
  257. <Expanded>
  258. true
  259. </Expanded>
  260. </Expression>
  261. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  262. </Section>
  263. <OverallResult success="true"/>
  264. </TestCase>
  265. <TestCase name="#1913 - GENERATE inside a for loop should not keep recreating the generator" tags="[generators][regression]" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  266. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  267. <Original>
  268. counter &lt; 7
  269. </Original>
  270. <Expanded>
  271. 3 &lt; 7
  272. </Expanded>
  273. </Expression>
  274. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  275. <Original>
  276. counter &lt; 7
  277. </Original>
  278. <Expanded>
  279. 6 &lt; 7
  280. </Expanded>
  281. </Expression>
  282. <OverallResult success="true"/>
  283. </TestCase>
  284. <TestCase name="#1913 - GENERATEs can share a line" tags="[generators][regression]" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  285. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  286. <Original>
  287. i != j
  288. </Original>
  289. <Expanded>
  290. 1 != 3
  291. </Expanded>
  292. </Expression>
  293. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  294. <Original>
  295. i != j
  296. </Original>
  297. <Expanded>
  298. 1 != 4
  299. </Expanded>
  300. </Expression>
  301. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  302. <Original>
  303. i != j
  304. </Original>
  305. <Expanded>
  306. 2 != 3
  307. </Expanded>
  308. </Expression>
  309. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  310. <Original>
  311. i != j
  312. </Original>
  313. <Expanded>
  314. 2 != 4
  315. </Expanded>
  316. </Expression>
  317. <OverallResult success="true"/>
  318. </TestCase>
  319. <TestCase name="#1938 - GENERATE after a section" tags="[!hide][.][generators][regression]" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  320. <Section name="A" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  321. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  322. </Section>
  323. <Section name="B" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  324. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  325. <Original>
  326. m
  327. </Original>
  328. <Expanded>
  329. 1
  330. </Expanded>
  331. </Expression>
  332. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  333. </Section>
  334. <Section name="B" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  335. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  336. <Original>
  337. m
  338. </Original>
  339. <Expanded>
  340. 2
  341. </Expanded>
  342. </Expression>
  343. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  344. </Section>
  345. <Section name="B" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  346. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  347. <Original>
  348. m
  349. </Original>
  350. <Expanded>
  351. 3
  352. </Expanded>
  353. </Expression>
  354. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  355. </Section>
  356. <OverallResult success="true"/>
  357. </TestCase>
  358. <TestCase name="#1938 - Section followed by flat generate" tags="[!hide][.][generators][regression]" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  359. <Section name="A" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  360. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  361. <Original>
  362. 1
  363. </Original>
  364. <Expanded>
  365. 1
  366. </Expanded>
  367. </Expression>
  368. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  369. </Section>
  370. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  371. <Original>
  372. m
  373. </Original>
  374. <Expanded>
  375. 2
  376. </Expanded>
  377. </Expression>
  378. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  379. <Original>
  380. m
  381. </Original>
  382. <Expanded>
  383. 3
  384. </Expanded>
  385. </Expression>
  386. <OverallResult success="true"/>
  387. </TestCase>
  388. <TestCase name="#1938 - flat generate" tags="[!hide][.][generators][regression]" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  389. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  390. <Original>
  391. m
  392. </Original>
  393. <Expanded>
  394. 1
  395. </Expanded>
  396. </Expression>
  397. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  398. <Original>
  399. m
  400. </Original>
  401. <Expanded>
  402. 2
  403. </Expanded>
  404. </Expression>
  405. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  406. <Original>
  407. m
  408. </Original>
  409. <Expanded>
  410. 3
  411. </Expanded>
  412. </Expression>
  413. <OverallResult success="true"/>
  414. </TestCase>
  415. <TestCase name="#1938 - mixed sections and generates" tags="[!hide][.][generators][regression]" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  416. <Section name="A" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  417. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  418. </Section>
  419. <Info>
  420. i := 1
  421. </Info>
  422. <Info>
  423. j := 3
  424. </Info>
  425. <Info>
  426. k := 5
  427. </Info>
  428. <Section name="B" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  429. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  430. </Section>
  431. <Info>
  432. i := 1
  433. </Info>
  434. <Info>
  435. j := 3
  436. </Info>
  437. <Info>
  438. k := 6
  439. </Info>
  440. <Section name="B" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  441. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  442. </Section>
  443. <Info>
  444. i := 1
  445. </Info>
  446. <Info>
  447. j := 4
  448. </Info>
  449. <Info>
  450. k := 5
  451. </Info>
  452. <Info>
  453. i := 1
  454. </Info>
  455. <Info>
  456. j := 4
  457. </Info>
  458. <Info>
  459. k := 6
  460. </Info>
  461. <Section name="A" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  462. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  463. </Section>
  464. <Info>
  465. i := 2
  466. </Info>
  467. <Info>
  468. j := 3
  469. </Info>
  470. <Info>
  471. k := 5
  472. </Info>
  473. <Section name="B" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  474. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  475. </Section>
  476. <Info>
  477. i := 2
  478. </Info>
  479. <Info>
  480. j := 3
  481. </Info>
  482. <Info>
  483. k := 6
  484. </Info>
  485. <Section name="B" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  486. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  487. </Section>
  488. <Info>
  489. i := 2
  490. </Info>
  491. <Info>
  492. j := 4
  493. </Info>
  494. <Info>
  495. k := 5
  496. </Info>
  497. <Info>
  498. i := 2
  499. </Info>
  500. <Info>
  501. j := 4
  502. </Info>
  503. <Info>
  504. k := 6
  505. </Info>
  506. <OverallResult success="true"/>
  507. </TestCase>
  508. <TestCase name="#1938 - nested generate" tags="[!hide][.][generators][regression]" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  509. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  510. <Original>
  511. m
  512. </Original>
  513. <Expanded>
  514. 1
  515. </Expanded>
  516. </Expression>
  517. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  518. <Original>
  519. n
  520. </Original>
  521. <Expanded>
  522. 1
  523. </Expanded>
  524. </Expression>
  525. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  526. <Original>
  527. m
  528. </Original>
  529. <Expanded>
  530. 1
  531. </Expanded>
  532. </Expression>
  533. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  534. <Original>
  535. n
  536. </Original>
  537. <Expanded>
  538. 2
  539. </Expanded>
  540. </Expression>
  541. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  542. <Original>
  543. m
  544. </Original>
  545. <Expanded>
  546. 1
  547. </Expanded>
  548. </Expression>
  549. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  550. <Original>
  551. n
  552. </Original>
  553. <Expanded>
  554. 3
  555. </Expanded>
  556. </Expression>
  557. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  558. <Original>
  559. m
  560. </Original>
  561. <Expanded>
  562. 2
  563. </Expanded>
  564. </Expression>
  565. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  566. <Original>
  567. n
  568. </Original>
  569. <Expanded>
  570. 1
  571. </Expanded>
  572. </Expression>
  573. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  574. <Original>
  575. m
  576. </Original>
  577. <Expanded>
  578. 2
  579. </Expanded>
  580. </Expression>
  581. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  582. <Original>
  583. n
  584. </Original>
  585. <Expanded>
  586. 2
  587. </Expanded>
  588. </Expression>
  589. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  590. <Original>
  591. m
  592. </Original>
  593. <Expanded>
  594. 2
  595. </Expanded>
  596. </Expression>
  597. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  598. <Original>
  599. n
  600. </Original>
  601. <Expanded>
  602. 3
  603. </Expanded>
  604. </Expression>
  605. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  606. <Original>
  607. m
  608. </Original>
  609. <Expanded>
  610. 3
  611. </Expanded>
  612. </Expression>
  613. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  614. <Original>
  615. n
  616. </Original>
  617. <Expanded>
  618. 1
  619. </Expanded>
  620. </Expression>
  621. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  622. <Original>
  623. m
  624. </Original>
  625. <Expanded>
  626. 3
  627. </Expanded>
  628. </Expression>
  629. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  630. <Original>
  631. n
  632. </Original>
  633. <Expanded>
  634. 2
  635. </Expanded>
  636. </Expression>
  637. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  638. <Original>
  639. m
  640. </Original>
  641. <Expanded>
  642. 3
  643. </Expanded>
  644. </Expression>
  645. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  646. <Original>
  647. n
  648. </Original>
  649. <Expanded>
  650. 3
  651. </Expanded>
  652. </Expression>
  653. <OverallResult success="true"/>
  654. </TestCase>
  655. <TestCase name="#1954 - 7 arg template test case sig compiles - 1, 1, 1, 1, 1, 0, 0" tags="[!hide][.][compilation][regression]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  656. <OverallResult success="true"/>
  657. </TestCase>
  658. <TestCase name="#1954 - 7 arg template test case sig compiles - 5, 1, 1, 1, 1, 0, 0" tags="[!hide][.][compilation][regression]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  659. <OverallResult success="true"/>
  660. </TestCase>
  661. <TestCase name="#1954 - 7 arg template test case sig compiles - 5, 3, 1, 1, 1, 0, 0" tags="[!hide][.][compilation][regression]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  662. <OverallResult success="true"/>
  663. </TestCase>
  664. <TestCase name="#748 - captures with unexpected exceptions" tags="[!hide][!shouldfail][!throws][.][failing]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  665. <Section name="outside assertions" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  666. <Info>
  667. answer := 42
  668. </Info>
  669. <Exception filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  670. expected exception
  671. </Exception>
  672. <OverallResults successes="0" failures="0" expectedFailures="1"/>
  673. </Section>
  674. <Section name="inside REQUIRE_NOTHROW" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  675. <Info>
  676. answer := 42
  677. </Info>
  678. <Expression success="false" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  679. <Original>
  680. thisThrows()
  681. </Original>
  682. <Expanded>
  683. thisThrows()
  684. </Expanded>
  685. <Exception filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  686. expected exception
  687. </Exception>
  688. </Expression>
  689. <OverallResults successes="0" failures="0" expectedFailures="1"/>
  690. </Section>
  691. <Section name="inside REQUIRE_THROWS" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  692. <Info>
  693. answer := 42
  694. </Info>
  695. <Expression success="true" type="REQUIRE_THROWS" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  696. <Original>
  697. thisThrows()
  698. </Original>
  699. <Expanded>
  700. thisThrows()
  701. </Expanded>
  702. </Expression>
  703. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  704. </Section>
  705. <OverallResult success="true"/>
  706. </TestCase>
  707. <TestCase name="#809" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  708. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  709. <Original>
  710. 42 == f
  711. </Original>
  712. <Expanded>
  713. 42 == {?}
  714. </Expanded>
  715. </Expression>
  716. <OverallResult success="true"/>
  717. </TestCase>
  718. <TestCase name="#833" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  719. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  720. <Original>
  721. a == t
  722. </Original>
  723. <Expanded>
  724. 3 == 3
  725. </Expanded>
  726. </Expression>
  727. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  728. <Original>
  729. a == t
  730. </Original>
  731. <Expanded>
  732. 3 == 3
  733. </Expanded>
  734. </Expression>
  735. <Expression success="true" type="REQUIRE_THROWS" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  736. <Original>
  737. throws_int(true)
  738. </Original>
  739. <Expanded>
  740. throws_int(true)
  741. </Expanded>
  742. </Expression>
  743. <Expression success="true" type="CHECK_THROWS_AS" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  744. <Original>
  745. throws_int(true), int
  746. </Original>
  747. <Expanded>
  748. throws_int(true), int
  749. </Expanded>
  750. </Expression>
  751. <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  752. <Original>
  753. throws_int(false)
  754. </Original>
  755. <Expanded>
  756. throws_int(false)
  757. </Expanded>
  758. </Expression>
  759. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  760. <Original>
  761. "aaa", Catch::EndsWith("aaa")
  762. </Original>
  763. <Expanded>
  764. "aaa" ends with: "aaa"
  765. </Expanded>
  766. </Expression>
  767. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  768. <Original>
  769. templated_tests&lt;int>(3)
  770. </Original>
  771. <Expanded>
  772. true
  773. </Expanded>
  774. </Expression>
  775. <OverallResult success="true"/>
  776. </TestCase>
  777. <TestCase name="#835 -- errno should not be touched by Catch" tags="[!hide][!shouldfail][.][failing]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  778. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  779. <Original>
  780. f() == 0
  781. </Original>
  782. <Expanded>
  783. 1 == 0
  784. </Expanded>
  785. </Expression>
  786. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  787. <Original>
  788. errno == 1
  789. </Original>
  790. <Expanded>
  791. 1 == 1
  792. </Expanded>
  793. </Expression>
  794. <OverallResult success="true"/>
  795. </TestCase>
  796. <TestCase name="#872" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  797. <Info>
  798. dummy := 0
  799. </Info>
  800. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  801. <Original>
  802. x == 4
  803. </Original>
  804. <Expanded>
  805. {?} == 4
  806. </Expanded>
  807. </Expression>
  808. <OverallResult success="true"/>
  809. </TestCase>
  810. <TestCase name="#961 -- Dynamically created sections should all be reported" tags="[!hide][.]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  811. <Section name="Looped section 0" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  812. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  813. </Section>
  814. <Section name="Looped section 1" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  815. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  816. </Section>
  817. <Section name="Looped section 2" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  818. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  819. </Section>
  820. <Section name="Looped section 3" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  821. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  822. </Section>
  823. <Section name="Looped section 4" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  824. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  825. </Section>
  826. <OverallResult success="true"/>
  827. </TestCase>
  828. <TestCase name="'Not' checks that should fail" tags="[!hide][.][failing]" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  829. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  830. <Original>
  831. false != false
  832. </Original>
  833. <Expanded>
  834. false != false
  835. </Expanded>
  836. </Expression>
  837. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  838. <Original>
  839. true != true
  840. </Original>
  841. <Expanded>
  842. true != true
  843. </Expanded>
  844. </Expression>
  845. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  846. <Original>
  847. !true
  848. </Original>
  849. <Expanded>
  850. false
  851. </Expanded>
  852. </Expression>
  853. <Expression success="false" type="CHECK_FALSE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  854. <Original>
  855. !(true)
  856. </Original>
  857. <Expanded>
  858. !true
  859. </Expanded>
  860. </Expression>
  861. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  862. <Original>
  863. !trueValue
  864. </Original>
  865. <Expanded>
  866. false
  867. </Expanded>
  868. </Expression>
  869. <Expression success="false" type="CHECK_FALSE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  870. <Original>
  871. !(trueValue)
  872. </Original>
  873. <Expanded>
  874. !true
  875. </Expanded>
  876. </Expression>
  877. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  878. <Original>
  879. !(1 == 1)
  880. </Original>
  881. <Expanded>
  882. false
  883. </Expanded>
  884. </Expression>
  885. <Expression success="false" type="CHECK_FALSE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  886. <Original>
  887. !(1 == 1)
  888. </Original>
  889. <Expanded>
  890. !(1 == 1)
  891. </Expanded>
  892. </Expression>
  893. <OverallResult success="false"/>
  894. </TestCase>
  895. <TestCase name="'Not' checks that should succeed" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  896. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  897. <Original>
  898. false == false
  899. </Original>
  900. <Expanded>
  901. false == false
  902. </Expanded>
  903. </Expression>
  904. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  905. <Original>
  906. true == true
  907. </Original>
  908. <Expanded>
  909. true == true
  910. </Expanded>
  911. </Expression>
  912. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  913. <Original>
  914. !false
  915. </Original>
  916. <Expanded>
  917. true
  918. </Expanded>
  919. </Expression>
  920. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  921. <Original>
  922. !(false)
  923. </Original>
  924. <Expanded>
  925. !false
  926. </Expanded>
  927. </Expression>
  928. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  929. <Original>
  930. !falseValue
  931. </Original>
  932. <Expanded>
  933. true
  934. </Expanded>
  935. </Expression>
  936. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  937. <Original>
  938. !(falseValue)
  939. </Original>
  940. <Expanded>
  941. !false
  942. </Expanded>
  943. </Expression>
  944. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  945. <Original>
  946. !(1 == 2)
  947. </Original>
  948. <Expanded>
  949. true
  950. </Expanded>
  951. </Expression>
  952. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  953. <Original>
  954. !(1 == 2)
  955. </Original>
  956. <Expanded>
  957. !(1 == 2)
  958. </Expanded>
  959. </Expression>
  960. <OverallResult success="true"/>
  961. </TestCase>
  962. <TestCase name="(unimplemented) static bools can be evaluated" tags="[Tricky]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  963. <Section name="compare to true" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  964. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  965. <Original>
  966. is_true&lt;true>::value == true
  967. </Original>
  968. <Expanded>
  969. true == true
  970. </Expanded>
  971. </Expression>
  972. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  973. <Original>
  974. true == is_true&lt;true>::value
  975. </Original>
  976. <Expanded>
  977. true == true
  978. </Expanded>
  979. </Expression>
  980. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  981. </Section>
  982. <Section name="compare to false" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  983. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  984. <Original>
  985. is_true&lt;false>::value == false
  986. </Original>
  987. <Expanded>
  988. false == false
  989. </Expanded>
  990. </Expression>
  991. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  992. <Original>
  993. false == is_true&lt;false>::value
  994. </Original>
  995. <Expanded>
  996. false == false
  997. </Expanded>
  998. </Expression>
  999. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  1000. </Section>
  1001. <Section name="negation" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  1002. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  1003. <Original>
  1004. !is_true&lt;false>::value
  1005. </Original>
  1006. <Expanded>
  1007. true
  1008. </Expanded>
  1009. </Expression>
  1010. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  1011. </Section>
  1012. <Section name="double negation" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  1013. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  1014. <Original>
  1015. !!is_true&lt;true>::value
  1016. </Original>
  1017. <Expanded>
  1018. true
  1019. </Expanded>
  1020. </Expression>
  1021. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  1022. </Section>
  1023. <Section name="direct" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  1024. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  1025. <Original>
  1026. is_true&lt;true>::value
  1027. </Original>
  1028. <Expanded>
  1029. true
  1030. </Expanded>
  1031. </Expression>
  1032. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  1033. <Original>
  1034. !(is_true&lt;false>::value)
  1035. </Original>
  1036. <Expanded>
  1037. !false
  1038. </Expanded>
  1039. </Expression>
  1040. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  1041. </Section>
  1042. <OverallResult success="true"/>
  1043. </TestCase>
  1044. <TestCase name="3x3x3 ints" tags="[generators]" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1045. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1046. <Original>
  1047. x &lt; y
  1048. </Original>
  1049. <Expanded>
  1050. 1 &lt; 4
  1051. </Expanded>
  1052. </Expression>
  1053. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1054. <Original>
  1055. y &lt; z
  1056. </Original>
  1057. <Expanded>
  1058. 4 &lt; 7
  1059. </Expanded>
  1060. </Expression>
  1061. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1062. <Original>
  1063. x &lt; z
  1064. </Original>
  1065. <Expanded>
  1066. 1 &lt; 7
  1067. </Expanded>
  1068. </Expression>
  1069. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1070. <Original>
  1071. x &lt; y
  1072. </Original>
  1073. <Expanded>
  1074. 1 &lt; 4
  1075. </Expanded>
  1076. </Expression>
  1077. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1078. <Original>
  1079. y &lt; z
  1080. </Original>
  1081. <Expanded>
  1082. 4 &lt; 8
  1083. </Expanded>
  1084. </Expression>
  1085. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1086. <Original>
  1087. x &lt; z
  1088. </Original>
  1089. <Expanded>
  1090. 1 &lt; 8
  1091. </Expanded>
  1092. </Expression>
  1093. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1094. <Original>
  1095. x &lt; y
  1096. </Original>
  1097. <Expanded>
  1098. 1 &lt; 4
  1099. </Expanded>
  1100. </Expression>
  1101. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1102. <Original>
  1103. y &lt; z
  1104. </Original>
  1105. <Expanded>
  1106. 4 &lt; 9
  1107. </Expanded>
  1108. </Expression>
  1109. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1110. <Original>
  1111. x &lt; z
  1112. </Original>
  1113. <Expanded>
  1114. 1 &lt; 9
  1115. </Expanded>
  1116. </Expression>
  1117. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1118. <Original>
  1119. x &lt; y
  1120. </Original>
  1121. <Expanded>
  1122. 1 &lt; 5
  1123. </Expanded>
  1124. </Expression>
  1125. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1126. <Original>
  1127. y &lt; z
  1128. </Original>
  1129. <Expanded>
  1130. 5 &lt; 7
  1131. </Expanded>
  1132. </Expression>
  1133. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1134. <Original>
  1135. x &lt; z
  1136. </Original>
  1137. <Expanded>
  1138. 1 &lt; 7
  1139. </Expanded>
  1140. </Expression>
  1141. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1142. <Original>
  1143. x &lt; y
  1144. </Original>
  1145. <Expanded>
  1146. 1 &lt; 5
  1147. </Expanded>
  1148. </Expression>
  1149. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1150. <Original>
  1151. y &lt; z
  1152. </Original>
  1153. <Expanded>
  1154. 5 &lt; 8
  1155. </Expanded>
  1156. </Expression>
  1157. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1158. <Original>
  1159. x &lt; z
  1160. </Original>
  1161. <Expanded>
  1162. 1 &lt; 8
  1163. </Expanded>
  1164. </Expression>
  1165. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1166. <Original>
  1167. x &lt; y
  1168. </Original>
  1169. <Expanded>
  1170. 1 &lt; 5
  1171. </Expanded>
  1172. </Expression>
  1173. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1174. <Original>
  1175. y &lt; z
  1176. </Original>
  1177. <Expanded>
  1178. 5 &lt; 9
  1179. </Expanded>
  1180. </Expression>
  1181. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1182. <Original>
  1183. x &lt; z
  1184. </Original>
  1185. <Expanded>
  1186. 1 &lt; 9
  1187. </Expanded>
  1188. </Expression>
  1189. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1190. <Original>
  1191. x &lt; y
  1192. </Original>
  1193. <Expanded>
  1194. 1 &lt; 6
  1195. </Expanded>
  1196. </Expression>
  1197. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1198. <Original>
  1199. y &lt; z
  1200. </Original>
  1201. <Expanded>
  1202. 6 &lt; 7
  1203. </Expanded>
  1204. </Expression>
  1205. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1206. <Original>
  1207. x &lt; z
  1208. </Original>
  1209. <Expanded>
  1210. 1 &lt; 7
  1211. </Expanded>
  1212. </Expression>
  1213. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1214. <Original>
  1215. x &lt; y
  1216. </Original>
  1217. <Expanded>
  1218. 1 &lt; 6
  1219. </Expanded>
  1220. </Expression>
  1221. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1222. <Original>
  1223. y &lt; z
  1224. </Original>
  1225. <Expanded>
  1226. 6 &lt; 8
  1227. </Expanded>
  1228. </Expression>
  1229. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1230. <Original>
  1231. x &lt; z
  1232. </Original>
  1233. <Expanded>
  1234. 1 &lt; 8
  1235. </Expanded>
  1236. </Expression>
  1237. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1238. <Original>
  1239. x &lt; y
  1240. </Original>
  1241. <Expanded>
  1242. 1 &lt; 6
  1243. </Expanded>
  1244. </Expression>
  1245. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1246. <Original>
  1247. y &lt; z
  1248. </Original>
  1249. <Expanded>
  1250. 6 &lt; 9
  1251. </Expanded>
  1252. </Expression>
  1253. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1254. <Original>
  1255. x &lt; z
  1256. </Original>
  1257. <Expanded>
  1258. 1 &lt; 9
  1259. </Expanded>
  1260. </Expression>
  1261. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1262. <Original>
  1263. x &lt; y
  1264. </Original>
  1265. <Expanded>
  1266. 2 &lt; 4
  1267. </Expanded>
  1268. </Expression>
  1269. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1270. <Original>
  1271. y &lt; z
  1272. </Original>
  1273. <Expanded>
  1274. 4 &lt; 7
  1275. </Expanded>
  1276. </Expression>
  1277. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1278. <Original>
  1279. x &lt; z
  1280. </Original>
  1281. <Expanded>
  1282. 2 &lt; 7
  1283. </Expanded>
  1284. </Expression>
  1285. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1286. <Original>
  1287. x &lt; y
  1288. </Original>
  1289. <Expanded>
  1290. 2 &lt; 4
  1291. </Expanded>
  1292. </Expression>
  1293. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1294. <Original>
  1295. y &lt; z
  1296. </Original>
  1297. <Expanded>
  1298. 4 &lt; 8
  1299. </Expanded>
  1300. </Expression>
  1301. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1302. <Original>
  1303. x &lt; z
  1304. </Original>
  1305. <Expanded>
  1306. 2 &lt; 8
  1307. </Expanded>
  1308. </Expression>
  1309. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1310. <Original>
  1311. x &lt; y
  1312. </Original>
  1313. <Expanded>
  1314. 2 &lt; 4
  1315. </Expanded>
  1316. </Expression>
  1317. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1318. <Original>
  1319. y &lt; z
  1320. </Original>
  1321. <Expanded>
  1322. 4 &lt; 9
  1323. </Expanded>
  1324. </Expression>
  1325. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1326. <Original>
  1327. x &lt; z
  1328. </Original>
  1329. <Expanded>
  1330. 2 &lt; 9
  1331. </Expanded>
  1332. </Expression>
  1333. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1334. <Original>
  1335. x &lt; y
  1336. </Original>
  1337. <Expanded>
  1338. 2 &lt; 5
  1339. </Expanded>
  1340. </Expression>
  1341. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1342. <Original>
  1343. y &lt; z
  1344. </Original>
  1345. <Expanded>
  1346. 5 &lt; 7
  1347. </Expanded>
  1348. </Expression>
  1349. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1350. <Original>
  1351. x &lt; z
  1352. </Original>
  1353. <Expanded>
  1354. 2 &lt; 7
  1355. </Expanded>
  1356. </Expression>
  1357. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1358. <Original>
  1359. x &lt; y
  1360. </Original>
  1361. <Expanded>
  1362. 2 &lt; 5
  1363. </Expanded>
  1364. </Expression>
  1365. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1366. <Original>
  1367. y &lt; z
  1368. </Original>
  1369. <Expanded>
  1370. 5 &lt; 8
  1371. </Expanded>
  1372. </Expression>
  1373. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1374. <Original>
  1375. x &lt; z
  1376. </Original>
  1377. <Expanded>
  1378. 2 &lt; 8
  1379. </Expanded>
  1380. </Expression>
  1381. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1382. <Original>
  1383. x &lt; y
  1384. </Original>
  1385. <Expanded>
  1386. 2 &lt; 5
  1387. </Expanded>
  1388. </Expression>
  1389. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1390. <Original>
  1391. y &lt; z
  1392. </Original>
  1393. <Expanded>
  1394. 5 &lt; 9
  1395. </Expanded>
  1396. </Expression>
  1397. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1398. <Original>
  1399. x &lt; z
  1400. </Original>
  1401. <Expanded>
  1402. 2 &lt; 9
  1403. </Expanded>
  1404. </Expression>
  1405. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1406. <Original>
  1407. x &lt; y
  1408. </Original>
  1409. <Expanded>
  1410. 2 &lt; 6
  1411. </Expanded>
  1412. </Expression>
  1413. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1414. <Original>
  1415. y &lt; z
  1416. </Original>
  1417. <Expanded>
  1418. 6 &lt; 7
  1419. </Expanded>
  1420. </Expression>
  1421. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1422. <Original>
  1423. x &lt; z
  1424. </Original>
  1425. <Expanded>
  1426. 2 &lt; 7
  1427. </Expanded>
  1428. </Expression>
  1429. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1430. <Original>
  1431. x &lt; y
  1432. </Original>
  1433. <Expanded>
  1434. 2 &lt; 6
  1435. </Expanded>
  1436. </Expression>
  1437. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1438. <Original>
  1439. y &lt; z
  1440. </Original>
  1441. <Expanded>
  1442. 6 &lt; 8
  1443. </Expanded>
  1444. </Expression>
  1445. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1446. <Original>
  1447. x &lt; z
  1448. </Original>
  1449. <Expanded>
  1450. 2 &lt; 8
  1451. </Expanded>
  1452. </Expression>
  1453. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1454. <Original>
  1455. x &lt; y
  1456. </Original>
  1457. <Expanded>
  1458. 2 &lt; 6
  1459. </Expanded>
  1460. </Expression>
  1461. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1462. <Original>
  1463. y &lt; z
  1464. </Original>
  1465. <Expanded>
  1466. 6 &lt; 9
  1467. </Expanded>
  1468. </Expression>
  1469. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1470. <Original>
  1471. x &lt; z
  1472. </Original>
  1473. <Expanded>
  1474. 2 &lt; 9
  1475. </Expanded>
  1476. </Expression>
  1477. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1478. <Original>
  1479. x &lt; y
  1480. </Original>
  1481. <Expanded>
  1482. 3 &lt; 4
  1483. </Expanded>
  1484. </Expression>
  1485. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1486. <Original>
  1487. y &lt; z
  1488. </Original>
  1489. <Expanded>
  1490. 4 &lt; 7
  1491. </Expanded>
  1492. </Expression>
  1493. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1494. <Original>
  1495. x &lt; z
  1496. </Original>
  1497. <Expanded>
  1498. 3 &lt; 7
  1499. </Expanded>
  1500. </Expression>
  1501. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1502. <Original>
  1503. x &lt; y
  1504. </Original>
  1505. <Expanded>
  1506. 3 &lt; 4
  1507. </Expanded>
  1508. </Expression>
  1509. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1510. <Original>
  1511. y &lt; z
  1512. </Original>
  1513. <Expanded>
  1514. 4 &lt; 8
  1515. </Expanded>
  1516. </Expression>
  1517. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1518. <Original>
  1519. x &lt; z
  1520. </Original>
  1521. <Expanded>
  1522. 3 &lt; 8
  1523. </Expanded>
  1524. </Expression>
  1525. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1526. <Original>
  1527. x &lt; y
  1528. </Original>
  1529. <Expanded>
  1530. 3 &lt; 4
  1531. </Expanded>
  1532. </Expression>
  1533. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1534. <Original>
  1535. y &lt; z
  1536. </Original>
  1537. <Expanded>
  1538. 4 &lt; 9
  1539. </Expanded>
  1540. </Expression>
  1541. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1542. <Original>
  1543. x &lt; z
  1544. </Original>
  1545. <Expanded>
  1546. 3 &lt; 9
  1547. </Expanded>
  1548. </Expression>
  1549. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1550. <Original>
  1551. x &lt; y
  1552. </Original>
  1553. <Expanded>
  1554. 3 &lt; 5
  1555. </Expanded>
  1556. </Expression>
  1557. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1558. <Original>
  1559. y &lt; z
  1560. </Original>
  1561. <Expanded>
  1562. 5 &lt; 7
  1563. </Expanded>
  1564. </Expression>
  1565. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1566. <Original>
  1567. x &lt; z
  1568. </Original>
  1569. <Expanded>
  1570. 3 &lt; 7
  1571. </Expanded>
  1572. </Expression>
  1573. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1574. <Original>
  1575. x &lt; y
  1576. </Original>
  1577. <Expanded>
  1578. 3 &lt; 5
  1579. </Expanded>
  1580. </Expression>
  1581. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1582. <Original>
  1583. y &lt; z
  1584. </Original>
  1585. <Expanded>
  1586. 5 &lt; 8
  1587. </Expanded>
  1588. </Expression>
  1589. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1590. <Original>
  1591. x &lt; z
  1592. </Original>
  1593. <Expanded>
  1594. 3 &lt; 8
  1595. </Expanded>
  1596. </Expression>
  1597. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1598. <Original>
  1599. x &lt; y
  1600. </Original>
  1601. <Expanded>
  1602. 3 &lt; 5
  1603. </Expanded>
  1604. </Expression>
  1605. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1606. <Original>
  1607. y &lt; z
  1608. </Original>
  1609. <Expanded>
  1610. 5 &lt; 9
  1611. </Expanded>
  1612. </Expression>
  1613. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1614. <Original>
  1615. x &lt; z
  1616. </Original>
  1617. <Expanded>
  1618. 3 &lt; 9
  1619. </Expanded>
  1620. </Expression>
  1621. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1622. <Original>
  1623. x &lt; y
  1624. </Original>
  1625. <Expanded>
  1626. 3 &lt; 6
  1627. </Expanded>
  1628. </Expression>
  1629. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1630. <Original>
  1631. y &lt; z
  1632. </Original>
  1633. <Expanded>
  1634. 6 &lt; 7
  1635. </Expanded>
  1636. </Expression>
  1637. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1638. <Original>
  1639. x &lt; z
  1640. </Original>
  1641. <Expanded>
  1642. 3 &lt; 7
  1643. </Expanded>
  1644. </Expression>
  1645. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1646. <Original>
  1647. x &lt; y
  1648. </Original>
  1649. <Expanded>
  1650. 3 &lt; 6
  1651. </Expanded>
  1652. </Expression>
  1653. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1654. <Original>
  1655. y &lt; z
  1656. </Original>
  1657. <Expanded>
  1658. 6 &lt; 8
  1659. </Expanded>
  1660. </Expression>
  1661. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1662. <Original>
  1663. x &lt; z
  1664. </Original>
  1665. <Expanded>
  1666. 3 &lt; 8
  1667. </Expanded>
  1668. </Expression>
  1669. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1670. <Original>
  1671. x &lt; y
  1672. </Original>
  1673. <Expanded>
  1674. 3 &lt; 6
  1675. </Expanded>
  1676. </Expression>
  1677. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1678. <Original>
  1679. y &lt; z
  1680. </Original>
  1681. <Expanded>
  1682. 6 &lt; 9
  1683. </Expanded>
  1684. </Expression>
  1685. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  1686. <Original>
  1687. x &lt; z
  1688. </Original>
  1689. <Expanded>
  1690. 3 &lt; 9
  1691. </Expanded>
  1692. </Expression>
  1693. <OverallResult success="true"/>
  1694. </TestCase>
  1695. <TestCase name="A METHOD_AS_TEST_CASE based test run that fails" tags="[!hide][.][class][failing]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1696. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1697. <Original>
  1698. s == "world"
  1699. </Original>
  1700. <Expanded>
  1701. "hello" == "world"
  1702. </Expanded>
  1703. </Expression>
  1704. <OverallResult success="false"/>
  1705. </TestCase>
  1706. <TestCase name="A METHOD_AS_TEST_CASE based test run that succeeds" tags="[class]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1707. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1708. <Original>
  1709. s == "hello"
  1710. </Original>
  1711. <Expanded>
  1712. "hello" == "hello"
  1713. </Expanded>
  1714. </Expression>
  1715. <OverallResult success="true"/>
  1716. </TestCase>
  1717. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo&lt;float>" tags="[!hide][.][class][failing][product][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1718. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1719. <Original>
  1720. Template_Fixture_2&lt;TestType>::m_a.size() == 1
  1721. </Original>
  1722. <Expanded>
  1723. 0 == 1
  1724. </Expanded>
  1725. </Expression>
  1726. <OverallResult success="false"/>
  1727. </TestCase>
  1728. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo&lt;int>" tags="[!hide][.][class][failing][product][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1729. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1730. <Original>
  1731. Template_Fixture_2&lt;TestType>::m_a.size() == 1
  1732. </Original>
  1733. <Expanded>
  1734. 0 == 1
  1735. </Expanded>
  1736. </Expression>
  1737. <OverallResult success="false"/>
  1738. </TestCase>
  1739. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector&lt;float>" tags="[!hide][.][class][failing][product][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1740. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1741. <Original>
  1742. Template_Fixture_2&lt;TestType>::m_a.size() == 1
  1743. </Original>
  1744. <Expanded>
  1745. 0 == 1
  1746. </Expanded>
  1747. </Expression>
  1748. <OverallResult success="false"/>
  1749. </TestCase>
  1750. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector&lt;int>" tags="[!hide][.][class][failing][product][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1751. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1752. <Original>
  1753. Template_Fixture_2&lt;TestType>::m_a.size() == 1
  1754. </Original>
  1755. <Expanded>
  1756. 0 == 1
  1757. </Expanded>
  1758. </Expression>
  1759. <OverallResult success="false"/>
  1760. </TestCase>
  1761. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo&lt;float>" tags="[class][product][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1762. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1763. <Original>
  1764. Template_Fixture_2&lt;TestType>::m_a.size() == 0
  1765. </Original>
  1766. <Expanded>
  1767. 0 == 0
  1768. </Expanded>
  1769. </Expression>
  1770. <OverallResult success="true"/>
  1771. </TestCase>
  1772. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo&lt;int>" tags="[class][product][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1773. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1774. <Original>
  1775. Template_Fixture_2&lt;TestType>::m_a.size() == 0
  1776. </Original>
  1777. <Expanded>
  1778. 0 == 0
  1779. </Expanded>
  1780. </Expression>
  1781. <OverallResult success="true"/>
  1782. </TestCase>
  1783. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector&lt;float>" tags="[class][product][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1784. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1785. <Original>
  1786. Template_Fixture_2&lt;TestType>::m_a.size() == 0
  1787. </Original>
  1788. <Expanded>
  1789. 0 == 0
  1790. </Expanded>
  1791. </Expression>
  1792. <OverallResult success="true"/>
  1793. </TestCase>
  1794. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector&lt;int>" tags="[class][product][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1795. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1796. <Original>
  1797. Template_Fixture_2&lt;TestType>::m_a.size() == 0
  1798. </Original>
  1799. <Expanded>
  1800. 0 == 0
  1801. </Expanded>
  1802. </Expression>
  1803. <OverallResult success="true"/>
  1804. </TestCase>
  1805. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - Template_Foo_2&lt;float, 6>" tags="[!hide][.][class][failing][nttp][product][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1806. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1807. <Original>
  1808. Template_Fixture_2&lt;TestType>{}.m_a.size() &lt; 2
  1809. </Original>
  1810. <Expanded>
  1811. 6 &lt; 2
  1812. </Expanded>
  1813. </Expression>
  1814. <OverallResult success="false"/>
  1815. </TestCase>
  1816. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - Template_Foo_2&lt;int, 2>" tags="[!hide][.][class][failing][nttp][product][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1817. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1818. <Original>
  1819. Template_Fixture_2&lt;TestType>{}.m_a.size() &lt; 2
  1820. </Original>
  1821. <Expanded>
  1822. 2 &lt; 2
  1823. </Expanded>
  1824. </Expression>
  1825. <OverallResult success="false"/>
  1826. </TestCase>
  1827. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array&lt;float, 6>" tags="[!hide][.][class][failing][nttp][product][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1828. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1829. <Original>
  1830. Template_Fixture_2&lt;TestType>{}.m_a.size() &lt; 2
  1831. </Original>
  1832. <Expanded>
  1833. 6 &lt; 2
  1834. </Expanded>
  1835. </Expression>
  1836. <OverallResult success="false"/>
  1837. </TestCase>
  1838. <TestCase name="A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array&lt;int, 2>" tags="[!hide][.][class][failing][nttp][product][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1839. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1840. <Original>
  1841. Template_Fixture_2&lt;TestType>{}.m_a.size() &lt; 2
  1842. </Original>
  1843. <Expanded>
  1844. 2 &lt; 2
  1845. </Expanded>
  1846. </Expression>
  1847. <OverallResult success="false"/>
  1848. </TestCase>
  1849. <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="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1850. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1851. <Original>
  1852. Template_Fixture_2&lt;TestType>{}.m_a.size() >= 2
  1853. </Original>
  1854. <Expanded>
  1855. 6 >= 2
  1856. </Expanded>
  1857. </Expression>
  1858. <OverallResult success="true"/>
  1859. </TestCase>
  1860. <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="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1861. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1862. <Original>
  1863. Template_Fixture_2&lt;TestType>{}.m_a.size() >= 2
  1864. </Original>
  1865. <Expanded>
  1866. 2 >= 2
  1867. </Expanded>
  1868. </Expression>
  1869. <OverallResult success="true"/>
  1870. </TestCase>
  1871. <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="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1872. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1873. <Original>
  1874. Template_Fixture_2&lt;TestType>{}.m_a.size() >= 2
  1875. </Original>
  1876. <Expanded>
  1877. 6 >= 2
  1878. </Expanded>
  1879. </Expression>
  1880. <OverallResult success="true"/>
  1881. </TestCase>
  1882. <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="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1883. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1884. <Original>
  1885. Template_Fixture_2&lt;TestType>{}.m_a.size() >= 2
  1886. </Original>
  1887. <Expanded>
  1888. 2 >= 2
  1889. </Expanded>
  1890. </Expression>
  1891. <OverallResult success="true"/>
  1892. </TestCase>
  1893. <TestCase name="A TEMPLATE_TEST_CASE_METHOD based test run that fails - double" tags="[!hide][.][class][failing][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1894. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1895. <Original>
  1896. Template_Fixture&lt;TestType>::m_a == 2
  1897. </Original>
  1898. <Expanded>
  1899. 1.0 == 2
  1900. </Expanded>
  1901. </Expression>
  1902. <OverallResult success="false"/>
  1903. </TestCase>
  1904. <TestCase name="A TEMPLATE_TEST_CASE_METHOD based test run that fails - float" tags="[!hide][.][class][failing][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1905. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1906. <Original>
  1907. Template_Fixture&lt;TestType>::m_a == 2
  1908. </Original>
  1909. <Expanded>
  1910. 1.0f == 2
  1911. </Expanded>
  1912. </Expression>
  1913. <OverallResult success="false"/>
  1914. </TestCase>
  1915. <TestCase name="A TEMPLATE_TEST_CASE_METHOD based test run that fails - int" tags="[!hide][.][class][failing][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1916. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1917. <Original>
  1918. Template_Fixture&lt;TestType>::m_a == 2
  1919. </Original>
  1920. <Expanded>
  1921. 1 == 2
  1922. </Expanded>
  1923. </Expression>
  1924. <OverallResult success="false"/>
  1925. </TestCase>
  1926. <TestCase name="A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - double" tags="[class][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1927. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1928. <Original>
  1929. Template_Fixture&lt;TestType>::m_a == 1
  1930. </Original>
  1931. <Expanded>
  1932. 1.0 == 1
  1933. </Expanded>
  1934. </Expression>
  1935. <OverallResult success="true"/>
  1936. </TestCase>
  1937. <TestCase name="A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - float" tags="[class][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1938. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1939. <Original>
  1940. Template_Fixture&lt;TestType>::m_a == 1
  1941. </Original>
  1942. <Expanded>
  1943. 1.0f == 1
  1944. </Expanded>
  1945. </Expression>
  1946. <OverallResult success="true"/>
  1947. </TestCase>
  1948. <TestCase name="A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - int" tags="[class][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1949. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1950. <Original>
  1951. Template_Fixture&lt;TestType>::m_a == 1
  1952. </Original>
  1953. <Expanded>
  1954. 1 == 1
  1955. </Expanded>
  1956. </Expression>
  1957. <OverallResult success="true"/>
  1958. </TestCase>
  1959. <TestCase name="A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 1" tags="[!hide][.][class][failing][nttp][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1960. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1961. <Original>
  1962. Nttp_Fixture&lt;V>::value == 0
  1963. </Original>
  1964. <Expanded>
  1965. 1 == 0
  1966. </Expanded>
  1967. </Expression>
  1968. <OverallResult success="false"/>
  1969. </TestCase>
  1970. <TestCase name="A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 3" tags="[!hide][.][class][failing][nttp][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1971. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1972. <Original>
  1973. Nttp_Fixture&lt;V>::value == 0
  1974. </Original>
  1975. <Expanded>
  1976. 3 == 0
  1977. </Expanded>
  1978. </Expression>
  1979. <OverallResult success="false"/>
  1980. </TestCase>
  1981. <TestCase name="A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 6" tags="[!hide][.][class][failing][nttp][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1982. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1983. <Original>
  1984. Nttp_Fixture&lt;V>::value == 0
  1985. </Original>
  1986. <Expanded>
  1987. 6 == 0
  1988. </Expanded>
  1989. </Expression>
  1990. <OverallResult success="false"/>
  1991. </TestCase>
  1992. <TestCase name="A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 1" tags="[class][nttp][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1993. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  1994. <Original>
  1995. Nttp_Fixture&lt;V>::value > 0
  1996. </Original>
  1997. <Expanded>
  1998. 1 > 0
  1999. </Expanded>
  2000. </Expression>
  2001. <OverallResult success="true"/>
  2002. </TestCase>
  2003. <TestCase name="A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 3" tags="[class][nttp][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  2004. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  2005. <Original>
  2006. Nttp_Fixture&lt;V>::value > 0
  2007. </Original>
  2008. <Expanded>
  2009. 3 > 0
  2010. </Expanded>
  2011. </Expression>
  2012. <OverallResult success="true"/>
  2013. </TestCase>
  2014. <TestCase name="A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 6" tags="[class][nttp][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  2015. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  2016. <Original>
  2017. Nttp_Fixture&lt;V>::value > 0
  2018. </Original>
  2019. <Expanded>
  2020. 6 > 0
  2021. </Expanded>
  2022. </Expression>
  2023. <OverallResult success="true"/>
  2024. </TestCase>
  2025. <TestCase name="A TEST_CASE_METHOD based test run that fails" tags="[!hide][.][class][failing]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  2026. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  2027. <Original>
  2028. m_a == 2
  2029. </Original>
  2030. <Expanded>
  2031. 1 == 2
  2032. </Expanded>
  2033. </Expression>
  2034. <OverallResult success="false"/>
  2035. </TestCase>
  2036. <TestCase name="A TEST_CASE_METHOD based test run that succeeds" tags="[class]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  2037. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  2038. <Original>
  2039. m_a == 1
  2040. </Original>
  2041. <Expanded>
  2042. 1 == 1
  2043. </Expanded>
  2044. </Expression>
  2045. <OverallResult success="true"/>
  2046. </TestCase>
  2047. <TestCase name="A Template product test case - Foo&lt;float>" tags="[product][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2048. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2049. <Original>
  2050. x.size() == 0
  2051. </Original>
  2052. <Expanded>
  2053. 0 == 0
  2054. </Expanded>
  2055. </Expression>
  2056. <OverallResult success="true"/>
  2057. </TestCase>
  2058. <TestCase name="A Template product test case - Foo&lt;int>" tags="[product][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2059. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2060. <Original>
  2061. x.size() == 0
  2062. </Original>
  2063. <Expanded>
  2064. 0 == 0
  2065. </Expanded>
  2066. </Expression>
  2067. <OverallResult success="true"/>
  2068. </TestCase>
  2069. <TestCase name="A Template product test case - std::vector&lt;float>" tags="[product][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2070. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2071. <Original>
  2072. x.size() == 0
  2073. </Original>
  2074. <Expanded>
  2075. 0 == 0
  2076. </Expanded>
  2077. </Expression>
  2078. <OverallResult success="true"/>
  2079. </TestCase>
  2080. <TestCase name="A Template product test case - std::vector&lt;int>" tags="[product][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2081. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2082. <Original>
  2083. x.size() == 0
  2084. </Original>
  2085. <Expanded>
  2086. 0 == 0
  2087. </Expanded>
  2088. </Expression>
  2089. <OverallResult success="true"/>
  2090. </TestCase>
  2091. <TestCase name="A Template product test case with array signature - Bar&lt;float, 42>" tags="[nttp][product][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2092. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2093. <Original>
  2094. x.size() > 0
  2095. </Original>
  2096. <Expanded>
  2097. 42 > 0
  2098. </Expanded>
  2099. </Expression>
  2100. <OverallResult success="true"/>
  2101. </TestCase>
  2102. <TestCase name="A Template product test case with array signature - Bar&lt;int, 9>" tags="[nttp][product][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2103. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2104. <Original>
  2105. x.size() > 0
  2106. </Original>
  2107. <Expanded>
  2108. 9 > 0
  2109. </Expanded>
  2110. </Expression>
  2111. <OverallResult success="true"/>
  2112. </TestCase>
  2113. <TestCase name="A Template product test case with array signature - std::array&lt;float, 42>" tags="[nttp][product][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2114. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2115. <Original>
  2116. x.size() > 0
  2117. </Original>
  2118. <Expanded>
  2119. 42 > 0
  2120. </Expanded>
  2121. </Expression>
  2122. <OverallResult success="true"/>
  2123. </TestCase>
  2124. <TestCase name="A Template product test case with array signature - std::array&lt;int, 9>" tags="[nttp][product][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2125. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2126. <Original>
  2127. x.size() > 0
  2128. </Original>
  2129. <Expanded>
  2130. 9 > 0
  2131. </Expanded>
  2132. </Expression>
  2133. <OverallResult success="true"/>
  2134. </TestCase>
  2135. <TestCase name="A comparison that uses literals instead of the normal constructor" tags="[Approx]" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2136. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2137. <Original>
  2138. d == 1.23_a
  2139. </Original>
  2140. <Expanded>
  2141. 1.23 == Approx( 1.23 )
  2142. </Expanded>
  2143. </Expression>
  2144. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2145. <Original>
  2146. d != 1.22_a
  2147. </Original>
  2148. <Expanded>
  2149. 1.23 != Approx( 1.22 )
  2150. </Expanded>
  2151. </Expression>
  2152. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2153. <Original>
  2154. -d == -1.23_a
  2155. </Original>
  2156. <Expanded>
  2157. -1.23 == Approx( -1.23 )
  2158. </Expanded>
  2159. </Expression>
  2160. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2161. <Original>
  2162. d == 1.2_a .epsilon(.1)
  2163. </Original>
  2164. <Expanded>
  2165. 1.23 == Approx( 1.2 )
  2166. </Expanded>
  2167. </Expression>
  2168. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2169. <Original>
  2170. d != 1.2_a .epsilon(.001)
  2171. </Original>
  2172. <Expanded>
  2173. 1.23 != Approx( 1.2 )
  2174. </Expanded>
  2175. </Expression>
  2176. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2177. <Original>
  2178. d == 1_a .epsilon(.3)
  2179. </Original>
  2180. <Expanded>
  2181. 1.23 == Approx( 1.0 )
  2182. </Expanded>
  2183. </Expression>
  2184. <OverallResult success="true"/>
  2185. </TestCase>
  2186. <TestCase name="A couple of nested sections followed by a failure" tags="[!hide][.][failing]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2187. <Section name="Outer" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2188. <Section name="Inner" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2189. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  2190. </Section>
  2191. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  2192. </Section>
  2193. <Failure filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2194. to infinity and beyond
  2195. </Failure>
  2196. <OverallResult success="false"/>
  2197. </TestCase>
  2198. <TestCase name="A failing expression with a non streamable type is still captured" tags="[!hide][.][Tricky][failing]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2199. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2200. <Original>
  2201. &amp;o1 == &amp;o2
  2202. </Original>
  2203. <Expanded>
  2204. 0x<hex digits> == 0x<hex digits>
  2205. </Expanded>
  2206. </Expression>
  2207. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2208. <Original>
  2209. o1 == o2
  2210. </Original>
  2211. <Expanded>
  2212. {?} == {?}
  2213. </Expanded>
  2214. </Expression>
  2215. <OverallResult success="false"/>
  2216. </TestCase>
  2217. <TestCase name="Absolute margin" tags="[Approx]" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2218. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2219. <Original>
  2220. 104.0 != Approx(100.0)
  2221. </Original>
  2222. <Expanded>
  2223. 104.0 != Approx( 100.0 )
  2224. </Expanded>
  2225. </Expression>
  2226. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2227. <Original>
  2228. 104.0 == Approx(100.0).margin(5)
  2229. </Original>
  2230. <Expanded>
  2231. 104.0 == Approx( 100.0 )
  2232. </Expanded>
  2233. </Expression>
  2234. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2235. <Original>
  2236. 104.0 == Approx(100.0).margin(4)
  2237. </Original>
  2238. <Expanded>
  2239. 104.0 == Approx( 100.0 )
  2240. </Expanded>
  2241. </Expression>
  2242. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2243. <Original>
  2244. 104.0 != Approx(100.0).margin(3)
  2245. </Original>
  2246. <Expanded>
  2247. 104.0 != Approx( 100.0 )
  2248. </Expanded>
  2249. </Expression>
  2250. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2251. <Original>
  2252. 100.3 != Approx(100.0)
  2253. </Original>
  2254. <Expanded>
  2255. 100.3 != Approx( 100.0 )
  2256. </Expanded>
  2257. </Expression>
  2258. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2259. <Original>
  2260. 100.3 == Approx(100.0).margin(0.5)
  2261. </Original>
  2262. <Expanded>
  2263. 100.3 == Approx( 100.0 )
  2264. </Expanded>
  2265. </Expression>
  2266. <OverallResult success="true"/>
  2267. </TestCase>
  2268. <TestCase name="An empty test with no assertions" tags="[empty]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  2269. <OverallResult success="false"/>
  2270. </TestCase>
  2271. <TestCase name="An expression with side-effects should only be evaluated once" tags="[Tricky]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2272. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2273. <Original>
  2274. i++ == 7
  2275. </Original>
  2276. <Expanded>
  2277. 7 == 7
  2278. </Expanded>
  2279. </Expression>
  2280. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2281. <Original>
  2282. i++ == 8
  2283. </Original>
  2284. <Expanded>
  2285. 8 == 8
  2286. </Expanded>
  2287. </Expression>
  2288. <OverallResult success="true"/>
  2289. </TestCase>
  2290. <TestCase name="An unchecked exception reports the line of the last assertion" tags="[!hide][!throws][.][failing]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  2291. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  2292. <Original>
  2293. 1 == 1
  2294. </Original>
  2295. <Expanded>
  2296. 1 == 1
  2297. </Expanded>
  2298. </Expression>
  2299. <Expression success="false" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  2300. <Original>
  2301. {Unknown expression after the reported line}
  2302. </Original>
  2303. <Expanded>
  2304. {Unknown expression after the reported line}
  2305. </Expanded>
  2306. <Exception filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  2307. unexpected exception
  2308. </Exception>
  2309. </Expression>
  2310. <OverallResult success="false"/>
  2311. </TestCase>
  2312. <TestCase name="Anonymous test case 1" filename="projects/<exe-name>/UsageTests/VariadicMacros.tests.cpp" >
  2313. <OverallResult success="true"/>
  2314. </TestCase>
  2315. <TestCase name="Approx setters validate their arguments" tags="[Approx]" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2316. <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2317. <Original>
  2318. Approx(0).margin(0)
  2319. </Original>
  2320. <Expanded>
  2321. Approx(0).margin(0)
  2322. </Expanded>
  2323. </Expression>
  2324. <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2325. <Original>
  2326. Approx(0).margin(1234656)
  2327. </Original>
  2328. <Expanded>
  2329. Approx(0).margin(1234656)
  2330. </Expanded>
  2331. </Expression>
  2332. <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2333. <Original>
  2334. Approx(0).margin(-2), std::domain_error
  2335. </Original>
  2336. <Expanded>
  2337. Approx(0).margin(-2), std::domain_error
  2338. </Expanded>
  2339. </Expression>
  2340. <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2341. <Original>
  2342. Approx(0).epsilon(0)
  2343. </Original>
  2344. <Expanded>
  2345. Approx(0).epsilon(0)
  2346. </Expanded>
  2347. </Expression>
  2348. <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2349. <Original>
  2350. Approx(0).epsilon(1)
  2351. </Original>
  2352. <Expanded>
  2353. Approx(0).epsilon(1)
  2354. </Expanded>
  2355. </Expression>
  2356. <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2357. <Original>
  2358. Approx(0).epsilon(-0.001), std::domain_error
  2359. </Original>
  2360. <Expanded>
  2361. Approx(0).epsilon(-0.001), std::domain_error
  2362. </Expanded>
  2363. </Expression>
  2364. <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2365. <Original>
  2366. Approx(0).epsilon(1.0001), std::domain_error
  2367. </Original>
  2368. <Expanded>
  2369. Approx(0).epsilon(1.0001), std::domain_error
  2370. </Expanded>
  2371. </Expression>
  2372. <OverallResult success="true"/>
  2373. </TestCase>
  2374. <TestCase name="Approx with exactly-representable margin" tags="[Approx]" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2375. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2376. <Original>
  2377. 0.25f == Approx(0.0f).margin(0.25f)
  2378. </Original>
  2379. <Expanded>
  2380. 0.25f == Approx( 0.0 )
  2381. </Expanded>
  2382. </Expression>
  2383. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2384. <Original>
  2385. 0.0f == Approx(0.25f).margin(0.25f)
  2386. </Original>
  2387. <Expanded>
  2388. 0.0f == Approx( 0.25 )
  2389. </Expanded>
  2390. </Expression>
  2391. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2392. <Original>
  2393. 0.5f == Approx(0.25f).margin(0.25f)
  2394. </Original>
  2395. <Expanded>
  2396. 0.5f == Approx( 0.25 )
  2397. </Expanded>
  2398. </Expression>
  2399. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2400. <Original>
  2401. 245.0f == Approx(245.25f).margin(0.25f)
  2402. </Original>
  2403. <Expanded>
  2404. 245.0f == Approx( 245.25 )
  2405. </Expanded>
  2406. </Expression>
  2407. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2408. <Original>
  2409. 245.5f == Approx(245.25f).margin(0.25f)
  2410. </Original>
  2411. <Expanded>
  2412. 245.5f == Approx( 245.25 )
  2413. </Expanded>
  2414. </Expression>
  2415. <OverallResult success="true"/>
  2416. </TestCase>
  2417. <TestCase name="Approximate PI" tags="[Approx][PI]" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2418. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2419. <Original>
  2420. divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 )
  2421. </Original>
  2422. <Expanded>
  2423. 3.1428571429 == Approx( 3.141 )
  2424. </Expanded>
  2425. </Expression>
  2426. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2427. <Original>
  2428. divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 )
  2429. </Original>
  2430. <Expanded>
  2431. 3.1428571429 != Approx( 3.141 )
  2432. </Expanded>
  2433. </Expression>
  2434. <OverallResult success="true"/>
  2435. </TestCase>
  2436. <TestCase name="Approximate comparisons with different epsilons" tags="[Approx]" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2437. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2438. <Original>
  2439. d != Approx( 1.231 )
  2440. </Original>
  2441. <Expanded>
  2442. 1.23 != Approx( 1.231 )
  2443. </Expanded>
  2444. </Expression>
  2445. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2446. <Original>
  2447. d == Approx( 1.231 ).epsilon( 0.1 )
  2448. </Original>
  2449. <Expanded>
  2450. 1.23 == Approx( 1.231 )
  2451. </Expanded>
  2452. </Expression>
  2453. <OverallResult success="true"/>
  2454. </TestCase>
  2455. <TestCase name="Approximate comparisons with floats" tags="[Approx]" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2456. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2457. <Original>
  2458. 1.23f == Approx( 1.23f )
  2459. </Original>
  2460. <Expanded>
  2461. 1.23f == Approx( 1.2300000191 )
  2462. </Expanded>
  2463. </Expression>
  2464. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2465. <Original>
  2466. 0.0f == Approx( 0.0f )
  2467. </Original>
  2468. <Expanded>
  2469. 0.0f == Approx( 0.0 )
  2470. </Expanded>
  2471. </Expression>
  2472. <OverallResult success="true"/>
  2473. </TestCase>
  2474. <TestCase name="Approximate comparisons with ints" tags="[Approx]" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2475. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2476. <Original>
  2477. 1 == Approx( 1 )
  2478. </Original>
  2479. <Expanded>
  2480. 1 == Approx( 1.0 )
  2481. </Expanded>
  2482. </Expression>
  2483. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2484. <Original>
  2485. 0 == Approx( 0 )
  2486. </Original>
  2487. <Expanded>
  2488. 0 == Approx( 0.0 )
  2489. </Expanded>
  2490. </Expression>
  2491. <OverallResult success="true"/>
  2492. </TestCase>
  2493. <TestCase name="Approximate comparisons with mixed numeric types" tags="[Approx]" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2494. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2495. <Original>
  2496. 1.0f == Approx( 1 )
  2497. </Original>
  2498. <Expanded>
  2499. 1.0f == Approx( 1.0 )
  2500. </Expanded>
  2501. </Expression>
  2502. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2503. <Original>
  2504. 0 == Approx( dZero)
  2505. </Original>
  2506. <Expanded>
  2507. 0 == Approx( 0.0 )
  2508. </Expanded>
  2509. </Expression>
  2510. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2511. <Original>
  2512. 0 == Approx( dSmall ).margin( 0.001 )
  2513. </Original>
  2514. <Expanded>
  2515. 0 == Approx( 0.00001 )
  2516. </Expanded>
  2517. </Expression>
  2518. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2519. <Original>
  2520. 1.234f == Approx( dMedium )
  2521. </Original>
  2522. <Expanded>
  2523. 1.234f == Approx( 1.234 )
  2524. </Expanded>
  2525. </Expression>
  2526. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  2527. <Original>
  2528. dMedium == Approx( 1.234f )
  2529. </Original>
  2530. <Expanded>
  2531. 1.234 == Approx( 1.2339999676 )
  2532. </Expanded>
  2533. </Expression>
  2534. <OverallResult success="true"/>
  2535. </TestCase>
  2536. <TestCase name="Arbitrary predicate matcher" tags="[generic][matchers]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  2537. <Section name="Function pointer" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  2538. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  2539. <Original>
  2540. 1, Predicate&lt;int>(alwaysTrue, "always true")
  2541. </Original>
  2542. <Expanded>
  2543. 1 matches predicate: "always true"
  2544. </Expanded>
  2545. </Expression>
  2546. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  2547. <Original>
  2548. 1, !Predicate&lt;int>(alwaysFalse, "always false")
  2549. </Original>
  2550. <Expanded>
  2551. 1 not matches predicate: "always false"
  2552. </Expanded>
  2553. </Expression>
  2554. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  2555. </Section>
  2556. <Section name="Lambdas + different type" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  2557. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  2558. <Original>
  2559. "Hello olleH", Predicate&lt;std::string>( [] (std::string const&amp; str) -> bool { return str.front() == str.back(); }, "First and last character should be equal")
  2560. </Original>
  2561. <Expanded>
  2562. "Hello olleH" matches predicate: "First and last character should be equal"
  2563. </Expanded>
  2564. </Expression>
  2565. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  2566. <Original>
  2567. "This wouldn't pass", !Predicate&lt;std::string>( [] (std::string const&amp; str) -> bool { return str.front() == str.back(); } )
  2568. </Original>
  2569. <Expanded>
  2570. "This wouldn't pass" not matches undescribed predicate
  2571. </Expanded>
  2572. </Expression>
  2573. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  2574. </Section>
  2575. <OverallResult success="true"/>
  2576. </TestCase>
  2577. <TestCase name="Assertion macros support bit operators and bool conversions" tags="[bitops][compilation]" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  2578. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  2579. <Original>
  2580. lhs | rhs
  2581. </Original>
  2582. <Expanded>
  2583. Val: 1 | Val: 2
  2584. </Expanded>
  2585. </Expression>
  2586. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  2587. <Original>
  2588. !(lhs &amp; rhs)
  2589. </Original>
  2590. <Expanded>
  2591. !(Val: 1 &amp; Val: 2)
  2592. </Expanded>
  2593. </Expression>
  2594. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  2595. <Original>
  2596. HasBitOperators{ 1 } &amp; HasBitOperators{ 1 }
  2597. </Original>
  2598. <Expanded>
  2599. Val: 1 &amp; Val: 1
  2600. </Expanded>
  2601. </Expression>
  2602. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  2603. <Original>
  2604. lhs ^ rhs
  2605. </Original>
  2606. <Expanded>
  2607. Val: 1 ^ Val: 2
  2608. </Expanded>
  2609. </Expression>
  2610. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  2611. <Original>
  2612. !(lhs ^ lhs)
  2613. </Original>
  2614. <Expanded>
  2615. !(Val: 1 ^ Val: 1)
  2616. </Expanded>
  2617. </Expression>
  2618. <OverallResult success="true"/>
  2619. </TestCase>
  2620. <TestCase name="Assertions then sections" tags="[Tricky]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2621. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2622. <Original>
  2623. true
  2624. </Original>
  2625. <Expanded>
  2626. true
  2627. </Expanded>
  2628. </Expression>
  2629. <Section name="A section" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2630. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2631. <Original>
  2632. true
  2633. </Original>
  2634. <Expanded>
  2635. true
  2636. </Expanded>
  2637. </Expression>
  2638. <Section name="Another section" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2639. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2640. <Original>
  2641. true
  2642. </Original>
  2643. <Expanded>
  2644. true
  2645. </Expanded>
  2646. </Expression>
  2647. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  2648. </Section>
  2649. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  2650. </Section>
  2651. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2652. <Original>
  2653. true
  2654. </Original>
  2655. <Expanded>
  2656. true
  2657. </Expanded>
  2658. </Expression>
  2659. <Section name="A section" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2660. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2661. <Original>
  2662. true
  2663. </Original>
  2664. <Expanded>
  2665. true
  2666. </Expanded>
  2667. </Expression>
  2668. <Section name="Another other section" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2669. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2670. <Original>
  2671. true
  2672. </Original>
  2673. <Expanded>
  2674. true
  2675. </Expanded>
  2676. </Expression>
  2677. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  2678. </Section>
  2679. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  2680. </Section>
  2681. <OverallResult success="true"/>
  2682. </TestCase>
  2683. <TestCase name="CAPTURE can deal with complex expressions" tags="[capture][messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  2684. <Info>
  2685. a := 1
  2686. </Info>
  2687. <Info>
  2688. b := 2
  2689. </Info>
  2690. <Info>
  2691. c := 3
  2692. </Info>
  2693. <Info>
  2694. a + b := 3
  2695. </Info>
  2696. <Info>
  2697. a+b := 3
  2698. </Info>
  2699. <Info>
  2700. c > b := true
  2701. </Info>
  2702. <Info>
  2703. a == 1 := true
  2704. </Info>
  2705. <OverallResult success="true"/>
  2706. </TestCase>
  2707. <TestCase name="CAPTURE can deal with complex expressions involving commas" tags="[capture][messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  2708. <Info>
  2709. std::vector&lt;int>{1, 2, 3}[0, 1, 2] := 3
  2710. </Info>
  2711. <Info>
  2712. std::vector&lt;int>{1, 2, 3}[(0, 1)] := 2
  2713. </Info>
  2714. <Info>
  2715. std::vector&lt;int>{1, 2, 3}[0] := 1
  2716. </Info>
  2717. <Info>
  2718. (helper_1436&lt;int, int>{12, -12}) := { 12, -12 }
  2719. </Info>
  2720. <Info>
  2721. (helper_1436&lt;int, int>(-12, 12)) := { -12, 12 }
  2722. </Info>
  2723. <Info>
  2724. (1, 2) := 2
  2725. </Info>
  2726. <Info>
  2727. (2, 3) := 3
  2728. </Info>
  2729. <OverallResult success="true"/>
  2730. </TestCase>
  2731. <TestCase name="CAPTURE parses string and character constants" tags="[capture][messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  2732. <Info>
  2733. ("comma, in string", "escaped, \", ") := "escaped, ", "
  2734. </Info>
  2735. <Info>
  2736. "single quote in string,'," := "single quote in string,',"
  2737. </Info>
  2738. <Info>
  2739. "some escapes, \\,\\\\" := "some escapes, \,\\"
  2740. </Info>
  2741. <Info>
  2742. "some, ), unmatched, } prenheses {[&lt;" := "some, ), unmatched, } prenheses {[&lt;"
  2743. </Info>
  2744. <Info>
  2745. '"' := '"'
  2746. </Info>
  2747. <Info>
  2748. '\'' := '''
  2749. </Info>
  2750. <Info>
  2751. ',' := ','
  2752. </Info>
  2753. <Info>
  2754. '}' := '}'
  2755. </Info>
  2756. <Info>
  2757. ')' := ')'
  2758. </Info>
  2759. <Info>
  2760. '(' := '('
  2761. </Info>
  2762. <Info>
  2763. '{' := '{'
  2764. </Info>
  2765. <OverallResult success="true"/>
  2766. </TestCase>
  2767. <TestCase name="Capture and info messages" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2768. <Section name="Capture should stringify like assertions" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2769. <Info>
  2770. i := 2
  2771. </Info>
  2772. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2773. <Original>
  2774. true
  2775. </Original>
  2776. <Expanded>
  2777. true
  2778. </Expanded>
  2779. </Expression>
  2780. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  2781. </Section>
  2782. <Section name="Info should NOT stringify the way assertions do" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2783. <Info>
  2784. 3
  2785. </Info>
  2786. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2787. <Original>
  2788. true
  2789. </Original>
  2790. <Expanded>
  2791. true
  2792. </Expanded>
  2793. </Expression>
  2794. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  2795. </Section>
  2796. <OverallResult success="true"/>
  2797. </TestCase>
  2798. <TestCase name="Character pretty printing" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2799. <Section name="Specifically escaped" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2800. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2801. <Original>
  2802. tab == '\t'
  2803. </Original>
  2804. <Expanded>
  2805. '\t' == '\t'
  2806. </Expanded>
  2807. </Expression>
  2808. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2809. <Original>
  2810. newline == '\n'
  2811. </Original>
  2812. <Expanded>
  2813. '\n' == '\n'
  2814. </Expanded>
  2815. </Expression>
  2816. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2817. <Original>
  2818. carr_return == '\r'
  2819. </Original>
  2820. <Expanded>
  2821. '\r' == '\r'
  2822. </Expanded>
  2823. </Expression>
  2824. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2825. <Original>
  2826. form_feed == '\f'
  2827. </Original>
  2828. <Expanded>
  2829. '\f' == '\f'
  2830. </Expanded>
  2831. </Expression>
  2832. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  2833. </Section>
  2834. <Section name="General chars" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2835. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2836. <Original>
  2837. space == ' '
  2838. </Original>
  2839. <Expanded>
  2840. ' ' == ' '
  2841. </Expanded>
  2842. </Expression>
  2843. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2844. <Original>
  2845. c == chars[i]
  2846. </Original>
  2847. <Expanded>
  2848. 'a' == 'a'
  2849. </Expanded>
  2850. </Expression>
  2851. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2852. <Original>
  2853. c == chars[i]
  2854. </Original>
  2855. <Expanded>
  2856. 'z' == 'z'
  2857. </Expanded>
  2858. </Expression>
  2859. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2860. <Original>
  2861. c == chars[i]
  2862. </Original>
  2863. <Expanded>
  2864. 'A' == 'A'
  2865. </Expanded>
  2866. </Expression>
  2867. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2868. <Original>
  2869. c == chars[i]
  2870. </Original>
  2871. <Expanded>
  2872. 'Z' == 'Z'
  2873. </Expanded>
  2874. </Expression>
  2875. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  2876. </Section>
  2877. <Section name="Low ASCII" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2878. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2879. <Original>
  2880. null_terminator == '\0'
  2881. </Original>
  2882. <Expanded>
  2883. 0 == 0
  2884. </Expanded>
  2885. </Expression>
  2886. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2887. <Original>
  2888. c == i
  2889. </Original>
  2890. <Expanded>
  2891. 2 == 2
  2892. </Expanded>
  2893. </Expression>
  2894. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2895. <Original>
  2896. c == i
  2897. </Original>
  2898. <Expanded>
  2899. 3 == 3
  2900. </Expanded>
  2901. </Expression>
  2902. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2903. <Original>
  2904. c == i
  2905. </Original>
  2906. <Expanded>
  2907. 4 == 4
  2908. </Expanded>
  2909. </Expression>
  2910. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  2911. <Original>
  2912. c == i
  2913. </Original>
  2914. <Expanded>
  2915. 5 == 5
  2916. </Expanded>
  2917. </Expression>
  2918. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  2919. </Section>
  2920. <OverallResult success="true"/>
  2921. </TestCase>
  2922. <TestCase name="Commas in various macros are allowed" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2923. <Expression success="true" type="REQUIRE_THROWS" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2924. <Original>
  2925. std::vector&lt;constructor_throws>{constructor_throws{}, constructor_throws{}}
  2926. </Original>
  2927. <Expanded>
  2928. std::vector&lt;constructor_throws>{constructor_throws{}, constructor_throws{}}
  2929. </Expanded>
  2930. </Expression>
  2931. <Expression success="true" type="CHECK_THROWS" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2932. <Original>
  2933. std::vector&lt;constructor_throws>{constructor_throws{}, constructor_throws{}}
  2934. </Original>
  2935. <Expanded>
  2936. std::vector&lt;constructor_throws>{constructor_throws{}, constructor_throws{}}
  2937. </Expanded>
  2938. </Expression>
  2939. <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2940. <Original>
  2941. std::vector&lt;int>{1, 2, 3} == std::vector&lt;int>{1, 2, 3}
  2942. </Original>
  2943. <Expanded>
  2944. std::vector&lt;int>{1, 2, 3} == std::vector&lt;int>{1, 2, 3}
  2945. </Expanded>
  2946. </Expression>
  2947. <Expression success="true" type="CHECK_NOTHROW" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2948. <Original>
  2949. std::vector&lt;int>{1, 2, 3} == std::vector&lt;int>{1, 2, 3}
  2950. </Original>
  2951. <Expanded>
  2952. std::vector&lt;int>{1, 2, 3} == std::vector&lt;int>{1, 2, 3}
  2953. </Expanded>
  2954. </Expression>
  2955. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2956. <Original>
  2957. std::vector&lt;int>{1, 2} == std::vector&lt;int>{1, 2}
  2958. </Original>
  2959. <Expanded>
  2960. { 1, 2 } == { 1, 2 }
  2961. </Expanded>
  2962. </Expression>
  2963. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2964. <Original>
  2965. std::vector&lt;int>{1, 2} == std::vector&lt;int>{1, 2}
  2966. </Original>
  2967. <Expanded>
  2968. { 1, 2 } == { 1, 2 }
  2969. </Expanded>
  2970. </Expression>
  2971. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2972. <Original>
  2973. !(std::vector&lt;int>{1, 2} == std::vector&lt;int>{1, 2, 3})
  2974. </Original>
  2975. <Expanded>
  2976. !({ 1, 2 } == { 1, 2, 3 })
  2977. </Expanded>
  2978. </Expression>
  2979. <Expression success="true" type="CHECK_FALSE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2980. <Original>
  2981. !(std::vector&lt;int>{1, 2} == std::vector&lt;int>{1, 2, 3})
  2982. </Original>
  2983. <Expanded>
  2984. !({ 1, 2 } == { 1, 2, 3 })
  2985. </Expanded>
  2986. </Expression>
  2987. <Expression success="true" type="CHECK_NOFAIL" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2988. <Original>
  2989. std::vector&lt;int>{1, 2} == std::vector&lt;int>{1, 2}
  2990. </Original>
  2991. <Expanded>
  2992. { 1, 2 } == { 1, 2 }
  2993. </Expanded>
  2994. </Expression>
  2995. <Expression success="true" type="CHECKED_IF" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  2996. <Original>
  2997. std::vector&lt;int>{1, 2} == std::vector&lt;int>{1, 2}
  2998. </Original>
  2999. <Expanded>
  3000. { 1, 2 } == { 1, 2 }
  3001. </Expanded>
  3002. </Expression>
  3003. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3004. <Original>
  3005. true
  3006. </Original>
  3007. <Expanded>
  3008. true
  3009. </Expanded>
  3010. </Expression>
  3011. <Expression success="true" type="CHECKED_ELSE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3012. <Original>
  3013. std::vector&lt;int>{1, 2} == std::vector&lt;int>{1, 2}
  3014. </Original>
  3015. <Expanded>
  3016. { 1, 2 } == { 1, 2 }
  3017. </Expanded>
  3018. </Expression>
  3019. <OverallResult success="true"/>
  3020. </TestCase>
  3021. <TestCase name="Comparing function pointers" tags="[Tricky][function pointer]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3022. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3023. <Original>
  3024. a
  3025. </Original>
  3026. <Expanded>
  3027. 0x<hex digits>
  3028. </Expanded>
  3029. </Expression>
  3030. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  3031. <Original>
  3032. a == &amp;foo
  3033. </Original>
  3034. <Expanded>
  3035. 0x<hex digits> == 0x<hex digits>
  3036. </Expanded>
  3037. </Expression>
  3038. <OverallResult success="true"/>
  3039. </TestCase>
  3040. <TestCase name="Comparison ops" tags="[rng]" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  3041. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  3042. <Original>
  3043. SimplePcg32{} == SimplePcg32{}
  3044. </Original>
  3045. <Expanded>
  3046. {?} == {?}
  3047. </Expanded>
  3048. </Expression>
  3049. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  3050. <Original>
  3051. SimplePcg32{ 0 } != SimplePcg32{}
  3052. </Original>
  3053. <Expanded>
  3054. {?} != {?}
  3055. </Expanded>
  3056. </Expression>
  3057. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  3058. <Original>
  3059. !(SimplePcg32{ 1 } == SimplePcg32{ 2 })
  3060. </Original>
  3061. <Expanded>
  3062. !({?} == {?})
  3063. </Expanded>
  3064. </Expression>
  3065. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  3066. <Original>
  3067. !(SimplePcg32{ 1 } != SimplePcg32{ 1 })
  3068. </Original>
  3069. <Expanded>
  3070. !({?} != {?})
  3071. </Expanded>
  3072. </Expression>
  3073. <OverallResult success="true"/>
  3074. </TestCase>
  3075. <TestCase name="Comparison with explicitly convertible types" tags="[Approx]" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3076. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3077. <Original>
  3078. td == Approx(10.0)
  3079. </Original>
  3080. <Expanded>
  3081. StrongDoubleTypedef(10) == Approx( 10.0 )
  3082. </Expanded>
  3083. </Expression>
  3084. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3085. <Original>
  3086. Approx(10.0) == td
  3087. </Original>
  3088. <Expanded>
  3089. Approx( 10.0 ) == StrongDoubleTypedef(10)
  3090. </Expanded>
  3091. </Expression>
  3092. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3093. <Original>
  3094. td != Approx(11.0)
  3095. </Original>
  3096. <Expanded>
  3097. StrongDoubleTypedef(10) != Approx( 11.0 )
  3098. </Expanded>
  3099. </Expression>
  3100. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3101. <Original>
  3102. Approx(11.0) != td
  3103. </Original>
  3104. <Expanded>
  3105. Approx( 11.0 ) != StrongDoubleTypedef(10)
  3106. </Expanded>
  3107. </Expression>
  3108. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3109. <Original>
  3110. td &lt;= Approx(10.0)
  3111. </Original>
  3112. <Expanded>
  3113. StrongDoubleTypedef(10) &lt;= Approx( 10.0 )
  3114. </Expanded>
  3115. </Expression>
  3116. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3117. <Original>
  3118. td &lt;= Approx(11.0)
  3119. </Original>
  3120. <Expanded>
  3121. StrongDoubleTypedef(10) &lt;= Approx( 11.0 )
  3122. </Expanded>
  3123. </Expression>
  3124. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3125. <Original>
  3126. Approx(10.0) &lt;= td
  3127. </Original>
  3128. <Expanded>
  3129. Approx( 10.0 ) &lt;= StrongDoubleTypedef(10)
  3130. </Expanded>
  3131. </Expression>
  3132. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3133. <Original>
  3134. Approx(9.0) &lt;= td
  3135. </Original>
  3136. <Expanded>
  3137. Approx( 9.0 ) &lt;= StrongDoubleTypedef(10)
  3138. </Expanded>
  3139. </Expression>
  3140. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3141. <Original>
  3142. td >= Approx(9.0)
  3143. </Original>
  3144. <Expanded>
  3145. StrongDoubleTypedef(10) >= Approx( 9.0 )
  3146. </Expanded>
  3147. </Expression>
  3148. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3149. <Original>
  3150. td >= Approx(td)
  3151. </Original>
  3152. <Expanded>
  3153. StrongDoubleTypedef(10) >= Approx( 10.0 )
  3154. </Expanded>
  3155. </Expression>
  3156. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3157. <Original>
  3158. Approx(td) >= td
  3159. </Original>
  3160. <Expanded>
  3161. Approx( 10.0 ) >= StrongDoubleTypedef(10)
  3162. </Expanded>
  3163. </Expression>
  3164. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3165. <Original>
  3166. Approx(11.0) >= td
  3167. </Original>
  3168. <Expanded>
  3169. Approx( 11.0 ) >= StrongDoubleTypedef(10)
  3170. </Expanded>
  3171. </Expression>
  3172. <OverallResult success="true"/>
  3173. </TestCase>
  3174. <TestCase name="Comparisons between ints where one side is computed" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3175. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3176. <Original>
  3177. 54 == 6*9
  3178. </Original>
  3179. <Expanded>
  3180. 54 == 54
  3181. </Expanded>
  3182. </Expression>
  3183. <OverallResult success="true"/>
  3184. </TestCase>
  3185. <TestCase name="Comparisons between unsigned ints and negative signed ints match c++ standard behaviour" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3186. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3187. <Original>
  3188. ( -1 > 2u )
  3189. </Original>
  3190. <Expanded>
  3191. true
  3192. </Expanded>
  3193. </Expression>
  3194. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3195. <Original>
  3196. -1 > 2u
  3197. </Original>
  3198. <Expanded>
  3199. -1 > 2
  3200. </Expanded>
  3201. </Expression>
  3202. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3203. <Original>
  3204. ( 2u &lt; -1 )
  3205. </Original>
  3206. <Expanded>
  3207. true
  3208. </Expanded>
  3209. </Expression>
  3210. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3211. <Original>
  3212. 2u &lt; -1
  3213. </Original>
  3214. <Expanded>
  3215. 2 &lt; -1
  3216. </Expanded>
  3217. </Expression>
  3218. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3219. <Original>
  3220. ( minInt > 2u )
  3221. </Original>
  3222. <Expanded>
  3223. true
  3224. </Expanded>
  3225. </Expression>
  3226. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3227. <Original>
  3228. minInt > 2u
  3229. </Original>
  3230. <Expanded>
  3231. -2147483648 > 2
  3232. </Expanded>
  3233. </Expression>
  3234. <OverallResult success="true"/>
  3235. </TestCase>
  3236. <TestCase name="Comparisons with int literals don't warn when mixing signed/ unsigned" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3237. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3238. <Original>
  3239. i == 1
  3240. </Original>
  3241. <Expanded>
  3242. 1 == 1
  3243. </Expanded>
  3244. </Expression>
  3245. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3246. <Original>
  3247. ui == 2
  3248. </Original>
  3249. <Expanded>
  3250. 2 == 2
  3251. </Expanded>
  3252. </Expression>
  3253. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3254. <Original>
  3255. l == 3
  3256. </Original>
  3257. <Expanded>
  3258. 3 == 3
  3259. </Expanded>
  3260. </Expression>
  3261. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3262. <Original>
  3263. ul == 4
  3264. </Original>
  3265. <Expanded>
  3266. 4 == 4
  3267. </Expanded>
  3268. </Expression>
  3269. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3270. <Original>
  3271. c == 5
  3272. </Original>
  3273. <Expanded>
  3274. 5 == 5
  3275. </Expanded>
  3276. </Expression>
  3277. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3278. <Original>
  3279. uc == 6
  3280. </Original>
  3281. <Expanded>
  3282. 6 == 6
  3283. </Expanded>
  3284. </Expression>
  3285. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3286. <Original>
  3287. 1 == i
  3288. </Original>
  3289. <Expanded>
  3290. 1 == 1
  3291. </Expanded>
  3292. </Expression>
  3293. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3294. <Original>
  3295. 2 == ui
  3296. </Original>
  3297. <Expanded>
  3298. 2 == 2
  3299. </Expanded>
  3300. </Expression>
  3301. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3302. <Original>
  3303. 3 == l
  3304. </Original>
  3305. <Expanded>
  3306. 3 == 3
  3307. </Expanded>
  3308. </Expression>
  3309. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3310. <Original>
  3311. 4 == ul
  3312. </Original>
  3313. <Expanded>
  3314. 4 == 4
  3315. </Expanded>
  3316. </Expression>
  3317. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3318. <Original>
  3319. 5 == c
  3320. </Original>
  3321. <Expanded>
  3322. 5 == 5
  3323. </Expanded>
  3324. </Expression>
  3325. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3326. <Original>
  3327. 6 == uc
  3328. </Original>
  3329. <Expanded>
  3330. 6 == 6
  3331. </Expanded>
  3332. </Expression>
  3333. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3334. <Original>
  3335. (std::numeric_limits&lt;uint32_t>::max)() > ul
  3336. </Original>
  3337. <Expanded>
  3338. 4294967295 (0x<hex digits>) > 4
  3339. </Expanded>
  3340. </Expression>
  3341. <OverallResult success="true"/>
  3342. </TestCase>
  3343. <TestCase name="Composed matchers are distinct" tags="[composed][matchers]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3344. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3345. <Original>
  3346. testStringForMatching2(), !composed1
  3347. </Original>
  3348. <Expanded>
  3349. "some completely different text that contains one common word" not ( contains: "string" or contains: "random" )
  3350. </Expanded>
  3351. </Expression>
  3352. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3353. <Original>
  3354. testStringForMatching2(), composed2
  3355. </Original>
  3356. <Expanded>
  3357. "some completely different text that contains one common word" ( contains: "string" or contains: "random" or contains: "different" )
  3358. </Expanded>
  3359. </Expression>
  3360. <OverallResult success="true"/>
  3361. </TestCase>
  3362. <TestCase name="Composed matchers shortcircuit" tags="[composed][matchers]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3363. <Section name="&amp;&amp;" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3364. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3365. <Original>
  3366. 1, !(first &amp;&amp; second)
  3367. </Original>
  3368. <Expanded>
  3369. 1 not ( CheckedTestingMatcher set to fail and CheckedTestingMatcher set to fail )
  3370. </Expanded>
  3371. </Expression>
  3372. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3373. <Original>
  3374. first.matchCalled
  3375. </Original>
  3376. <Expanded>
  3377. true
  3378. </Expanded>
  3379. </Expression>
  3380. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3381. <Original>
  3382. !second.matchCalled
  3383. </Original>
  3384. <Expanded>
  3385. true
  3386. </Expanded>
  3387. </Expression>
  3388. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  3389. </Section>
  3390. <Section name="||" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3391. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3392. <Original>
  3393. 1, first || second
  3394. </Original>
  3395. <Expanded>
  3396. 1 ( CheckedTestingMatcher set to succeed or CheckedTestingMatcher set to fail )
  3397. </Expanded>
  3398. </Expression>
  3399. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3400. <Original>
  3401. first.matchCalled
  3402. </Original>
  3403. <Expanded>
  3404. true
  3405. </Expanded>
  3406. </Expression>
  3407. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3408. <Original>
  3409. !second.matchCalled
  3410. </Original>
  3411. <Expanded>
  3412. true
  3413. </Expanded>
  3414. </Expression>
  3415. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  3416. </Section>
  3417. <OverallResult success="true"/>
  3418. </TestCase>
  3419. <TestCase name="Contains string matcher" tags="[!hide][.][failing][matchers]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3420. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3421. <Original>
  3422. testStringForMatching(), Contains("not there", Catch::CaseSensitive::No)
  3423. </Original>
  3424. <Expanded>
  3425. "this string contains 'abc' as a substring" contains: "not there" (case insensitive)
  3426. </Expanded>
  3427. </Expression>
  3428. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3429. <Original>
  3430. testStringForMatching(), Contains("STRING")
  3431. </Original>
  3432. <Expanded>
  3433. "this string contains 'abc' as a substring" contains: "STRING"
  3434. </Expanded>
  3435. </Expression>
  3436. <OverallResult success="false"/>
  3437. </TestCase>
  3438. <TestCase name="Copy and then generate a range" tags="[generators]" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3439. <Section name="from var and iterators" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3440. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3441. <Original>
  3442. elem % 2 == 1
  3443. </Original>
  3444. <Expanded>
  3445. 1 == 1
  3446. </Expanded>
  3447. </Expression>
  3448. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  3449. </Section>
  3450. <Section name="from var and iterators" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3451. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3452. <Original>
  3453. elem % 2 == 1
  3454. </Original>
  3455. <Expanded>
  3456. 1 == 1
  3457. </Expanded>
  3458. </Expression>
  3459. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  3460. </Section>
  3461. <Section name="from var and iterators" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3462. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3463. <Original>
  3464. elem % 2 == 1
  3465. </Original>
  3466. <Expanded>
  3467. 1 == 1
  3468. </Expanded>
  3469. </Expression>
  3470. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  3471. </Section>
  3472. <Section name="from var and iterators" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3473. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3474. <Original>
  3475. elem % 2 == 1
  3476. </Original>
  3477. <Expanded>
  3478. 1 == 1
  3479. </Expanded>
  3480. </Expression>
  3481. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  3482. </Section>
  3483. <Section name="from var and iterators" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3484. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3485. <Original>
  3486. elem % 2 == 1
  3487. </Original>
  3488. <Expanded>
  3489. 1 == 1
  3490. </Expanded>
  3491. </Expression>
  3492. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  3493. </Section>
  3494. <Section name="from var and iterators" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3495. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3496. <Original>
  3497. elem % 2 == 1
  3498. </Original>
  3499. <Expanded>
  3500. 1 == 1
  3501. </Expanded>
  3502. </Expression>
  3503. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  3504. </Section>
  3505. <Section name="From a temporary container" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3506. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3507. <Original>
  3508. elem % 2 == 1
  3509. </Original>
  3510. <Expanded>
  3511. 1 == 1
  3512. </Expanded>
  3513. </Expression>
  3514. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  3515. </Section>
  3516. <Section name="From a temporary container" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3517. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3518. <Original>
  3519. elem % 2 == 1
  3520. </Original>
  3521. <Expanded>
  3522. 1 == 1
  3523. </Expanded>
  3524. </Expression>
  3525. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  3526. </Section>
  3527. <Section name="From a temporary container" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3528. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3529. <Original>
  3530. elem % 2 == 1
  3531. </Original>
  3532. <Expanded>
  3533. 1 == 1
  3534. </Expanded>
  3535. </Expression>
  3536. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  3537. </Section>
  3538. <Section name="From a temporary container" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3539. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3540. <Original>
  3541. elem % 2 == 1
  3542. </Original>
  3543. <Expanded>
  3544. 1 == 1
  3545. </Expanded>
  3546. </Expression>
  3547. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  3548. </Section>
  3549. <Section name="From a temporary container" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3550. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3551. <Original>
  3552. elem % 2 == 1
  3553. </Original>
  3554. <Expanded>
  3555. 1 == 1
  3556. </Expanded>
  3557. </Expression>
  3558. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  3559. </Section>
  3560. <Section name="From a temporary container" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3561. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3562. <Original>
  3563. elem % 2 == 1
  3564. </Original>
  3565. <Expanded>
  3566. 1 == 1
  3567. </Expanded>
  3568. </Expression>
  3569. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  3570. </Section>
  3571. <Section name="Final validation" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3572. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3573. <Original>
  3574. call_count == 1
  3575. </Original>
  3576. <Expanded>
  3577. 1 == 1
  3578. </Expanded>
  3579. </Expression>
  3580. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  3581. <Original>
  3582. make_data().size() == test_count
  3583. </Original>
  3584. <Expanded>
  3585. 6 == 6
  3586. </Expanded>
  3587. </Expression>
  3588. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  3589. </Section>
  3590. <OverallResult success="true"/>
  3591. </TestCase>
  3592. <TestCase name="Custom exceptions can be translated when testing for nothrow" tags="[!hide][!throws][.][failing]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  3593. <Expression success="false" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  3594. <Original>
  3595. throwCustom()
  3596. </Original>
  3597. <Expanded>
  3598. throwCustom()
  3599. </Expanded>
  3600. <Exception filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  3601. custom exception - not std
  3602. </Exception>
  3603. </Expression>
  3604. <OverallResult success="false"/>
  3605. </TestCase>
  3606. <TestCase name="Custom exceptions can be translated when testing for throwing as something else" tags="[!hide][!throws][.][failing]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  3607. <Expression success="false" type="REQUIRE_THROWS_AS" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  3608. <Original>
  3609. throwCustom(), std::exception
  3610. </Original>
  3611. <Expanded>
  3612. throwCustom(), std::exception
  3613. </Expanded>
  3614. <Exception filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  3615. custom exception - not std
  3616. </Exception>
  3617. </Expression>
  3618. <OverallResult success="false"/>
  3619. </TestCase>
  3620. <TestCase name="Custom std-exceptions can be custom translated" tags="[!hide][!throws][.][failing]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  3621. <Exception filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  3622. custom std exception
  3623. </Exception>
  3624. <OverallResult success="false"/>
  3625. </TestCase>
  3626. <TestCase name="Default scale is invisible to comparison" tags="[Approx]" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3627. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3628. <Original>
  3629. 101.000001 != Approx(100).epsilon(0.01)
  3630. </Original>
  3631. <Expanded>
  3632. 101.000001 != Approx( 100.0 )
  3633. </Expanded>
  3634. </Expression>
  3635. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3636. <Original>
  3637. std::pow(10, -5) != Approx(std::pow(10, -7))
  3638. </Original>
  3639. <Expanded>
  3640. 0.00001 != Approx( 0.0000001 )
  3641. </Expanded>
  3642. </Expression>
  3643. <OverallResult success="true"/>
  3644. </TestCase>
  3645. <TestCase name="Directly creating an EnumInfo" filename="projects/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  3646. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  3647. <Original>
  3648. enumInfo->lookup(0) == "Value1"
  3649. </Original>
  3650. <Expanded>
  3651. Value1 == "Value1"
  3652. </Expanded>
  3653. </Expression>
  3654. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  3655. <Original>
  3656. enumInfo->lookup(1) == "Value2"
  3657. </Original>
  3658. <Expanded>
  3659. Value2 == "Value2"
  3660. </Expanded>
  3661. </Expression>
  3662. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  3663. <Original>
  3664. enumInfo->lookup(3) == "{** unexpected enum value **}"
  3665. </Original>
  3666. <Expanded>
  3667. {** unexpected enum value **}
  3668. ==
  3669. "{** unexpected enum value **}"
  3670. </Expanded>
  3671. </Expression>
  3672. <OverallResult success="true"/>
  3673. </TestCase>
  3674. <TestCase name="EndsWith string matcher" tags="[!hide][.][failing][matchers]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3675. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3676. <Original>
  3677. testStringForMatching(), EndsWith("Substring")
  3678. </Original>
  3679. <Expanded>
  3680. "this string contains 'abc' as a substring" ends with: "Substring"
  3681. </Expanded>
  3682. </Expression>
  3683. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3684. <Original>
  3685. testStringForMatching(), EndsWith("this", Catch::CaseSensitive::No)
  3686. </Original>
  3687. <Expanded>
  3688. "this string contains 'abc' as a substring" ends with: "this" (case insensitive)
  3689. </Expanded>
  3690. </Expression>
  3691. <OverallResult success="false"/>
  3692. </TestCase>
  3693. <TestCase name="Enums can quickly have stringification enabled using REGISTER_ENUM" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  3694. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  3695. <Original>
  3696. stringify( EnumClass3::Value1 ) == "Value1"
  3697. </Original>
  3698. <Expanded>
  3699. "Value1" == "Value1"
  3700. </Expanded>
  3701. </Expression>
  3702. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  3703. <Original>
  3704. stringify( EnumClass3::Value2 ) == "Value2"
  3705. </Original>
  3706. <Expanded>
  3707. "Value2" == "Value2"
  3708. </Expanded>
  3709. </Expression>
  3710. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  3711. <Original>
  3712. stringify( EnumClass3::Value3 ) == "Value3"
  3713. </Original>
  3714. <Expanded>
  3715. "Value3" == "Value3"
  3716. </Expanded>
  3717. </Expression>
  3718. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  3719. <Original>
  3720. stringify( EnumClass3::Value4 ) == "{** unexpected enum value **}"
  3721. </Original>
  3722. <Expanded>
  3723. "{** unexpected enum value **}"
  3724. ==
  3725. "{** unexpected enum value **}"
  3726. </Expanded>
  3727. </Expression>
  3728. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  3729. <Original>
  3730. stringify( ec3 ) == "Value2"
  3731. </Original>
  3732. <Expanded>
  3733. "Value2" == "Value2"
  3734. </Expanded>
  3735. </Expression>
  3736. <OverallResult success="true"/>
  3737. </TestCase>
  3738. <TestCase name="Enums in namespaces can quickly have stringification enabled using REGISTER_ENUM" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  3739. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  3740. <Original>
  3741. stringify( Bikeshed::Colours::Red ) == "Red"
  3742. </Original>
  3743. <Expanded>
  3744. "Red" == "Red"
  3745. </Expanded>
  3746. </Expression>
  3747. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  3748. <Original>
  3749. stringify( Bikeshed::Colours::Blue ) == "Blue"
  3750. </Original>
  3751. <Expanded>
  3752. "Blue" == "Blue"
  3753. </Expanded>
  3754. </Expression>
  3755. <OverallResult success="true"/>
  3756. </TestCase>
  3757. <TestCase name="Epsilon only applies to Approx's value" tags="[Approx]" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3758. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  3759. <Original>
  3760. 101.01 != Approx(100).epsilon(0.01)
  3761. </Original>
  3762. <Expanded>
  3763. 101.01 != Approx( 100.0 )
  3764. </Expanded>
  3765. </Expression>
  3766. <OverallResult success="true"/>
  3767. </TestCase>
  3768. <TestCase name="Equality checks that should fail" tags="[!hide][!mayfail][.][failing]" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3769. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3770. <Original>
  3771. data.int_seven == 6
  3772. </Original>
  3773. <Expanded>
  3774. 7 == 6
  3775. </Expanded>
  3776. </Expression>
  3777. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3778. <Original>
  3779. data.int_seven == 8
  3780. </Original>
  3781. <Expanded>
  3782. 7 == 8
  3783. </Expanded>
  3784. </Expression>
  3785. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3786. <Original>
  3787. data.int_seven == 0
  3788. </Original>
  3789. <Expanded>
  3790. 7 == 0
  3791. </Expanded>
  3792. </Expression>
  3793. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3794. <Original>
  3795. data.float_nine_point_one == Approx( 9.11f )
  3796. </Original>
  3797. <Expanded>
  3798. 9.1f == Approx( 9.1099996567 )
  3799. </Expanded>
  3800. </Expression>
  3801. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3802. <Original>
  3803. data.float_nine_point_one == Approx( 9.0f )
  3804. </Original>
  3805. <Expanded>
  3806. 9.1f == Approx( 9.0 )
  3807. </Expanded>
  3808. </Expression>
  3809. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3810. <Original>
  3811. data.float_nine_point_one == Approx( 1 )
  3812. </Original>
  3813. <Expanded>
  3814. 9.1f == Approx( 1.0 )
  3815. </Expanded>
  3816. </Expression>
  3817. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3818. <Original>
  3819. data.float_nine_point_one == Approx( 0 )
  3820. </Original>
  3821. <Expanded>
  3822. 9.1f == Approx( 0.0 )
  3823. </Expanded>
  3824. </Expression>
  3825. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3826. <Original>
  3827. data.double_pi == Approx( 3.1415 )
  3828. </Original>
  3829. <Expanded>
  3830. 3.1415926535 == Approx( 3.1415 )
  3831. </Expanded>
  3832. </Expression>
  3833. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3834. <Original>
  3835. data.str_hello == "goodbye"
  3836. </Original>
  3837. <Expanded>
  3838. "hello" == "goodbye"
  3839. </Expanded>
  3840. </Expression>
  3841. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3842. <Original>
  3843. data.str_hello == "hell"
  3844. </Original>
  3845. <Expanded>
  3846. "hello" == "hell"
  3847. </Expanded>
  3848. </Expression>
  3849. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3850. <Original>
  3851. data.str_hello == "hello1"
  3852. </Original>
  3853. <Expanded>
  3854. "hello" == "hello1"
  3855. </Expanded>
  3856. </Expression>
  3857. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3858. <Original>
  3859. data.str_hello.size() == 6
  3860. </Original>
  3861. <Expanded>
  3862. 5 == 6
  3863. </Expanded>
  3864. </Expression>
  3865. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3866. <Original>
  3867. x == Approx( 1.301 )
  3868. </Original>
  3869. <Expanded>
  3870. 1.3 == Approx( 1.301 )
  3871. </Expanded>
  3872. </Expression>
  3873. <OverallResult success="true"/>
  3874. </TestCase>
  3875. <TestCase name="Equality checks that should succeed" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3876. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3877. <Original>
  3878. data.int_seven == 7
  3879. </Original>
  3880. <Expanded>
  3881. 7 == 7
  3882. </Expanded>
  3883. </Expression>
  3884. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3885. <Original>
  3886. data.float_nine_point_one == Approx( 9.1f )
  3887. </Original>
  3888. <Expanded>
  3889. 9.1f == Approx( 9.1000003815 )
  3890. </Expanded>
  3891. </Expression>
  3892. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3893. <Original>
  3894. data.double_pi == Approx( 3.1415926535 )
  3895. </Original>
  3896. <Expanded>
  3897. 3.1415926535 == Approx( 3.1415926535 )
  3898. </Expanded>
  3899. </Expression>
  3900. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3901. <Original>
  3902. data.str_hello == "hello"
  3903. </Original>
  3904. <Expanded>
  3905. "hello" == "hello"
  3906. </Expanded>
  3907. </Expression>
  3908. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3909. <Original>
  3910. "hello" == data.str_hello
  3911. </Original>
  3912. <Expanded>
  3913. "hello" == "hello"
  3914. </Expanded>
  3915. </Expression>
  3916. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3917. <Original>
  3918. data.str_hello.size() == 5
  3919. </Original>
  3920. <Expanded>
  3921. 5 == 5
  3922. </Expanded>
  3923. </Expression>
  3924. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  3925. <Original>
  3926. x == Approx( 1.3 )
  3927. </Original>
  3928. <Expanded>
  3929. 1.3 == Approx( 1.3 )
  3930. </Expanded>
  3931. </Expression>
  3932. <OverallResult success="true"/>
  3933. </TestCase>
  3934. <TestCase name="Equals" tags="[matchers]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3935. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3936. <Original>
  3937. testStringForMatching(), Equals("this string contains 'abc' as a substring")
  3938. </Original>
  3939. <Expanded>
  3940. "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring"
  3941. </Expanded>
  3942. </Expression>
  3943. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3944. <Original>
  3945. testStringForMatching(), Equals("this string contains 'ABC' as a substring", Catch::CaseSensitive::No)
  3946. </Original>
  3947. <Expanded>
  3948. "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" (case insensitive)
  3949. </Expanded>
  3950. </Expression>
  3951. <OverallResult success="true"/>
  3952. </TestCase>
  3953. <TestCase name="Equals string matcher" tags="[!hide][.][failing][matchers]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3954. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3955. <Original>
  3956. testStringForMatching(), Equals("this string contains 'ABC' as a substring")
  3957. </Original>
  3958. <Expanded>
  3959. "this string contains 'abc' as a substring" equals: "this string contains 'ABC' as a substring"
  3960. </Expanded>
  3961. </Expression>
  3962. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  3963. <Original>
  3964. testStringForMatching(), Equals("something else", Catch::CaseSensitive::No)
  3965. </Original>
  3966. <Expanded>
  3967. "this string contains 'abc' as a substring" equals: "something else" (case insensitive)
  3968. </Expanded>
  3969. </Expression>
  3970. <OverallResult success="false"/>
  3971. </TestCase>
  3972. <TestCase name="Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified" tags="[exception][toString]" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3973. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3974. <Original>
  3975. ::Catch::Detail::stringify(WhatException{}) == "This exception has overridden what() method"
  3976. </Original>
  3977. <Expanded>
  3978. "This exception has overridden what() method"
  3979. ==
  3980. "This exception has overridden what() method"
  3981. </Expanded>
  3982. </Expression>
  3983. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3984. <Original>
  3985. ::Catch::Detail::stringify(OperatorException{}) == "OperatorException"
  3986. </Original>
  3987. <Expanded>
  3988. "OperatorException" == "OperatorException"
  3989. </Expanded>
  3990. </Expression>
  3991. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  3992. <Original>
  3993. ::Catch::Detail::stringify(StringMakerException{}) == "StringMakerException"
  3994. </Original>
  3995. <Expanded>
  3996. "StringMakerException"
  3997. ==
  3998. "StringMakerException"
  3999. </Expanded>
  4000. </Expression>
  4001. <OverallResult success="true"/>
  4002. </TestCase>
  4003. <TestCase name="Exception matchers that fail" tags="[!hide][!throws][.][exceptions][failing][matchers]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4004. <Section name="No exception" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4005. <Expression success="false" type="CHECK_THROWS_MATCHES" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4006. <Original>
  4007. doesNotThrow(), SpecialException, ExceptionMatcher{1}
  4008. </Original>
  4009. <Expanded>
  4010. doesNotThrow(), SpecialException, ExceptionMatcher{1}
  4011. </Expanded>
  4012. </Expression>
  4013. <Expression success="false" type="REQUIRE_THROWS_MATCHES" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4014. <Original>
  4015. doesNotThrow(), SpecialException, ExceptionMatcher{1}
  4016. </Original>
  4017. <Expanded>
  4018. doesNotThrow(), SpecialException, ExceptionMatcher{1}
  4019. </Expanded>
  4020. </Expression>
  4021. <OverallResults successes="0" failures="2" expectedFailures="0"/>
  4022. </Section>
  4023. <Section name="Type mismatch" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4024. <Expression success="false" type="CHECK_THROWS_MATCHES" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4025. <Original>
  4026. throwsAsInt(1), SpecialException, ExceptionMatcher{1}
  4027. </Original>
  4028. <Expanded>
  4029. throwsAsInt(1), SpecialException, ExceptionMatcher{1}
  4030. </Expanded>
  4031. <Exception filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4032. Unknown exception
  4033. </Exception>
  4034. </Expression>
  4035. <Expression success="false" type="REQUIRE_THROWS_MATCHES" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4036. <Original>
  4037. throwsAsInt(1), SpecialException, ExceptionMatcher{1}
  4038. </Original>
  4039. <Expanded>
  4040. throwsAsInt(1), SpecialException, ExceptionMatcher{1}
  4041. </Expanded>
  4042. <Exception filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4043. Unknown exception
  4044. </Exception>
  4045. </Expression>
  4046. <OverallResults successes="0" failures="2" expectedFailures="0"/>
  4047. </Section>
  4048. <Section name="Contents are wrong" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4049. <Expression success="false" type="CHECK_THROWS_MATCHES" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4050. <Original>
  4051. throwsSpecialException(3), SpecialException, ExceptionMatcher{1}
  4052. </Original>
  4053. <Expanded>
  4054. SpecialException::what special exception has value of 1
  4055. </Expanded>
  4056. </Expression>
  4057. <Expression success="false" type="REQUIRE_THROWS_MATCHES" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4058. <Original>
  4059. throwsSpecialException(4), SpecialException, ExceptionMatcher{1}
  4060. </Original>
  4061. <Expanded>
  4062. SpecialException::what special exception has value of 1
  4063. </Expanded>
  4064. </Expression>
  4065. <OverallResults successes="0" failures="2" expectedFailures="0"/>
  4066. </Section>
  4067. <OverallResult success="false"/>
  4068. </TestCase>
  4069. <TestCase name="Exception matchers that succeed" tags="[!throws][exceptions][matchers]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4070. <Expression success="true" type="CHECK_THROWS_MATCHES" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4071. <Original>
  4072. throwsSpecialException(1), SpecialException, ExceptionMatcher{1}
  4073. </Original>
  4074. <Expanded>
  4075. SpecialException::what special exception has value of 1
  4076. </Expanded>
  4077. </Expression>
  4078. <Expression success="true" type="REQUIRE_THROWS_MATCHES" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4079. <Original>
  4080. throwsSpecialException(2), SpecialException, ExceptionMatcher{2}
  4081. </Original>
  4082. <Expanded>
  4083. SpecialException::what special exception has value of 2
  4084. </Expanded>
  4085. </Expression>
  4086. <OverallResult success="true"/>
  4087. </TestCase>
  4088. <TestCase name="Exception messages can be tested for" tags="[!throws]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  4089. <Section name="exact match" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  4090. <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  4091. <Original>
  4092. thisThrows(), "expected exception"
  4093. </Original>
  4094. <Expanded>
  4095. "expected exception" equals: "expected exception"
  4096. </Expanded>
  4097. </Expression>
  4098. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4099. </Section>
  4100. <Section name="different case" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  4101. <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  4102. <Original>
  4103. thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No )
  4104. </Original>
  4105. <Expanded>
  4106. "expected exception" equals: "expected exception" (case insensitive)
  4107. </Expanded>
  4108. </Expression>
  4109. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4110. </Section>
  4111. <Section name="wildcarded" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  4112. <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  4113. <Original>
  4114. thisThrows(), StartsWith( "expected" )
  4115. </Original>
  4116. <Expanded>
  4117. "expected exception" starts with: "expected"
  4118. </Expanded>
  4119. </Expression>
  4120. <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  4121. <Original>
  4122. thisThrows(), EndsWith( "exception" )
  4123. </Original>
  4124. <Expanded>
  4125. "expected exception" ends with: "exception"
  4126. </Expanded>
  4127. </Expression>
  4128. <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  4129. <Original>
  4130. thisThrows(), Contains( "except" )
  4131. </Original>
  4132. <Expanded>
  4133. "expected exception" contains: "except"
  4134. </Expanded>
  4135. </Expression>
  4136. <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  4137. <Original>
  4138. thisThrows(), Contains( "exCept", Catch::CaseSensitive::No )
  4139. </Original>
  4140. <Expanded>
  4141. "expected exception" contains: "except" (case insensitive)
  4142. </Expanded>
  4143. </Expression>
  4144. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  4145. </Section>
  4146. <OverallResult success="true"/>
  4147. </TestCase>
  4148. <TestCase name="Exceptions matchers" tags="[!throws][exceptions][matchers]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4149. <Expression success="true" type="REQUIRE_THROWS_MATCHES" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4150. <Original>
  4151. throwsDerivedException(), DerivedException, Message("DerivedException::what")
  4152. </Original>
  4153. <Expanded>
  4154. DerivedException::what exception message matches "DerivedException::what"
  4155. </Expanded>
  4156. </Expression>
  4157. <Expression success="true" type="REQUIRE_THROWS_MATCHES" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4158. <Original>
  4159. throwsDerivedException(), DerivedException, !Message("derivedexception::what")
  4160. </Original>
  4161. <Expanded>
  4162. DerivedException::what not exception message matches "derivedexception::what"
  4163. </Expanded>
  4164. </Expression>
  4165. <Expression success="true" type="REQUIRE_THROWS_MATCHES" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4166. <Original>
  4167. throwsSpecialException(2), SpecialException, !Message("DerivedException::what")
  4168. </Original>
  4169. <Expanded>
  4170. SpecialException::what not exception message matches "DerivedException::what"
  4171. </Expanded>
  4172. </Expression>
  4173. <Expression success="true" type="REQUIRE_THROWS_MATCHES" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4174. <Original>
  4175. throwsSpecialException(2), SpecialException, Message("SpecialException::what")
  4176. </Original>
  4177. <Expanded>
  4178. SpecialException::what exception message matches "SpecialException::what"
  4179. </Expanded>
  4180. </Expression>
  4181. <OverallResult success="true"/>
  4182. </TestCase>
  4183. <TestCase name="Expected exceptions that don't throw or unexpected exceptions fail the test" tags="[!hide][!throws][.][failing]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  4184. <Expression success="false" type="CHECK_THROWS_AS" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  4185. <Original>
  4186. thisThrows(), std::string
  4187. </Original>
  4188. <Expanded>
  4189. thisThrows(), std::string
  4190. </Expanded>
  4191. <Exception filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  4192. expected exception
  4193. </Exception>
  4194. </Expression>
  4195. <Expression success="false" type="CHECK_THROWS_AS" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  4196. <Original>
  4197. thisDoesntThrow(), std::domain_error
  4198. </Original>
  4199. <Expanded>
  4200. thisDoesntThrow(), std::domain_error
  4201. </Expanded>
  4202. </Expression>
  4203. <Expression success="false" type="CHECK_NOTHROW" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  4204. <Original>
  4205. thisThrows()
  4206. </Original>
  4207. <Expanded>
  4208. thisThrows()
  4209. </Expanded>
  4210. <Exception filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  4211. expected exception
  4212. </Exception>
  4213. </Expression>
  4214. <OverallResult success="false"/>
  4215. </TestCase>
  4216. <TestCase name="FAIL aborts the test" tags="[!hide][.][failing][messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  4217. <Failure filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  4218. This is a failure
  4219. </Failure>
  4220. <OverallResult success="false"/>
  4221. </TestCase>
  4222. <TestCase name="FAIL does not require an argument" tags="[!hide][.][failing][messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  4223. <Failure filename="projects/<exe-name>/UsageTests/Message.tests.cpp" />
  4224. <OverallResult success="false"/>
  4225. </TestCase>
  4226. <TestCase name="FAIL_CHECK does not abort the test" tags="[!hide][.][failing][messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  4227. <Failure filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  4228. This is a failure
  4229. </Failure>
  4230. <Warning>
  4231. This message appears in the output
  4232. </Warning>
  4233. <OverallResult success="false"/>
  4234. </TestCase>
  4235. <TestCase name="Factorials are computed" tags="[factorial]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  4236. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  4237. <Original>
  4238. Factorial(0) == 1
  4239. </Original>
  4240. <Expanded>
  4241. 1 == 1
  4242. </Expanded>
  4243. </Expression>
  4244. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  4245. <Original>
  4246. Factorial(1) == 1
  4247. </Original>
  4248. <Expanded>
  4249. 1 == 1
  4250. </Expanded>
  4251. </Expression>
  4252. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  4253. <Original>
  4254. Factorial(2) == 2
  4255. </Original>
  4256. <Expanded>
  4257. 2 == 2
  4258. </Expanded>
  4259. </Expression>
  4260. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  4261. <Original>
  4262. Factorial(3) == 6
  4263. </Original>
  4264. <Expanded>
  4265. 6 == 6
  4266. </Expanded>
  4267. </Expression>
  4268. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  4269. <Original>
  4270. Factorial(10) == 3628800
  4271. </Original>
  4272. <Expanded>
  4273. 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
  4274. </Expanded>
  4275. </Expression>
  4276. <OverallResult success="true"/>
  4277. </TestCase>
  4278. <TestCase name="Floating point matchers: double" tags="[floating-point][matchers]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4279. <Section name="Relative" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4280. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4281. <Original>
  4282. 10., WithinRel(11.1, 0.1)
  4283. </Original>
  4284. <Expanded>
  4285. 10.0 and 11.1 are within 10% of each other
  4286. </Expanded>
  4287. </Expression>
  4288. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4289. <Original>
  4290. 10., !WithinRel(11.2, 0.1)
  4291. </Original>
  4292. <Expanded>
  4293. 10.0 not and 11.2 are within 10% of each other
  4294. </Expanded>
  4295. </Expression>
  4296. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4297. <Original>
  4298. 1., !WithinRel(0., 0.99)
  4299. </Original>
  4300. <Expanded>
  4301. 1.0 not and 0 are within 99% of each other
  4302. </Expanded>
  4303. </Expression>
  4304. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4305. <Original>
  4306. -0., WithinRel(0.)
  4307. </Original>
  4308. <Expanded>
  4309. -0.0 and 0 are within 2.22045e-12% of each other
  4310. </Expanded>
  4311. </Expression>
  4312. <Section name="Some subnormal values" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4313. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4314. <Original>
  4315. v1, WithinRel(v2)
  4316. </Original>
  4317. <Expanded>
  4318. 0.0 and 2.22507e-308 are within 2.22045e-12% of each other
  4319. </Expanded>
  4320. </Expression>
  4321. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4322. </Section>
  4323. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  4324. </Section>
  4325. <Section name="Margin" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4326. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4327. <Original>
  4328. 1., WithinAbs(1., 0)
  4329. </Original>
  4330. <Expanded>
  4331. 1.0 is within 0.0 of 1.0
  4332. </Expanded>
  4333. </Expression>
  4334. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4335. <Original>
  4336. 0., WithinAbs(1., 1)
  4337. </Original>
  4338. <Expanded>
  4339. 0.0 is within 1.0 of 1.0
  4340. </Expanded>
  4341. </Expression>
  4342. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4343. <Original>
  4344. 0., !WithinAbs(1., 0.99)
  4345. </Original>
  4346. <Expanded>
  4347. 0.0 not is within 0.99 of 1.0
  4348. </Expanded>
  4349. </Expression>
  4350. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4351. <Original>
  4352. 0., !WithinAbs(1., 0.99)
  4353. </Original>
  4354. <Expanded>
  4355. 0.0 not is within 0.99 of 1.0
  4356. </Expanded>
  4357. </Expression>
  4358. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4359. <Original>
  4360. 11., !WithinAbs(10., 0.5)
  4361. </Original>
  4362. <Expanded>
  4363. 11.0 not is within 0.5 of 10.0
  4364. </Expanded>
  4365. </Expression>
  4366. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4367. <Original>
  4368. 10., !WithinAbs(11., 0.5)
  4369. </Original>
  4370. <Expanded>
  4371. 10.0 not is within 0.5 of 11.0
  4372. </Expanded>
  4373. </Expression>
  4374. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4375. <Original>
  4376. -10., WithinAbs(-10., 0.5)
  4377. </Original>
  4378. <Expanded>
  4379. -10.0 is within 0.5 of -10.0
  4380. </Expanded>
  4381. </Expression>
  4382. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4383. <Original>
  4384. -10., WithinAbs(-9.6, 0.5)
  4385. </Original>
  4386. <Expanded>
  4387. -10.0 is within 0.5 of -9.6
  4388. </Expanded>
  4389. </Expression>
  4390. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  4391. </Section>
  4392. <Section name="ULPs" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4393. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4394. <Original>
  4395. 1., WithinULP(1., 0)
  4396. </Original>
  4397. <Expanded>
  4398. 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00])
  4399. </Expanded>
  4400. </Expression>
  4401. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4402. <Original>
  4403. nextafter(1., 2.), WithinULP(1., 1)
  4404. </Original>
  4405. <Expanded>
  4406. 1.0 is within 1 ULPs of 1.0000000000000000e+00 ([9.9999999999999989e-01, 1.0000000000000002e+00])
  4407. </Expanded>
  4408. </Expression>
  4409. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4410. <Original>
  4411. 0., WithinULP(nextafter(0., 1.), 1)
  4412. </Original>
  4413. <Expanded>
  4414. 0.0 is within 1 ULPs of 4.9406564584124654e-324 ([0.0000000000000000e+00, 9.8813129168249309e-324])
  4415. </Expanded>
  4416. </Expression>
  4417. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4418. <Original>
  4419. 1., WithinULP(nextafter(1., 0.), 1)
  4420. </Original>
  4421. <Expanded>
  4422. 1.0 is within 1 ULPs of 9.9999999999999989e-01 ([9.9999999999999978e-01, 1.0000000000000000e+00])
  4423. </Expanded>
  4424. </Expression>
  4425. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4426. <Original>
  4427. 1., !WithinULP(nextafter(1., 2.), 0)
  4428. </Original>
  4429. <Expanded>
  4430. 1.0 not is within 0 ULPs of 1.0000000000000002e+00 ([1.0000000000000002e+00, 1.0000000000000002e+00])
  4431. </Expanded>
  4432. </Expression>
  4433. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4434. <Original>
  4435. 1., WithinULP(1., 0)
  4436. </Original>
  4437. <Expanded>
  4438. 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00])
  4439. </Expanded>
  4440. </Expression>
  4441. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4442. <Original>
  4443. -0., WithinULP(0., 0)
  4444. </Original>
  4445. <Expanded>
  4446. -0.0 is within 0 ULPs of 0.0000000000000000e+00 ([0.0000000000000000e+00, 0.0000000000000000e+00])
  4447. </Expanded>
  4448. </Expression>
  4449. <OverallResults successes="7" failures="0" expectedFailures="0"/>
  4450. </Section>
  4451. <Section name="Composed" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4452. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4453. <Original>
  4454. 1., WithinAbs(1., 0.5) || WithinULP(2., 1)
  4455. </Original>
  4456. <Expanded>
  4457. 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0000000000000000e+00 ([1.9999999999999998e+00, 2.0000000000000004e+00]) )
  4458. </Expanded>
  4459. </Expression>
  4460. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4461. <Original>
  4462. 1., WithinAbs(2., 0.5) || WithinULP(1., 0)
  4463. </Original>
  4464. <Expanded>
  4465. 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00]) )
  4466. </Expanded>
  4467. </Expression>
  4468. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4469. <Original>
  4470. 0.0001, WithinAbs(0., 0.001) || WithinRel(0., 0.1)
  4471. </Original>
  4472. <Expanded>
  4473. 0.0001 ( is within 0.001 of 0.0 or and 0 are within 10% of each other )
  4474. </Expanded>
  4475. </Expression>
  4476. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  4477. </Section>
  4478. <Section name="Constructor validation" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4479. <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4480. <Original>
  4481. WithinAbs(1., 0.)
  4482. </Original>
  4483. <Expanded>
  4484. WithinAbs(1., 0.)
  4485. </Expanded>
  4486. </Expression>
  4487. <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4488. <Original>
  4489. WithinAbs(1., -1.), std::domain_error
  4490. </Original>
  4491. <Expanded>
  4492. WithinAbs(1., -1.), std::domain_error
  4493. </Expanded>
  4494. </Expression>
  4495. <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4496. <Original>
  4497. WithinULP(1., 0)
  4498. </Original>
  4499. <Expanded>
  4500. WithinULP(1., 0)
  4501. </Expanded>
  4502. </Expression>
  4503. <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4504. <Original>
  4505. WithinRel(1., 0.)
  4506. </Original>
  4507. <Expanded>
  4508. WithinRel(1., 0.)
  4509. </Expanded>
  4510. </Expression>
  4511. <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4512. <Original>
  4513. WithinRel(1., -0.2), std::domain_error
  4514. </Original>
  4515. <Expanded>
  4516. WithinRel(1., -0.2), std::domain_error
  4517. </Expanded>
  4518. </Expression>
  4519. <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4520. <Original>
  4521. WithinRel(1., 1.), std::domain_error
  4522. </Original>
  4523. <Expanded>
  4524. WithinRel(1., 1.), std::domain_error
  4525. </Expanded>
  4526. </Expression>
  4527. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  4528. </Section>
  4529. <OverallResult success="true"/>
  4530. </TestCase>
  4531. <TestCase name="Floating point matchers: float" tags="[floating-point][matchers]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4532. <Section name="Relative" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4533. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4534. <Original>
  4535. 10.f, WithinRel(11.1f, 0.1f)
  4536. </Original>
  4537. <Expanded>
  4538. 10.0f and 11.1 are within 10% of each other
  4539. </Expanded>
  4540. </Expression>
  4541. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4542. <Original>
  4543. 10.f, !WithinRel(11.2f, 0.1f)
  4544. </Original>
  4545. <Expanded>
  4546. 10.0f not and 11.2 are within 10% of each other
  4547. </Expanded>
  4548. </Expression>
  4549. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4550. <Original>
  4551. 1.f, !WithinRel(0.f, 0.99f)
  4552. </Original>
  4553. <Expanded>
  4554. 1.0f not and 0 are within 99% of each other
  4555. </Expanded>
  4556. </Expression>
  4557. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4558. <Original>
  4559. -0.f, WithinRel(0.f)
  4560. </Original>
  4561. <Expanded>
  4562. -0.0f and 0 are within 0.00119209% of each other
  4563. </Expanded>
  4564. </Expression>
  4565. <Section name="Some subnormal values" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4566. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4567. <Original>
  4568. v1, WithinRel(v2)
  4569. </Original>
  4570. <Expanded>
  4571. 0.0f and 1.17549e-38 are within 0.00119209% of each other
  4572. </Expanded>
  4573. </Expression>
  4574. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4575. </Section>
  4576. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  4577. </Section>
  4578. <Section name="Margin" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4579. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4580. <Original>
  4581. 1.f, WithinAbs(1.f, 0)
  4582. </Original>
  4583. <Expanded>
  4584. 1.0f is within 0.0 of 1.0
  4585. </Expanded>
  4586. </Expression>
  4587. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4588. <Original>
  4589. 0.f, WithinAbs(1.f, 1)
  4590. </Original>
  4591. <Expanded>
  4592. 0.0f is within 1.0 of 1.0
  4593. </Expanded>
  4594. </Expression>
  4595. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4596. <Original>
  4597. 0.f, !WithinAbs(1.f, 0.99f)
  4598. </Original>
  4599. <Expanded>
  4600. 0.0f not is within 0.9900000095 of 1.0
  4601. </Expanded>
  4602. </Expression>
  4603. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4604. <Original>
  4605. 0.f, !WithinAbs(1.f, 0.99f)
  4606. </Original>
  4607. <Expanded>
  4608. 0.0f not is within 0.9900000095 of 1.0
  4609. </Expanded>
  4610. </Expression>
  4611. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4612. <Original>
  4613. 0.f, WithinAbs(-0.f, 0)
  4614. </Original>
  4615. <Expanded>
  4616. 0.0f is within 0.0 of -0.0
  4617. </Expanded>
  4618. </Expression>
  4619. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4620. <Original>
  4621. 11.f, !WithinAbs(10.f, 0.5f)
  4622. </Original>
  4623. <Expanded>
  4624. 11.0f not is within 0.5 of 10.0
  4625. </Expanded>
  4626. </Expression>
  4627. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4628. <Original>
  4629. 10.f, !WithinAbs(11.f, 0.5f)
  4630. </Original>
  4631. <Expanded>
  4632. 10.0f not is within 0.5 of 11.0
  4633. </Expanded>
  4634. </Expression>
  4635. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4636. <Original>
  4637. -10.f, WithinAbs(-10.f, 0.5f)
  4638. </Original>
  4639. <Expanded>
  4640. -10.0f is within 0.5 of -10.0
  4641. </Expanded>
  4642. </Expression>
  4643. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4644. <Original>
  4645. -10.f, WithinAbs(-9.6f, 0.5f)
  4646. </Original>
  4647. <Expanded>
  4648. -10.0f is within 0.5 of -9.6000003815
  4649. </Expanded>
  4650. </Expression>
  4651. <OverallResults successes="9" failures="0" expectedFailures="0"/>
  4652. </Section>
  4653. <Section name="ULPs" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4654. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4655. <Original>
  4656. 1.f, WithinULP(1.f, 0)
  4657. </Original>
  4658. <Expanded>
  4659. 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
  4660. </Expanded>
  4661. </Expression>
  4662. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4663. <Original>
  4664. nextafter(1.f, 2.f), WithinULP(1.f, 1)
  4665. </Original>
  4666. <Expanded>
  4667. 1.0f is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00])
  4668. </Expanded>
  4669. </Expression>
  4670. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4671. <Original>
  4672. 0.f, WithinULP(nextafter(0.f, 1.f), 1)
  4673. </Original>
  4674. <Expanded>
  4675. 0.0f is within 1 ULPs of 1.40129846e-45f ([0.00000000e+00, 2.80259693e-45])
  4676. </Expanded>
  4677. </Expression>
  4678. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4679. <Original>
  4680. 1.f, WithinULP(nextafter(1.f, 0.f), 1)
  4681. </Original>
  4682. <Expanded>
  4683. 1.0f is within 1 ULPs of 9.99999940e-01f ([9.99999881e-01, 1.00000000e+00])
  4684. </Expanded>
  4685. </Expression>
  4686. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4687. <Original>
  4688. 1.f, !WithinULP(nextafter(1.f, 2.f), 0)
  4689. </Original>
  4690. <Expanded>
  4691. 1.0f not is within 0 ULPs of 1.00000012e+00f ([1.00000012e+00, 1.00000012e+00])
  4692. </Expanded>
  4693. </Expression>
  4694. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4695. <Original>
  4696. 1.f, WithinULP(1.f, 0)
  4697. </Original>
  4698. <Expanded>
  4699. 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
  4700. </Expanded>
  4701. </Expression>
  4702. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4703. <Original>
  4704. -0.f, WithinULP(0.f, 0)
  4705. </Original>
  4706. <Expanded>
  4707. -0.0f is within 0 ULPs of 0.00000000e+00f ([0.00000000e+00, 0.00000000e+00])
  4708. </Expanded>
  4709. </Expression>
  4710. <OverallResults successes="7" failures="0" expectedFailures="0"/>
  4711. </Section>
  4712. <Section name="Composed" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4713. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4714. <Original>
  4715. 1.f, WithinAbs(1.f, 0.5) || WithinULP(1.f, 1)
  4716. </Original>
  4717. <Expanded>
  4718. 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00]) )
  4719. </Expanded>
  4720. </Expression>
  4721. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4722. <Original>
  4723. 1.f, WithinAbs(2.f, 0.5) || WithinULP(1.f, 0)
  4724. </Original>
  4725. <Expanded>
  4726. 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00]) )
  4727. </Expanded>
  4728. </Expression>
  4729. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4730. <Original>
  4731. 0.0001f, WithinAbs(0.f, 0.001f) || WithinRel(0.f, 0.1f)
  4732. </Original>
  4733. <Expanded>
  4734. 0.0001f ( is within 0.001 of 0.0 or and 0 are within 10% of each other )
  4735. </Expanded>
  4736. </Expression>
  4737. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  4738. </Section>
  4739. <Section name="Constructor validation" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4740. <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4741. <Original>
  4742. WithinAbs(1.f, 0.f)
  4743. </Original>
  4744. <Expanded>
  4745. WithinAbs(1.f, 0.f)
  4746. </Expanded>
  4747. </Expression>
  4748. <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4749. <Original>
  4750. WithinAbs(1.f, -1.f), std::domain_error
  4751. </Original>
  4752. <Expanded>
  4753. WithinAbs(1.f, -1.f), std::domain_error
  4754. </Expanded>
  4755. </Expression>
  4756. <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4757. <Original>
  4758. WithinULP(1.f, 0)
  4759. </Original>
  4760. <Expanded>
  4761. WithinULP(1.f, 0)
  4762. </Expanded>
  4763. </Expression>
  4764. <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4765. <Original>
  4766. WithinULP(1.f, static_cast&lt;uint64_t>(-1)), std::domain_error
  4767. </Original>
  4768. <Expanded>
  4769. WithinULP(1.f, static_cast&lt;uint64_t>(-1)), std::domain_error
  4770. </Expanded>
  4771. </Expression>
  4772. <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4773. <Original>
  4774. WithinRel(1.f, 0.f)
  4775. </Original>
  4776. <Expanded>
  4777. WithinRel(1.f, 0.f)
  4778. </Expanded>
  4779. </Expression>
  4780. <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4781. <Original>
  4782. WithinRel(1.f, -0.2f), std::domain_error
  4783. </Original>
  4784. <Expanded>
  4785. WithinRel(1.f, -0.2f), std::domain_error
  4786. </Expanded>
  4787. </Expression>
  4788. <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  4789. <Original>
  4790. WithinRel(1.f, 1.f), std::domain_error
  4791. </Original>
  4792. <Expanded>
  4793. WithinRel(1.f, 1.f), std::domain_error
  4794. </Expanded>
  4795. </Expression>
  4796. <OverallResults successes="7" failures="0" expectedFailures="0"/>
  4797. </Section>
  4798. <OverallResult success="true"/>
  4799. </TestCase>
  4800. <TestCase name="Generators -- adapters" tags="[generators][generic]" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4801. <Section name="Filtering by predicate" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4802. <Section name="Basic usage" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4803. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4804. <Original>
  4805. i % 2 == 0
  4806. </Original>
  4807. <Expanded>
  4808. 0 == 0
  4809. </Expanded>
  4810. </Expression>
  4811. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4812. </Section>
  4813. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4814. </Section>
  4815. <Section name="Filtering by predicate" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4816. <Section name="Basic usage" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4817. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4818. <Original>
  4819. i % 2 == 0
  4820. </Original>
  4821. <Expanded>
  4822. 0 == 0
  4823. </Expanded>
  4824. </Expression>
  4825. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4826. </Section>
  4827. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4828. </Section>
  4829. <Section name="Filtering by predicate" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4830. <Section name="Basic usage" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4831. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4832. <Original>
  4833. i % 2 == 0
  4834. </Original>
  4835. <Expanded>
  4836. 0 == 0
  4837. </Expanded>
  4838. </Expression>
  4839. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4840. </Section>
  4841. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4842. </Section>
  4843. <Section name="Filtering by predicate" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4844. <Section name="Throws if there are no matching values" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4845. <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4846. <Original>
  4847. filter([] (int) {return false; }, value(1)), Catch::GeneratorException
  4848. </Original>
  4849. <Expanded>
  4850. filter([] (int) {return false; }, value(1)), Catch::GeneratorException
  4851. </Expanded>
  4852. </Expression>
  4853. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4854. </Section>
  4855. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4856. </Section>
  4857. <Section name="Shortening a range" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4858. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4859. <Original>
  4860. i &lt; 4
  4861. </Original>
  4862. <Expanded>
  4863. 1 &lt; 4
  4864. </Expanded>
  4865. </Expression>
  4866. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4867. </Section>
  4868. <Section name="Shortening a range" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4869. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4870. <Original>
  4871. i &lt; 4
  4872. </Original>
  4873. <Expanded>
  4874. 2 &lt; 4
  4875. </Expanded>
  4876. </Expression>
  4877. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4878. </Section>
  4879. <Section name="Shortening a range" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4880. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4881. <Original>
  4882. i &lt; 4
  4883. </Original>
  4884. <Expanded>
  4885. 3 &lt; 4
  4886. </Expanded>
  4887. </Expression>
  4888. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4889. </Section>
  4890. <Section name="Transforming elements" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4891. <Section name="Same type" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4892. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4893. <Original>
  4894. i % 2 == 0
  4895. </Original>
  4896. <Expanded>
  4897. 0 == 0
  4898. </Expanded>
  4899. </Expression>
  4900. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4901. </Section>
  4902. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4903. </Section>
  4904. <Section name="Transforming elements" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4905. <Section name="Same type" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4906. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4907. <Original>
  4908. i % 2 == 0
  4909. </Original>
  4910. <Expanded>
  4911. 0 == 0
  4912. </Expanded>
  4913. </Expression>
  4914. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4915. </Section>
  4916. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4917. </Section>
  4918. <Section name="Transforming elements" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4919. <Section name="Same type" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4920. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4921. <Original>
  4922. i % 2 == 0
  4923. </Original>
  4924. <Expanded>
  4925. 0 == 0
  4926. </Expanded>
  4927. </Expression>
  4928. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4929. </Section>
  4930. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4931. </Section>
  4932. <Section name="Transforming elements" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4933. <Section name="Different type" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4934. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4935. <Original>
  4936. i.size() == 1
  4937. </Original>
  4938. <Expanded>
  4939. 1 == 1
  4940. </Expanded>
  4941. </Expression>
  4942. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4943. </Section>
  4944. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4945. </Section>
  4946. <Section name="Transforming elements" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4947. <Section name="Different type" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4948. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4949. <Original>
  4950. i.size() == 1
  4951. </Original>
  4952. <Expanded>
  4953. 1 == 1
  4954. </Expanded>
  4955. </Expression>
  4956. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4957. </Section>
  4958. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4959. </Section>
  4960. <Section name="Transforming elements" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4961. <Section name="Different type" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4962. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4963. <Original>
  4964. i.size() == 1
  4965. </Original>
  4966. <Expanded>
  4967. 1 == 1
  4968. </Expanded>
  4969. </Expression>
  4970. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4971. </Section>
  4972. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4973. </Section>
  4974. <Section name="Transforming elements" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4975. <Section name="Different deduced type" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4976. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4977. <Original>
  4978. i.size() == 1
  4979. </Original>
  4980. <Expanded>
  4981. 1 == 1
  4982. </Expanded>
  4983. </Expression>
  4984. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4985. </Section>
  4986. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4987. </Section>
  4988. <Section name="Transforming elements" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4989. <Section name="Different deduced type" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4990. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  4991. <Original>
  4992. i.size() == 1
  4993. </Original>
  4994. <Expanded>
  4995. 1 == 1
  4996. </Expanded>
  4997. </Expression>
  4998. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  4999. </Section>
  5000. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5001. </Section>
  5002. <Section name="Transforming elements" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5003. <Section name="Different deduced type" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5004. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5005. <Original>
  5006. i.size() == 1
  5007. </Original>
  5008. <Expanded>
  5009. 1 == 1
  5010. </Expanded>
  5011. </Expression>
  5012. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5013. </Section>
  5014. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5015. </Section>
  5016. <Section name="Repeating a generator" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5017. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5018. <Original>
  5019. j > 0
  5020. </Original>
  5021. <Expanded>
  5022. 1 > 0
  5023. </Expanded>
  5024. </Expression>
  5025. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5026. </Section>
  5027. <Section name="Repeating a generator" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5028. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5029. <Original>
  5030. j > 0
  5031. </Original>
  5032. <Expanded>
  5033. 2 > 0
  5034. </Expanded>
  5035. </Expression>
  5036. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5037. </Section>
  5038. <Section name="Repeating a generator" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5039. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5040. <Original>
  5041. j > 0
  5042. </Original>
  5043. <Expanded>
  5044. 3 > 0
  5045. </Expanded>
  5046. </Expression>
  5047. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5048. </Section>
  5049. <Section name="Repeating a generator" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5050. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5051. <Original>
  5052. j > 0
  5053. </Original>
  5054. <Expanded>
  5055. 1 > 0
  5056. </Expanded>
  5057. </Expression>
  5058. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5059. </Section>
  5060. <Section name="Repeating a generator" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5061. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5062. <Original>
  5063. j > 0
  5064. </Original>
  5065. <Expanded>
  5066. 2 > 0
  5067. </Expanded>
  5068. </Expression>
  5069. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5070. </Section>
  5071. <Section name="Repeating a generator" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5072. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5073. <Original>
  5074. j > 0
  5075. </Original>
  5076. <Expanded>
  5077. 3 > 0
  5078. </Expanded>
  5079. </Expression>
  5080. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5081. </Section>
  5082. <Section name="Chunking a generator into sized pieces" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5083. <Section name="Number of elements in source is divisible by chunk size" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5084. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5085. <Original>
  5086. chunk2.size() == 2
  5087. </Original>
  5088. <Expanded>
  5089. 2 == 2
  5090. </Expanded>
  5091. </Expression>
  5092. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5093. <Original>
  5094. chunk2.front() == chunk2.back()
  5095. </Original>
  5096. <Expanded>
  5097. 1 == 1
  5098. </Expanded>
  5099. </Expression>
  5100. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  5101. </Section>
  5102. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  5103. </Section>
  5104. <Section name="Chunking a generator into sized pieces" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5105. <Section name="Number of elements in source is divisible by chunk size" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5106. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5107. <Original>
  5108. chunk2.size() == 2
  5109. </Original>
  5110. <Expanded>
  5111. 2 == 2
  5112. </Expanded>
  5113. </Expression>
  5114. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5115. <Original>
  5116. chunk2.front() == chunk2.back()
  5117. </Original>
  5118. <Expanded>
  5119. 2 == 2
  5120. </Expanded>
  5121. </Expression>
  5122. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  5123. </Section>
  5124. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  5125. </Section>
  5126. <Section name="Chunking a generator into sized pieces" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5127. <Section name="Number of elements in source is divisible by chunk size" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5128. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5129. <Original>
  5130. chunk2.size() == 2
  5131. </Original>
  5132. <Expanded>
  5133. 2 == 2
  5134. </Expanded>
  5135. </Expression>
  5136. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5137. <Original>
  5138. chunk2.front() == chunk2.back()
  5139. </Original>
  5140. <Expanded>
  5141. 3 == 3
  5142. </Expanded>
  5143. </Expression>
  5144. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  5145. </Section>
  5146. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  5147. </Section>
  5148. <Section name="Chunking a generator into sized pieces" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5149. <Section name="Number of elements in source is not divisible by chunk size" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5150. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5151. <Original>
  5152. chunk2.size() == 2
  5153. </Original>
  5154. <Expanded>
  5155. 2 == 2
  5156. </Expanded>
  5157. </Expression>
  5158. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5159. <Original>
  5160. chunk2.front() == chunk2.back()
  5161. </Original>
  5162. <Expanded>
  5163. 1 == 1
  5164. </Expanded>
  5165. </Expression>
  5166. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5167. <Original>
  5168. chunk2.front() &lt; 3
  5169. </Original>
  5170. <Expanded>
  5171. 1 &lt; 3
  5172. </Expanded>
  5173. </Expression>
  5174. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  5175. </Section>
  5176. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  5177. </Section>
  5178. <Section name="Chunking a generator into sized pieces" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5179. <Section name="Number of elements in source is not divisible by chunk size" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5180. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5181. <Original>
  5182. chunk2.size() == 2
  5183. </Original>
  5184. <Expanded>
  5185. 2 == 2
  5186. </Expanded>
  5187. </Expression>
  5188. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5189. <Original>
  5190. chunk2.front() == chunk2.back()
  5191. </Original>
  5192. <Expanded>
  5193. 2 == 2
  5194. </Expanded>
  5195. </Expression>
  5196. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5197. <Original>
  5198. chunk2.front() &lt; 3
  5199. </Original>
  5200. <Expanded>
  5201. 2 &lt; 3
  5202. </Expanded>
  5203. </Expression>
  5204. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  5205. </Section>
  5206. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  5207. </Section>
  5208. <Section name="Chunking a generator into sized pieces" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5209. <Section name="Chunk size of zero" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5210. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5211. <Original>
  5212. chunk2.size() == 0
  5213. </Original>
  5214. <Expanded>
  5215. 0 == 0
  5216. </Expanded>
  5217. </Expression>
  5218. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5219. </Section>
  5220. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5221. </Section>
  5222. <Section name="Chunking a generator into sized pieces" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5223. <Section name="Chunk size of zero" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5224. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5225. <Original>
  5226. chunk2.size() == 0
  5227. </Original>
  5228. <Expanded>
  5229. 0 == 0
  5230. </Expanded>
  5231. </Expression>
  5232. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5233. </Section>
  5234. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5235. </Section>
  5236. <Section name="Chunking a generator into sized pieces" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5237. <Section name="Chunk size of zero" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5238. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5239. <Original>
  5240. chunk2.size() == 0
  5241. </Original>
  5242. <Expanded>
  5243. 0 == 0
  5244. </Expanded>
  5245. </Expression>
  5246. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5247. </Section>
  5248. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5249. </Section>
  5250. <Section name="Chunking a generator into sized pieces" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5251. <Section name="Throws on too small generators" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5252. <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5253. <Original>
  5254. chunk(2, value(1)), Catch::GeneratorException
  5255. </Original>
  5256. <Expanded>
  5257. chunk(2, value(1)), Catch::GeneratorException
  5258. </Expanded>
  5259. </Expression>
  5260. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5261. </Section>
  5262. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5263. </Section>
  5264. <OverallResult success="true"/>
  5265. </TestCase>
  5266. <TestCase name="Generators -- simple" tags="[generators]" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5267. <Section name="one" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5268. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5269. <Original>
  5270. j &lt; i
  5271. </Original>
  5272. <Expanded>
  5273. -3 &lt; 1
  5274. </Expanded>
  5275. </Expression>
  5276. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5277. </Section>
  5278. <Section name="one" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5279. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5280. <Original>
  5281. j &lt; i
  5282. </Original>
  5283. <Expanded>
  5284. -2 &lt; 1
  5285. </Expanded>
  5286. </Expression>
  5287. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5288. </Section>
  5289. <Section name="one" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5290. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5291. <Original>
  5292. j &lt; i
  5293. </Original>
  5294. <Expanded>
  5295. -1 &lt; 1
  5296. </Expanded>
  5297. </Expression>
  5298. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5299. </Section>
  5300. <Section name="two" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5301. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5302. <Original>
  5303. 4u * i > str.size()
  5304. </Original>
  5305. <Expanded>
  5306. 4 > 1
  5307. </Expanded>
  5308. </Expression>
  5309. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5310. </Section>
  5311. <Section name="two" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5312. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5313. <Original>
  5314. 4u * i > str.size()
  5315. </Original>
  5316. <Expanded>
  5317. 4 > 2
  5318. </Expanded>
  5319. </Expression>
  5320. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5321. </Section>
  5322. <Section name="two" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5323. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5324. <Original>
  5325. 4u * i > str.size()
  5326. </Original>
  5327. <Expanded>
  5328. 4 > 3
  5329. </Expanded>
  5330. </Expression>
  5331. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5332. </Section>
  5333. <Section name="one" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5334. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5335. <Original>
  5336. j &lt; i
  5337. </Original>
  5338. <Expanded>
  5339. -3 &lt; 2
  5340. </Expanded>
  5341. </Expression>
  5342. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5343. </Section>
  5344. <Section name="one" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5345. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5346. <Original>
  5347. j &lt; i
  5348. </Original>
  5349. <Expanded>
  5350. -2 &lt; 2
  5351. </Expanded>
  5352. </Expression>
  5353. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5354. </Section>
  5355. <Section name="one" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5356. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5357. <Original>
  5358. j &lt; i
  5359. </Original>
  5360. <Expanded>
  5361. -1 &lt; 2
  5362. </Expanded>
  5363. </Expression>
  5364. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5365. </Section>
  5366. <Section name="two" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5367. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5368. <Original>
  5369. 4u * i > str.size()
  5370. </Original>
  5371. <Expanded>
  5372. 8 > 1
  5373. </Expanded>
  5374. </Expression>
  5375. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5376. </Section>
  5377. <Section name="two" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5378. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5379. <Original>
  5380. 4u * i > str.size()
  5381. </Original>
  5382. <Expanded>
  5383. 8 > 2
  5384. </Expanded>
  5385. </Expression>
  5386. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5387. </Section>
  5388. <Section name="two" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5389. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5390. <Original>
  5391. 4u * i > str.size()
  5392. </Original>
  5393. <Expanded>
  5394. 8 > 3
  5395. </Expanded>
  5396. </Expression>
  5397. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5398. </Section>
  5399. <Section name="one" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5400. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5401. <Original>
  5402. j &lt; i
  5403. </Original>
  5404. <Expanded>
  5405. -3 &lt; 3
  5406. </Expanded>
  5407. </Expression>
  5408. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5409. </Section>
  5410. <Section name="one" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5411. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5412. <Original>
  5413. j &lt; i
  5414. </Original>
  5415. <Expanded>
  5416. -2 &lt; 3
  5417. </Expanded>
  5418. </Expression>
  5419. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5420. </Section>
  5421. <Section name="one" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5422. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5423. <Original>
  5424. j &lt; i
  5425. </Original>
  5426. <Expanded>
  5427. -1 &lt; 3
  5428. </Expanded>
  5429. </Expression>
  5430. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5431. </Section>
  5432. <Section name="two" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5433. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5434. <Original>
  5435. 4u * i > str.size()
  5436. </Original>
  5437. <Expanded>
  5438. 12 > 1
  5439. </Expanded>
  5440. </Expression>
  5441. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5442. </Section>
  5443. <Section name="two" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5444. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5445. <Original>
  5446. 4u * i > str.size()
  5447. </Original>
  5448. <Expanded>
  5449. 12 > 2
  5450. </Expanded>
  5451. </Expression>
  5452. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5453. </Section>
  5454. <Section name="two" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5455. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  5456. <Original>
  5457. 4u * i > str.size()
  5458. </Original>
  5459. <Expanded>
  5460. 12 > 3
  5461. </Expanded>
  5462. </Expression>
  5463. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  5464. </Section>
  5465. <OverallResult success="true"/>
  5466. </TestCase>
  5467. <TestCase name="Generators internals" tags="[generators][internals]" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5468. <Section name="Single value" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5469. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5470. <Original>
  5471. gen.get() == 123
  5472. </Original>
  5473. <Expanded>
  5474. 123 == 123
  5475. </Expanded>
  5476. </Expression>
  5477. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5478. <Original>
  5479. !(gen.next())
  5480. </Original>
  5481. <Expanded>
  5482. !false
  5483. </Expanded>
  5484. </Expression>
  5485. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  5486. </Section>
  5487. <Section name="Preset values" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5488. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5489. <Original>
  5490. gen.get() == 1
  5491. </Original>
  5492. <Expanded>
  5493. 1 == 1
  5494. </Expanded>
  5495. </Expression>
  5496. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5497. <Original>
  5498. gen.next()
  5499. </Original>
  5500. <Expanded>
  5501. true
  5502. </Expanded>
  5503. </Expression>
  5504. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5505. <Original>
  5506. gen.get() == 3
  5507. </Original>
  5508. <Expanded>
  5509. 3 == 3
  5510. </Expanded>
  5511. </Expression>
  5512. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5513. <Original>
  5514. gen.next()
  5515. </Original>
  5516. <Expanded>
  5517. true
  5518. </Expanded>
  5519. </Expression>
  5520. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5521. <Original>
  5522. gen.get() == 5
  5523. </Original>
  5524. <Expanded>
  5525. 5 == 5
  5526. </Expanded>
  5527. </Expression>
  5528. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5529. <Original>
  5530. !(gen.next())
  5531. </Original>
  5532. <Expanded>
  5533. !false
  5534. </Expanded>
  5535. </Expression>
  5536. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  5537. </Section>
  5538. <Section name="Generator combinator" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5539. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5540. <Original>
  5541. gen.get() == 1
  5542. </Original>
  5543. <Expanded>
  5544. 1 == 1
  5545. </Expanded>
  5546. </Expression>
  5547. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5548. <Original>
  5549. gen.next()
  5550. </Original>
  5551. <Expanded>
  5552. true
  5553. </Expanded>
  5554. </Expression>
  5555. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5556. <Original>
  5557. gen.get() == 5
  5558. </Original>
  5559. <Expanded>
  5560. 5 == 5
  5561. </Expanded>
  5562. </Expression>
  5563. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5564. <Original>
  5565. gen.next()
  5566. </Original>
  5567. <Expanded>
  5568. true
  5569. </Expanded>
  5570. </Expression>
  5571. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5572. <Original>
  5573. gen.get() == 2
  5574. </Original>
  5575. <Expanded>
  5576. 2 == 2
  5577. </Expanded>
  5578. </Expression>
  5579. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5580. <Original>
  5581. gen.next()
  5582. </Original>
  5583. <Expanded>
  5584. true
  5585. </Expanded>
  5586. </Expression>
  5587. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5588. <Original>
  5589. gen.get() == 4
  5590. </Original>
  5591. <Expanded>
  5592. 4 == 4
  5593. </Expanded>
  5594. </Expression>
  5595. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5596. <Original>
  5597. gen.next()
  5598. </Original>
  5599. <Expanded>
  5600. true
  5601. </Expanded>
  5602. </Expression>
  5603. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5604. <Original>
  5605. gen.get() == 0
  5606. </Original>
  5607. <Expanded>
  5608. 0 == 0
  5609. </Expanded>
  5610. </Expression>
  5611. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5612. <Original>
  5613. !(gen.next())
  5614. </Original>
  5615. <Expanded>
  5616. !false
  5617. </Expanded>
  5618. </Expression>
  5619. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  5620. </Section>
  5621. <Section name="Explicitly typed generator sequence" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5622. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5623. <Original>
  5624. gen.get().size() == 2
  5625. </Original>
  5626. <Expanded>
  5627. 2 == 2
  5628. </Expanded>
  5629. </Expression>
  5630. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5631. <Original>
  5632. gen.get() == "aa"
  5633. </Original>
  5634. <Expanded>
  5635. "aa" == "aa"
  5636. </Expanded>
  5637. </Expression>
  5638. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5639. <Original>
  5640. gen.next()
  5641. </Original>
  5642. <Expanded>
  5643. true
  5644. </Expanded>
  5645. </Expression>
  5646. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5647. <Original>
  5648. gen.get() == "bb"
  5649. </Original>
  5650. <Expanded>
  5651. "bb" == "bb"
  5652. </Expanded>
  5653. </Expression>
  5654. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5655. <Original>
  5656. gen.next()
  5657. </Original>
  5658. <Expanded>
  5659. true
  5660. </Expanded>
  5661. </Expression>
  5662. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5663. <Original>
  5664. gen.get() == "cc"
  5665. </Original>
  5666. <Expanded>
  5667. "cc" == "cc"
  5668. </Expanded>
  5669. </Expression>
  5670. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5671. <Original>
  5672. !(gen.next())
  5673. </Original>
  5674. <Expanded>
  5675. !false
  5676. </Expanded>
  5677. </Expression>
  5678. <OverallResults successes="7" failures="0" expectedFailures="0"/>
  5679. </Section>
  5680. <Section name="Filter generator" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5681. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5682. <Original>
  5683. gen.get() == 1
  5684. </Original>
  5685. <Expanded>
  5686. 1 == 1
  5687. </Expanded>
  5688. </Expression>
  5689. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5690. <Original>
  5691. gen.next()
  5692. </Original>
  5693. <Expanded>
  5694. true
  5695. </Expanded>
  5696. </Expression>
  5697. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5698. <Original>
  5699. gen.get() == 3
  5700. </Original>
  5701. <Expanded>
  5702. 3 == 3
  5703. </Expanded>
  5704. </Expression>
  5705. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5706. <Original>
  5707. !(gen.next())
  5708. </Original>
  5709. <Expanded>
  5710. !false
  5711. </Expanded>
  5712. </Expression>
  5713. <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5714. <Original>
  5715. filter([] (int) { return false; }, value(1)), Catch::GeneratorException
  5716. </Original>
  5717. <Expanded>
  5718. filter([] (int) { return false; }, value(1)), Catch::GeneratorException
  5719. </Expanded>
  5720. </Expression>
  5721. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  5722. </Section>
  5723. <Section name="Take generator" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5724. <Section name="Take less" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5725. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5726. <Original>
  5727. gen.get() == 1
  5728. </Original>
  5729. <Expanded>
  5730. 1 == 1
  5731. </Expanded>
  5732. </Expression>
  5733. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5734. <Original>
  5735. gen.next()
  5736. </Original>
  5737. <Expanded>
  5738. true
  5739. </Expanded>
  5740. </Expression>
  5741. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5742. <Original>
  5743. gen.get() == 2
  5744. </Original>
  5745. <Expanded>
  5746. 2 == 2
  5747. </Expanded>
  5748. </Expression>
  5749. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5750. <Original>
  5751. !(gen.next())
  5752. </Original>
  5753. <Expanded>
  5754. !false
  5755. </Expanded>
  5756. </Expression>
  5757. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  5758. </Section>
  5759. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  5760. </Section>
  5761. <Section name="Take generator" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5762. <Section name="Take more" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5763. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5764. <Original>
  5765. gen.get() == 1
  5766. </Original>
  5767. <Expanded>
  5768. 1 == 1
  5769. </Expanded>
  5770. </Expression>
  5771. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5772. <Original>
  5773. !(gen.next())
  5774. </Original>
  5775. <Expanded>
  5776. !false
  5777. </Expanded>
  5778. </Expression>
  5779. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  5780. </Section>
  5781. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  5782. </Section>
  5783. <Section name="Map with explicit return type" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5784. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5785. <Original>
  5786. gen.get() == 2.0
  5787. </Original>
  5788. <Expanded>
  5789. 2.0 == 2.0
  5790. </Expanded>
  5791. </Expression>
  5792. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5793. <Original>
  5794. gen.next()
  5795. </Original>
  5796. <Expanded>
  5797. true
  5798. </Expanded>
  5799. </Expression>
  5800. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5801. <Original>
  5802. gen.get() == 4.0
  5803. </Original>
  5804. <Expanded>
  5805. 4.0 == 4.0
  5806. </Expanded>
  5807. </Expression>
  5808. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5809. <Original>
  5810. gen.next()
  5811. </Original>
  5812. <Expanded>
  5813. true
  5814. </Expanded>
  5815. </Expression>
  5816. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5817. <Original>
  5818. gen.get() == 6.0
  5819. </Original>
  5820. <Expanded>
  5821. 6.0 == 6.0
  5822. </Expanded>
  5823. </Expression>
  5824. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5825. <Original>
  5826. !(gen.next())
  5827. </Original>
  5828. <Expanded>
  5829. !false
  5830. </Expanded>
  5831. </Expression>
  5832. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  5833. </Section>
  5834. <Section name="Map with deduced return type" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5835. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5836. <Original>
  5837. gen.get() == 2.0
  5838. </Original>
  5839. <Expanded>
  5840. 2.0 == 2.0
  5841. </Expanded>
  5842. </Expression>
  5843. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5844. <Original>
  5845. gen.next()
  5846. </Original>
  5847. <Expanded>
  5848. true
  5849. </Expanded>
  5850. </Expression>
  5851. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5852. <Original>
  5853. gen.get() == 4.0
  5854. </Original>
  5855. <Expanded>
  5856. 4.0 == 4.0
  5857. </Expanded>
  5858. </Expression>
  5859. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5860. <Original>
  5861. gen.next()
  5862. </Original>
  5863. <Expanded>
  5864. true
  5865. </Expanded>
  5866. </Expression>
  5867. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5868. <Original>
  5869. gen.get() == 6.0
  5870. </Original>
  5871. <Expanded>
  5872. 6.0 == 6.0
  5873. </Expanded>
  5874. </Expression>
  5875. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5876. <Original>
  5877. !(gen.next())
  5878. </Original>
  5879. <Expanded>
  5880. !false
  5881. </Expanded>
  5882. </Expression>
  5883. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  5884. </Section>
  5885. <Section name="Repeat" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5886. <Section name="Singular repeat" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5887. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5888. <Original>
  5889. gen.get() == 3
  5890. </Original>
  5891. <Expanded>
  5892. 3 == 3
  5893. </Expanded>
  5894. </Expression>
  5895. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5896. <Original>
  5897. !(gen.next())
  5898. </Original>
  5899. <Expanded>
  5900. !false
  5901. </Expanded>
  5902. </Expression>
  5903. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  5904. </Section>
  5905. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  5906. </Section>
  5907. <Section name="Repeat" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5908. <Section name="Actual repeat" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5909. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5910. <Original>
  5911. gen.get() == 1
  5912. </Original>
  5913. <Expanded>
  5914. 1 == 1
  5915. </Expanded>
  5916. </Expression>
  5917. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5918. <Original>
  5919. gen.next()
  5920. </Original>
  5921. <Expanded>
  5922. true
  5923. </Expanded>
  5924. </Expression>
  5925. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5926. <Original>
  5927. gen.get() == 2
  5928. </Original>
  5929. <Expanded>
  5930. 2 == 2
  5931. </Expanded>
  5932. </Expression>
  5933. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5934. <Original>
  5935. gen.next()
  5936. </Original>
  5937. <Expanded>
  5938. true
  5939. </Expanded>
  5940. </Expression>
  5941. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5942. <Original>
  5943. gen.get() == 3
  5944. </Original>
  5945. <Expanded>
  5946. 3 == 3
  5947. </Expanded>
  5948. </Expression>
  5949. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5950. <Original>
  5951. gen.next()
  5952. </Original>
  5953. <Expanded>
  5954. true
  5955. </Expanded>
  5956. </Expression>
  5957. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5958. <Original>
  5959. gen.get() == 1
  5960. </Original>
  5961. <Expanded>
  5962. 1 == 1
  5963. </Expanded>
  5964. </Expression>
  5965. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5966. <Original>
  5967. gen.next()
  5968. </Original>
  5969. <Expanded>
  5970. true
  5971. </Expanded>
  5972. </Expression>
  5973. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5974. <Original>
  5975. gen.get() == 2
  5976. </Original>
  5977. <Expanded>
  5978. 2 == 2
  5979. </Expanded>
  5980. </Expression>
  5981. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5982. <Original>
  5983. gen.next()
  5984. </Original>
  5985. <Expanded>
  5986. true
  5987. </Expanded>
  5988. </Expression>
  5989. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5990. <Original>
  5991. gen.get() == 3
  5992. </Original>
  5993. <Expanded>
  5994. 3 == 3
  5995. </Expanded>
  5996. </Expression>
  5997. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  5998. <Original>
  5999. !(gen.next())
  6000. </Original>
  6001. <Expanded>
  6002. !false
  6003. </Expanded>
  6004. </Expression>
  6005. <OverallResults successes="12" failures="0" expectedFailures="0"/>
  6006. </Section>
  6007. <OverallResults successes="12" failures="0" expectedFailures="0"/>
  6008. </Section>
  6009. <Section name="Range" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6010. <Section name="Positive auto step" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6011. <Section name="Integer" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6012. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6013. <Original>
  6014. gen.get() == -2
  6015. </Original>
  6016. <Expanded>
  6017. -2 == -2
  6018. </Expanded>
  6019. </Expression>
  6020. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6021. <Original>
  6022. gen.next()
  6023. </Original>
  6024. <Expanded>
  6025. true
  6026. </Expanded>
  6027. </Expression>
  6028. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6029. <Original>
  6030. gen.get() == -1
  6031. </Original>
  6032. <Expanded>
  6033. -1 == -1
  6034. </Expanded>
  6035. </Expression>
  6036. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6037. <Original>
  6038. gen.next()
  6039. </Original>
  6040. <Expanded>
  6041. true
  6042. </Expanded>
  6043. </Expression>
  6044. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6045. <Original>
  6046. gen.get() == 0
  6047. </Original>
  6048. <Expanded>
  6049. 0 == 0
  6050. </Expanded>
  6051. </Expression>
  6052. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6053. <Original>
  6054. gen.next()
  6055. </Original>
  6056. <Expanded>
  6057. true
  6058. </Expanded>
  6059. </Expression>
  6060. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6061. <Original>
  6062. gen.get() == 1
  6063. </Original>
  6064. <Expanded>
  6065. 1 == 1
  6066. </Expanded>
  6067. </Expression>
  6068. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6069. <Original>
  6070. !(gen.next())
  6071. </Original>
  6072. <Expanded>
  6073. !false
  6074. </Expanded>
  6075. </Expression>
  6076. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6077. </Section>
  6078. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6079. </Section>
  6080. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6081. </Section>
  6082. <Section name="Range" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6083. <Section name="Negative auto step" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6084. <Section name="Integer" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6085. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6086. <Original>
  6087. gen.get() == 2
  6088. </Original>
  6089. <Expanded>
  6090. 2 == 2
  6091. </Expanded>
  6092. </Expression>
  6093. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6094. <Original>
  6095. gen.next()
  6096. </Original>
  6097. <Expanded>
  6098. true
  6099. </Expanded>
  6100. </Expression>
  6101. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6102. <Original>
  6103. gen.get() == 1
  6104. </Original>
  6105. <Expanded>
  6106. 1 == 1
  6107. </Expanded>
  6108. </Expression>
  6109. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6110. <Original>
  6111. gen.next()
  6112. </Original>
  6113. <Expanded>
  6114. true
  6115. </Expanded>
  6116. </Expression>
  6117. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6118. <Original>
  6119. gen.get() == 0
  6120. </Original>
  6121. <Expanded>
  6122. 0 == 0
  6123. </Expanded>
  6124. </Expression>
  6125. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6126. <Original>
  6127. gen.next()
  6128. </Original>
  6129. <Expanded>
  6130. true
  6131. </Expanded>
  6132. </Expression>
  6133. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6134. <Original>
  6135. gen.get() == -1
  6136. </Original>
  6137. <Expanded>
  6138. -1 == -1
  6139. </Expanded>
  6140. </Expression>
  6141. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6142. <Original>
  6143. !(gen.next())
  6144. </Original>
  6145. <Expanded>
  6146. !false
  6147. </Expanded>
  6148. </Expression>
  6149. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6150. </Section>
  6151. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6152. </Section>
  6153. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6154. </Section>
  6155. <Section name="Range" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6156. <Section name="Positive manual step" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6157. <Section name="Integer" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6158. <Section name="Exact" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6159. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6160. <Original>
  6161. gen.get() == -7
  6162. </Original>
  6163. <Expanded>
  6164. -7 == -7
  6165. </Expanded>
  6166. </Expression>
  6167. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6168. <Original>
  6169. gen.next()
  6170. </Original>
  6171. <Expanded>
  6172. true
  6173. </Expanded>
  6174. </Expression>
  6175. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6176. <Original>
  6177. gen.get() == -4
  6178. </Original>
  6179. <Expanded>
  6180. -4 == -4
  6181. </Expanded>
  6182. </Expression>
  6183. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6184. <Original>
  6185. gen.next()
  6186. </Original>
  6187. <Expanded>
  6188. true
  6189. </Expanded>
  6190. </Expression>
  6191. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6192. <Original>
  6193. gen.get() == -1
  6194. </Original>
  6195. <Expanded>
  6196. -1 == -1
  6197. </Expanded>
  6198. </Expression>
  6199. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6200. <Original>
  6201. gen.next()
  6202. </Original>
  6203. <Expanded>
  6204. true
  6205. </Expanded>
  6206. </Expression>
  6207. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6208. <Original>
  6209. gen.get() == 2
  6210. </Original>
  6211. <Expanded>
  6212. 2 == 2
  6213. </Expanded>
  6214. </Expression>
  6215. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6216. <Original>
  6217. !(gen.next())
  6218. </Original>
  6219. <Expanded>
  6220. !false
  6221. </Expanded>
  6222. </Expression>
  6223. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6224. </Section>
  6225. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6226. </Section>
  6227. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6228. </Section>
  6229. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6230. </Section>
  6231. <Section name="Range" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6232. <Section name="Positive manual step" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6233. <Section name="Integer" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6234. <Section name="Slightly over end" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6235. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6236. <Original>
  6237. gen.get() == -7
  6238. </Original>
  6239. <Expanded>
  6240. -7 == -7
  6241. </Expanded>
  6242. </Expression>
  6243. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6244. <Original>
  6245. gen.next()
  6246. </Original>
  6247. <Expanded>
  6248. true
  6249. </Expanded>
  6250. </Expression>
  6251. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6252. <Original>
  6253. gen.get() == -4
  6254. </Original>
  6255. <Expanded>
  6256. -4 == -4
  6257. </Expanded>
  6258. </Expression>
  6259. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6260. <Original>
  6261. gen.next()
  6262. </Original>
  6263. <Expanded>
  6264. true
  6265. </Expanded>
  6266. </Expression>
  6267. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6268. <Original>
  6269. gen.get() == -1
  6270. </Original>
  6271. <Expanded>
  6272. -1 == -1
  6273. </Expanded>
  6274. </Expression>
  6275. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6276. <Original>
  6277. gen.next()
  6278. </Original>
  6279. <Expanded>
  6280. true
  6281. </Expanded>
  6282. </Expression>
  6283. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6284. <Original>
  6285. gen.get() == 2
  6286. </Original>
  6287. <Expanded>
  6288. 2 == 2
  6289. </Expanded>
  6290. </Expression>
  6291. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6292. <Original>
  6293. !(gen.next())
  6294. </Original>
  6295. <Expanded>
  6296. !false
  6297. </Expanded>
  6298. </Expression>
  6299. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6300. </Section>
  6301. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6302. </Section>
  6303. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6304. </Section>
  6305. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  6306. </Section>
  6307. <Section name="Range" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6308. <Section name="Positive manual step" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6309. <Section name="Integer" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6310. <Section name="Slightly under end" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6311. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6312. <Original>
  6313. gen.get() == -7
  6314. </Original>
  6315. <Expanded>
  6316. -7 == -7
  6317. </Expanded>
  6318. </Expression>
  6319. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6320. <Original>
  6321. gen.next()
  6322. </Original>
  6323. <Expanded>
  6324. true
  6325. </Expanded>
  6326. </Expression>
  6327. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6328. <Original>
  6329. gen.get() == -4
  6330. </Original>
  6331. <Expanded>
  6332. -4 == -4
  6333. </Expanded>
  6334. </Expression>
  6335. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6336. <Original>
  6337. gen.next()
  6338. </Original>
  6339. <Expanded>
  6340. true
  6341. </Expanded>
  6342. </Expression>
  6343. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6344. <Original>
  6345. gen.get() == -1
  6346. </Original>
  6347. <Expanded>
  6348. -1 == -1
  6349. </Expanded>
  6350. </Expression>
  6351. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6352. <Original>
  6353. gen.next()
  6354. </Original>
  6355. <Expanded>
  6356. true
  6357. </Expanded>
  6358. </Expression>
  6359. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6360. <Original>
  6361. gen.get() == 2
  6362. </Original>
  6363. <Expanded>
  6364. 2 == 2
  6365. </Expanded>
  6366. </Expression>
  6367. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6368. <Original>
  6369. gen.next()
  6370. </Original>
  6371. <Expanded>
  6372. true
  6373. </Expanded>
  6374. </Expression>
  6375. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6376. <Original>
  6377. gen.get() == 5
  6378. </Original>
  6379. <Expanded>
  6380. 5 == 5
  6381. </Expanded>
  6382. </Expression>
  6383. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6384. <Original>
  6385. !(gen.next())
  6386. </Original>
  6387. <Expanded>
  6388. !false
  6389. </Expanded>
  6390. </Expression>
  6391. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  6392. </Section>
  6393. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  6394. </Section>
  6395. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  6396. </Section>
  6397. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  6398. </Section>
  6399. <Section name="Range" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6400. <Section name="Positive manual step" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6401. <Section name="Floating Point" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6402. <Section name="Exact" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6403. <Info>
  6404. Current expected value is -1
  6405. </Info>
  6406. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6407. <Original>
  6408. gen.get() == Approx(expected)
  6409. </Original>
  6410. <Expanded>
  6411. -1.0 == Approx( -1.0 )
  6412. </Expanded>
  6413. </Expression>
  6414. <Info>
  6415. Current expected value is -1
  6416. </Info>
  6417. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6418. <Original>
  6419. gen.next()
  6420. </Original>
  6421. <Expanded>
  6422. true
  6423. </Expanded>
  6424. </Expression>
  6425. <Info>
  6426. Current expected value is -0.9
  6427. </Info>
  6428. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6429. <Original>
  6430. gen.get() == Approx(expected)
  6431. </Original>
  6432. <Expanded>
  6433. -0.9 == Approx( -0.9 )
  6434. </Expanded>
  6435. </Expression>
  6436. <Info>
  6437. Current expected value is -0.9
  6438. </Info>
  6439. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6440. <Original>
  6441. gen.next()
  6442. </Original>
  6443. <Expanded>
  6444. true
  6445. </Expanded>
  6446. </Expression>
  6447. <Info>
  6448. Current expected value is -0.8
  6449. </Info>
  6450. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6451. <Original>
  6452. gen.get() == Approx(expected)
  6453. </Original>
  6454. <Expanded>
  6455. -0.8 == Approx( -0.8 )
  6456. </Expanded>
  6457. </Expression>
  6458. <Info>
  6459. Current expected value is -0.8
  6460. </Info>
  6461. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6462. <Original>
  6463. gen.next()
  6464. </Original>
  6465. <Expanded>
  6466. true
  6467. </Expanded>
  6468. </Expression>
  6469. <Info>
  6470. Current expected value is -0.7
  6471. </Info>
  6472. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6473. <Original>
  6474. gen.get() == Approx(expected)
  6475. </Original>
  6476. <Expanded>
  6477. -0.7 == Approx( -0.7 )
  6478. </Expanded>
  6479. </Expression>
  6480. <Info>
  6481. Current expected value is -0.7
  6482. </Info>
  6483. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6484. <Original>
  6485. gen.next()
  6486. </Original>
  6487. <Expanded>
  6488. true
  6489. </Expanded>
  6490. </Expression>
  6491. <Info>
  6492. Current expected value is -0.6
  6493. </Info>
  6494. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6495. <Original>
  6496. gen.get() == Approx(expected)
  6497. </Original>
  6498. <Expanded>
  6499. -0.6 == Approx( -0.6 )
  6500. </Expanded>
  6501. </Expression>
  6502. <Info>
  6503. Current expected value is -0.6
  6504. </Info>
  6505. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6506. <Original>
  6507. gen.next()
  6508. </Original>
  6509. <Expanded>
  6510. true
  6511. </Expanded>
  6512. </Expression>
  6513. <Info>
  6514. Current expected value is -0.5
  6515. </Info>
  6516. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6517. <Original>
  6518. gen.get() == Approx(expected)
  6519. </Original>
  6520. <Expanded>
  6521. -0.5 == Approx( -0.5 )
  6522. </Expanded>
  6523. </Expression>
  6524. <Info>
  6525. Current expected value is -0.5
  6526. </Info>
  6527. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6528. <Original>
  6529. gen.next()
  6530. </Original>
  6531. <Expanded>
  6532. true
  6533. </Expanded>
  6534. </Expression>
  6535. <Info>
  6536. Current expected value is -0.4
  6537. </Info>
  6538. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6539. <Original>
  6540. gen.get() == Approx(expected)
  6541. </Original>
  6542. <Expanded>
  6543. -0.4 == Approx( -0.4 )
  6544. </Expanded>
  6545. </Expression>
  6546. <Info>
  6547. Current expected value is -0.4
  6548. </Info>
  6549. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6550. <Original>
  6551. gen.next()
  6552. </Original>
  6553. <Expanded>
  6554. true
  6555. </Expanded>
  6556. </Expression>
  6557. <Info>
  6558. Current expected value is -0.3
  6559. </Info>
  6560. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6561. <Original>
  6562. gen.get() == Approx(expected)
  6563. </Original>
  6564. <Expanded>
  6565. -0.3 == Approx( -0.3 )
  6566. </Expanded>
  6567. </Expression>
  6568. <Info>
  6569. Current expected value is -0.3
  6570. </Info>
  6571. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6572. <Original>
  6573. gen.next()
  6574. </Original>
  6575. <Expanded>
  6576. true
  6577. </Expanded>
  6578. </Expression>
  6579. <Info>
  6580. Current expected value is -0.2
  6581. </Info>
  6582. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6583. <Original>
  6584. gen.get() == Approx(expected)
  6585. </Original>
  6586. <Expanded>
  6587. -0.2 == Approx( -0.2 )
  6588. </Expanded>
  6589. </Expression>
  6590. <Info>
  6591. Current expected value is -0.2
  6592. </Info>
  6593. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6594. <Original>
  6595. gen.next()
  6596. </Original>
  6597. <Expanded>
  6598. true
  6599. </Expanded>
  6600. </Expression>
  6601. <Info>
  6602. Current expected value is -0.1
  6603. </Info>
  6604. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6605. <Original>
  6606. gen.get() == Approx(expected)
  6607. </Original>
  6608. <Expanded>
  6609. -0.1 == Approx( -0.1 )
  6610. </Expanded>
  6611. </Expression>
  6612. <Info>
  6613. Current expected value is -0.1
  6614. </Info>
  6615. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6616. <Original>
  6617. gen.next()
  6618. </Original>
  6619. <Expanded>
  6620. true
  6621. </Expanded>
  6622. </Expression>
  6623. <Info>
  6624. Current expected value is -1.38778e-16
  6625. </Info>
  6626. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6627. <Original>
  6628. gen.get() == Approx(expected)
  6629. </Original>
  6630. <Expanded>
  6631. -0.0 == Approx( -0.0 )
  6632. </Expanded>
  6633. </Expression>
  6634. <Info>
  6635. Current expected value is -1.38778e-16
  6636. </Info>
  6637. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6638. <Original>
  6639. gen.next()
  6640. </Original>
  6641. <Expanded>
  6642. true
  6643. </Expanded>
  6644. </Expression>
  6645. <Info>
  6646. Current expected value is 0.1
  6647. </Info>
  6648. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6649. <Original>
  6650. gen.get() == Approx(expected)
  6651. </Original>
  6652. <Expanded>
  6653. 0.1 == Approx( 0.1 )
  6654. </Expanded>
  6655. </Expression>
  6656. <Info>
  6657. Current expected value is 0.1
  6658. </Info>
  6659. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6660. <Original>
  6661. gen.next()
  6662. </Original>
  6663. <Expanded>
  6664. true
  6665. </Expanded>
  6666. </Expression>
  6667. <Info>
  6668. Current expected value is 0.2
  6669. </Info>
  6670. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6671. <Original>
  6672. gen.get() == Approx(expected)
  6673. </Original>
  6674. <Expanded>
  6675. 0.2 == Approx( 0.2 )
  6676. </Expanded>
  6677. </Expression>
  6678. <Info>
  6679. Current expected value is 0.2
  6680. </Info>
  6681. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6682. <Original>
  6683. gen.next()
  6684. </Original>
  6685. <Expanded>
  6686. true
  6687. </Expanded>
  6688. </Expression>
  6689. <Info>
  6690. Current expected value is 0.3
  6691. </Info>
  6692. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6693. <Original>
  6694. gen.get() == Approx(expected)
  6695. </Original>
  6696. <Expanded>
  6697. 0.3 == Approx( 0.3 )
  6698. </Expanded>
  6699. </Expression>
  6700. <Info>
  6701. Current expected value is 0.3
  6702. </Info>
  6703. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6704. <Original>
  6705. gen.next()
  6706. </Original>
  6707. <Expanded>
  6708. true
  6709. </Expanded>
  6710. </Expression>
  6711. <Info>
  6712. Current expected value is 0.4
  6713. </Info>
  6714. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6715. <Original>
  6716. gen.get() == Approx(expected)
  6717. </Original>
  6718. <Expanded>
  6719. 0.4 == Approx( 0.4 )
  6720. </Expanded>
  6721. </Expression>
  6722. <Info>
  6723. Current expected value is 0.4
  6724. </Info>
  6725. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6726. <Original>
  6727. gen.next()
  6728. </Original>
  6729. <Expanded>
  6730. true
  6731. </Expanded>
  6732. </Expression>
  6733. <Info>
  6734. Current expected value is 0.5
  6735. </Info>
  6736. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6737. <Original>
  6738. gen.get() == Approx(expected)
  6739. </Original>
  6740. <Expanded>
  6741. 0.5 == Approx( 0.5 )
  6742. </Expanded>
  6743. </Expression>
  6744. <Info>
  6745. Current expected value is 0.5
  6746. </Info>
  6747. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6748. <Original>
  6749. gen.next()
  6750. </Original>
  6751. <Expanded>
  6752. true
  6753. </Expanded>
  6754. </Expression>
  6755. <Info>
  6756. Current expected value is 0.6
  6757. </Info>
  6758. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6759. <Original>
  6760. gen.get() == Approx(expected)
  6761. </Original>
  6762. <Expanded>
  6763. 0.6 == Approx( 0.6 )
  6764. </Expanded>
  6765. </Expression>
  6766. <Info>
  6767. Current expected value is 0.6
  6768. </Info>
  6769. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6770. <Original>
  6771. gen.next()
  6772. </Original>
  6773. <Expanded>
  6774. true
  6775. </Expanded>
  6776. </Expression>
  6777. <Info>
  6778. Current expected value is 0.7
  6779. </Info>
  6780. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6781. <Original>
  6782. gen.get() == Approx(expected)
  6783. </Original>
  6784. <Expanded>
  6785. 0.7 == Approx( 0.7 )
  6786. </Expanded>
  6787. </Expression>
  6788. <Info>
  6789. Current expected value is 0.7
  6790. </Info>
  6791. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6792. <Original>
  6793. gen.next()
  6794. </Original>
  6795. <Expanded>
  6796. true
  6797. </Expanded>
  6798. </Expression>
  6799. <Info>
  6800. Current expected value is 0.8
  6801. </Info>
  6802. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6803. <Original>
  6804. gen.get() == Approx(expected)
  6805. </Original>
  6806. <Expanded>
  6807. 0.8 == Approx( 0.8 )
  6808. </Expanded>
  6809. </Expression>
  6810. <Info>
  6811. Current expected value is 0.8
  6812. </Info>
  6813. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6814. <Original>
  6815. gen.next()
  6816. </Original>
  6817. <Expanded>
  6818. true
  6819. </Expanded>
  6820. </Expression>
  6821. <Info>
  6822. Current expected value is 0.9
  6823. </Info>
  6824. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6825. <Original>
  6826. gen.get() == Approx(expected)
  6827. </Original>
  6828. <Expanded>
  6829. 0.9 == Approx( 0.9 )
  6830. </Expanded>
  6831. </Expression>
  6832. <Info>
  6833. Current expected value is 0.9
  6834. </Info>
  6835. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6836. <Original>
  6837. gen.next()
  6838. </Original>
  6839. <Expanded>
  6840. true
  6841. </Expanded>
  6842. </Expression>
  6843. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6844. <Original>
  6845. gen.get() == Approx( rangeEnd )
  6846. </Original>
  6847. <Expanded>
  6848. 1.0 == Approx( 1.0 )
  6849. </Expanded>
  6850. </Expression>
  6851. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6852. <Original>
  6853. !(gen.next())
  6854. </Original>
  6855. <Expanded>
  6856. !false
  6857. </Expanded>
  6858. </Expression>
  6859. <OverallResults successes="42" failures="0" expectedFailures="0"/>
  6860. </Section>
  6861. <OverallResults successes="42" failures="0" expectedFailures="0"/>
  6862. </Section>
  6863. <OverallResults successes="42" failures="0" expectedFailures="0"/>
  6864. </Section>
  6865. <OverallResults successes="42" failures="0" expectedFailures="0"/>
  6866. </Section>
  6867. <Section name="Range" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6868. <Section name="Positive manual step" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6869. <Section name="Floating Point" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6870. <Section name="Slightly over end" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6871. <Info>
  6872. Current expected value is -1
  6873. </Info>
  6874. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6875. <Original>
  6876. gen.get() == Approx(expected)
  6877. </Original>
  6878. <Expanded>
  6879. -1.0 == Approx( -1.0 )
  6880. </Expanded>
  6881. </Expression>
  6882. <Info>
  6883. Current expected value is -1
  6884. </Info>
  6885. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6886. <Original>
  6887. gen.next()
  6888. </Original>
  6889. <Expanded>
  6890. true
  6891. </Expanded>
  6892. </Expression>
  6893. <Info>
  6894. Current expected value is -0.7
  6895. </Info>
  6896. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6897. <Original>
  6898. gen.get() == Approx(expected)
  6899. </Original>
  6900. <Expanded>
  6901. -0.7 == Approx( -0.7 )
  6902. </Expanded>
  6903. </Expression>
  6904. <Info>
  6905. Current expected value is -0.7
  6906. </Info>
  6907. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6908. <Original>
  6909. gen.next()
  6910. </Original>
  6911. <Expanded>
  6912. true
  6913. </Expanded>
  6914. </Expression>
  6915. <Info>
  6916. Current expected value is -0.4
  6917. </Info>
  6918. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6919. <Original>
  6920. gen.get() == Approx(expected)
  6921. </Original>
  6922. <Expanded>
  6923. -0.4 == Approx( -0.4 )
  6924. </Expanded>
  6925. </Expression>
  6926. <Info>
  6927. Current expected value is -0.4
  6928. </Info>
  6929. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6930. <Original>
  6931. gen.next()
  6932. </Original>
  6933. <Expanded>
  6934. true
  6935. </Expanded>
  6936. </Expression>
  6937. <Info>
  6938. Current expected value is -0.1
  6939. </Info>
  6940. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6941. <Original>
  6942. gen.get() == Approx(expected)
  6943. </Original>
  6944. <Expanded>
  6945. -0.1 == Approx( -0.1 )
  6946. </Expanded>
  6947. </Expression>
  6948. <Info>
  6949. Current expected value is -0.1
  6950. </Info>
  6951. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6952. <Original>
  6953. gen.next()
  6954. </Original>
  6955. <Expanded>
  6956. true
  6957. </Expanded>
  6958. </Expression>
  6959. <Info>
  6960. Current expected value is 0.2
  6961. </Info>
  6962. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6963. <Original>
  6964. gen.get() == Approx(expected)
  6965. </Original>
  6966. <Expanded>
  6967. 0.2 == Approx( 0.2 )
  6968. </Expanded>
  6969. </Expression>
  6970. <Info>
  6971. Current expected value is 0.2
  6972. </Info>
  6973. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6974. <Original>
  6975. gen.next()
  6976. </Original>
  6977. <Expanded>
  6978. true
  6979. </Expanded>
  6980. </Expression>
  6981. <Info>
  6982. Current expected value is 0.5
  6983. </Info>
  6984. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6985. <Original>
  6986. gen.get() == Approx(expected)
  6987. </Original>
  6988. <Expanded>
  6989. 0.5 == Approx( 0.5 )
  6990. </Expanded>
  6991. </Expression>
  6992. <Info>
  6993. Current expected value is 0.5
  6994. </Info>
  6995. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  6996. <Original>
  6997. gen.next()
  6998. </Original>
  6999. <Expanded>
  7000. true
  7001. </Expanded>
  7002. </Expression>
  7003. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7004. <Original>
  7005. !(gen.next())
  7006. </Original>
  7007. <Expanded>
  7008. !false
  7009. </Expanded>
  7010. </Expression>
  7011. <OverallResults successes="13" failures="0" expectedFailures="0"/>
  7012. </Section>
  7013. <OverallResults successes="13" failures="0" expectedFailures="0"/>
  7014. </Section>
  7015. <OverallResults successes="13" failures="0" expectedFailures="0"/>
  7016. </Section>
  7017. <OverallResults successes="13" failures="0" expectedFailures="0"/>
  7018. </Section>
  7019. <Section name="Range" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7020. <Section name="Positive manual step" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7021. <Section name="Floating Point" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7022. <Section name="Slightly under end" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7023. <Info>
  7024. Current expected value is -1
  7025. </Info>
  7026. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7027. <Original>
  7028. gen.get() == Approx(expected)
  7029. </Original>
  7030. <Expanded>
  7031. -1.0 == Approx( -1.0 )
  7032. </Expanded>
  7033. </Expression>
  7034. <Info>
  7035. Current expected value is -1
  7036. </Info>
  7037. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7038. <Original>
  7039. gen.next()
  7040. </Original>
  7041. <Expanded>
  7042. true
  7043. </Expanded>
  7044. </Expression>
  7045. <Info>
  7046. Current expected value is -0.7
  7047. </Info>
  7048. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7049. <Original>
  7050. gen.get() == Approx(expected)
  7051. </Original>
  7052. <Expanded>
  7053. -0.7 == Approx( -0.7 )
  7054. </Expanded>
  7055. </Expression>
  7056. <Info>
  7057. Current expected value is -0.7
  7058. </Info>
  7059. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7060. <Original>
  7061. gen.next()
  7062. </Original>
  7063. <Expanded>
  7064. true
  7065. </Expanded>
  7066. </Expression>
  7067. <Info>
  7068. Current expected value is -0.4
  7069. </Info>
  7070. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7071. <Original>
  7072. gen.get() == Approx(expected)
  7073. </Original>
  7074. <Expanded>
  7075. -0.4 == Approx( -0.4 )
  7076. </Expanded>
  7077. </Expression>
  7078. <Info>
  7079. Current expected value is -0.4
  7080. </Info>
  7081. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7082. <Original>
  7083. gen.next()
  7084. </Original>
  7085. <Expanded>
  7086. true
  7087. </Expanded>
  7088. </Expression>
  7089. <Info>
  7090. Current expected value is -0.1
  7091. </Info>
  7092. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7093. <Original>
  7094. gen.get() == Approx(expected)
  7095. </Original>
  7096. <Expanded>
  7097. -0.1 == Approx( -0.1 )
  7098. </Expanded>
  7099. </Expression>
  7100. <Info>
  7101. Current expected value is -0.1
  7102. </Info>
  7103. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7104. <Original>
  7105. gen.next()
  7106. </Original>
  7107. <Expanded>
  7108. true
  7109. </Expanded>
  7110. </Expression>
  7111. <Info>
  7112. Current expected value is 0.2
  7113. </Info>
  7114. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7115. <Original>
  7116. gen.get() == Approx(expected)
  7117. </Original>
  7118. <Expanded>
  7119. 0.2 == Approx( 0.2 )
  7120. </Expanded>
  7121. </Expression>
  7122. <Info>
  7123. Current expected value is 0.2
  7124. </Info>
  7125. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7126. <Original>
  7127. gen.next()
  7128. </Original>
  7129. <Expanded>
  7130. true
  7131. </Expanded>
  7132. </Expression>
  7133. <Info>
  7134. Current expected value is 0.5
  7135. </Info>
  7136. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7137. <Original>
  7138. gen.get() == Approx(expected)
  7139. </Original>
  7140. <Expanded>
  7141. 0.5 == Approx( 0.5 )
  7142. </Expanded>
  7143. </Expression>
  7144. <Info>
  7145. Current expected value is 0.5
  7146. </Info>
  7147. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7148. <Original>
  7149. gen.next()
  7150. </Original>
  7151. <Expanded>
  7152. true
  7153. </Expanded>
  7154. </Expression>
  7155. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7156. <Original>
  7157. !(gen.next())
  7158. </Original>
  7159. <Expanded>
  7160. !false
  7161. </Expanded>
  7162. </Expression>
  7163. <OverallResults successes="13" failures="0" expectedFailures="0"/>
  7164. </Section>
  7165. <OverallResults successes="13" failures="0" expectedFailures="0"/>
  7166. </Section>
  7167. <OverallResults successes="13" failures="0" expectedFailures="0"/>
  7168. </Section>
  7169. <OverallResults successes="13" failures="0" expectedFailures="0"/>
  7170. </Section>
  7171. <Section name="Range" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7172. <Section name="Negative manual step" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7173. <Section name="Integer" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7174. <Section name="Exact" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7175. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7176. <Original>
  7177. gen.get() == 5
  7178. </Original>
  7179. <Expanded>
  7180. 5 == 5
  7181. </Expanded>
  7182. </Expression>
  7183. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7184. <Original>
  7185. gen.next()
  7186. </Original>
  7187. <Expanded>
  7188. true
  7189. </Expanded>
  7190. </Expression>
  7191. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7192. <Original>
  7193. gen.get() == 2
  7194. </Original>
  7195. <Expanded>
  7196. 2 == 2
  7197. </Expanded>
  7198. </Expression>
  7199. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7200. <Original>
  7201. gen.next()
  7202. </Original>
  7203. <Expanded>
  7204. true
  7205. </Expanded>
  7206. </Expression>
  7207. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7208. <Original>
  7209. gen.get() == -1
  7210. </Original>
  7211. <Expanded>
  7212. -1 == -1
  7213. </Expanded>
  7214. </Expression>
  7215. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7216. <Original>
  7217. gen.next()
  7218. </Original>
  7219. <Expanded>
  7220. true
  7221. </Expanded>
  7222. </Expression>
  7223. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7224. <Original>
  7225. gen.get() == -4
  7226. </Original>
  7227. <Expanded>
  7228. -4 == -4
  7229. </Expanded>
  7230. </Expression>
  7231. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7232. <Original>
  7233. !(gen.next())
  7234. </Original>
  7235. <Expanded>
  7236. !false
  7237. </Expanded>
  7238. </Expression>
  7239. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  7240. </Section>
  7241. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  7242. </Section>
  7243. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  7244. </Section>
  7245. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  7246. </Section>
  7247. <Section name="Range" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7248. <Section name="Negative manual step" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7249. <Section name="Integer" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7250. <Section name="Slightly over end" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7251. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7252. <Original>
  7253. gen.get() == 5
  7254. </Original>
  7255. <Expanded>
  7256. 5 == 5
  7257. </Expanded>
  7258. </Expression>
  7259. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7260. <Original>
  7261. gen.next()
  7262. </Original>
  7263. <Expanded>
  7264. true
  7265. </Expanded>
  7266. </Expression>
  7267. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7268. <Original>
  7269. gen.get() == 2
  7270. </Original>
  7271. <Expanded>
  7272. 2 == 2
  7273. </Expanded>
  7274. </Expression>
  7275. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7276. <Original>
  7277. gen.next()
  7278. </Original>
  7279. <Expanded>
  7280. true
  7281. </Expanded>
  7282. </Expression>
  7283. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7284. <Original>
  7285. gen.get() == -1
  7286. </Original>
  7287. <Expanded>
  7288. -1 == -1
  7289. </Expanded>
  7290. </Expression>
  7291. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7292. <Original>
  7293. gen.next()
  7294. </Original>
  7295. <Expanded>
  7296. true
  7297. </Expanded>
  7298. </Expression>
  7299. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7300. <Original>
  7301. gen.get() == -4
  7302. </Original>
  7303. <Expanded>
  7304. -4 == -4
  7305. </Expanded>
  7306. </Expression>
  7307. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7308. <Original>
  7309. !(gen.next())
  7310. </Original>
  7311. <Expanded>
  7312. !false
  7313. </Expanded>
  7314. </Expression>
  7315. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  7316. </Section>
  7317. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  7318. </Section>
  7319. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  7320. </Section>
  7321. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  7322. </Section>
  7323. <Section name="Range" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7324. <Section name="Negative manual step" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7325. <Section name="Integer" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7326. <Section name="Slightly under end" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7327. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7328. <Original>
  7329. gen.get() == 5
  7330. </Original>
  7331. <Expanded>
  7332. 5 == 5
  7333. </Expanded>
  7334. </Expression>
  7335. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7336. <Original>
  7337. gen.next()
  7338. </Original>
  7339. <Expanded>
  7340. true
  7341. </Expanded>
  7342. </Expression>
  7343. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7344. <Original>
  7345. gen.get() == 2
  7346. </Original>
  7347. <Expanded>
  7348. 2 == 2
  7349. </Expanded>
  7350. </Expression>
  7351. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7352. <Original>
  7353. gen.next()
  7354. </Original>
  7355. <Expanded>
  7356. true
  7357. </Expanded>
  7358. </Expression>
  7359. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7360. <Original>
  7361. gen.get() == -1
  7362. </Original>
  7363. <Expanded>
  7364. -1 == -1
  7365. </Expanded>
  7366. </Expression>
  7367. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7368. <Original>
  7369. gen.next()
  7370. </Original>
  7371. <Expanded>
  7372. true
  7373. </Expanded>
  7374. </Expression>
  7375. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7376. <Original>
  7377. gen.get() == -4
  7378. </Original>
  7379. <Expanded>
  7380. -4 == -4
  7381. </Expanded>
  7382. </Expression>
  7383. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7384. <Original>
  7385. gen.next()
  7386. </Original>
  7387. <Expanded>
  7388. true
  7389. </Expanded>
  7390. </Expression>
  7391. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7392. <Original>
  7393. gen.get() == -7
  7394. </Original>
  7395. <Expanded>
  7396. -7 == -7
  7397. </Expanded>
  7398. </Expression>
  7399. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/GeneratorsImpl.tests.cpp" >
  7400. <Original>
  7401. !(gen.next())
  7402. </Original>
  7403. <Expanded>
  7404. !false
  7405. </Expanded>
  7406. </Expression>
  7407. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  7408. </Section>
  7409. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  7410. </Section>
  7411. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  7412. </Section>
  7413. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  7414. </Section>
  7415. <OverallResult success="true"/>
  7416. </TestCase>
  7417. <TestCase name="Greater-than inequalities with different epsilons" tags="[Approx]" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  7418. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  7419. <Original>
  7420. d >= Approx( 1.22 )
  7421. </Original>
  7422. <Expanded>
  7423. 1.23 >= Approx( 1.22 )
  7424. </Expanded>
  7425. </Expression>
  7426. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  7427. <Original>
  7428. d >= Approx( 1.23 )
  7429. </Original>
  7430. <Expanded>
  7431. 1.23 >= Approx( 1.23 )
  7432. </Expanded>
  7433. </Expression>
  7434. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  7435. <Original>
  7436. !(d >= Approx( 1.24 ))
  7437. </Original>
  7438. <Expanded>
  7439. !(1.23 >= Approx( 1.24 ))
  7440. </Expanded>
  7441. </Expression>
  7442. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  7443. <Original>
  7444. d >= Approx( 1.24 ).epsilon(0.1)
  7445. </Original>
  7446. <Expanded>
  7447. 1.23 >= Approx( 1.24 )
  7448. </Expanded>
  7449. </Expression>
  7450. <OverallResult success="true"/>
  7451. </TestCase>
  7452. <TestCase name="INFO and WARN do not abort tests" tags="[!hide][.][messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7453. <Info>
  7454. this is a message
  7455. </Info>
  7456. <Warning>
  7457. this is a warning
  7458. </Warning>
  7459. <OverallResult success="false"/>
  7460. </TestCase>
  7461. <TestCase name="INFO gets logged on failure" tags="[!hide][.][failing][messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7462. <Info>
  7463. this message should be logged
  7464. </Info>
  7465. <Info>
  7466. so should this
  7467. </Info>
  7468. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7469. <Original>
  7470. a == 1
  7471. </Original>
  7472. <Expanded>
  7473. 2 == 1
  7474. </Expanded>
  7475. </Expression>
  7476. <OverallResult success="false"/>
  7477. </TestCase>
  7478. <TestCase name="INFO gets logged on failure, even if captured before successful assertions" tags="[!hide][.][failing][messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7479. <Info>
  7480. this message may be logged later
  7481. </Info>
  7482. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7483. <Original>
  7484. a == 2
  7485. </Original>
  7486. <Expanded>
  7487. 2 == 2
  7488. </Expanded>
  7489. </Expression>
  7490. <Info>
  7491. this message may be logged later
  7492. </Info>
  7493. <Info>
  7494. this message should be logged
  7495. </Info>
  7496. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7497. <Original>
  7498. a == 1
  7499. </Original>
  7500. <Expanded>
  7501. 2 == 1
  7502. </Expanded>
  7503. </Expression>
  7504. <Info>
  7505. this message may be logged later
  7506. </Info>
  7507. <Info>
  7508. this message should be logged
  7509. </Info>
  7510. <Info>
  7511. and this, but later
  7512. </Info>
  7513. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7514. <Original>
  7515. a == 0
  7516. </Original>
  7517. <Expanded>
  7518. 2 == 0
  7519. </Expanded>
  7520. </Expression>
  7521. <Info>
  7522. this message may be logged later
  7523. </Info>
  7524. <Info>
  7525. this message should be logged
  7526. </Info>
  7527. <Info>
  7528. and this, but later
  7529. </Info>
  7530. <Info>
  7531. but not this
  7532. </Info>
  7533. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7534. <Original>
  7535. a == 2
  7536. </Original>
  7537. <Expanded>
  7538. 2 == 2
  7539. </Expanded>
  7540. </Expression>
  7541. <OverallResult success="false"/>
  7542. </TestCase>
  7543. <TestCase name="INFO is reset for each loop" tags="[!hide][.][failing][messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7544. <Info>
  7545. current counter 0
  7546. </Info>
  7547. <Info>
  7548. i := 0
  7549. </Info>
  7550. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7551. <Original>
  7552. i &lt; 10
  7553. </Original>
  7554. <Expanded>
  7555. 0 &lt; 10
  7556. </Expanded>
  7557. </Expression>
  7558. <Info>
  7559. current counter 1
  7560. </Info>
  7561. <Info>
  7562. i := 1
  7563. </Info>
  7564. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7565. <Original>
  7566. i &lt; 10
  7567. </Original>
  7568. <Expanded>
  7569. 1 &lt; 10
  7570. </Expanded>
  7571. </Expression>
  7572. <Info>
  7573. current counter 2
  7574. </Info>
  7575. <Info>
  7576. i := 2
  7577. </Info>
  7578. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7579. <Original>
  7580. i &lt; 10
  7581. </Original>
  7582. <Expanded>
  7583. 2 &lt; 10
  7584. </Expanded>
  7585. </Expression>
  7586. <Info>
  7587. current counter 3
  7588. </Info>
  7589. <Info>
  7590. i := 3
  7591. </Info>
  7592. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7593. <Original>
  7594. i &lt; 10
  7595. </Original>
  7596. <Expanded>
  7597. 3 &lt; 10
  7598. </Expanded>
  7599. </Expression>
  7600. <Info>
  7601. current counter 4
  7602. </Info>
  7603. <Info>
  7604. i := 4
  7605. </Info>
  7606. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7607. <Original>
  7608. i &lt; 10
  7609. </Original>
  7610. <Expanded>
  7611. 4 &lt; 10
  7612. </Expanded>
  7613. </Expression>
  7614. <Info>
  7615. current counter 5
  7616. </Info>
  7617. <Info>
  7618. i := 5
  7619. </Info>
  7620. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7621. <Original>
  7622. i &lt; 10
  7623. </Original>
  7624. <Expanded>
  7625. 5 &lt; 10
  7626. </Expanded>
  7627. </Expression>
  7628. <Info>
  7629. current counter 6
  7630. </Info>
  7631. <Info>
  7632. i := 6
  7633. </Info>
  7634. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7635. <Original>
  7636. i &lt; 10
  7637. </Original>
  7638. <Expanded>
  7639. 6 &lt; 10
  7640. </Expanded>
  7641. </Expression>
  7642. <Info>
  7643. current counter 7
  7644. </Info>
  7645. <Info>
  7646. i := 7
  7647. </Info>
  7648. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7649. <Original>
  7650. i &lt; 10
  7651. </Original>
  7652. <Expanded>
  7653. 7 &lt; 10
  7654. </Expanded>
  7655. </Expression>
  7656. <Info>
  7657. current counter 8
  7658. </Info>
  7659. <Info>
  7660. i := 8
  7661. </Info>
  7662. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7663. <Original>
  7664. i &lt; 10
  7665. </Original>
  7666. <Expanded>
  7667. 8 &lt; 10
  7668. </Expanded>
  7669. </Expression>
  7670. <Info>
  7671. current counter 9
  7672. </Info>
  7673. <Info>
  7674. i := 9
  7675. </Info>
  7676. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7677. <Original>
  7678. i &lt; 10
  7679. </Original>
  7680. <Expanded>
  7681. 9 &lt; 10
  7682. </Expanded>
  7683. </Expression>
  7684. <Info>
  7685. current counter 10
  7686. </Info>
  7687. <Info>
  7688. i := 10
  7689. </Info>
  7690. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  7691. <Original>
  7692. i &lt; 10
  7693. </Original>
  7694. <Expanded>
  7695. 10 &lt; 10
  7696. </Expanded>
  7697. </Expression>
  7698. <OverallResult success="false"/>
  7699. </TestCase>
  7700. <TestCase name="Inequality checks that should fail" tags="[!hide][!shouldfail][.][failing]" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7701. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7702. <Original>
  7703. data.int_seven != 7
  7704. </Original>
  7705. <Expanded>
  7706. 7 != 7
  7707. </Expanded>
  7708. </Expression>
  7709. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7710. <Original>
  7711. data.float_nine_point_one != Approx( 9.1f )
  7712. </Original>
  7713. <Expanded>
  7714. 9.1f != Approx( 9.1000003815 )
  7715. </Expanded>
  7716. </Expression>
  7717. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7718. <Original>
  7719. data.double_pi != Approx( 3.1415926535 )
  7720. </Original>
  7721. <Expanded>
  7722. 3.1415926535 != Approx( 3.1415926535 )
  7723. </Expanded>
  7724. </Expression>
  7725. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7726. <Original>
  7727. data.str_hello != "hello"
  7728. </Original>
  7729. <Expanded>
  7730. "hello" != "hello"
  7731. </Expanded>
  7732. </Expression>
  7733. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7734. <Original>
  7735. data.str_hello.size() != 5
  7736. </Original>
  7737. <Expanded>
  7738. 5 != 5
  7739. </Expanded>
  7740. </Expression>
  7741. <OverallResult success="true"/>
  7742. </TestCase>
  7743. <TestCase name="Inequality checks that should succeed" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7744. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7745. <Original>
  7746. data.int_seven != 6
  7747. </Original>
  7748. <Expanded>
  7749. 7 != 6
  7750. </Expanded>
  7751. </Expression>
  7752. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7753. <Original>
  7754. data.int_seven != 8
  7755. </Original>
  7756. <Expanded>
  7757. 7 != 8
  7758. </Expanded>
  7759. </Expression>
  7760. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7761. <Original>
  7762. data.float_nine_point_one != Approx( 9.11f )
  7763. </Original>
  7764. <Expanded>
  7765. 9.1f != Approx( 9.1099996567 )
  7766. </Expanded>
  7767. </Expression>
  7768. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7769. <Original>
  7770. data.float_nine_point_one != Approx( 9.0f )
  7771. </Original>
  7772. <Expanded>
  7773. 9.1f != Approx( 9.0 )
  7774. </Expanded>
  7775. </Expression>
  7776. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7777. <Original>
  7778. data.float_nine_point_one != Approx( 1 )
  7779. </Original>
  7780. <Expanded>
  7781. 9.1f != Approx( 1.0 )
  7782. </Expanded>
  7783. </Expression>
  7784. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7785. <Original>
  7786. data.float_nine_point_one != Approx( 0 )
  7787. </Original>
  7788. <Expanded>
  7789. 9.1f != Approx( 0.0 )
  7790. </Expanded>
  7791. </Expression>
  7792. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7793. <Original>
  7794. data.double_pi != Approx( 3.1415 )
  7795. </Original>
  7796. <Expanded>
  7797. 3.1415926535 != Approx( 3.1415 )
  7798. </Expanded>
  7799. </Expression>
  7800. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7801. <Original>
  7802. data.str_hello != "goodbye"
  7803. </Original>
  7804. <Expanded>
  7805. "hello" != "goodbye"
  7806. </Expanded>
  7807. </Expression>
  7808. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7809. <Original>
  7810. data.str_hello != "hell"
  7811. </Original>
  7812. <Expanded>
  7813. "hello" != "hell"
  7814. </Expanded>
  7815. </Expression>
  7816. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7817. <Original>
  7818. data.str_hello != "hello1"
  7819. </Original>
  7820. <Expanded>
  7821. "hello" != "hello1"
  7822. </Expanded>
  7823. </Expression>
  7824. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  7825. <Original>
  7826. data.str_hello.size() != 6
  7827. </Original>
  7828. <Expanded>
  7829. 5 != 6
  7830. </Expanded>
  7831. </Expression>
  7832. <OverallResult success="true"/>
  7833. </TestCase>
  7834. <TestCase name="Lambdas in assertions" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  7835. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  7836. <Original>
  7837. []() { return true; }()
  7838. </Original>
  7839. <Expanded>
  7840. true
  7841. </Expanded>
  7842. </Expression>
  7843. <OverallResult success="true"/>
  7844. </TestCase>
  7845. <TestCase name="Less-than inequalities with different epsilons" tags="[Approx]" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  7846. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  7847. <Original>
  7848. d &lt;= Approx( 1.24 )
  7849. </Original>
  7850. <Expanded>
  7851. 1.23 &lt;= Approx( 1.24 )
  7852. </Expanded>
  7853. </Expression>
  7854. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  7855. <Original>
  7856. d &lt;= Approx( 1.23 )
  7857. </Original>
  7858. <Expanded>
  7859. 1.23 &lt;= Approx( 1.23 )
  7860. </Expanded>
  7861. </Expression>
  7862. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  7863. <Original>
  7864. !(d &lt;= Approx( 1.22 ))
  7865. </Original>
  7866. <Expanded>
  7867. !(1.23 &lt;= Approx( 1.22 ))
  7868. </Expanded>
  7869. </Expression>
  7870. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  7871. <Original>
  7872. d &lt;= Approx( 1.22 ).epsilon(0.1)
  7873. </Original>
  7874. <Expanded>
  7875. 1.23 &lt;= Approx( 1.22 )
  7876. </Expanded>
  7877. </Expression>
  7878. <OverallResult success="true"/>
  7879. </TestCase>
  7880. <TestCase name="ManuallyRegistered" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  7881. <OverallResult success="true"/>
  7882. </TestCase>
  7883. <TestCase name="Matchers can be (AllOf) composed with the &amp;&amp; operator" tags="[matchers][operator&amp;&amp;][operators]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  7884. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  7885. <Original>
  7886. testStringForMatching(), Contains("string") &amp;&amp; Contains("abc") &amp;&amp; Contains("substring") &amp;&amp; Contains("contains")
  7887. </Original>
  7888. <Expanded>
  7889. "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" and contains: "substring" and contains: "contains" )
  7890. </Expanded>
  7891. </Expression>
  7892. <OverallResult success="true"/>
  7893. </TestCase>
  7894. <TestCase name="Matchers can be (AnyOf) composed with the || operator" tags="[matchers][operators][operator||]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  7895. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  7896. <Original>
  7897. testStringForMatching(), Contains("string") || Contains("different") || Contains("random")
  7898. </Original>
  7899. <Expanded>
  7900. "this string contains 'abc' as a substring" ( contains: "string" or contains: "different" or contains: "random" )
  7901. </Expanded>
  7902. </Expression>
  7903. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  7904. <Original>
  7905. testStringForMatching2(), Contains("string") || Contains("different") || Contains("random")
  7906. </Original>
  7907. <Expanded>
  7908. "some completely different text that contains one common word" ( contains: "string" or contains: "different" or contains: "random" )
  7909. </Expanded>
  7910. </Expression>
  7911. <OverallResult success="true"/>
  7912. </TestCase>
  7913. <TestCase name="Matchers can be composed with both &amp;&amp; and ||" tags="[matchers][operator&amp;&amp;][operators][operator||]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  7914. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  7915. <Original>
  7916. testStringForMatching(), (Contains("string") || Contains("different")) &amp;&amp; Contains("substring")
  7917. </Original>
  7918. <Expanded>
  7919. "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "substring" )
  7920. </Expanded>
  7921. </Expression>
  7922. <OverallResult success="true"/>
  7923. </TestCase>
  7924. <TestCase name="Matchers can be composed with both &amp;&amp; and || - failing" tags="[!hide][.][failing][matchers][operator&amp;&amp;][operators][operator||]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  7925. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  7926. <Original>
  7927. testStringForMatching(), (Contains("string") || Contains("different")) &amp;&amp; Contains("random")
  7928. </Original>
  7929. <Expanded>
  7930. "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "random" )
  7931. </Expanded>
  7932. </Expression>
  7933. <OverallResult success="false"/>
  7934. </TestCase>
  7935. <TestCase name="Matchers can be negated (Not) with the ! operator" tags="[matchers][not][operators]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  7936. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  7937. <Original>
  7938. testStringForMatching(), !Contains("different")
  7939. </Original>
  7940. <Expanded>
  7941. "this string contains 'abc' as a substring" not contains: "different"
  7942. </Expanded>
  7943. </Expression>
  7944. <OverallResult success="true"/>
  7945. </TestCase>
  7946. <TestCase name="Matchers can be negated (Not) with the ! operator - failing" tags="[!hide][.][failing][matchers][not][operators]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  7947. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  7948. <Original>
  7949. testStringForMatching(), !Contains("substring")
  7950. </Original>
  7951. <Expanded>
  7952. "this string contains 'abc' as a substring" not contains: "substring"
  7953. </Expanded>
  7954. </Expression>
  7955. <OverallResult success="false"/>
  7956. </TestCase>
  7957. <TestCase name="Mismatching exception messages failing the test" tags="[!hide][!throws][.][failing]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  7958. <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  7959. <Original>
  7960. thisThrows(), "expected exception"
  7961. </Original>
  7962. <Expanded>
  7963. "expected exception" equals: "expected exception"
  7964. </Expanded>
  7965. </Expression>
  7966. <Expression success="false" type="REQUIRE_THROWS_WITH" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  7967. <Original>
  7968. thisThrows(), "should fail"
  7969. </Original>
  7970. <Expanded>
  7971. "expected exception" equals: "should fail"
  7972. </Expanded>
  7973. </Expression>
  7974. <OverallResult success="false"/>
  7975. </TestCase>
  7976. <TestCase name="Nested generators and captured variables" tags="[generators]" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  7977. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  7978. <Original>
  7979. values > -6
  7980. </Original>
  7981. <Expanded>
  7982. 3 > -6
  7983. </Expanded>
  7984. </Expression>
  7985. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  7986. <Original>
  7987. values > -6
  7988. </Original>
  7989. <Expanded>
  7990. 4 > -6
  7991. </Expanded>
  7992. </Expression>
  7993. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  7994. <Original>
  7995. values > -6
  7996. </Original>
  7997. <Expanded>
  7998. 5 > -6
  7999. </Expanded>
  8000. </Expression>
  8001. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  8002. <Original>
  8003. values > -6
  8004. </Original>
  8005. <Expanded>
  8006. 6 > -6
  8007. </Expanded>
  8008. </Expression>
  8009. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  8010. <Original>
  8011. values > -6
  8012. </Original>
  8013. <Expanded>
  8014. -5 > -6
  8015. </Expanded>
  8016. </Expression>
  8017. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  8018. <Original>
  8019. values > -6
  8020. </Original>
  8021. <Expanded>
  8022. -4 > -6
  8023. </Expanded>
  8024. </Expression>
  8025. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  8026. <Original>
  8027. values > -6
  8028. </Original>
  8029. <Expanded>
  8030. 90 > -6
  8031. </Expanded>
  8032. </Expression>
  8033. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  8034. <Original>
  8035. values > -6
  8036. </Original>
  8037. <Expanded>
  8038. 91 > -6
  8039. </Expanded>
  8040. </Expression>
  8041. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  8042. <Original>
  8043. values > -6
  8044. </Original>
  8045. <Expanded>
  8046. 92 > -6
  8047. </Expanded>
  8048. </Expression>
  8049. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  8050. <Original>
  8051. values > -6
  8052. </Original>
  8053. <Expanded>
  8054. 93 > -6
  8055. </Expanded>
  8056. </Expression>
  8057. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  8058. <Original>
  8059. values > -6
  8060. </Original>
  8061. <Expanded>
  8062. 94 > -6
  8063. </Expanded>
  8064. </Expression>
  8065. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  8066. <Original>
  8067. values > -6
  8068. </Original>
  8069. <Expanded>
  8070. 95 > -6
  8071. </Expanded>
  8072. </Expression>
  8073. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  8074. <Original>
  8075. values > -6
  8076. </Original>
  8077. <Expanded>
  8078. 96 > -6
  8079. </Expanded>
  8080. </Expression>
  8081. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  8082. <Original>
  8083. values > -6
  8084. </Original>
  8085. <Expanded>
  8086. 97 > -6
  8087. </Expanded>
  8088. </Expression>
  8089. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  8090. <Original>
  8091. values > -6
  8092. </Original>
  8093. <Expanded>
  8094. 98 > -6
  8095. </Expanded>
  8096. </Expression>
  8097. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  8098. <Original>
  8099. values > -6
  8100. </Original>
  8101. <Expanded>
  8102. 99 > -6
  8103. </Expanded>
  8104. </Expression>
  8105. <OverallResult success="true"/>
  8106. </TestCase>
  8107. <TestCase name="Nice descriptive name" tags="[!hide][.][tag1][tag2][tag3]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  8108. <Warning>
  8109. This one ran
  8110. </Warning>
  8111. <OverallResult success="false"/>
  8112. </TestCase>
  8113. <TestCase name="Non-std exceptions can be translated" tags="[!hide][!throws][.][failing]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  8114. <Exception filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  8115. custom exception
  8116. </Exception>
  8117. <OverallResult success="false"/>
  8118. </TestCase>
  8119. <TestCase name="Objects that evaluated in boolean contexts can be checked" tags="[SafeBool][Tricky]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  8120. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  8121. <Original>
  8122. True
  8123. </Original>
  8124. <Expanded>
  8125. {?}
  8126. </Expanded>
  8127. </Expression>
  8128. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  8129. <Original>
  8130. !False
  8131. </Original>
  8132. <Expanded>
  8133. true
  8134. </Expanded>
  8135. </Expression>
  8136. <Expression success="true" type="CHECK_FALSE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  8137. <Original>
  8138. !(False)
  8139. </Original>
  8140. <Expanded>
  8141. !{?}
  8142. </Expanded>
  8143. </Expression>
  8144. <OverallResult success="true"/>
  8145. </TestCase>
  8146. <TestCase name="Optionally static assertions" tags="[compilation]" filename="projects/<exe-name>/UsageTests/Compilation.tests.cpp" >
  8147. <OverallResult success="true"/>
  8148. </TestCase>
  8149. <TestCase name="Ordering comparison checks that should fail" tags="[!hide][.][failing]" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8150. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8151. <Original>
  8152. data.int_seven > 7
  8153. </Original>
  8154. <Expanded>
  8155. 7 > 7
  8156. </Expanded>
  8157. </Expression>
  8158. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8159. <Original>
  8160. data.int_seven &lt; 7
  8161. </Original>
  8162. <Expanded>
  8163. 7 &lt; 7
  8164. </Expanded>
  8165. </Expression>
  8166. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8167. <Original>
  8168. data.int_seven > 8
  8169. </Original>
  8170. <Expanded>
  8171. 7 > 8
  8172. </Expanded>
  8173. </Expression>
  8174. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8175. <Original>
  8176. data.int_seven &lt; 6
  8177. </Original>
  8178. <Expanded>
  8179. 7 &lt; 6
  8180. </Expanded>
  8181. </Expression>
  8182. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8183. <Original>
  8184. data.int_seven &lt; 0
  8185. </Original>
  8186. <Expanded>
  8187. 7 &lt; 0
  8188. </Expanded>
  8189. </Expression>
  8190. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8191. <Original>
  8192. data.int_seven &lt; -1
  8193. </Original>
  8194. <Expanded>
  8195. 7 &lt; -1
  8196. </Expanded>
  8197. </Expression>
  8198. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8199. <Original>
  8200. data.int_seven >= 8
  8201. </Original>
  8202. <Expanded>
  8203. 7 >= 8
  8204. </Expanded>
  8205. </Expression>
  8206. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8207. <Original>
  8208. data.int_seven &lt;= 6
  8209. </Original>
  8210. <Expanded>
  8211. 7 &lt;= 6
  8212. </Expanded>
  8213. </Expression>
  8214. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8215. <Original>
  8216. data.float_nine_point_one &lt; 9
  8217. </Original>
  8218. <Expanded>
  8219. 9.1f &lt; 9
  8220. </Expanded>
  8221. </Expression>
  8222. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8223. <Original>
  8224. data.float_nine_point_one > 10
  8225. </Original>
  8226. <Expanded>
  8227. 9.1f > 10
  8228. </Expanded>
  8229. </Expression>
  8230. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8231. <Original>
  8232. data.float_nine_point_one > 9.2
  8233. </Original>
  8234. <Expanded>
  8235. 9.1f > 9.2
  8236. </Expanded>
  8237. </Expression>
  8238. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8239. <Original>
  8240. data.str_hello > "hello"
  8241. </Original>
  8242. <Expanded>
  8243. "hello" > "hello"
  8244. </Expanded>
  8245. </Expression>
  8246. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8247. <Original>
  8248. data.str_hello &lt; "hello"
  8249. </Original>
  8250. <Expanded>
  8251. "hello" &lt; "hello"
  8252. </Expanded>
  8253. </Expression>
  8254. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8255. <Original>
  8256. data.str_hello > "hellp"
  8257. </Original>
  8258. <Expanded>
  8259. "hello" > "hellp"
  8260. </Expanded>
  8261. </Expression>
  8262. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8263. <Original>
  8264. data.str_hello > "z"
  8265. </Original>
  8266. <Expanded>
  8267. "hello" > "z"
  8268. </Expanded>
  8269. </Expression>
  8270. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8271. <Original>
  8272. data.str_hello &lt; "hellm"
  8273. </Original>
  8274. <Expanded>
  8275. "hello" &lt; "hellm"
  8276. </Expanded>
  8277. </Expression>
  8278. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8279. <Original>
  8280. data.str_hello &lt; "a"
  8281. </Original>
  8282. <Expanded>
  8283. "hello" &lt; "a"
  8284. </Expanded>
  8285. </Expression>
  8286. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8287. <Original>
  8288. data.str_hello >= "z"
  8289. </Original>
  8290. <Expanded>
  8291. "hello" >= "z"
  8292. </Expanded>
  8293. </Expression>
  8294. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8295. <Original>
  8296. data.str_hello &lt;= "a"
  8297. </Original>
  8298. <Expanded>
  8299. "hello" &lt;= "a"
  8300. </Expanded>
  8301. </Expression>
  8302. <OverallResult success="false"/>
  8303. </TestCase>
  8304. <TestCase name="Ordering comparison checks that should succeed" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8305. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8306. <Original>
  8307. data.int_seven &lt; 8
  8308. </Original>
  8309. <Expanded>
  8310. 7 &lt; 8
  8311. </Expanded>
  8312. </Expression>
  8313. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8314. <Original>
  8315. data.int_seven > 6
  8316. </Original>
  8317. <Expanded>
  8318. 7 > 6
  8319. </Expanded>
  8320. </Expression>
  8321. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8322. <Original>
  8323. data.int_seven > 0
  8324. </Original>
  8325. <Expanded>
  8326. 7 > 0
  8327. </Expanded>
  8328. </Expression>
  8329. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8330. <Original>
  8331. data.int_seven > -1
  8332. </Original>
  8333. <Expanded>
  8334. 7 > -1
  8335. </Expanded>
  8336. </Expression>
  8337. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8338. <Original>
  8339. data.int_seven >= 7
  8340. </Original>
  8341. <Expanded>
  8342. 7 >= 7
  8343. </Expanded>
  8344. </Expression>
  8345. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8346. <Original>
  8347. data.int_seven >= 6
  8348. </Original>
  8349. <Expanded>
  8350. 7 >= 6
  8351. </Expanded>
  8352. </Expression>
  8353. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8354. <Original>
  8355. data.int_seven &lt;= 7
  8356. </Original>
  8357. <Expanded>
  8358. 7 &lt;= 7
  8359. </Expanded>
  8360. </Expression>
  8361. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8362. <Original>
  8363. data.int_seven &lt;= 8
  8364. </Original>
  8365. <Expanded>
  8366. 7 &lt;= 8
  8367. </Expanded>
  8368. </Expression>
  8369. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8370. <Original>
  8371. data.float_nine_point_one > 9
  8372. </Original>
  8373. <Expanded>
  8374. 9.1f > 9
  8375. </Expanded>
  8376. </Expression>
  8377. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8378. <Original>
  8379. data.float_nine_point_one &lt; 10
  8380. </Original>
  8381. <Expanded>
  8382. 9.1f &lt; 10
  8383. </Expanded>
  8384. </Expression>
  8385. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8386. <Original>
  8387. data.float_nine_point_one &lt; 9.2
  8388. </Original>
  8389. <Expanded>
  8390. 9.1f &lt; 9.2
  8391. </Expanded>
  8392. </Expression>
  8393. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8394. <Original>
  8395. data.str_hello &lt;= "hello"
  8396. </Original>
  8397. <Expanded>
  8398. "hello" &lt;= "hello"
  8399. </Expanded>
  8400. </Expression>
  8401. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8402. <Original>
  8403. data.str_hello >= "hello"
  8404. </Original>
  8405. <Expanded>
  8406. "hello" >= "hello"
  8407. </Expanded>
  8408. </Expression>
  8409. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8410. <Original>
  8411. data.str_hello &lt; "hellp"
  8412. </Original>
  8413. <Expanded>
  8414. "hello" &lt; "hellp"
  8415. </Expanded>
  8416. </Expression>
  8417. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8418. <Original>
  8419. data.str_hello &lt; "zebra"
  8420. </Original>
  8421. <Expanded>
  8422. "hello" &lt; "zebra"
  8423. </Expanded>
  8424. </Expression>
  8425. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8426. <Original>
  8427. data.str_hello > "hellm"
  8428. </Original>
  8429. <Expanded>
  8430. "hello" > "hellm"
  8431. </Expanded>
  8432. </Expression>
  8433. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  8434. <Original>
  8435. data.str_hello > "a"
  8436. </Original>
  8437. <Expanded>
  8438. "hello" > "a"
  8439. </Expanded>
  8440. </Expression>
  8441. <OverallResult success="true"/>
  8442. </TestCase>
  8443. <TestCase name="Our PCG implementation provides expected results for known seeds" tags="[rng]" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8444. <Section name="Default seeded" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8445. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8446. <Original>
  8447. rng() == 0x<hex digits>
  8448. </Original>
  8449. <Expanded>
  8450. 4242248763 (0x<hex digits>)
  8451. ==
  8452. 4242248763 (0x<hex digits>)
  8453. </Expanded>
  8454. </Expression>
  8455. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8456. <Original>
  8457. rng() == 0x<hex digits>
  8458. </Original>
  8459. <Expanded>
  8460. 1867888929 (0x<hex digits>)
  8461. ==
  8462. 1867888929 (0x<hex digits>)
  8463. </Expanded>
  8464. </Expression>
  8465. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8466. <Original>
  8467. rng() == 0x<hex digits>
  8468. </Original>
  8469. <Expanded>
  8470. 1276619030 (0x<hex digits>)
  8471. ==
  8472. 1276619030 (0x<hex digits>)
  8473. </Expanded>
  8474. </Expression>
  8475. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8476. <Original>
  8477. rng() == 0x<hex digits>
  8478. </Original>
  8479. <Expanded>
  8480. 1911218783 (0x<hex digits>)
  8481. ==
  8482. 1911218783 (0x<hex digits>)
  8483. </Expanded>
  8484. </Expression>
  8485. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8486. <Original>
  8487. rng() == 0x<hex digits>
  8488. </Original>
  8489. <Expanded>
  8490. 1827115164 (0x<hex digits>)
  8491. ==
  8492. 1827115164 (0x<hex digits>)
  8493. </Expanded>
  8494. </Expression>
  8495. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  8496. </Section>
  8497. <Section name="Specific seed" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8498. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8499. <Original>
  8500. rng() == 0x<hex digits>
  8501. </Original>
  8502. <Expanded>
  8503. 1472234645 (0x<hex digits>)
  8504. ==
  8505. 1472234645 (0x<hex digits>)
  8506. </Expanded>
  8507. </Expression>
  8508. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8509. <Original>
  8510. rng() == 0x<hex digits>
  8511. </Original>
  8512. <Expanded>
  8513. 868832940 (0x<hex digits>)
  8514. ==
  8515. 868832940 (0x<hex digits>)
  8516. </Expanded>
  8517. </Expression>
  8518. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8519. <Original>
  8520. rng() == 0x<hex digits>
  8521. </Original>
  8522. <Expanded>
  8523. 570883446 (0x<hex digits>)
  8524. ==
  8525. 570883446 (0x<hex digits>)
  8526. </Expanded>
  8527. </Expression>
  8528. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8529. <Original>
  8530. rng() == 0x<hex digits>
  8531. </Original>
  8532. <Expanded>
  8533. 889299803 (0x<hex digits>)
  8534. ==
  8535. 889299803 (0x<hex digits>)
  8536. </Expanded>
  8537. </Expression>
  8538. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8539. <Original>
  8540. rng() == 0x<hex digits>
  8541. </Original>
  8542. <Expanded>
  8543. 4261393167 (0x<hex digits>)
  8544. ==
  8545. 4261393167 (0x<hex digits>)
  8546. </Expanded>
  8547. </Expression>
  8548. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8549. <Original>
  8550. rng() == 0x<hex digits>
  8551. </Original>
  8552. <Expanded>
  8553. 1472234645 (0x<hex digits>)
  8554. ==
  8555. 1472234645 (0x<hex digits>)
  8556. </Expanded>
  8557. </Expression>
  8558. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8559. <Original>
  8560. rng() == 0x<hex digits>
  8561. </Original>
  8562. <Expanded>
  8563. 868832940 (0x<hex digits>)
  8564. ==
  8565. 868832940 (0x<hex digits>)
  8566. </Expanded>
  8567. </Expression>
  8568. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8569. <Original>
  8570. rng() == 0x<hex digits>
  8571. </Original>
  8572. <Expanded>
  8573. 570883446 (0x<hex digits>)
  8574. ==
  8575. 570883446 (0x<hex digits>)
  8576. </Expanded>
  8577. </Expression>
  8578. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8579. <Original>
  8580. rng() == 0x<hex digits>
  8581. </Original>
  8582. <Expanded>
  8583. 889299803 (0x<hex digits>)
  8584. ==
  8585. 889299803 (0x<hex digits>)
  8586. </Expanded>
  8587. </Expression>
  8588. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/RandomNumberGeneration.tests.cpp" >
  8589. <Original>
  8590. rng() == 0x<hex digits>
  8591. </Original>
  8592. <Expanded>
  8593. 4261393167 (0x<hex digits>)
  8594. ==
  8595. 4261393167 (0x<hex digits>)
  8596. </Expanded>
  8597. </Expression>
  8598. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  8599. </Section>
  8600. <OverallResult success="true"/>
  8601. </TestCase>
  8602. <TestCase name="Output from all sections is reported" tags="[!hide][.][failing][messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  8603. <Section name="one" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  8604. <Failure filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  8605. Message from section one
  8606. </Failure>
  8607. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  8608. </Section>
  8609. <Section name="two" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  8610. <Failure filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  8611. Message from section two
  8612. </Failure>
  8613. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  8614. </Section>
  8615. <OverallResult success="false"/>
  8616. </TestCase>
  8617. <TestCase name="Parse test names and tags" tags="[command-line][test-spec]" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8618. <Section name="Empty test spec should have no filters" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8619. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8620. <Original>
  8621. spec.hasFilters() == false
  8622. </Original>
  8623. <Expanded>
  8624. false == false
  8625. </Expanded>
  8626. </Expression>
  8627. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8628. <Original>
  8629. spec.matches( tcA ) == false
  8630. </Original>
  8631. <Expanded>
  8632. false == false
  8633. </Expanded>
  8634. </Expression>
  8635. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8636. <Original>
  8637. spec.matches( tcB ) == false
  8638. </Original>
  8639. <Expanded>
  8640. false == false
  8641. </Expanded>
  8642. </Expression>
  8643. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  8644. </Section>
  8645. <Section name="Test spec from empty string should have no filters" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8646. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8647. <Original>
  8648. spec.hasFilters() == false
  8649. </Original>
  8650. <Expanded>
  8651. false == false
  8652. </Expanded>
  8653. </Expression>
  8654. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8655. <Original>
  8656. spec.matches(tcA ) == false
  8657. </Original>
  8658. <Expanded>
  8659. false == false
  8660. </Expanded>
  8661. </Expression>
  8662. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8663. <Original>
  8664. spec.matches( tcB ) == false
  8665. </Original>
  8666. <Expanded>
  8667. false == false
  8668. </Expanded>
  8669. </Expression>
  8670. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  8671. </Section>
  8672. <Section name="Test spec from just a comma should have no filters" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8673. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8674. <Original>
  8675. spec.hasFilters() == false
  8676. </Original>
  8677. <Expanded>
  8678. false == false
  8679. </Expanded>
  8680. </Expression>
  8681. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8682. <Original>
  8683. spec.matches( tcA ) == false
  8684. </Original>
  8685. <Expanded>
  8686. false == false
  8687. </Expanded>
  8688. </Expression>
  8689. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8690. <Original>
  8691. spec.matches( tcB ) == false
  8692. </Original>
  8693. <Expanded>
  8694. false == false
  8695. </Expanded>
  8696. </Expression>
  8697. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  8698. </Section>
  8699. <Section name="Test spec from name should have one filter" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8700. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8701. <Original>
  8702. spec.hasFilters() == true
  8703. </Original>
  8704. <Expanded>
  8705. true == true
  8706. </Expanded>
  8707. </Expression>
  8708. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8709. <Original>
  8710. spec.matches( tcA ) == false
  8711. </Original>
  8712. <Expanded>
  8713. false == false
  8714. </Expanded>
  8715. </Expression>
  8716. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8717. <Original>
  8718. spec.matches( tcB ) == true
  8719. </Original>
  8720. <Expanded>
  8721. true == true
  8722. </Expanded>
  8723. </Expression>
  8724. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  8725. </Section>
  8726. <Section name="Test spec from quoted name should have one filter" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8727. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8728. <Original>
  8729. spec.hasFilters() == true
  8730. </Original>
  8731. <Expanded>
  8732. true == true
  8733. </Expanded>
  8734. </Expression>
  8735. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8736. <Original>
  8737. spec.matches( tcA ) == false
  8738. </Original>
  8739. <Expanded>
  8740. false == false
  8741. </Expanded>
  8742. </Expression>
  8743. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8744. <Original>
  8745. spec.matches( tcB ) == true
  8746. </Original>
  8747. <Expanded>
  8748. true == true
  8749. </Expanded>
  8750. </Expression>
  8751. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  8752. </Section>
  8753. <Section name="Test spec from name should have one filter" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8754. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8755. <Original>
  8756. spec.hasFilters() == true
  8757. </Original>
  8758. <Expanded>
  8759. true == true
  8760. </Expanded>
  8761. </Expression>
  8762. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8763. <Original>
  8764. spec.matches( tcA ) == false
  8765. </Original>
  8766. <Expanded>
  8767. false == false
  8768. </Expanded>
  8769. </Expression>
  8770. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8771. <Original>
  8772. spec.matches( tcB ) == true
  8773. </Original>
  8774. <Expanded>
  8775. true == true
  8776. </Expanded>
  8777. </Expression>
  8778. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8779. <Original>
  8780. spec.matches( tcC ) == false
  8781. </Original>
  8782. <Expanded>
  8783. false == false
  8784. </Expanded>
  8785. </Expression>
  8786. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  8787. </Section>
  8788. <Section name="Wildcard at the start" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8789. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8790. <Original>
  8791. spec.hasFilters() == true
  8792. </Original>
  8793. <Expanded>
  8794. true == true
  8795. </Expanded>
  8796. </Expression>
  8797. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8798. <Original>
  8799. spec.matches( tcA ) == false
  8800. </Original>
  8801. <Expanded>
  8802. false == false
  8803. </Expanded>
  8804. </Expression>
  8805. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8806. <Original>
  8807. spec.matches( tcB ) == false
  8808. </Original>
  8809. <Expanded>
  8810. false == false
  8811. </Expanded>
  8812. </Expression>
  8813. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8814. <Original>
  8815. spec.matches( tcC ) == true
  8816. </Original>
  8817. <Expanded>
  8818. true == true
  8819. </Expanded>
  8820. </Expression>
  8821. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8822. <Original>
  8823. spec.matches( tcD ) == false
  8824. </Original>
  8825. <Expanded>
  8826. false == false
  8827. </Expanded>
  8828. </Expression>
  8829. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8830. <Original>
  8831. parseTestSpec( "*a" ).matches( tcA ) == true
  8832. </Original>
  8833. <Expanded>
  8834. true == true
  8835. </Expanded>
  8836. </Expression>
  8837. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  8838. </Section>
  8839. <Section name="Wildcard at the end" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8840. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8841. <Original>
  8842. spec.hasFilters() == true
  8843. </Original>
  8844. <Expanded>
  8845. true == true
  8846. </Expanded>
  8847. </Expression>
  8848. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8849. <Original>
  8850. spec.matches( tcA ) == false
  8851. </Original>
  8852. <Expanded>
  8853. false == false
  8854. </Expanded>
  8855. </Expression>
  8856. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8857. <Original>
  8858. spec.matches( tcB ) == false
  8859. </Original>
  8860. <Expanded>
  8861. false == false
  8862. </Expanded>
  8863. </Expression>
  8864. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8865. <Original>
  8866. spec.matches( tcC ) == true
  8867. </Original>
  8868. <Expanded>
  8869. true == true
  8870. </Expanded>
  8871. </Expression>
  8872. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8873. <Original>
  8874. spec.matches( tcD ) == false
  8875. </Original>
  8876. <Expanded>
  8877. false == false
  8878. </Expanded>
  8879. </Expression>
  8880. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8881. <Original>
  8882. parseTestSpec( "a*" ).matches( tcA ) == true
  8883. </Original>
  8884. <Expanded>
  8885. true == true
  8886. </Expanded>
  8887. </Expression>
  8888. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  8889. </Section>
  8890. <Section name="Wildcard at both ends" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8891. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8892. <Original>
  8893. spec.hasFilters() == true
  8894. </Original>
  8895. <Expanded>
  8896. true == true
  8897. </Expanded>
  8898. </Expression>
  8899. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8900. <Original>
  8901. spec.matches( tcA ) == false
  8902. </Original>
  8903. <Expanded>
  8904. false == false
  8905. </Expanded>
  8906. </Expression>
  8907. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8908. <Original>
  8909. spec.matches( tcB ) == false
  8910. </Original>
  8911. <Expanded>
  8912. false == false
  8913. </Expanded>
  8914. </Expression>
  8915. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8916. <Original>
  8917. spec.matches( tcC ) == true
  8918. </Original>
  8919. <Expanded>
  8920. true == true
  8921. </Expanded>
  8922. </Expression>
  8923. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8924. <Original>
  8925. spec.matches( tcD ) == true
  8926. </Original>
  8927. <Expanded>
  8928. true == true
  8929. </Expanded>
  8930. </Expression>
  8931. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8932. <Original>
  8933. parseTestSpec( "*a*" ).matches( tcA ) == true
  8934. </Original>
  8935. <Expanded>
  8936. true == true
  8937. </Expanded>
  8938. </Expression>
  8939. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  8940. </Section>
  8941. <Section name="Redundant wildcard at the start" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8942. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8943. <Original>
  8944. spec.hasFilters() == true
  8945. </Original>
  8946. <Expanded>
  8947. true == true
  8948. </Expanded>
  8949. </Expression>
  8950. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8951. <Original>
  8952. spec.matches( tcA ) == true
  8953. </Original>
  8954. <Expanded>
  8955. true == true
  8956. </Expanded>
  8957. </Expression>
  8958. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8959. <Original>
  8960. spec.matches( tcB ) == false
  8961. </Original>
  8962. <Expanded>
  8963. false == false
  8964. </Expanded>
  8965. </Expression>
  8966. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  8967. </Section>
  8968. <Section name="Redundant wildcard at the end" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8969. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8970. <Original>
  8971. spec.hasFilters() == true
  8972. </Original>
  8973. <Expanded>
  8974. true == true
  8975. </Expanded>
  8976. </Expression>
  8977. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8978. <Original>
  8979. spec.matches( tcA ) == true
  8980. </Original>
  8981. <Expanded>
  8982. true == true
  8983. </Expanded>
  8984. </Expression>
  8985. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8986. <Original>
  8987. spec.matches( tcB ) == false
  8988. </Original>
  8989. <Expanded>
  8990. false == false
  8991. </Expanded>
  8992. </Expression>
  8993. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  8994. </Section>
  8995. <Section name="Redundant wildcard at both ends" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8996. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  8997. <Original>
  8998. spec.hasFilters() == true
  8999. </Original>
  9000. <Expanded>
  9001. true == true
  9002. </Expanded>
  9003. </Expression>
  9004. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9005. <Original>
  9006. spec.matches( tcA ) == true
  9007. </Original>
  9008. <Expanded>
  9009. true == true
  9010. </Expanded>
  9011. </Expression>
  9012. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9013. <Original>
  9014. spec.matches( tcB ) == false
  9015. </Original>
  9016. <Expanded>
  9017. false == false
  9018. </Expanded>
  9019. </Expression>
  9020. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  9021. </Section>
  9022. <Section name="Wildcard at both ends, redundant at start" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9023. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9024. <Original>
  9025. spec.hasFilters() == true
  9026. </Original>
  9027. <Expanded>
  9028. true == true
  9029. </Expanded>
  9030. </Expression>
  9031. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9032. <Original>
  9033. spec.matches( tcA ) == false
  9034. </Original>
  9035. <Expanded>
  9036. false == false
  9037. </Expanded>
  9038. </Expression>
  9039. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9040. <Original>
  9041. spec.matches( tcB ) == false
  9042. </Original>
  9043. <Expanded>
  9044. false == false
  9045. </Expanded>
  9046. </Expression>
  9047. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9048. <Original>
  9049. spec.matches( tcC ) == true
  9050. </Original>
  9051. <Expanded>
  9052. true == true
  9053. </Expanded>
  9054. </Expression>
  9055. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9056. <Original>
  9057. spec.matches( tcD ) == true
  9058. </Original>
  9059. <Expanded>
  9060. true == true
  9061. </Expanded>
  9062. </Expression>
  9063. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  9064. </Section>
  9065. <Section name="Just wildcard" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9066. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9067. <Original>
  9068. spec.hasFilters() == true
  9069. </Original>
  9070. <Expanded>
  9071. true == true
  9072. </Expanded>
  9073. </Expression>
  9074. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9075. <Original>
  9076. spec.matches( tcA ) == true
  9077. </Original>
  9078. <Expanded>
  9079. true == true
  9080. </Expanded>
  9081. </Expression>
  9082. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9083. <Original>
  9084. spec.matches( tcB ) == true
  9085. </Original>
  9086. <Expanded>
  9087. true == true
  9088. </Expanded>
  9089. </Expression>
  9090. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9091. <Original>
  9092. spec.matches( tcC ) == true
  9093. </Original>
  9094. <Expanded>
  9095. true == true
  9096. </Expanded>
  9097. </Expression>
  9098. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9099. <Original>
  9100. spec.matches( tcD ) == true
  9101. </Original>
  9102. <Expanded>
  9103. true == true
  9104. </Expanded>
  9105. </Expression>
  9106. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  9107. </Section>
  9108. <Section name="Single tag" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9109. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9110. <Original>
  9111. spec.hasFilters() == true
  9112. </Original>
  9113. <Expanded>
  9114. true == true
  9115. </Expanded>
  9116. </Expression>
  9117. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9118. <Original>
  9119. spec.matches( tcA ) == false
  9120. </Original>
  9121. <Expanded>
  9122. false == false
  9123. </Expanded>
  9124. </Expression>
  9125. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9126. <Original>
  9127. spec.matches( tcB ) == true
  9128. </Original>
  9129. <Expanded>
  9130. true == true
  9131. </Expanded>
  9132. </Expression>
  9133. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9134. <Original>
  9135. spec.matches( tcC ) == false
  9136. </Original>
  9137. <Expanded>
  9138. false == false
  9139. </Expanded>
  9140. </Expression>
  9141. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  9142. </Section>
  9143. <Section name="Single tag, two matches" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9144. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9145. <Original>
  9146. spec.hasFilters() == true
  9147. </Original>
  9148. <Expanded>
  9149. true == true
  9150. </Expanded>
  9151. </Expression>
  9152. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9153. <Original>
  9154. spec.matches( tcA ) == false
  9155. </Original>
  9156. <Expanded>
  9157. false == false
  9158. </Expanded>
  9159. </Expression>
  9160. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9161. <Original>
  9162. spec.matches( tcB ) == true
  9163. </Original>
  9164. <Expanded>
  9165. true == true
  9166. </Expanded>
  9167. </Expression>
  9168. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9169. <Original>
  9170. spec.matches( tcC ) == true
  9171. </Original>
  9172. <Expanded>
  9173. true == true
  9174. </Expanded>
  9175. </Expression>
  9176. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  9177. </Section>
  9178. <Section name="Two tags" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9179. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9180. <Original>
  9181. spec.hasFilters() == true
  9182. </Original>
  9183. <Expanded>
  9184. true == true
  9185. </Expanded>
  9186. </Expression>
  9187. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9188. <Original>
  9189. spec.matches( tcA ) == false
  9190. </Original>
  9191. <Expanded>
  9192. false == false
  9193. </Expanded>
  9194. </Expression>
  9195. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9196. <Original>
  9197. spec.matches( tcB ) == false
  9198. </Original>
  9199. <Expanded>
  9200. false == false
  9201. </Expanded>
  9202. </Expression>
  9203. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9204. <Original>
  9205. spec.matches( tcC ) == true
  9206. </Original>
  9207. <Expanded>
  9208. true == true
  9209. </Expanded>
  9210. </Expression>
  9211. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  9212. </Section>
  9213. <Section name="Two tags, spare separated" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9214. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9215. <Original>
  9216. spec.hasFilters() == true
  9217. </Original>
  9218. <Expanded>
  9219. true == true
  9220. </Expanded>
  9221. </Expression>
  9222. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9223. <Original>
  9224. spec.matches( tcA ) == false
  9225. </Original>
  9226. <Expanded>
  9227. false == false
  9228. </Expanded>
  9229. </Expression>
  9230. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9231. <Original>
  9232. spec.matches( tcB ) == false
  9233. </Original>
  9234. <Expanded>
  9235. false == false
  9236. </Expanded>
  9237. </Expression>
  9238. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9239. <Original>
  9240. spec.matches( tcC ) == true
  9241. </Original>
  9242. <Expanded>
  9243. true == true
  9244. </Expanded>
  9245. </Expression>
  9246. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  9247. </Section>
  9248. <Section name="Wildcarded name and tag" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9249. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9250. <Original>
  9251. spec.hasFilters() == true
  9252. </Original>
  9253. <Expanded>
  9254. true == true
  9255. </Expanded>
  9256. </Expression>
  9257. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9258. <Original>
  9259. spec.matches( tcA ) == false
  9260. </Original>
  9261. <Expanded>
  9262. false == false
  9263. </Expanded>
  9264. </Expression>
  9265. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9266. <Original>
  9267. spec.matches( tcB ) == false
  9268. </Original>
  9269. <Expanded>
  9270. false == false
  9271. </Expanded>
  9272. </Expression>
  9273. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9274. <Original>
  9275. spec.matches( tcC ) == true
  9276. </Original>
  9277. <Expanded>
  9278. true == true
  9279. </Expanded>
  9280. </Expression>
  9281. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9282. <Original>
  9283. spec.matches( tcD ) == false
  9284. </Original>
  9285. <Expanded>
  9286. false == false
  9287. </Expanded>
  9288. </Expression>
  9289. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  9290. </Section>
  9291. <Section name="Single tag exclusion" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9292. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9293. <Original>
  9294. spec.hasFilters() == true
  9295. </Original>
  9296. <Expanded>
  9297. true == true
  9298. </Expanded>
  9299. </Expression>
  9300. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9301. <Original>
  9302. spec.matches( tcA ) == true
  9303. </Original>
  9304. <Expanded>
  9305. true == true
  9306. </Expanded>
  9307. </Expression>
  9308. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9309. <Original>
  9310. spec.matches( tcB ) == false
  9311. </Original>
  9312. <Expanded>
  9313. false == false
  9314. </Expanded>
  9315. </Expression>
  9316. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9317. <Original>
  9318. spec.matches( tcC ) == true
  9319. </Original>
  9320. <Expanded>
  9321. true == true
  9322. </Expanded>
  9323. </Expression>
  9324. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  9325. </Section>
  9326. <Section name="One tag exclusion and one tag inclusion" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9327. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9328. <Original>
  9329. spec.hasFilters() == true
  9330. </Original>
  9331. <Expanded>
  9332. true == true
  9333. </Expanded>
  9334. </Expression>
  9335. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9336. <Original>
  9337. spec.matches( tcA ) == false
  9338. </Original>
  9339. <Expanded>
  9340. false == false
  9341. </Expanded>
  9342. </Expression>
  9343. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9344. <Original>
  9345. spec.matches( tcB ) == true
  9346. </Original>
  9347. <Expanded>
  9348. true == true
  9349. </Expanded>
  9350. </Expression>
  9351. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9352. <Original>
  9353. spec.matches( tcC ) == false
  9354. </Original>
  9355. <Expanded>
  9356. false == false
  9357. </Expanded>
  9358. </Expression>
  9359. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  9360. </Section>
  9361. <Section name="One tag exclusion and one wldcarded name inclusion" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9362. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9363. <Original>
  9364. spec.hasFilters() == true
  9365. </Original>
  9366. <Expanded>
  9367. true == true
  9368. </Expanded>
  9369. </Expression>
  9370. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9371. <Original>
  9372. spec.matches( tcA ) == false
  9373. </Original>
  9374. <Expanded>
  9375. false == false
  9376. </Expanded>
  9377. </Expression>
  9378. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9379. <Original>
  9380. spec.matches( tcB ) == false
  9381. </Original>
  9382. <Expanded>
  9383. false == false
  9384. </Expanded>
  9385. </Expression>
  9386. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9387. <Original>
  9388. spec.matches( tcC ) == false
  9389. </Original>
  9390. <Expanded>
  9391. false == false
  9392. </Expanded>
  9393. </Expression>
  9394. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9395. <Original>
  9396. spec.matches( tcD ) == true
  9397. </Original>
  9398. <Expanded>
  9399. true == true
  9400. </Expanded>
  9401. </Expression>
  9402. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  9403. </Section>
  9404. <Section name="One tag exclusion, using exclude:, and one wldcarded name inclusion" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9405. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9406. <Original>
  9407. spec.hasFilters() == true
  9408. </Original>
  9409. <Expanded>
  9410. true == true
  9411. </Expanded>
  9412. </Expression>
  9413. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9414. <Original>
  9415. spec.matches( tcA ) == false
  9416. </Original>
  9417. <Expanded>
  9418. false == false
  9419. </Expanded>
  9420. </Expression>
  9421. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9422. <Original>
  9423. spec.matches( tcB ) == false
  9424. </Original>
  9425. <Expanded>
  9426. false == false
  9427. </Expanded>
  9428. </Expression>
  9429. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9430. <Original>
  9431. spec.matches( tcC ) == false
  9432. </Original>
  9433. <Expanded>
  9434. false == false
  9435. </Expanded>
  9436. </Expression>
  9437. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9438. <Original>
  9439. spec.matches( tcD ) == true
  9440. </Original>
  9441. <Expanded>
  9442. true == true
  9443. </Expanded>
  9444. </Expression>
  9445. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  9446. </Section>
  9447. <Section name="name exclusion" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9448. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9449. <Original>
  9450. spec.hasFilters() == true
  9451. </Original>
  9452. <Expanded>
  9453. true == true
  9454. </Expanded>
  9455. </Expression>
  9456. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9457. <Original>
  9458. spec.matches( tcA ) == true
  9459. </Original>
  9460. <Expanded>
  9461. true == true
  9462. </Expanded>
  9463. </Expression>
  9464. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9465. <Original>
  9466. spec.matches( tcB ) == false
  9467. </Original>
  9468. <Expanded>
  9469. false == false
  9470. </Expanded>
  9471. </Expression>
  9472. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9473. <Original>
  9474. spec.matches( tcC ) == true
  9475. </Original>
  9476. <Expanded>
  9477. true == true
  9478. </Expanded>
  9479. </Expression>
  9480. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9481. <Original>
  9482. spec.matches( tcD ) == true
  9483. </Original>
  9484. <Expanded>
  9485. true == true
  9486. </Expanded>
  9487. </Expression>
  9488. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  9489. </Section>
  9490. <Section name="wildcarded name exclusion" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9491. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9492. <Original>
  9493. spec.hasFilters() == true
  9494. </Original>
  9495. <Expanded>
  9496. true == true
  9497. </Expanded>
  9498. </Expression>
  9499. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9500. <Original>
  9501. spec.matches( tcA ) == true
  9502. </Original>
  9503. <Expanded>
  9504. true == true
  9505. </Expanded>
  9506. </Expression>
  9507. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9508. <Original>
  9509. spec.matches( tcB ) == true
  9510. </Original>
  9511. <Expanded>
  9512. true == true
  9513. </Expanded>
  9514. </Expression>
  9515. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9516. <Original>
  9517. spec.matches( tcC ) == false
  9518. </Original>
  9519. <Expanded>
  9520. false == false
  9521. </Expanded>
  9522. </Expression>
  9523. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9524. <Original>
  9525. spec.matches( tcD ) == false
  9526. </Original>
  9527. <Expanded>
  9528. false == false
  9529. </Expanded>
  9530. </Expression>
  9531. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  9532. </Section>
  9533. <Section name="wildcarded name exclusion with tag inclusion" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9534. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9535. <Original>
  9536. spec.hasFilters() == true
  9537. </Original>
  9538. <Expanded>
  9539. true == true
  9540. </Expanded>
  9541. </Expression>
  9542. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9543. <Original>
  9544. spec.matches( tcA ) == true
  9545. </Original>
  9546. <Expanded>
  9547. true == true
  9548. </Expanded>
  9549. </Expression>
  9550. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9551. <Original>
  9552. spec.matches( tcB ) == true
  9553. </Original>
  9554. <Expanded>
  9555. true == true
  9556. </Expanded>
  9557. </Expression>
  9558. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9559. <Original>
  9560. spec.matches( tcC ) == true
  9561. </Original>
  9562. <Expanded>
  9563. true == true
  9564. </Expanded>
  9565. </Expression>
  9566. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9567. <Original>
  9568. spec.matches( tcD ) == false
  9569. </Original>
  9570. <Expanded>
  9571. false == false
  9572. </Expanded>
  9573. </Expression>
  9574. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  9575. </Section>
  9576. <Section name="wildcarded name exclusion, using exclude:, with tag inclusion" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9577. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9578. <Original>
  9579. spec.hasFilters() == true
  9580. </Original>
  9581. <Expanded>
  9582. true == true
  9583. </Expanded>
  9584. </Expression>
  9585. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9586. <Original>
  9587. spec.matches( tcA ) == true
  9588. </Original>
  9589. <Expanded>
  9590. true == true
  9591. </Expanded>
  9592. </Expression>
  9593. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9594. <Original>
  9595. spec.matches( tcB ) == true
  9596. </Original>
  9597. <Expanded>
  9598. true == true
  9599. </Expanded>
  9600. </Expression>
  9601. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9602. <Original>
  9603. spec.matches( tcC ) == true
  9604. </Original>
  9605. <Expanded>
  9606. true == true
  9607. </Expanded>
  9608. </Expression>
  9609. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9610. <Original>
  9611. spec.matches( tcD ) == false
  9612. </Original>
  9613. <Expanded>
  9614. false == false
  9615. </Expanded>
  9616. </Expression>
  9617. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  9618. </Section>
  9619. <Section name="two wildcarded names" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9620. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9621. <Original>
  9622. spec.hasFilters() == true
  9623. </Original>
  9624. <Expanded>
  9625. true == true
  9626. </Expanded>
  9627. </Expression>
  9628. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9629. <Original>
  9630. spec.matches( tcA ) == false
  9631. </Original>
  9632. <Expanded>
  9633. false == false
  9634. </Expanded>
  9635. </Expression>
  9636. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9637. <Original>
  9638. spec.matches( tcB ) == false
  9639. </Original>
  9640. <Expanded>
  9641. false == false
  9642. </Expanded>
  9643. </Expression>
  9644. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9645. <Original>
  9646. spec.matches( tcC ) == true
  9647. </Original>
  9648. <Expanded>
  9649. true == true
  9650. </Expanded>
  9651. </Expression>
  9652. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9653. <Original>
  9654. spec.matches( tcD ) == false
  9655. </Original>
  9656. <Expanded>
  9657. false == false
  9658. </Expanded>
  9659. </Expression>
  9660. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  9661. </Section>
  9662. <Section name="empty tag" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9663. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9664. <Original>
  9665. spec.hasFilters() == false
  9666. </Original>
  9667. <Expanded>
  9668. false == false
  9669. </Expanded>
  9670. </Expression>
  9671. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9672. <Original>
  9673. spec.matches( tcA ) == false
  9674. </Original>
  9675. <Expanded>
  9676. false == false
  9677. </Expanded>
  9678. </Expression>
  9679. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9680. <Original>
  9681. spec.matches( tcB ) == false
  9682. </Original>
  9683. <Expanded>
  9684. false == false
  9685. </Expanded>
  9686. </Expression>
  9687. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9688. <Original>
  9689. spec.matches( tcC ) == false
  9690. </Original>
  9691. <Expanded>
  9692. false == false
  9693. </Expanded>
  9694. </Expression>
  9695. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9696. <Original>
  9697. spec.matches( tcD ) == false
  9698. </Original>
  9699. <Expanded>
  9700. false == false
  9701. </Expanded>
  9702. </Expression>
  9703. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  9704. </Section>
  9705. <Section name="empty quoted name" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9706. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9707. <Original>
  9708. spec.hasFilters() == false
  9709. </Original>
  9710. <Expanded>
  9711. false == false
  9712. </Expanded>
  9713. </Expression>
  9714. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9715. <Original>
  9716. spec.matches( tcA ) == false
  9717. </Original>
  9718. <Expanded>
  9719. false == false
  9720. </Expanded>
  9721. </Expression>
  9722. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9723. <Original>
  9724. spec.matches( tcB ) == false
  9725. </Original>
  9726. <Expanded>
  9727. false == false
  9728. </Expanded>
  9729. </Expression>
  9730. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9731. <Original>
  9732. spec.matches( tcC ) == false
  9733. </Original>
  9734. <Expanded>
  9735. false == false
  9736. </Expanded>
  9737. </Expression>
  9738. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9739. <Original>
  9740. spec.matches( tcD ) == false
  9741. </Original>
  9742. <Expanded>
  9743. false == false
  9744. </Expanded>
  9745. </Expression>
  9746. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  9747. </Section>
  9748. <Section name="quoted string followed by tag exclusion" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9749. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9750. <Original>
  9751. spec.hasFilters() == true
  9752. </Original>
  9753. <Expanded>
  9754. true == true
  9755. </Expanded>
  9756. </Expression>
  9757. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9758. <Original>
  9759. spec.matches( tcA ) == false
  9760. </Original>
  9761. <Expanded>
  9762. false == false
  9763. </Expanded>
  9764. </Expression>
  9765. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9766. <Original>
  9767. spec.matches( tcB ) == false
  9768. </Original>
  9769. <Expanded>
  9770. false == false
  9771. </Expanded>
  9772. </Expression>
  9773. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9774. <Original>
  9775. spec.matches( tcC ) == false
  9776. </Original>
  9777. <Expanded>
  9778. false == false
  9779. </Expanded>
  9780. </Expression>
  9781. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9782. <Original>
  9783. spec.matches( tcD ) == true
  9784. </Original>
  9785. <Expanded>
  9786. true == true
  9787. </Expanded>
  9788. </Expression>
  9789. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  9790. </Section>
  9791. <Section name="Leading and trailing spaces in test spec" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9792. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9793. <Original>
  9794. spec.matches( fakeTestCase( " aardvark " ) )
  9795. </Original>
  9796. <Expanded>
  9797. true
  9798. </Expanded>
  9799. </Expression>
  9800. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9801. <Original>
  9802. spec.matches( fakeTestCase( " aardvark" ) )
  9803. </Original>
  9804. <Expanded>
  9805. true
  9806. </Expanded>
  9807. </Expression>
  9808. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9809. <Original>
  9810. spec.matches( fakeTestCase( " aardvark " ) )
  9811. </Original>
  9812. <Expanded>
  9813. true
  9814. </Expanded>
  9815. </Expression>
  9816. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9817. <Original>
  9818. spec.matches( fakeTestCase( "aardvark " ) )
  9819. </Original>
  9820. <Expanded>
  9821. true
  9822. </Expanded>
  9823. </Expression>
  9824. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9825. <Original>
  9826. spec.matches( fakeTestCase( "aardvark" ) )
  9827. </Original>
  9828. <Expanded>
  9829. true
  9830. </Expanded>
  9831. </Expression>
  9832. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  9833. </Section>
  9834. <Section name="Leading and trailing spaces in test name" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9835. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9836. <Original>
  9837. spec.matches( fakeTestCase( " aardvark " ) )
  9838. </Original>
  9839. <Expanded>
  9840. true
  9841. </Expanded>
  9842. </Expression>
  9843. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9844. <Original>
  9845. spec.matches( fakeTestCase( " aardvark" ) )
  9846. </Original>
  9847. <Expanded>
  9848. true
  9849. </Expanded>
  9850. </Expression>
  9851. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9852. <Original>
  9853. spec.matches( fakeTestCase( " aardvark " ) )
  9854. </Original>
  9855. <Expanded>
  9856. true
  9857. </Expanded>
  9858. </Expression>
  9859. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9860. <Original>
  9861. spec.matches( fakeTestCase( "aardvark " ) )
  9862. </Original>
  9863. <Expanded>
  9864. true
  9865. </Expanded>
  9866. </Expression>
  9867. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9868. <Original>
  9869. spec.matches( fakeTestCase( "aardvark" ) )
  9870. </Original>
  9871. <Expanded>
  9872. true
  9873. </Expanded>
  9874. </Expression>
  9875. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  9876. </Section>
  9877. <Section name="Shortened hide tags are split apart when parsing" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9878. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9879. <Original>
  9880. spec.matches(fakeTestCase("hidden and foo", "[.][foo]"))
  9881. </Original>
  9882. <Expanded>
  9883. true
  9884. </Expanded>
  9885. </Expression>
  9886. <Expression success="true" type="CHECK_FALSE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9887. <Original>
  9888. !(spec.matches(fakeTestCase("only foo", "[foo]")))
  9889. </Original>
  9890. <Expanded>
  9891. !false
  9892. </Expanded>
  9893. </Expression>
  9894. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  9895. </Section>
  9896. <Section name="Shortened hide tags also properly handle exclusion" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9897. <Expression success="true" type="CHECK_FALSE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9898. <Original>
  9899. !(spec.matches(fakeTestCase("hidden and foo", "[.][foo]")))
  9900. </Original>
  9901. <Expanded>
  9902. !false
  9903. </Expanded>
  9904. </Expression>
  9905. <Expression success="true" type="CHECK_FALSE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9906. <Original>
  9907. !(spec.matches(fakeTestCase("only foo", "[foo]")))
  9908. </Original>
  9909. <Expanded>
  9910. !false
  9911. </Expanded>
  9912. </Expression>
  9913. <Expression success="true" type="CHECK_FALSE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9914. <Original>
  9915. !(spec.matches(fakeTestCase("only hidden", "[.]")))
  9916. </Original>
  9917. <Expanded>
  9918. !false
  9919. </Expanded>
  9920. </Expression>
  9921. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  9922. <Original>
  9923. spec.matches(fakeTestCase("neither foo nor hidden", "[bar]"))
  9924. </Original>
  9925. <Expanded>
  9926. true
  9927. </Expanded>
  9928. </Expression>
  9929. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  9930. </Section>
  9931. <OverallResult success="true"/>
  9932. </TestCase>
  9933. <TestCase name="Pointers can be compared to null" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  9934. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  9935. <Original>
  9936. p == 0
  9937. </Original>
  9938. <Expanded>
  9939. 0 == 0
  9940. </Expanded>
  9941. </Expression>
  9942. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  9943. <Original>
  9944. p == pNULL
  9945. </Original>
  9946. <Expanded>
  9947. 0 == 0
  9948. </Expanded>
  9949. </Expression>
  9950. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  9951. <Original>
  9952. p != 0
  9953. </Original>
  9954. <Expanded>
  9955. 0x<hex digits> != 0
  9956. </Expanded>
  9957. </Expression>
  9958. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  9959. <Original>
  9960. cp != 0
  9961. </Original>
  9962. <Expanded>
  9963. 0x<hex digits> != 0
  9964. </Expanded>
  9965. </Expression>
  9966. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  9967. <Original>
  9968. cpc != 0
  9969. </Original>
  9970. <Expanded>
  9971. 0x<hex digits> != 0
  9972. </Expanded>
  9973. </Expression>
  9974. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  9975. <Original>
  9976. returnsNull() == 0
  9977. </Original>
  9978. <Expanded>
  9979. {null string} == 0
  9980. </Expanded>
  9981. </Expression>
  9982. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  9983. <Original>
  9984. returnsConstNull() == 0
  9985. </Original>
  9986. <Expanded>
  9987. {null string} == 0
  9988. </Expanded>
  9989. </Expression>
  9990. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  9991. <Original>
  9992. 0 != p
  9993. </Original>
  9994. <Expanded>
  9995. 0 != 0x<hex digits>
  9996. </Expanded>
  9997. </Expression>
  9998. <OverallResult success="true"/>
  9999. </TestCase>
  10000. <TestCase name="Precision of floating point stringification can be set" tags="[floatingPoint][toString]" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  10001. <Section name="Floats" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  10002. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  10003. <Original>
  10004. str1.size() == 3 + 5
  10005. </Original>
  10006. <Expanded>
  10007. 8 == 8
  10008. </Expanded>
  10009. </Expression>
  10010. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  10011. <Original>
  10012. str2.size() == 3 + 10
  10013. </Original>
  10014. <Expanded>
  10015. 13 == 13
  10016. </Expanded>
  10017. </Expression>
  10018. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10019. </Section>
  10020. <Section name="Double" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  10021. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  10022. <Original>
  10023. str1.size() == 2 + 5
  10024. </Original>
  10025. <Expanded>
  10026. 7 == 7
  10027. </Expanded>
  10028. </Expression>
  10029. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  10030. <Original>
  10031. str2.size() == 2 + 15
  10032. </Original>
  10033. <Expanded>
  10034. 17 == 17
  10035. </Expanded>
  10036. </Expression>
  10037. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10038. </Section>
  10039. <OverallResult success="true"/>
  10040. </TestCase>
  10041. <TestCase name="Predicate matcher can accept const char*" tags="[compilation][matchers]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  10042. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  10043. <Original>
  10044. "foo", Predicate&lt;const char*>([] (const char* const&amp;) { return true; })
  10045. </Original>
  10046. <Expanded>
  10047. "foo" matches undescribed predicate
  10048. </Expanded>
  10049. </Expression>
  10050. <OverallResult success="true"/>
  10051. </TestCase>
  10052. <TestCase name="Process can be configured on command line" tags="[command-line][config]" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10053. <Section name="empty args don't cause a crash" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10054. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10055. <Original>
  10056. result
  10057. </Original>
  10058. <Expanded>
  10059. {?}
  10060. </Expanded>
  10061. </Expression>
  10062. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10063. <Original>
  10064. config.processName == ""
  10065. </Original>
  10066. <Expanded>
  10067. "" == ""
  10068. </Expanded>
  10069. </Expression>
  10070. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10071. </Section>
  10072. <Section name="default - no arguments" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10073. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10074. <Original>
  10075. result
  10076. </Original>
  10077. <Expanded>
  10078. {?}
  10079. </Expanded>
  10080. </Expression>
  10081. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10082. <Original>
  10083. config.processName == "test"
  10084. </Original>
  10085. <Expanded>
  10086. "test" == "test"
  10087. </Expanded>
  10088. </Expression>
  10089. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10090. <Original>
  10091. config.shouldDebugBreak == false
  10092. </Original>
  10093. <Expanded>
  10094. false == false
  10095. </Expanded>
  10096. </Expression>
  10097. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10098. <Original>
  10099. config.abortAfter == -1
  10100. </Original>
  10101. <Expanded>
  10102. -1 == -1
  10103. </Expanded>
  10104. </Expression>
  10105. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10106. <Original>
  10107. config.noThrow == false
  10108. </Original>
  10109. <Expanded>
  10110. false == false
  10111. </Expanded>
  10112. </Expression>
  10113. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10114. <Original>
  10115. config.reporterName == "console"
  10116. </Original>
  10117. <Expanded>
  10118. "console" == "console"
  10119. </Expanded>
  10120. </Expression>
  10121. <Expression success="true" type="CHECK_FALSE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10122. <Original>
  10123. !(cfg.hasTestFilters())
  10124. </Original>
  10125. <Expanded>
  10126. !false
  10127. </Expanded>
  10128. </Expression>
  10129. <OverallResults successes="7" failures="0" expectedFailures="0"/>
  10130. </Section>
  10131. <Section name="test lists" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10132. <Section name="Specify one test case using" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10133. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10134. <Original>
  10135. result
  10136. </Original>
  10137. <Expanded>
  10138. {?}
  10139. </Expanded>
  10140. </Expression>
  10141. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10142. <Original>
  10143. cfg.hasTestFilters()
  10144. </Original>
  10145. <Expanded>
  10146. true
  10147. </Expanded>
  10148. </Expression>
  10149. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10150. <Original>
  10151. cfg.testSpec().matches(fakeTestCase("notIncluded")) == false
  10152. </Original>
  10153. <Expanded>
  10154. false == false
  10155. </Expanded>
  10156. </Expression>
  10157. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10158. <Original>
  10159. cfg.testSpec().matches(fakeTestCase("test1"))
  10160. </Original>
  10161. <Expanded>
  10162. true
  10163. </Expanded>
  10164. </Expression>
  10165. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  10166. </Section>
  10167. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  10168. </Section>
  10169. <Section name="test lists" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10170. <Section name="Specify one test case exclusion using exclude:" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10171. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10172. <Original>
  10173. result
  10174. </Original>
  10175. <Expanded>
  10176. {?}
  10177. </Expanded>
  10178. </Expression>
  10179. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10180. <Original>
  10181. cfg.hasTestFilters()
  10182. </Original>
  10183. <Expanded>
  10184. true
  10185. </Expanded>
  10186. </Expression>
  10187. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10188. <Original>
  10189. cfg.testSpec().matches(fakeTestCase("test1")) == false
  10190. </Original>
  10191. <Expanded>
  10192. false == false
  10193. </Expanded>
  10194. </Expression>
  10195. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10196. <Original>
  10197. cfg.testSpec().matches(fakeTestCase("alwaysIncluded"))
  10198. </Original>
  10199. <Expanded>
  10200. true
  10201. </Expanded>
  10202. </Expression>
  10203. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  10204. </Section>
  10205. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  10206. </Section>
  10207. <Section name="test lists" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10208. <Section name="Specify one test case exclusion using ~" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10209. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10210. <Original>
  10211. result
  10212. </Original>
  10213. <Expanded>
  10214. {?}
  10215. </Expanded>
  10216. </Expression>
  10217. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10218. <Original>
  10219. cfg.hasTestFilters()
  10220. </Original>
  10221. <Expanded>
  10222. true
  10223. </Expanded>
  10224. </Expression>
  10225. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10226. <Original>
  10227. cfg.testSpec().matches(fakeTestCase("test1")) == false
  10228. </Original>
  10229. <Expanded>
  10230. false == false
  10231. </Expanded>
  10232. </Expression>
  10233. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10234. <Original>
  10235. cfg.testSpec().matches(fakeTestCase("alwaysIncluded"))
  10236. </Original>
  10237. <Expanded>
  10238. true
  10239. </Expanded>
  10240. </Expression>
  10241. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  10242. </Section>
  10243. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  10244. </Section>
  10245. <Section name="reporter" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10246. <Section name="-r/console" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10247. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10248. <Original>
  10249. cli.parse({"test", "-r", "console"})
  10250. </Original>
  10251. <Expanded>
  10252. {?}
  10253. </Expanded>
  10254. </Expression>
  10255. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10256. <Original>
  10257. config.reporterName == "console"
  10258. </Original>
  10259. <Expanded>
  10260. "console" == "console"
  10261. </Expanded>
  10262. </Expression>
  10263. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10264. </Section>
  10265. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10266. </Section>
  10267. <Section name="reporter" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10268. <Section name="-r/xml" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10269. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10270. <Original>
  10271. cli.parse({"test", "-r", "xml"})
  10272. </Original>
  10273. <Expanded>
  10274. {?}
  10275. </Expanded>
  10276. </Expression>
  10277. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10278. <Original>
  10279. config.reporterName == "xml"
  10280. </Original>
  10281. <Expanded>
  10282. "xml" == "xml"
  10283. </Expanded>
  10284. </Expression>
  10285. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10286. </Section>
  10287. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10288. </Section>
  10289. <Section name="reporter" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10290. <Section name="--reporter/junit" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10291. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10292. <Original>
  10293. cli.parse({"test", "--reporter", "junit"})
  10294. </Original>
  10295. <Expanded>
  10296. {?}
  10297. </Expanded>
  10298. </Expression>
  10299. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10300. <Original>
  10301. config.reporterName == "junit"
  10302. </Original>
  10303. <Expanded>
  10304. "junit" == "junit"
  10305. </Expanded>
  10306. </Expression>
  10307. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10308. </Section>
  10309. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10310. </Section>
  10311. <Section name="reporter" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10312. <Section name="Only one reporter is accepted" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10313. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10314. <Original>
  10315. !(cli.parse({ "test", "-r", "xml", "-r", "junit" }))
  10316. </Original>
  10317. <Expanded>
  10318. !{?}
  10319. </Expanded>
  10320. </Expression>
  10321. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  10322. </Section>
  10323. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  10324. </Section>
  10325. <Section name="reporter" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10326. <Section name="must match one of the available ones" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10327. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10328. <Original>
  10329. !result
  10330. </Original>
  10331. <Expanded>
  10332. true
  10333. </Expanded>
  10334. </Expression>
  10335. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10336. <Original>
  10337. result.errorMessage(), Contains("Unrecognized reporter")
  10338. </Original>
  10339. <Expanded>
  10340. "Unrecognized reporter, 'unsupported'. Check available with --list-reporters" contains: "Unrecognized reporter"
  10341. </Expanded>
  10342. </Expression>
  10343. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10344. </Section>
  10345. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10346. </Section>
  10347. <Section name="debugger" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10348. <Section name="-b" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10349. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10350. <Original>
  10351. cli.parse({"test", "-b"})
  10352. </Original>
  10353. <Expanded>
  10354. {?}
  10355. </Expanded>
  10356. </Expression>
  10357. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10358. <Original>
  10359. config.shouldDebugBreak == true
  10360. </Original>
  10361. <Expanded>
  10362. true == true
  10363. </Expanded>
  10364. </Expression>
  10365. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10366. </Section>
  10367. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10368. </Section>
  10369. <Section name="debugger" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10370. <Section name="--break" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10371. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10372. <Original>
  10373. cli.parse({"test", "--break"})
  10374. </Original>
  10375. <Expanded>
  10376. {?}
  10377. </Expanded>
  10378. </Expression>
  10379. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10380. <Original>
  10381. config.shouldDebugBreak
  10382. </Original>
  10383. <Expanded>
  10384. true
  10385. </Expanded>
  10386. </Expression>
  10387. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10388. </Section>
  10389. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10390. </Section>
  10391. <Section name="abort" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10392. <Section name="-a aborts after first failure" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10393. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10394. <Original>
  10395. cli.parse({"test", "-a"})
  10396. </Original>
  10397. <Expanded>
  10398. {?}
  10399. </Expanded>
  10400. </Expression>
  10401. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10402. <Original>
  10403. config.abortAfter == 1
  10404. </Original>
  10405. <Expanded>
  10406. 1 == 1
  10407. </Expanded>
  10408. </Expression>
  10409. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10410. </Section>
  10411. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10412. </Section>
  10413. <Section name="abort" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10414. <Section name="-x 2 aborts after two failures" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10415. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10416. <Original>
  10417. cli.parse({"test", "-x", "2"})
  10418. </Original>
  10419. <Expanded>
  10420. {?}
  10421. </Expanded>
  10422. </Expression>
  10423. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10424. <Original>
  10425. config.abortAfter == 2
  10426. </Original>
  10427. <Expanded>
  10428. 2 == 2
  10429. </Expanded>
  10430. </Expression>
  10431. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10432. </Section>
  10433. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10434. </Section>
  10435. <Section name="abort" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10436. <Section name="-x must be numeric" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10437. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10438. <Original>
  10439. !result
  10440. </Original>
  10441. <Expanded>
  10442. true
  10443. </Expanded>
  10444. </Expression>
  10445. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10446. <Original>
  10447. result.errorMessage(), Contains("convert") &amp;&amp; Contains("oops")
  10448. </Original>
  10449. <Expanded>
  10450. "Unable to convert 'oops' to destination type" ( contains: "convert" and contains: "oops" )
  10451. </Expanded>
  10452. </Expression>
  10453. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10454. </Section>
  10455. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10456. </Section>
  10457. <Section name="abort" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10458. <Section name="wait-for-keypress" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10459. <Section name="Accepted options" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10460. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10461. <Original>
  10462. cli.parse({"test", "--wait-for-keypress", std::get&lt;0>(input)})
  10463. </Original>
  10464. <Expanded>
  10465. {?}
  10466. </Expanded>
  10467. </Expression>
  10468. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10469. <Original>
  10470. config.waitForKeypress == std::get&lt;1>(input)
  10471. </Original>
  10472. <Expanded>
  10473. 0 == 0
  10474. </Expanded>
  10475. </Expression>
  10476. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10477. </Section>
  10478. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10479. </Section>
  10480. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10481. </Section>
  10482. <Section name="abort" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10483. <Section name="wait-for-keypress" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10484. <Section name="Accepted options" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10485. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10486. <Original>
  10487. cli.parse({"test", "--wait-for-keypress", std::get&lt;0>(input)})
  10488. </Original>
  10489. <Expanded>
  10490. {?}
  10491. </Expanded>
  10492. </Expression>
  10493. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10494. <Original>
  10495. config.waitForKeypress == std::get&lt;1>(input)
  10496. </Original>
  10497. <Expanded>
  10498. 1 == 1
  10499. </Expanded>
  10500. </Expression>
  10501. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10502. </Section>
  10503. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10504. </Section>
  10505. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10506. </Section>
  10507. <Section name="abort" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10508. <Section name="wait-for-keypress" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10509. <Section name="Accepted options" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10510. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10511. <Original>
  10512. cli.parse({"test", "--wait-for-keypress", std::get&lt;0>(input)})
  10513. </Original>
  10514. <Expanded>
  10515. {?}
  10516. </Expanded>
  10517. </Expression>
  10518. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10519. <Original>
  10520. config.waitForKeypress == std::get&lt;1>(input)
  10521. </Original>
  10522. <Expanded>
  10523. 2 == 2
  10524. </Expanded>
  10525. </Expression>
  10526. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10527. </Section>
  10528. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10529. </Section>
  10530. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10531. </Section>
  10532. <Section name="abort" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10533. <Section name="wait-for-keypress" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10534. <Section name="Accepted options" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10535. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10536. <Original>
  10537. cli.parse({"test", "--wait-for-keypress", std::get&lt;0>(input)})
  10538. </Original>
  10539. <Expanded>
  10540. {?}
  10541. </Expanded>
  10542. </Expression>
  10543. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10544. <Original>
  10545. config.waitForKeypress == std::get&lt;1>(input)
  10546. </Original>
  10547. <Expanded>
  10548. 3 == 3
  10549. </Expanded>
  10550. </Expression>
  10551. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10552. </Section>
  10553. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10554. </Section>
  10555. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10556. </Section>
  10557. <Section name="abort" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10558. <Section name="wait-for-keypress" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10559. <Section name="invalid options are reported" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10560. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10561. <Original>
  10562. !result
  10563. </Original>
  10564. <Expanded>
  10565. true
  10566. </Expanded>
  10567. </Expression>
  10568. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10569. <Original>
  10570. result.errorMessage(), Contains("never") &amp;&amp; Contains("both")
  10571. </Original>
  10572. <Expanded>
  10573. "keypress argument must be one of: never, start, exit or both. 'sometimes' not recognised" ( contains: "never" and contains: "both" )
  10574. </Expanded>
  10575. </Expression>
  10576. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10577. </Section>
  10578. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10579. </Section>
  10580. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10581. </Section>
  10582. <Section name="nothrow" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10583. <Section name="-e" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10584. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10585. <Original>
  10586. cli.parse({"test", "-e"})
  10587. </Original>
  10588. <Expanded>
  10589. {?}
  10590. </Expanded>
  10591. </Expression>
  10592. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10593. <Original>
  10594. config.noThrow
  10595. </Original>
  10596. <Expanded>
  10597. true
  10598. </Expanded>
  10599. </Expression>
  10600. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10601. </Section>
  10602. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10603. </Section>
  10604. <Section name="nothrow" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10605. <Section name="--nothrow" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10606. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10607. <Original>
  10608. cli.parse({"test", "--nothrow"})
  10609. </Original>
  10610. <Expanded>
  10611. {?}
  10612. </Expanded>
  10613. </Expression>
  10614. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10615. <Original>
  10616. config.noThrow
  10617. </Original>
  10618. <Expanded>
  10619. true
  10620. </Expanded>
  10621. </Expression>
  10622. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10623. </Section>
  10624. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10625. </Section>
  10626. <Section name="output filename" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10627. <Section name="-o filename" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10628. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10629. <Original>
  10630. cli.parse({"test", "-o", "filename.ext"})
  10631. </Original>
  10632. <Expanded>
  10633. {?}
  10634. </Expanded>
  10635. </Expression>
  10636. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10637. <Original>
  10638. config.outputFilename == "filename.ext"
  10639. </Original>
  10640. <Expanded>
  10641. "filename.ext" == "filename.ext"
  10642. </Expanded>
  10643. </Expression>
  10644. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10645. </Section>
  10646. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10647. </Section>
  10648. <Section name="output filename" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10649. <Section name="--out" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10650. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10651. <Original>
  10652. cli.parse({"test", "--out", "filename.ext"})
  10653. </Original>
  10654. <Expanded>
  10655. {?}
  10656. </Expanded>
  10657. </Expression>
  10658. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10659. <Original>
  10660. config.outputFilename == "filename.ext"
  10661. </Original>
  10662. <Expanded>
  10663. "filename.ext" == "filename.ext"
  10664. </Expanded>
  10665. </Expression>
  10666. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10667. </Section>
  10668. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10669. </Section>
  10670. <Section name="combinations" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10671. <Section name="Single character flags can be combined" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10672. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10673. <Original>
  10674. cli.parse({"test", "-abe"})
  10675. </Original>
  10676. <Expanded>
  10677. {?}
  10678. </Expanded>
  10679. </Expression>
  10680. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10681. <Original>
  10682. config.abortAfter == 1
  10683. </Original>
  10684. <Expanded>
  10685. 1 == 1
  10686. </Expanded>
  10687. </Expression>
  10688. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10689. <Original>
  10690. config.shouldDebugBreak
  10691. </Original>
  10692. <Expanded>
  10693. true
  10694. </Expanded>
  10695. </Expression>
  10696. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10697. <Original>
  10698. config.noThrow == true
  10699. </Original>
  10700. <Expanded>
  10701. true == true
  10702. </Expanded>
  10703. </Expression>
  10704. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  10705. </Section>
  10706. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  10707. </Section>
  10708. <Section name="use-colour" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10709. <Section name="without option" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10710. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10711. <Original>
  10712. cli.parse({"test"})
  10713. </Original>
  10714. <Expanded>
  10715. {?}
  10716. </Expanded>
  10717. </Expression>
  10718. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10719. <Original>
  10720. config.useColour == UseColour::Auto
  10721. </Original>
  10722. <Expanded>
  10723. 0 == 0
  10724. </Expanded>
  10725. </Expression>
  10726. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10727. </Section>
  10728. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10729. </Section>
  10730. <Section name="use-colour" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10731. <Section name="auto" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10732. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10733. <Original>
  10734. cli.parse({"test", "--use-colour", "auto"})
  10735. </Original>
  10736. <Expanded>
  10737. {?}
  10738. </Expanded>
  10739. </Expression>
  10740. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10741. <Original>
  10742. config.useColour == UseColour::Auto
  10743. </Original>
  10744. <Expanded>
  10745. 0 == 0
  10746. </Expanded>
  10747. </Expression>
  10748. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10749. </Section>
  10750. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10751. </Section>
  10752. <Section name="use-colour" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10753. <Section name="yes" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10754. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10755. <Original>
  10756. cli.parse({"test", "--use-colour", "yes"})
  10757. </Original>
  10758. <Expanded>
  10759. {?}
  10760. </Expanded>
  10761. </Expression>
  10762. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10763. <Original>
  10764. config.useColour == UseColour::Yes
  10765. </Original>
  10766. <Expanded>
  10767. 1 == 1
  10768. </Expanded>
  10769. </Expression>
  10770. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10771. </Section>
  10772. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10773. </Section>
  10774. <Section name="use-colour" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10775. <Section name="no" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10776. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10777. <Original>
  10778. cli.parse({"test", "--use-colour", "no"})
  10779. </Original>
  10780. <Expanded>
  10781. {?}
  10782. </Expanded>
  10783. </Expression>
  10784. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10785. <Original>
  10786. config.useColour == UseColour::No
  10787. </Original>
  10788. <Expanded>
  10789. 2 == 2
  10790. </Expanded>
  10791. </Expression>
  10792. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10793. </Section>
  10794. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10795. </Section>
  10796. <Section name="use-colour" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10797. <Section name="error" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10798. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10799. <Original>
  10800. !result
  10801. </Original>
  10802. <Expanded>
  10803. true
  10804. </Expanded>
  10805. </Expression>
  10806. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10807. <Original>
  10808. result.errorMessage(), Contains( "colour mode must be one of" )
  10809. </Original>
  10810. <Expanded>
  10811. "colour mode must be one of: auto, yes or no. 'wrong' not recognised" contains: "colour mode must be one of"
  10812. </Expanded>
  10813. </Expression>
  10814. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10815. </Section>
  10816. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10817. </Section>
  10818. <Section name="Benchmark options" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10819. <Section name="samples" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10820. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10821. <Original>
  10822. cli.parse({ "test", "--benchmark-samples=200" })
  10823. </Original>
  10824. <Expanded>
  10825. {?}
  10826. </Expanded>
  10827. </Expression>
  10828. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10829. <Original>
  10830. config.benchmarkSamples == 200
  10831. </Original>
  10832. <Expanded>
  10833. 200 == 200
  10834. </Expanded>
  10835. </Expression>
  10836. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10837. </Section>
  10838. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10839. </Section>
  10840. <Section name="Benchmark options" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10841. <Section name="resamples" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10842. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10843. <Original>
  10844. cli.parse({ "test", "--benchmark-resamples=20000" })
  10845. </Original>
  10846. <Expanded>
  10847. {?}
  10848. </Expanded>
  10849. </Expression>
  10850. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10851. <Original>
  10852. config.benchmarkResamples == 20000
  10853. </Original>
  10854. <Expanded>
  10855. 20000 (0x<hex digits>) == 20000 (0x<hex digits>)
  10856. </Expanded>
  10857. </Expression>
  10858. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10859. </Section>
  10860. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10861. </Section>
  10862. <Section name="Benchmark options" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10863. <Section name="confidence-interval" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10864. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10865. <Original>
  10866. cli.parse({ "test", "--benchmark-confidence-interval=0.99" })
  10867. </Original>
  10868. <Expanded>
  10869. {?}
  10870. </Expanded>
  10871. </Expression>
  10872. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10873. <Original>
  10874. config.benchmarkConfidenceInterval == Catch::Detail::Approx(0.99)
  10875. </Original>
  10876. <Expanded>
  10877. 0.99 == Approx( 0.99 )
  10878. </Expanded>
  10879. </Expression>
  10880. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10881. </Section>
  10882. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10883. </Section>
  10884. <Section name="Benchmark options" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10885. <Section name="no-analysis" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10886. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10887. <Original>
  10888. cli.parse({ "test", "--benchmark-no-analysis" })
  10889. </Original>
  10890. <Expanded>
  10891. {?}
  10892. </Expanded>
  10893. </Expression>
  10894. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10895. <Original>
  10896. config.benchmarkNoAnalysis
  10897. </Original>
  10898. <Expanded>
  10899. true
  10900. </Expanded>
  10901. </Expression>
  10902. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10903. </Section>
  10904. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10905. </Section>
  10906. <Section name="Benchmark options" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10907. <Section name="warmup-time" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10908. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10909. <Original>
  10910. cli.parse({ "test", "--benchmark-warmup-time=10" })
  10911. </Original>
  10912. <Expanded>
  10913. {?}
  10914. </Expanded>
  10915. </Expression>
  10916. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  10917. <Original>
  10918. config.benchmarkWarmupTime == 10
  10919. </Original>
  10920. <Expanded>
  10921. 10 == 10
  10922. </Expanded>
  10923. </Expression>
  10924. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10925. </Section>
  10926. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  10927. </Section>
  10928. <OverallResult success="true"/>
  10929. </TestCase>
  10930. <TestCase name="Product with differing arities - std::tuple&lt;int, double, float>" tags="[product][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  10931. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  10932. <Original>
  10933. std::tuple_size&lt;TestType>::value >= 1
  10934. </Original>
  10935. <Expanded>
  10936. 3 >= 1
  10937. </Expanded>
  10938. </Expression>
  10939. <OverallResult success="true"/>
  10940. </TestCase>
  10941. <TestCase name="Product with differing arities - std::tuple&lt;int, double>" tags="[product][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  10942. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  10943. <Original>
  10944. std::tuple_size&lt;TestType>::value >= 1
  10945. </Original>
  10946. <Expanded>
  10947. 2 >= 1
  10948. </Expanded>
  10949. </Expression>
  10950. <OverallResult success="true"/>
  10951. </TestCase>
  10952. <TestCase name="Product with differing arities - std::tuple&lt;int>" tags="[product][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  10953. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  10954. <Original>
  10955. std::tuple_size&lt;TestType>::value >= 1
  10956. </Original>
  10957. <Expanded>
  10958. 1 >= 1
  10959. </Expanded>
  10960. </Expression>
  10961. <OverallResult success="true"/>
  10962. </TestCase>
  10963. <TestCase name="Range type with sentinel" filename="projects/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  10964. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  10965. <Original>
  10966. Catch::Detail::stringify(UsesSentinel{}) == "{ }"
  10967. </Original>
  10968. <Expanded>
  10969. "{ }" == "{ }"
  10970. </Expanded>
  10971. </Expression>
  10972. <OverallResult success="true"/>
  10973. </TestCase>
  10974. <TestCase name="Reconstruction should be based on stringification: #914" tags="[!hide][.][Decomposition][failing]" filename="projects/<exe-name>/UsageTests/Decomposition.tests.cpp" >
  10975. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Decomposition.tests.cpp" >
  10976. <Original>
  10977. truthy(false)
  10978. </Original>
  10979. <Expanded>
  10980. Hey, its truthy!
  10981. </Expanded>
  10982. </Expression>
  10983. <OverallResult success="false"/>
  10984. </TestCase>
  10985. <TestCase name="Regex string matcher" tags="[!hide][.][failing][matchers]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  10986. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  10987. <Original>
  10988. testStringForMatching(), Matches("this STRING contains 'abc' as a substring")
  10989. </Original>
  10990. <Expanded>
  10991. "this string contains 'abc' as a substring" matches "this STRING contains 'abc' as a substring" case sensitively
  10992. </Expanded>
  10993. </Expression>
  10994. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  10995. <Original>
  10996. testStringForMatching(), Matches("contains 'abc' as a substring")
  10997. </Original>
  10998. <Expanded>
  10999. "this string contains 'abc' as a substring" matches "contains 'abc' as a substring" case sensitively
  11000. </Expanded>
  11001. </Expression>
  11002. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  11003. <Original>
  11004. testStringForMatching(), Matches("this string contains 'abc' as a")
  11005. </Original>
  11006. <Expanded>
  11007. "this string contains 'abc' as a substring" matches "this string contains 'abc' as a" case sensitively
  11008. </Expanded>
  11009. </Expression>
  11010. <OverallResult success="false"/>
  11011. </TestCase>
  11012. <TestCase name="Regression test #1" tags="[matchers][vector]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  11013. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  11014. <Original>
  11015. actual, !UnorderedEquals(expected)
  11016. </Original>
  11017. <Expanded>
  11018. { 'a', 'b' } not UnorderedEquals: { 'c', 'b' }
  11019. </Expanded>
  11020. </Expression>
  11021. <OverallResult success="true"/>
  11022. </TestCase>
  11023. <TestCase name="SUCCEED counts as a test pass" tags="[messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  11024. <OverallResult success="true"/>
  11025. </TestCase>
  11026. <TestCase name="SUCCEED does not require an argument" tags="[!hide][.][messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  11027. <OverallResult success="true"/>
  11028. </TestCase>
  11029. <TestCase name="Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods" tags="[bdd][fixtures]" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11030. <Section name="Given: No operations precede me" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11031. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11032. <Original>
  11033. before == 0
  11034. </Original>
  11035. <Expanded>
  11036. 0 == 0
  11037. </Expanded>
  11038. </Expression>
  11039. <Section name="When: We get the count" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11040. <Section name="Then: Subsequently values are higher" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11041. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11042. <Original>
  11043. after > before
  11044. </Original>
  11045. <Expanded>
  11046. 1 > 0
  11047. </Expanded>
  11048. </Expression>
  11049. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11050. </Section>
  11051. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11052. </Section>
  11053. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11054. </Section>
  11055. <OverallResult success="true"/>
  11056. </TestCase>
  11057. <TestCase name="Scenario: Do that thing with the thing" tags="[Tags]" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11058. <Section name="Given: This stuff exists" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11059. <Section name="And given: And some assumption" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11060. <Section name="When: I do this" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11061. <Section name="Then: it should do this" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11062. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11063. <Original>
  11064. itDoesThis()
  11065. </Original>
  11066. <Expanded>
  11067. true
  11068. </Expanded>
  11069. </Expression>
  11070. <Section name="And: do that" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11071. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11072. <Original>
  11073. itDoesThat()
  11074. </Original>
  11075. <Expanded>
  11076. true
  11077. </Expanded>
  11078. </Expression>
  11079. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11080. </Section>
  11081. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11082. </Section>
  11083. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11084. </Section>
  11085. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11086. </Section>
  11087. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11088. </Section>
  11089. <OverallResult success="true"/>
  11090. </TestCase>
  11091. <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="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11092. <Section name="Given: A section name that is so long that it cannot fit in a single console width" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11093. <Section name="When: The test headers are printed as part of the normal running of the scenario" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11094. <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="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11095. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11096. </Section>
  11097. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11098. </Section>
  11099. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11100. </Section>
  11101. <OverallResult success="true"/>
  11102. </TestCase>
  11103. <TestCase name="Scenario: Vector resizing affects size and capacity" tags="[bdd][capacity][size][vector]" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11104. <Section name="Given: an empty vector" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11105. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11106. <Original>
  11107. v.size() == 0
  11108. </Original>
  11109. <Expanded>
  11110. 0 == 0
  11111. </Expanded>
  11112. </Expression>
  11113. <Section name="When: it is made larger" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11114. <Section name="Then: the size and capacity go up" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11115. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11116. <Original>
  11117. v.size() == 10
  11118. </Original>
  11119. <Expanded>
  11120. 10 == 10
  11121. </Expanded>
  11122. </Expression>
  11123. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11124. <Original>
  11125. v.capacity() >= 10
  11126. </Original>
  11127. <Expanded>
  11128. 10 >= 10
  11129. </Expanded>
  11130. </Expression>
  11131. <Section name="And when: it is made smaller again" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11132. <Section name="Then: the size goes down but the capacity stays the same" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11133. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11134. <Original>
  11135. v.size() == 5
  11136. </Original>
  11137. <Expanded>
  11138. 5 == 5
  11139. </Expanded>
  11140. </Expression>
  11141. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11142. <Original>
  11143. v.capacity() >= 10
  11144. </Original>
  11145. <Expanded>
  11146. 10 >= 10
  11147. </Expanded>
  11148. </Expression>
  11149. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11150. </Section>
  11151. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11152. </Section>
  11153. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  11154. </Section>
  11155. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  11156. </Section>
  11157. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  11158. </Section>
  11159. <Section name="Given: an empty vector" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11160. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11161. <Original>
  11162. v.size() == 0
  11163. </Original>
  11164. <Expanded>
  11165. 0 == 0
  11166. </Expanded>
  11167. </Expression>
  11168. <Section name="When: we reserve more space" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11169. <Section name="Then: The capacity is increased but the size remains the same" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11170. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11171. <Original>
  11172. v.capacity() >= 10
  11173. </Original>
  11174. <Expanded>
  11175. 10 >= 10
  11176. </Expanded>
  11177. </Expression>
  11178. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/BDD.tests.cpp" >
  11179. <Original>
  11180. v.size() == 0
  11181. </Original>
  11182. <Expanded>
  11183. 0 == 0
  11184. </Expanded>
  11185. </Expression>
  11186. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11187. </Section>
  11188. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11189. </Section>
  11190. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  11191. </Section>
  11192. <OverallResult success="true"/>
  11193. </TestCase>
  11194. <TestCase name="Sends stuff to stdout and stderr" tags="[!hide][.]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  11195. <OverallResult success="false">
  11196. <StdOut>
  11197. A string sent directly to stdout
  11198. </StdOut>
  11199. <StdErr>
  11200. A string sent directly to stderr
  11201. A string sent to stderr via clog
  11202. </StdErr>
  11203. </OverallResult>
  11204. </TestCase>
  11205. <TestCase name="Some simple comparisons between doubles" tags="[Approx]" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  11206. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  11207. <Original>
  11208. d == Approx( 1.23 )
  11209. </Original>
  11210. <Expanded>
  11211. 1.23 == Approx( 1.23 )
  11212. </Expanded>
  11213. </Expression>
  11214. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  11215. <Original>
  11216. d != Approx( 1.22 )
  11217. </Original>
  11218. <Expanded>
  11219. 1.23 != Approx( 1.22 )
  11220. </Expanded>
  11221. </Expression>
  11222. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  11223. <Original>
  11224. d != Approx( 1.24 )
  11225. </Original>
  11226. <Expanded>
  11227. 1.23 != Approx( 1.24 )
  11228. </Expanded>
  11229. </Expression>
  11230. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  11231. <Original>
  11232. d == 1.23_a
  11233. </Original>
  11234. <Expanded>
  11235. 1.23 == Approx( 1.23 )
  11236. </Expanded>
  11237. </Expression>
  11238. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  11239. <Original>
  11240. d != 1.22_a
  11241. </Original>
  11242. <Expanded>
  11243. 1.23 != Approx( 1.22 )
  11244. </Expanded>
  11245. </Expression>
  11246. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  11247. <Original>
  11248. Approx( d ) == 1.23
  11249. </Original>
  11250. <Expanded>
  11251. Approx( 1.23 ) == 1.23
  11252. </Expanded>
  11253. </Expression>
  11254. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  11255. <Original>
  11256. Approx( d ) != 1.22
  11257. </Original>
  11258. <Expanded>
  11259. Approx( 1.23 ) != 1.22
  11260. </Expanded>
  11261. </Expression>
  11262. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  11263. <Original>
  11264. Approx( d ) != 1.24
  11265. </Original>
  11266. <Expanded>
  11267. Approx( 1.23 ) != 1.24
  11268. </Expanded>
  11269. </Expression>
  11270. <OverallResult success="true"/>
  11271. </TestCase>
  11272. <TestCase name="Standard output from all sections is reported" tags="[!hide][.][messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  11273. <Section name="one" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  11274. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  11275. </Section>
  11276. <Section name="two" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  11277. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  11278. </Section>
  11279. <OverallResult success="false">
  11280. <StdOut>
  11281. Message from section one
  11282. Message from section two
  11283. </StdOut>
  11284. </OverallResult>
  11285. </TestCase>
  11286. <TestCase name="StartsWith string matcher" tags="[!hide][.][failing][matchers]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  11287. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  11288. <Original>
  11289. testStringForMatching(), StartsWith("This String")
  11290. </Original>
  11291. <Expanded>
  11292. "this string contains 'abc' as a substring" starts with: "This String"
  11293. </Expanded>
  11294. </Expression>
  11295. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  11296. <Original>
  11297. testStringForMatching(), StartsWith("string", Catch::CaseSensitive::No)
  11298. </Original>
  11299. <Expanded>
  11300. "this string contains 'abc' as a substring" starts with: "string" (case insensitive)
  11301. </Expanded>
  11302. </Expression>
  11303. <OverallResult success="false"/>
  11304. </TestCase>
  11305. <TestCase name="Static arrays are convertible to string" tags="[toString]" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  11306. <Section name="Single item" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  11307. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  11308. <Original>
  11309. Catch::Detail::stringify(singular) == "{ 1 }"
  11310. </Original>
  11311. <Expanded>
  11312. "{ 1 }" == "{ 1 }"
  11313. </Expanded>
  11314. </Expression>
  11315. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11316. </Section>
  11317. <Section name="Multiple" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  11318. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  11319. <Original>
  11320. Catch::Detail::stringify(arr) == "{ 3, 2, 1 }"
  11321. </Original>
  11322. <Expanded>
  11323. "{ 3, 2, 1 }" == "{ 3, 2, 1 }"
  11324. </Expanded>
  11325. </Expression>
  11326. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11327. </Section>
  11328. <Section name="Non-trivial inner items" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  11329. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  11330. <Original>
  11331. Catch::Detail::stringify(arr) == R"({ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } })"
  11332. </Original>
  11333. <Expanded>
  11334. "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
  11335. ==
  11336. "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
  11337. </Expanded>
  11338. </Expression>
  11339. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11340. </Section>
  11341. <OverallResult success="true"/>
  11342. </TestCase>
  11343. <TestCase name="String matchers" tags="[matchers]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  11344. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  11345. <Original>
  11346. testStringForMatching(), Contains("string")
  11347. </Original>
  11348. <Expanded>
  11349. "this string contains 'abc' as a substring" contains: "string"
  11350. </Expanded>
  11351. </Expression>
  11352. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  11353. <Original>
  11354. testStringForMatching(), Contains("string", Catch::CaseSensitive::No)
  11355. </Original>
  11356. <Expanded>
  11357. "this string contains 'abc' as a substring" contains: "string" (case insensitive)
  11358. </Expanded>
  11359. </Expression>
  11360. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  11361. <Original>
  11362. testStringForMatching(), Contains("abc")
  11363. </Original>
  11364. <Expanded>
  11365. "this string contains 'abc' as a substring" contains: "abc"
  11366. </Expanded>
  11367. </Expression>
  11368. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  11369. <Original>
  11370. testStringForMatching(), Contains("aBC", Catch::CaseSensitive::No)
  11371. </Original>
  11372. <Expanded>
  11373. "this string contains 'abc' as a substring" contains: "abc" (case insensitive)
  11374. </Expanded>
  11375. </Expression>
  11376. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  11377. <Original>
  11378. testStringForMatching(), StartsWith("this")
  11379. </Original>
  11380. <Expanded>
  11381. "this string contains 'abc' as a substring" starts with: "this"
  11382. </Expanded>
  11383. </Expression>
  11384. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  11385. <Original>
  11386. testStringForMatching(), StartsWith("THIS", Catch::CaseSensitive::No)
  11387. </Original>
  11388. <Expanded>
  11389. "this string contains 'abc' as a substring" starts with: "this" (case insensitive)
  11390. </Expanded>
  11391. </Expression>
  11392. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  11393. <Original>
  11394. testStringForMatching(), EndsWith("substring")
  11395. </Original>
  11396. <Expanded>
  11397. "this string contains 'abc' as a substring" ends with: "substring"
  11398. </Expanded>
  11399. </Expression>
  11400. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  11401. <Original>
  11402. testStringForMatching(), EndsWith(" SuBsTrInG", Catch::CaseSensitive::No)
  11403. </Original>
  11404. <Expanded>
  11405. "this string contains 'abc' as a substring" ends with: " substring" (case insensitive)
  11406. </Expanded>
  11407. </Expression>
  11408. <OverallResult success="true"/>
  11409. </TestCase>
  11410. <TestCase name="StringRef" tags="[StringRef][Strings]" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11411. <Section name="Empty string" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11412. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11413. <Original>
  11414. empty.empty()
  11415. </Original>
  11416. <Expanded>
  11417. true
  11418. </Expanded>
  11419. </Expression>
  11420. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11421. <Original>
  11422. empty.size() == 0
  11423. </Original>
  11424. <Expanded>
  11425. 0 == 0
  11426. </Expanded>
  11427. </Expression>
  11428. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11429. <Original>
  11430. empty.isNullTerminated()
  11431. </Original>
  11432. <Expanded>
  11433. true
  11434. </Expanded>
  11435. </Expression>
  11436. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11437. <Original>
  11438. std::strcmp( empty.c_str(), "" ) == 0
  11439. </Original>
  11440. <Expanded>
  11441. 0 == 0
  11442. </Expanded>
  11443. </Expression>
  11444. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  11445. </Section>
  11446. <Section name="From string literal" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11447. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11448. <Original>
  11449. s.empty() == false
  11450. </Original>
  11451. <Expanded>
  11452. false == false
  11453. </Expanded>
  11454. </Expression>
  11455. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11456. <Original>
  11457. s.size() == 5
  11458. </Original>
  11459. <Expanded>
  11460. 5 == 5
  11461. </Expanded>
  11462. </Expression>
  11463. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11464. <Original>
  11465. s.isNullTerminated()
  11466. </Original>
  11467. <Expanded>
  11468. true
  11469. </Expanded>
  11470. </Expression>
  11471. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11472. <Original>
  11473. std::strcmp( rawChars, "hello" ) == 0
  11474. </Original>
  11475. <Expanded>
  11476. 0 == 0
  11477. </Expanded>
  11478. </Expression>
  11479. <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11480. <Original>
  11481. s.c_str()
  11482. </Original>
  11483. <Expanded>
  11484. s.c_str()
  11485. </Expanded>
  11486. </Expression>
  11487. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11488. <Original>
  11489. s.c_str() == rawChars
  11490. </Original>
  11491. <Expanded>
  11492. "hello" == "hello"
  11493. </Expanded>
  11494. </Expression>
  11495. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11496. <Original>
  11497. s.data() == rawChars
  11498. </Original>
  11499. <Expanded>
  11500. "hello" == "hello"
  11501. </Expanded>
  11502. </Expression>
  11503. <OverallResults successes="7" failures="0" expectedFailures="0"/>
  11504. </Section>
  11505. <Section name="From sub-string" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11506. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11507. <Original>
  11508. original == "original"
  11509. </Original>
  11510. <Expanded>
  11511. original == "original"
  11512. </Expanded>
  11513. </Expression>
  11514. <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11515. <Original>
  11516. !(original.isNullTerminated())
  11517. </Original>
  11518. <Expanded>
  11519. !false
  11520. </Expanded>
  11521. </Expression>
  11522. <Expression success="true" type="REQUIRE_THROWS" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11523. <Original>
  11524. original.c_str()
  11525. </Original>
  11526. <Expanded>
  11527. original.c_str()
  11528. </Expanded>
  11529. </Expression>
  11530. <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11531. <Original>
  11532. original.data()
  11533. </Original>
  11534. <Expanded>
  11535. original.data()
  11536. </Expanded>
  11537. </Expression>
  11538. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  11539. </Section>
  11540. <Section name="Substrings" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11541. <Section name="zero-based substring" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11542. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11543. <Original>
  11544. ss.empty() == false
  11545. </Original>
  11546. <Expanded>
  11547. false == false
  11548. </Expanded>
  11549. </Expression>
  11550. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11551. <Original>
  11552. ss.size() == 5
  11553. </Original>
  11554. <Expanded>
  11555. 5 == 5
  11556. </Expanded>
  11557. </Expression>
  11558. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11559. <Original>
  11560. std::strncmp( ss.data(), "hello", 5 ) == 0
  11561. </Original>
  11562. <Expanded>
  11563. 0 == 0
  11564. </Expanded>
  11565. </Expression>
  11566. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11567. <Original>
  11568. ss == "hello"
  11569. </Original>
  11570. <Expanded>
  11571. hello == "hello"
  11572. </Expanded>
  11573. </Expression>
  11574. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  11575. </Section>
  11576. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  11577. </Section>
  11578. <Section name="Substrings" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11579. <Section name="non-zero-based substring" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11580. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11581. <Original>
  11582. ss.size() == 6
  11583. </Original>
  11584. <Expanded>
  11585. 6 == 6
  11586. </Expanded>
  11587. </Expression>
  11588. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11589. <Original>
  11590. std::strcmp( ss.c_str(), "world!" ) == 0
  11591. </Original>
  11592. <Expanded>
  11593. 0 == 0
  11594. </Expanded>
  11595. </Expression>
  11596. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11597. </Section>
  11598. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11599. </Section>
  11600. <Section name="Substrings" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11601. <Section name="Pointer values of full refs should match" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11602. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11603. <Original>
  11604. s.data() == s2.data()
  11605. </Original>
  11606. <Expanded>
  11607. "hello world!" == "hello world!"
  11608. </Expanded>
  11609. </Expression>
  11610. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11611. </Section>
  11612. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11613. </Section>
  11614. <Section name="Substrings" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11615. <Section name="Pointer values of substring refs should also match" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11616. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11617. <Original>
  11618. s.data() == ss.data()
  11619. </Original>
  11620. <Expanded>
  11621. "hello world!" == "hello world!"
  11622. </Expanded>
  11623. </Expression>
  11624. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11625. </Section>
  11626. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11627. </Section>
  11628. <Section name="Substrings" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11629. <Section name="Past the end substring" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11630. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11631. <Original>
  11632. s.substr(s.size() + 1, 123).empty()
  11633. </Original>
  11634. <Expanded>
  11635. true
  11636. </Expanded>
  11637. </Expression>
  11638. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11639. </Section>
  11640. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11641. </Section>
  11642. <Section name="Substrings" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11643. <Section name="Substring off the end are trimmed" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11644. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11645. <Original>
  11646. std::strcmp(ss.c_str(), "world!") == 0
  11647. </Original>
  11648. <Expanded>
  11649. 0 == 0
  11650. </Expanded>
  11651. </Expression>
  11652. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11653. </Section>
  11654. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  11655. </Section>
  11656. <Section name="Comparisons are deep" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11657. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11658. <Original>
  11659. (char*)buffer1 != (char*)buffer2
  11660. </Original>
  11661. <Expanded>
  11662. "Hello" != "Hello"
  11663. </Expanded>
  11664. </Expression>
  11665. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11666. <Original>
  11667. left == right
  11668. </Original>
  11669. <Expanded>
  11670. Hello == Hello
  11671. </Expanded>
  11672. </Expression>
  11673. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11674. <Original>
  11675. left != left.substr(0, 3)
  11676. </Original>
  11677. <Expanded>
  11678. Hello != Hel
  11679. </Expanded>
  11680. </Expression>
  11681. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  11682. </Section>
  11683. <Section name="from std::string" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11684. <Section name="implicitly constructed" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11685. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11686. <Original>
  11687. sr == "a standard string"
  11688. </Original>
  11689. <Expanded>
  11690. a standard string == "a standard string"
  11691. </Expanded>
  11692. </Expression>
  11693. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11694. <Original>
  11695. sr.size() == stdStr.size()
  11696. </Original>
  11697. <Expanded>
  11698. 17 == 17
  11699. </Expanded>
  11700. </Expression>
  11701. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11702. </Section>
  11703. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11704. </Section>
  11705. <Section name="from std::string" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11706. <Section name="explicitly constructed" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11707. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11708. <Original>
  11709. sr == "a standard string"
  11710. </Original>
  11711. <Expanded>
  11712. a standard string == "a standard string"
  11713. </Expanded>
  11714. </Expression>
  11715. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11716. <Original>
  11717. sr.size() == stdStr.size()
  11718. </Original>
  11719. <Expanded>
  11720. 17 == 17
  11721. </Expanded>
  11722. </Expression>
  11723. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11724. </Section>
  11725. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11726. </Section>
  11727. <Section name="from std::string" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11728. <Section name="assigned" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11729. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11730. <Original>
  11731. sr == "a standard string"
  11732. </Original>
  11733. <Expanded>
  11734. a standard string == "a standard string"
  11735. </Expanded>
  11736. </Expression>
  11737. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11738. <Original>
  11739. sr.size() == stdStr.size()
  11740. </Original>
  11741. <Expanded>
  11742. 17 == 17
  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="to std::string" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11750. <Section name="explicitly constructed" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11751. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11752. <Original>
  11753. stdStr == "a stringref"
  11754. </Original>
  11755. <Expanded>
  11756. "a stringref" == "a stringref"
  11757. </Expanded>
  11758. </Expression>
  11759. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11760. <Original>
  11761. stdStr.size() == sr.size()
  11762. </Original>
  11763. <Expanded>
  11764. 11 == 11
  11765. </Expanded>
  11766. </Expression>
  11767. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11768. </Section>
  11769. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11770. </Section>
  11771. <Section name="to std::string" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11772. <Section name="assigned" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11773. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11774. <Original>
  11775. stdStr == "a stringref"
  11776. </Original>
  11777. <Expanded>
  11778. "a stringref" == "a stringref"
  11779. </Expanded>
  11780. </Expression>
  11781. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11782. <Original>
  11783. stdStr.size() == sr.size()
  11784. </Original>
  11785. <Expanded>
  11786. 11 == 11
  11787. </Expanded>
  11788. </Expression>
  11789. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11790. </Section>
  11791. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  11792. </Section>
  11793. <OverallResult success="true"/>
  11794. </TestCase>
  11795. <TestCase name="StringRef at compilation time" tags="[StringRef][Strings][constexpr]" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11796. <Section name="Simple constructors" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11797. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  11798. </Section>
  11799. <Section name="UDL construction" filename="projects/<exe-name>/IntrospectiveTests/String.tests.cpp" >
  11800. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  11801. </Section>
  11802. <OverallResult success="true"/>
  11803. </TestCase>
  11804. <TestCase name="Stringifying std::chrono::duration helpers" tags="[chrono][toString]" filename="projects/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  11805. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  11806. <Original>
  11807. minute == seconds
  11808. </Original>
  11809. <Expanded>
  11810. 1 m == 60 s
  11811. </Expanded>
  11812. </Expression>
  11813. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  11814. <Original>
  11815. hour != seconds
  11816. </Original>
  11817. <Expanded>
  11818. 1 h != 60 s
  11819. </Expanded>
  11820. </Expression>
  11821. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  11822. <Original>
  11823. micro != milli
  11824. </Original>
  11825. <Expanded>
  11826. 1 us != 1 ms
  11827. </Expanded>
  11828. </Expression>
  11829. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  11830. <Original>
  11831. nano != micro
  11832. </Original>
  11833. <Expanded>
  11834. 1 ns != 1 us
  11835. </Expanded>
  11836. </Expression>
  11837. <OverallResult success="true"/>
  11838. </TestCase>
  11839. <TestCase name="Stringifying std::chrono::duration with weird ratios" tags="[chrono][toString]" filename="projects/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  11840. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  11841. <Original>
  11842. half_minute != femto_second
  11843. </Original>
  11844. <Expanded>
  11845. 1 [30/1]s != 1 fs
  11846. </Expanded>
  11847. </Expression>
  11848. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  11849. <Original>
  11850. pico_second != atto_second
  11851. </Original>
  11852. <Expanded>
  11853. 1 ps != 1 as
  11854. </Expanded>
  11855. </Expression>
  11856. <OverallResult success="true"/>
  11857. </TestCase>
  11858. <TestCase name="Stringifying std::chrono::time_point&lt;system_clock>" tags="[chrono][toString]" filename="projects/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  11859. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
  11860. <Original>
  11861. now != later
  11862. </Original>
  11863. <Expanded>
  11864. {iso8601-timestamp}
  11865. !=
  11866. {iso8601-timestamp}
  11867. </Expanded>
  11868. </Expression>
  11869. <OverallResult success="true"/>
  11870. </TestCase>
  11871. <TestCase name="Tabs and newlines show in output" tags="[!hide][.][failing][whitespace]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  11872. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  11873. <Original>
  11874. s1 == s2
  11875. </Original>
  11876. <Expanded>
  11877. "if ($b == 10) {
  11878. $a = 20;
  11879. }"
  11880. ==
  11881. "if ($b == 10) {
  11882. $a = 20;
  11883. }
  11884. "
  11885. </Expanded>
  11886. </Expression>
  11887. <OverallResult success="false"/>
  11888. </TestCase>
  11889. <TestCase name="Tag alias can be registered against tag patterns" filename="projects/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  11890. <Section name="The same tag alias can only be registered once" filename="projects/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  11891. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  11892. <Original>
  11893. what, Contains( "[@zzz]" )
  11894. </Original>
  11895. <Expanded>
  11896. "error: tag alias, '[@zzz]' already registered.
  11897. First seen at: file:2
  11898. Redefined at: file:10" contains: "[@zzz]"
  11899. </Expanded>
  11900. </Expression>
  11901. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  11902. <Original>
  11903. what, Contains( "file" )
  11904. </Original>
  11905. <Expanded>
  11906. "error: tag alias, '[@zzz]' already registered.
  11907. First seen at: file:2
  11908. Redefined at: file:10" contains: "file"
  11909. </Expanded>
  11910. </Expression>
  11911. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  11912. <Original>
  11913. what, Contains( "2" )
  11914. </Original>
  11915. <Expanded>
  11916. "error: tag alias, '[@zzz]' already registered.
  11917. First seen at: file:2
  11918. Redefined at: file:10" contains: "2"
  11919. </Expanded>
  11920. </Expression>
  11921. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  11922. <Original>
  11923. what, Contains( "10" )
  11924. </Original>
  11925. <Expanded>
  11926. "error: tag alias, '[@zzz]' already registered.
  11927. First seen at: file:2
  11928. Redefined at: file:10" contains: "10"
  11929. </Expanded>
  11930. </Expression>
  11931. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  11932. </Section>
  11933. <Section name="Tag aliases must be of the form [@name]" filename="projects/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  11934. <Expression success="true" type="CHECK_THROWS" filename="projects/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  11935. <Original>
  11936. registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) )
  11937. </Original>
  11938. <Expanded>
  11939. registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) )
  11940. </Expanded>
  11941. </Expression>
  11942. <Expression success="true" type="CHECK_THROWS" filename="projects/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  11943. <Original>
  11944. registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) )
  11945. </Original>
  11946. <Expanded>
  11947. registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) )
  11948. </Expanded>
  11949. </Expression>
  11950. <Expression success="true" type="CHECK_THROWS" filename="projects/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  11951. <Original>
  11952. registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) )
  11953. </Original>
  11954. <Expanded>
  11955. registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) )
  11956. </Expanded>
  11957. </Expression>
  11958. <Expression success="true" type="CHECK_THROWS" filename="projects/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  11959. <Original>
  11960. registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) )
  11961. </Original>
  11962. <Expanded>
  11963. registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) )
  11964. </Expanded>
  11965. </Expression>
  11966. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  11967. </Section>
  11968. <OverallResult success="true"/>
  11969. </TestCase>
  11970. <TestCase name="Template test case method with test types specified inside std::tuple - MyTypes - 0" tags="[class][list][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  11971. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  11972. <Original>
  11973. Template_Fixture&lt;TestType>::m_a == 1
  11974. </Original>
  11975. <Expanded>
  11976. 1 == 1
  11977. </Expanded>
  11978. </Expression>
  11979. <OverallResult success="true"/>
  11980. </TestCase>
  11981. <TestCase name="Template test case method with test types specified inside std::tuple - MyTypes - 1" tags="[class][list][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  11982. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  11983. <Original>
  11984. Template_Fixture&lt;TestType>::m_a == 1
  11985. </Original>
  11986. <Expanded>
  11987. 1 == 1
  11988. </Expanded>
  11989. </Expression>
  11990. <OverallResult success="true"/>
  11991. </TestCase>
  11992. <TestCase name="Template test case method with test types specified inside std::tuple - MyTypes - 2" tags="[class][list][template]" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  11993. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Class.tests.cpp" >
  11994. <Original>
  11995. Template_Fixture&lt;TestType>::m_a == 1
  11996. </Original>
  11997. <Expanded>
  11998. 1.0 == 1
  11999. </Expanded>
  12000. </Expression>
  12001. <OverallResult success="true"/>
  12002. </TestCase>
  12003. <TestCase name="Template test case with test types specified inside non-copyable and non-movable std::tuple - NonCopyableAndNonMovableTypes - 0" tags="[list][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12004. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12005. <Original>
  12006. sizeof(TestType) > 0
  12007. </Original>
  12008. <Expanded>
  12009. 1 > 0
  12010. </Expanded>
  12011. </Expression>
  12012. <OverallResult success="true"/>
  12013. </TestCase>
  12014. <TestCase name="Template test case with test types specified inside non-copyable and non-movable std::tuple - NonCopyableAndNonMovableTypes - 1" tags="[list][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12015. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12016. <Original>
  12017. sizeof(TestType) > 0
  12018. </Original>
  12019. <Expanded>
  12020. 4 > 0
  12021. </Expanded>
  12022. </Expression>
  12023. <OverallResult success="true"/>
  12024. </TestCase>
  12025. <TestCase name="Template test case with test types specified inside non-default-constructible std::tuple - MyNonDefaultConstructibleTypes - 0" tags="[list][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12026. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12027. <Original>
  12028. sizeof(TestType) > 0
  12029. </Original>
  12030. <Expanded>
  12031. 1 > 0
  12032. </Expanded>
  12033. </Expression>
  12034. <OverallResult success="true"/>
  12035. </TestCase>
  12036. <TestCase name="Template test case with test types specified inside non-default-constructible std::tuple - MyNonDefaultConstructibleTypes - 1" tags="[list][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12037. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12038. <Original>
  12039. sizeof(TestType) > 0
  12040. </Original>
  12041. <Expanded>
  12042. 4 > 0
  12043. </Expanded>
  12044. </Expression>
  12045. <OverallResult success="true"/>
  12046. </TestCase>
  12047. <TestCase name="Template test case with test types specified inside std::tuple - MyTypes - 0" tags="[list][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12048. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12049. <Original>
  12050. sizeof(TestType) > 0
  12051. </Original>
  12052. <Expanded>
  12053. 4 > 0
  12054. </Expanded>
  12055. </Expression>
  12056. <OverallResult success="true"/>
  12057. </TestCase>
  12058. <TestCase name="Template test case with test types specified inside std::tuple - MyTypes - 1" tags="[list][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12059. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12060. <Original>
  12061. sizeof(TestType) > 0
  12062. </Original>
  12063. <Expanded>
  12064. 1 > 0
  12065. </Expanded>
  12066. </Expression>
  12067. <OverallResult success="true"/>
  12068. </TestCase>
  12069. <TestCase name="Template test case with test types specified inside std::tuple - MyTypes - 2" tags="[list][template]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12070. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12071. <Original>
  12072. sizeof(TestType) > 0
  12073. </Original>
  12074. <Expanded>
  12075. 4 > 0
  12076. </Expanded>
  12077. </Expression>
  12078. <OverallResult success="true"/>
  12079. </TestCase>
  12080. <TestCase name="TemplateTest: vectors can be sized and resized - float" tags="[template][vector]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12081. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12082. <Original>
  12083. v.size() == 5
  12084. </Original>
  12085. <Expanded>
  12086. 5 == 5
  12087. </Expanded>
  12088. </Expression>
  12089. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12090. <Original>
  12091. v.capacity() >= 5
  12092. </Original>
  12093. <Expanded>
  12094. 5 >= 5
  12095. </Expanded>
  12096. </Expression>
  12097. <Section name="resizing bigger changes size and capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12098. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12099. <Original>
  12100. v.size() == 10
  12101. </Original>
  12102. <Expanded>
  12103. 10 == 10
  12104. </Expanded>
  12105. </Expression>
  12106. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12107. <Original>
  12108. v.capacity() >= 10
  12109. </Original>
  12110. <Expanded>
  12111. 10 >= 10
  12112. </Expanded>
  12113. </Expression>
  12114. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12115. </Section>
  12116. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12117. <Original>
  12118. v.size() == 5
  12119. </Original>
  12120. <Expanded>
  12121. 5 == 5
  12122. </Expanded>
  12123. </Expression>
  12124. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12125. <Original>
  12126. v.capacity() >= 5
  12127. </Original>
  12128. <Expanded>
  12129. 5 >= 5
  12130. </Expanded>
  12131. </Expression>
  12132. <Section name="resizing smaller changes size but not capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12133. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12134. <Original>
  12135. v.size() == 0
  12136. </Original>
  12137. <Expanded>
  12138. 0 == 0
  12139. </Expanded>
  12140. </Expression>
  12141. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12142. <Original>
  12143. v.capacity() >= 5
  12144. </Original>
  12145. <Expanded>
  12146. 5 >= 5
  12147. </Expanded>
  12148. </Expression>
  12149. <Section name="We can use the 'swap trick' to reset the capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12150. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12151. <Original>
  12152. v.capacity() == 0
  12153. </Original>
  12154. <Expanded>
  12155. 0 == 0
  12156. </Expanded>
  12157. </Expression>
  12158. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12159. </Section>
  12160. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  12161. </Section>
  12162. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12163. <Original>
  12164. v.size() == 5
  12165. </Original>
  12166. <Expanded>
  12167. 5 == 5
  12168. </Expanded>
  12169. </Expression>
  12170. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12171. <Original>
  12172. v.capacity() >= 5
  12173. </Original>
  12174. <Expanded>
  12175. 5 >= 5
  12176. </Expanded>
  12177. </Expression>
  12178. <Section name="reserving bigger changes capacity but not size" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12179. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12180. <Original>
  12181. v.size() == 5
  12182. </Original>
  12183. <Expanded>
  12184. 5 == 5
  12185. </Expanded>
  12186. </Expression>
  12187. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12188. <Original>
  12189. v.capacity() >= 10
  12190. </Original>
  12191. <Expanded>
  12192. 10 >= 10
  12193. </Expanded>
  12194. </Expression>
  12195. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12196. </Section>
  12197. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12198. <Original>
  12199. v.size() == 5
  12200. </Original>
  12201. <Expanded>
  12202. 5 == 5
  12203. </Expanded>
  12204. </Expression>
  12205. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12206. <Original>
  12207. v.capacity() >= 5
  12208. </Original>
  12209. <Expanded>
  12210. 5 >= 5
  12211. </Expanded>
  12212. </Expression>
  12213. <Section name="reserving smaller does not change size or capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12214. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12215. <Original>
  12216. v.size() == 5
  12217. </Original>
  12218. <Expanded>
  12219. 5 == 5
  12220. </Expanded>
  12221. </Expression>
  12222. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12223. <Original>
  12224. v.capacity() >= 5
  12225. </Original>
  12226. <Expanded>
  12227. 5 >= 5
  12228. </Expanded>
  12229. </Expression>
  12230. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12231. </Section>
  12232. <OverallResult success="true"/>
  12233. </TestCase>
  12234. <TestCase name="TemplateTest: vectors can be sized and resized - int" tags="[template][vector]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12235. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12236. <Original>
  12237. v.size() == 5
  12238. </Original>
  12239. <Expanded>
  12240. 5 == 5
  12241. </Expanded>
  12242. </Expression>
  12243. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12244. <Original>
  12245. v.capacity() >= 5
  12246. </Original>
  12247. <Expanded>
  12248. 5 >= 5
  12249. </Expanded>
  12250. </Expression>
  12251. <Section name="resizing bigger changes size and capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12252. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12253. <Original>
  12254. v.size() == 10
  12255. </Original>
  12256. <Expanded>
  12257. 10 == 10
  12258. </Expanded>
  12259. </Expression>
  12260. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12261. <Original>
  12262. v.capacity() >= 10
  12263. </Original>
  12264. <Expanded>
  12265. 10 >= 10
  12266. </Expanded>
  12267. </Expression>
  12268. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12269. </Section>
  12270. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12271. <Original>
  12272. v.size() == 5
  12273. </Original>
  12274. <Expanded>
  12275. 5 == 5
  12276. </Expanded>
  12277. </Expression>
  12278. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12279. <Original>
  12280. v.capacity() >= 5
  12281. </Original>
  12282. <Expanded>
  12283. 5 >= 5
  12284. </Expanded>
  12285. </Expression>
  12286. <Section name="resizing smaller changes size but not capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12287. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12288. <Original>
  12289. v.size() == 0
  12290. </Original>
  12291. <Expanded>
  12292. 0 == 0
  12293. </Expanded>
  12294. </Expression>
  12295. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12296. <Original>
  12297. v.capacity() >= 5
  12298. </Original>
  12299. <Expanded>
  12300. 5 >= 5
  12301. </Expanded>
  12302. </Expression>
  12303. <Section name="We can use the 'swap trick' to reset the capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12304. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12305. <Original>
  12306. v.capacity() == 0
  12307. </Original>
  12308. <Expanded>
  12309. 0 == 0
  12310. </Expanded>
  12311. </Expression>
  12312. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12313. </Section>
  12314. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  12315. </Section>
  12316. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12317. <Original>
  12318. v.size() == 5
  12319. </Original>
  12320. <Expanded>
  12321. 5 == 5
  12322. </Expanded>
  12323. </Expression>
  12324. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12325. <Original>
  12326. v.capacity() >= 5
  12327. </Original>
  12328. <Expanded>
  12329. 5 >= 5
  12330. </Expanded>
  12331. </Expression>
  12332. <Section name="reserving bigger changes capacity but not size" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12333. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12334. <Original>
  12335. v.size() == 5
  12336. </Original>
  12337. <Expanded>
  12338. 5 == 5
  12339. </Expanded>
  12340. </Expression>
  12341. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12342. <Original>
  12343. v.capacity() >= 10
  12344. </Original>
  12345. <Expanded>
  12346. 10 >= 10
  12347. </Expanded>
  12348. </Expression>
  12349. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12350. </Section>
  12351. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12352. <Original>
  12353. v.size() == 5
  12354. </Original>
  12355. <Expanded>
  12356. 5 == 5
  12357. </Expanded>
  12358. </Expression>
  12359. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12360. <Original>
  12361. v.capacity() >= 5
  12362. </Original>
  12363. <Expanded>
  12364. 5 >= 5
  12365. </Expanded>
  12366. </Expression>
  12367. <Section name="reserving smaller does not change size or capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12368. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12369. <Original>
  12370. v.size() == 5
  12371. </Original>
  12372. <Expanded>
  12373. 5 == 5
  12374. </Expanded>
  12375. </Expression>
  12376. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12377. <Original>
  12378. v.capacity() >= 5
  12379. </Original>
  12380. <Expanded>
  12381. 5 >= 5
  12382. </Expanded>
  12383. </Expression>
  12384. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12385. </Section>
  12386. <OverallResult success="true"/>
  12387. </TestCase>
  12388. <TestCase name="TemplateTest: vectors can be sized and resized - std::string" tags="[template][vector]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12389. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12390. <Original>
  12391. v.size() == 5
  12392. </Original>
  12393. <Expanded>
  12394. 5 == 5
  12395. </Expanded>
  12396. </Expression>
  12397. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12398. <Original>
  12399. v.capacity() >= 5
  12400. </Original>
  12401. <Expanded>
  12402. 5 >= 5
  12403. </Expanded>
  12404. </Expression>
  12405. <Section name="resizing bigger changes size and capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12406. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12407. <Original>
  12408. v.size() == 10
  12409. </Original>
  12410. <Expanded>
  12411. 10 == 10
  12412. </Expanded>
  12413. </Expression>
  12414. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12415. <Original>
  12416. v.capacity() >= 10
  12417. </Original>
  12418. <Expanded>
  12419. 10 >= 10
  12420. </Expanded>
  12421. </Expression>
  12422. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12423. </Section>
  12424. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12425. <Original>
  12426. v.size() == 5
  12427. </Original>
  12428. <Expanded>
  12429. 5 == 5
  12430. </Expanded>
  12431. </Expression>
  12432. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12433. <Original>
  12434. v.capacity() >= 5
  12435. </Original>
  12436. <Expanded>
  12437. 5 >= 5
  12438. </Expanded>
  12439. </Expression>
  12440. <Section name="resizing smaller changes size but not capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12441. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12442. <Original>
  12443. v.size() == 0
  12444. </Original>
  12445. <Expanded>
  12446. 0 == 0
  12447. </Expanded>
  12448. </Expression>
  12449. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12450. <Original>
  12451. v.capacity() >= 5
  12452. </Original>
  12453. <Expanded>
  12454. 5 >= 5
  12455. </Expanded>
  12456. </Expression>
  12457. <Section name="We can use the 'swap trick' to reset the capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12458. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12459. <Original>
  12460. v.capacity() == 0
  12461. </Original>
  12462. <Expanded>
  12463. 0 == 0
  12464. </Expanded>
  12465. </Expression>
  12466. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12467. </Section>
  12468. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  12469. </Section>
  12470. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12471. <Original>
  12472. v.size() == 5
  12473. </Original>
  12474. <Expanded>
  12475. 5 == 5
  12476. </Expanded>
  12477. </Expression>
  12478. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12479. <Original>
  12480. v.capacity() >= 5
  12481. </Original>
  12482. <Expanded>
  12483. 5 >= 5
  12484. </Expanded>
  12485. </Expression>
  12486. <Section name="reserving bigger changes capacity but not size" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12487. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12488. <Original>
  12489. v.size() == 5
  12490. </Original>
  12491. <Expanded>
  12492. 5 == 5
  12493. </Expanded>
  12494. </Expression>
  12495. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12496. <Original>
  12497. v.capacity() >= 10
  12498. </Original>
  12499. <Expanded>
  12500. 10 >= 10
  12501. </Expanded>
  12502. </Expression>
  12503. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12504. </Section>
  12505. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12506. <Original>
  12507. v.size() == 5
  12508. </Original>
  12509. <Expanded>
  12510. 5 == 5
  12511. </Expanded>
  12512. </Expression>
  12513. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12514. <Original>
  12515. v.capacity() >= 5
  12516. </Original>
  12517. <Expanded>
  12518. 5 >= 5
  12519. </Expanded>
  12520. </Expression>
  12521. <Section name="reserving smaller does not change size or capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12522. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12523. <Original>
  12524. v.size() == 5
  12525. </Original>
  12526. <Expanded>
  12527. 5 == 5
  12528. </Expanded>
  12529. </Expression>
  12530. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12531. <Original>
  12532. v.capacity() >= 5
  12533. </Original>
  12534. <Expanded>
  12535. 5 >= 5
  12536. </Expanded>
  12537. </Expression>
  12538. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12539. </Section>
  12540. <OverallResult success="true"/>
  12541. </TestCase>
  12542. <TestCase name="TemplateTest: vectors can be sized and resized - std::tuple&lt;int,float>" tags="[template][vector]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12543. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12544. <Original>
  12545. v.size() == 5
  12546. </Original>
  12547. <Expanded>
  12548. 5 == 5
  12549. </Expanded>
  12550. </Expression>
  12551. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12552. <Original>
  12553. v.capacity() >= 5
  12554. </Original>
  12555. <Expanded>
  12556. 5 >= 5
  12557. </Expanded>
  12558. </Expression>
  12559. <Section name="resizing bigger changes size and capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12560. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12561. <Original>
  12562. v.size() == 10
  12563. </Original>
  12564. <Expanded>
  12565. 10 == 10
  12566. </Expanded>
  12567. </Expression>
  12568. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12569. <Original>
  12570. v.capacity() >= 10
  12571. </Original>
  12572. <Expanded>
  12573. 10 >= 10
  12574. </Expanded>
  12575. </Expression>
  12576. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12577. </Section>
  12578. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12579. <Original>
  12580. v.size() == 5
  12581. </Original>
  12582. <Expanded>
  12583. 5 == 5
  12584. </Expanded>
  12585. </Expression>
  12586. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12587. <Original>
  12588. v.capacity() >= 5
  12589. </Original>
  12590. <Expanded>
  12591. 5 >= 5
  12592. </Expanded>
  12593. </Expression>
  12594. <Section name="resizing smaller changes size but not capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12595. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12596. <Original>
  12597. v.size() == 0
  12598. </Original>
  12599. <Expanded>
  12600. 0 == 0
  12601. </Expanded>
  12602. </Expression>
  12603. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12604. <Original>
  12605. v.capacity() >= 5
  12606. </Original>
  12607. <Expanded>
  12608. 5 >= 5
  12609. </Expanded>
  12610. </Expression>
  12611. <Section name="We can use the 'swap trick' to reset the capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12612. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12613. <Original>
  12614. v.capacity() == 0
  12615. </Original>
  12616. <Expanded>
  12617. 0 == 0
  12618. </Expanded>
  12619. </Expression>
  12620. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12621. </Section>
  12622. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  12623. </Section>
  12624. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12625. <Original>
  12626. v.size() == 5
  12627. </Original>
  12628. <Expanded>
  12629. 5 == 5
  12630. </Expanded>
  12631. </Expression>
  12632. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12633. <Original>
  12634. v.capacity() >= 5
  12635. </Original>
  12636. <Expanded>
  12637. 5 >= 5
  12638. </Expanded>
  12639. </Expression>
  12640. <Section name="reserving bigger changes capacity but not size" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12641. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12642. <Original>
  12643. v.size() == 5
  12644. </Original>
  12645. <Expanded>
  12646. 5 == 5
  12647. </Expanded>
  12648. </Expression>
  12649. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12650. <Original>
  12651. v.capacity() >= 10
  12652. </Original>
  12653. <Expanded>
  12654. 10 >= 10
  12655. </Expanded>
  12656. </Expression>
  12657. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12658. </Section>
  12659. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12660. <Original>
  12661. v.size() == 5
  12662. </Original>
  12663. <Expanded>
  12664. 5 == 5
  12665. </Expanded>
  12666. </Expression>
  12667. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12668. <Original>
  12669. v.capacity() >= 5
  12670. </Original>
  12671. <Expanded>
  12672. 5 >= 5
  12673. </Expanded>
  12674. </Expression>
  12675. <Section name="reserving smaller does not change size or capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12676. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12677. <Original>
  12678. v.size() == 5
  12679. </Original>
  12680. <Expanded>
  12681. 5 == 5
  12682. </Expanded>
  12683. </Expression>
  12684. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12685. <Original>
  12686. v.capacity() >= 5
  12687. </Original>
  12688. <Expanded>
  12689. 5 >= 5
  12690. </Expanded>
  12691. </Expression>
  12692. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12693. </Section>
  12694. <OverallResult success="true"/>
  12695. </TestCase>
  12696. <TestCase name="TemplateTestSig: vectors can be sized and resized - (std::tuple&lt;int, float>), 6" tags="[nttp][template][vector]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12697. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12698. <Original>
  12699. v.size() == V
  12700. </Original>
  12701. <Expanded>
  12702. 6 == 6
  12703. </Expanded>
  12704. </Expression>
  12705. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12706. <Original>
  12707. v.capacity() >= V
  12708. </Original>
  12709. <Expanded>
  12710. 6 >= 6
  12711. </Expanded>
  12712. </Expression>
  12713. <Section name="resizing bigger changes size and capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12714. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12715. <Original>
  12716. v.size() == 2 * V
  12717. </Original>
  12718. <Expanded>
  12719. 12 == 12
  12720. </Expanded>
  12721. </Expression>
  12722. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12723. <Original>
  12724. v.capacity() >= 2 * V
  12725. </Original>
  12726. <Expanded>
  12727. 12 >= 12
  12728. </Expanded>
  12729. </Expression>
  12730. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12731. </Section>
  12732. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12733. <Original>
  12734. v.size() == V
  12735. </Original>
  12736. <Expanded>
  12737. 6 == 6
  12738. </Expanded>
  12739. </Expression>
  12740. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12741. <Original>
  12742. v.capacity() >= V
  12743. </Original>
  12744. <Expanded>
  12745. 6 >= 6
  12746. </Expanded>
  12747. </Expression>
  12748. <Section name="resizing smaller changes size but not capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12749. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12750. <Original>
  12751. v.size() == 0
  12752. </Original>
  12753. <Expanded>
  12754. 0 == 0
  12755. </Expanded>
  12756. </Expression>
  12757. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12758. <Original>
  12759. v.capacity() >= V
  12760. </Original>
  12761. <Expanded>
  12762. 6 >= 6
  12763. </Expanded>
  12764. </Expression>
  12765. <Section name="We can use the 'swap trick' to reset the capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12766. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12767. <Original>
  12768. v.capacity() == 0
  12769. </Original>
  12770. <Expanded>
  12771. 0 == 0
  12772. </Expanded>
  12773. </Expression>
  12774. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12775. </Section>
  12776. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  12777. </Section>
  12778. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12779. <Original>
  12780. v.size() == V
  12781. </Original>
  12782. <Expanded>
  12783. 6 == 6
  12784. </Expanded>
  12785. </Expression>
  12786. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12787. <Original>
  12788. v.capacity() >= V
  12789. </Original>
  12790. <Expanded>
  12791. 6 >= 6
  12792. </Expanded>
  12793. </Expression>
  12794. <Section name="reserving bigger changes capacity but not size" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12795. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12796. <Original>
  12797. v.size() == V
  12798. </Original>
  12799. <Expanded>
  12800. 6 == 6
  12801. </Expanded>
  12802. </Expression>
  12803. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12804. <Original>
  12805. v.capacity() >= 2 * V
  12806. </Original>
  12807. <Expanded>
  12808. 12 >= 12
  12809. </Expanded>
  12810. </Expression>
  12811. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12812. </Section>
  12813. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12814. <Original>
  12815. v.size() == V
  12816. </Original>
  12817. <Expanded>
  12818. 6 == 6
  12819. </Expanded>
  12820. </Expression>
  12821. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12822. <Original>
  12823. v.capacity() >= V
  12824. </Original>
  12825. <Expanded>
  12826. 6 >= 6
  12827. </Expanded>
  12828. </Expression>
  12829. <Section name="reserving smaller does not change size or capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12830. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12831. <Original>
  12832. v.size() == V
  12833. </Original>
  12834. <Expanded>
  12835. 6 == 6
  12836. </Expanded>
  12837. </Expression>
  12838. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12839. <Original>
  12840. v.capacity() >= V
  12841. </Original>
  12842. <Expanded>
  12843. 6 >= 6
  12844. </Expanded>
  12845. </Expression>
  12846. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12847. </Section>
  12848. <OverallResult success="true"/>
  12849. </TestCase>
  12850. <TestCase name="TemplateTestSig: vectors can be sized and resized - float,4" tags="[nttp][template][vector]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12851. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12852. <Original>
  12853. v.size() == V
  12854. </Original>
  12855. <Expanded>
  12856. 4 == 4
  12857. </Expanded>
  12858. </Expression>
  12859. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12860. <Original>
  12861. v.capacity() >= V
  12862. </Original>
  12863. <Expanded>
  12864. 4 >= 4
  12865. </Expanded>
  12866. </Expression>
  12867. <Section name="resizing bigger changes size and capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12868. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12869. <Original>
  12870. v.size() == 2 * V
  12871. </Original>
  12872. <Expanded>
  12873. 8 == 8
  12874. </Expanded>
  12875. </Expression>
  12876. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12877. <Original>
  12878. v.capacity() >= 2 * V
  12879. </Original>
  12880. <Expanded>
  12881. 8 >= 8
  12882. </Expanded>
  12883. </Expression>
  12884. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12885. </Section>
  12886. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12887. <Original>
  12888. v.size() == V
  12889. </Original>
  12890. <Expanded>
  12891. 4 == 4
  12892. </Expanded>
  12893. </Expression>
  12894. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12895. <Original>
  12896. v.capacity() >= V
  12897. </Original>
  12898. <Expanded>
  12899. 4 >= 4
  12900. </Expanded>
  12901. </Expression>
  12902. <Section name="resizing smaller changes size but not capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12903. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12904. <Original>
  12905. v.size() == 0
  12906. </Original>
  12907. <Expanded>
  12908. 0 == 0
  12909. </Expanded>
  12910. </Expression>
  12911. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12912. <Original>
  12913. v.capacity() >= V
  12914. </Original>
  12915. <Expanded>
  12916. 4 >= 4
  12917. </Expanded>
  12918. </Expression>
  12919. <Section name="We can use the 'swap trick' to reset the capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12920. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12921. <Original>
  12922. v.capacity() == 0
  12923. </Original>
  12924. <Expanded>
  12925. 0 == 0
  12926. </Expanded>
  12927. </Expression>
  12928. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  12929. </Section>
  12930. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  12931. </Section>
  12932. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12933. <Original>
  12934. v.size() == V
  12935. </Original>
  12936. <Expanded>
  12937. 4 == 4
  12938. </Expanded>
  12939. </Expression>
  12940. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12941. <Original>
  12942. v.capacity() >= V
  12943. </Original>
  12944. <Expanded>
  12945. 4 >= 4
  12946. </Expanded>
  12947. </Expression>
  12948. <Section name="reserving bigger changes capacity but not size" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12949. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12950. <Original>
  12951. v.size() == V
  12952. </Original>
  12953. <Expanded>
  12954. 4 == 4
  12955. </Expanded>
  12956. </Expression>
  12957. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12958. <Original>
  12959. v.capacity() >= 2 * V
  12960. </Original>
  12961. <Expanded>
  12962. 8 >= 8
  12963. </Expanded>
  12964. </Expression>
  12965. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  12966. </Section>
  12967. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12968. <Original>
  12969. v.size() == V
  12970. </Original>
  12971. <Expanded>
  12972. 4 == 4
  12973. </Expanded>
  12974. </Expression>
  12975. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12976. <Original>
  12977. v.capacity() >= V
  12978. </Original>
  12979. <Expanded>
  12980. 4 >= 4
  12981. </Expanded>
  12982. </Expression>
  12983. <Section name="reserving smaller does not change size or capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12984. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12985. <Original>
  12986. v.size() == V
  12987. </Original>
  12988. <Expanded>
  12989. 4 == 4
  12990. </Expanded>
  12991. </Expression>
  12992. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  12993. <Original>
  12994. v.capacity() >= V
  12995. </Original>
  12996. <Expanded>
  12997. 4 >= 4
  12998. </Expanded>
  12999. </Expression>
  13000. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13001. </Section>
  13002. <OverallResult success="true"/>
  13003. </TestCase>
  13004. <TestCase name="TemplateTestSig: vectors can be sized and resized - int,5" tags="[nttp][template][vector]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13005. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13006. <Original>
  13007. v.size() == V
  13008. </Original>
  13009. <Expanded>
  13010. 5 == 5
  13011. </Expanded>
  13012. </Expression>
  13013. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13014. <Original>
  13015. v.capacity() >= V
  13016. </Original>
  13017. <Expanded>
  13018. 5 >= 5
  13019. </Expanded>
  13020. </Expression>
  13021. <Section name="resizing bigger changes size and capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13022. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13023. <Original>
  13024. v.size() == 2 * V
  13025. </Original>
  13026. <Expanded>
  13027. 10 == 10
  13028. </Expanded>
  13029. </Expression>
  13030. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13031. <Original>
  13032. v.capacity() >= 2 * V
  13033. </Original>
  13034. <Expanded>
  13035. 10 >= 10
  13036. </Expanded>
  13037. </Expression>
  13038. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13039. </Section>
  13040. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13041. <Original>
  13042. v.size() == V
  13043. </Original>
  13044. <Expanded>
  13045. 5 == 5
  13046. </Expanded>
  13047. </Expression>
  13048. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13049. <Original>
  13050. v.capacity() >= V
  13051. </Original>
  13052. <Expanded>
  13053. 5 >= 5
  13054. </Expanded>
  13055. </Expression>
  13056. <Section name="resizing smaller changes size but not capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13057. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13058. <Original>
  13059. v.size() == 0
  13060. </Original>
  13061. <Expanded>
  13062. 0 == 0
  13063. </Expanded>
  13064. </Expression>
  13065. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13066. <Original>
  13067. v.capacity() >= V
  13068. </Original>
  13069. <Expanded>
  13070. 5 >= 5
  13071. </Expanded>
  13072. </Expression>
  13073. <Section name="We can use the 'swap trick' to reset the capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13074. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13075. <Original>
  13076. v.capacity() == 0
  13077. </Original>
  13078. <Expanded>
  13079. 0 == 0
  13080. </Expanded>
  13081. </Expression>
  13082. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13083. </Section>
  13084. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  13085. </Section>
  13086. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13087. <Original>
  13088. v.size() == V
  13089. </Original>
  13090. <Expanded>
  13091. 5 == 5
  13092. </Expanded>
  13093. </Expression>
  13094. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13095. <Original>
  13096. v.capacity() >= V
  13097. </Original>
  13098. <Expanded>
  13099. 5 >= 5
  13100. </Expanded>
  13101. </Expression>
  13102. <Section name="reserving bigger changes capacity but not size" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13103. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13104. <Original>
  13105. v.size() == V
  13106. </Original>
  13107. <Expanded>
  13108. 5 == 5
  13109. </Expanded>
  13110. </Expression>
  13111. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13112. <Original>
  13113. v.capacity() >= 2 * V
  13114. </Original>
  13115. <Expanded>
  13116. 10 >= 10
  13117. </Expanded>
  13118. </Expression>
  13119. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13120. </Section>
  13121. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13122. <Original>
  13123. v.size() == V
  13124. </Original>
  13125. <Expanded>
  13126. 5 == 5
  13127. </Expanded>
  13128. </Expression>
  13129. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13130. <Original>
  13131. v.capacity() >= V
  13132. </Original>
  13133. <Expanded>
  13134. 5 >= 5
  13135. </Expanded>
  13136. </Expression>
  13137. <Section name="reserving smaller does not change size or capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13138. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13139. <Original>
  13140. v.size() == V
  13141. </Original>
  13142. <Expanded>
  13143. 5 == 5
  13144. </Expanded>
  13145. </Expression>
  13146. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13147. <Original>
  13148. v.capacity() >= V
  13149. </Original>
  13150. <Expanded>
  13151. 5 >= 5
  13152. </Expanded>
  13153. </Expression>
  13154. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13155. </Section>
  13156. <OverallResult success="true"/>
  13157. </TestCase>
  13158. <TestCase name="TemplateTestSig: vectors can be sized and resized - std::string,15" tags="[nttp][template][vector]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13159. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13160. <Original>
  13161. v.size() == V
  13162. </Original>
  13163. <Expanded>
  13164. 15 == 15
  13165. </Expanded>
  13166. </Expression>
  13167. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13168. <Original>
  13169. v.capacity() >= V
  13170. </Original>
  13171. <Expanded>
  13172. 15 >= 15
  13173. </Expanded>
  13174. </Expression>
  13175. <Section name="resizing bigger changes size and capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13176. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13177. <Original>
  13178. v.size() == 2 * V
  13179. </Original>
  13180. <Expanded>
  13181. 30 == 30
  13182. </Expanded>
  13183. </Expression>
  13184. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13185. <Original>
  13186. v.capacity() >= 2 * V
  13187. </Original>
  13188. <Expanded>
  13189. 30 >= 30
  13190. </Expanded>
  13191. </Expression>
  13192. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13193. </Section>
  13194. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13195. <Original>
  13196. v.size() == V
  13197. </Original>
  13198. <Expanded>
  13199. 15 == 15
  13200. </Expanded>
  13201. </Expression>
  13202. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13203. <Original>
  13204. v.capacity() >= V
  13205. </Original>
  13206. <Expanded>
  13207. 15 >= 15
  13208. </Expanded>
  13209. </Expression>
  13210. <Section name="resizing smaller changes size but not capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13211. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13212. <Original>
  13213. v.size() == 0
  13214. </Original>
  13215. <Expanded>
  13216. 0 == 0
  13217. </Expanded>
  13218. </Expression>
  13219. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13220. <Original>
  13221. v.capacity() >= V
  13222. </Original>
  13223. <Expanded>
  13224. 15 >= 15
  13225. </Expanded>
  13226. </Expression>
  13227. <Section name="We can use the 'swap trick' to reset the capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13228. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13229. <Original>
  13230. v.capacity() == 0
  13231. </Original>
  13232. <Expanded>
  13233. 0 == 0
  13234. </Expanded>
  13235. </Expression>
  13236. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  13237. </Section>
  13238. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  13239. </Section>
  13240. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13241. <Original>
  13242. v.size() == V
  13243. </Original>
  13244. <Expanded>
  13245. 15 == 15
  13246. </Expanded>
  13247. </Expression>
  13248. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13249. <Original>
  13250. v.capacity() >= V
  13251. </Original>
  13252. <Expanded>
  13253. 15 >= 15
  13254. </Expanded>
  13255. </Expression>
  13256. <Section name="reserving bigger changes capacity but not size" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13257. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13258. <Original>
  13259. v.size() == V
  13260. </Original>
  13261. <Expanded>
  13262. 15 == 15
  13263. </Expanded>
  13264. </Expression>
  13265. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13266. <Original>
  13267. v.capacity() >= 2 * V
  13268. </Original>
  13269. <Expanded>
  13270. 30 >= 30
  13271. </Expanded>
  13272. </Expression>
  13273. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13274. </Section>
  13275. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13276. <Original>
  13277. v.size() == V
  13278. </Original>
  13279. <Expanded>
  13280. 15 == 15
  13281. </Expanded>
  13282. </Expression>
  13283. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13284. <Original>
  13285. v.capacity() >= V
  13286. </Original>
  13287. <Expanded>
  13288. 15 >= 15
  13289. </Expanded>
  13290. </Expression>
  13291. <Section name="reserving smaller does not change size or capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13292. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13293. <Original>
  13294. v.size() == V
  13295. </Original>
  13296. <Expanded>
  13297. 15 == 15
  13298. </Expanded>
  13299. </Expression>
  13300. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13301. <Original>
  13302. v.capacity() >= V
  13303. </Original>
  13304. <Expanded>
  13305. 15 >= 15
  13306. </Expanded>
  13307. </Expression>
  13308. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  13309. </Section>
  13310. <OverallResult success="true"/>
  13311. </TestCase>
  13312. <TestCase name="Test case with one argument" filename="projects/<exe-name>/UsageTests/VariadicMacros.tests.cpp" >
  13313. <OverallResult success="true"/>
  13314. </TestCase>
  13315. <TestCase name="Test enum bit values" tags="[Tricky]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  13316. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  13317. <Original>
  13318. 0x<hex digits> == bit30and31
  13319. </Original>
  13320. <Expanded>
  13321. 3221225472 (0x<hex digits>) == 3221225472
  13322. </Expanded>
  13323. </Expression>
  13324. <OverallResult success="true"/>
  13325. </TestCase>
  13326. <TestCase name="Test with special, characters &quot;in name" tags="[cli][regression]" filename="projects/<exe-name>/IntrospectiveTests/CmdLine.tests.cpp" >
  13327. <OverallResult success="true"/>
  13328. </TestCase>
  13329. <TestCase name="The NO_FAIL macro reports a failure but does not fail the test" tags="[messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  13330. <Expression success="false" type="CHECK_NOFAIL" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  13331. <Original>
  13332. 1 == 2
  13333. </Original>
  13334. <Expanded>
  13335. 1 == 2
  13336. </Expanded>
  13337. </Expression>
  13338. <OverallResult success="false"/>
  13339. </TestCase>
  13340. <TestCase name="This test 'should' fail but doesn't" tags="[!hide][!shouldfail][.][failing]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  13341. <OverallResult success="false"/>
  13342. </TestCase>
  13343. <TestCase name="Thrown string literals are translated" tags="[!hide][!throws][.][failing]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  13344. <Exception filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  13345. For some reason someone is throwing a string literal!
  13346. </Exception>
  13347. <OverallResult success="false"/>
  13348. </TestCase>
  13349. <TestCase name="Tracker" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13350. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13351. <Original>
  13352. testCase.isOpen()
  13353. </Original>
  13354. <Expanded>
  13355. true
  13356. </Expanded>
  13357. </Expression>
  13358. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13359. <Original>
  13360. s1.isOpen()
  13361. </Original>
  13362. <Expanded>
  13363. true
  13364. </Expanded>
  13365. </Expression>
  13366. <Section name="successfully close one section" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13367. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13368. <Original>
  13369. s1.isSuccessfullyCompleted()
  13370. </Original>
  13371. <Expanded>
  13372. true
  13373. </Expanded>
  13374. </Expression>
  13375. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13376. <Original>
  13377. testCase.isComplete() == false
  13378. </Original>
  13379. <Expanded>
  13380. false == false
  13381. </Expanded>
  13382. </Expression>
  13383. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13384. <Original>
  13385. ctx.completedCycle()
  13386. </Original>
  13387. <Expanded>
  13388. true
  13389. </Expanded>
  13390. </Expression>
  13391. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13392. <Original>
  13393. testCase.isSuccessfullyCompleted()
  13394. </Original>
  13395. <Expanded>
  13396. true
  13397. </Expanded>
  13398. </Expression>
  13399. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  13400. </Section>
  13401. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13402. <Original>
  13403. testCase.isOpen()
  13404. </Original>
  13405. <Expanded>
  13406. true
  13407. </Expanded>
  13408. </Expression>
  13409. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13410. <Original>
  13411. s1.isOpen()
  13412. </Original>
  13413. <Expanded>
  13414. true
  13415. </Expanded>
  13416. </Expression>
  13417. <Section name="fail one section" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13418. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13419. <Original>
  13420. s1.isComplete()
  13421. </Original>
  13422. <Expanded>
  13423. true
  13424. </Expanded>
  13425. </Expression>
  13426. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13427. <Original>
  13428. s1.isSuccessfullyCompleted() == false
  13429. </Original>
  13430. <Expanded>
  13431. false == false
  13432. </Expanded>
  13433. </Expression>
  13434. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13435. <Original>
  13436. testCase.isComplete() == false
  13437. </Original>
  13438. <Expanded>
  13439. false == false
  13440. </Expanded>
  13441. </Expression>
  13442. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13443. <Original>
  13444. ctx.completedCycle()
  13445. </Original>
  13446. <Expanded>
  13447. true
  13448. </Expanded>
  13449. </Expression>
  13450. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13451. <Original>
  13452. testCase.isSuccessfullyCompleted() == false
  13453. </Original>
  13454. <Expanded>
  13455. false == false
  13456. </Expanded>
  13457. </Expression>
  13458. <Section name="re-enter after failed section" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13459. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13460. <Original>
  13461. testCase2.isOpen()
  13462. </Original>
  13463. <Expanded>
  13464. true
  13465. </Expanded>
  13466. </Expression>
  13467. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13468. <Original>
  13469. s1b.isOpen() == false
  13470. </Original>
  13471. <Expanded>
  13472. false == false
  13473. </Expanded>
  13474. </Expression>
  13475. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13476. <Original>
  13477. ctx.completedCycle()
  13478. </Original>
  13479. <Expanded>
  13480. true
  13481. </Expanded>
  13482. </Expression>
  13483. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13484. <Original>
  13485. testCase.isComplete()
  13486. </Original>
  13487. <Expanded>
  13488. true
  13489. </Expanded>
  13490. </Expression>
  13491. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13492. <Original>
  13493. testCase.isSuccessfullyCompleted()
  13494. </Original>
  13495. <Expanded>
  13496. true
  13497. </Expanded>
  13498. </Expression>
  13499. <OverallResults successes="5" failures="0" expectedFailures="0"/>
  13500. </Section>
  13501. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  13502. </Section>
  13503. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13504. <Original>
  13505. testCase.isOpen()
  13506. </Original>
  13507. <Expanded>
  13508. true
  13509. </Expanded>
  13510. </Expression>
  13511. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13512. <Original>
  13513. s1.isOpen()
  13514. </Original>
  13515. <Expanded>
  13516. true
  13517. </Expanded>
  13518. </Expression>
  13519. <Section name="fail one section" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13520. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13521. <Original>
  13522. s1.isComplete()
  13523. </Original>
  13524. <Expanded>
  13525. true
  13526. </Expanded>
  13527. </Expression>
  13528. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13529. <Original>
  13530. s1.isSuccessfullyCompleted() == false
  13531. </Original>
  13532. <Expanded>
  13533. false == false
  13534. </Expanded>
  13535. </Expression>
  13536. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13537. <Original>
  13538. testCase.isComplete() == false
  13539. </Original>
  13540. <Expanded>
  13541. false == false
  13542. </Expanded>
  13543. </Expression>
  13544. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13545. <Original>
  13546. ctx.completedCycle()
  13547. </Original>
  13548. <Expanded>
  13549. true
  13550. </Expanded>
  13551. </Expression>
  13552. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13553. <Original>
  13554. testCase.isSuccessfullyCompleted() == false
  13555. </Original>
  13556. <Expanded>
  13557. false == false
  13558. </Expanded>
  13559. </Expression>
  13560. <Section name="re-enter after failed section and find next section" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13561. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13562. <Original>
  13563. testCase2.isOpen()
  13564. </Original>
  13565. <Expanded>
  13566. true
  13567. </Expanded>
  13568. </Expression>
  13569. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13570. <Original>
  13571. s1b.isOpen() == false
  13572. </Original>
  13573. <Expanded>
  13574. false == false
  13575. </Expanded>
  13576. </Expression>
  13577. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13578. <Original>
  13579. s2.isOpen()
  13580. </Original>
  13581. <Expanded>
  13582. true
  13583. </Expanded>
  13584. </Expression>
  13585. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13586. <Original>
  13587. ctx.completedCycle()
  13588. </Original>
  13589. <Expanded>
  13590. true
  13591. </Expanded>
  13592. </Expression>
  13593. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13594. <Original>
  13595. testCase.isComplete()
  13596. </Original>
  13597. <Expanded>
  13598. true
  13599. </Expanded>
  13600. </Expression>
  13601. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13602. <Original>
  13603. testCase.isSuccessfullyCompleted()
  13604. </Original>
  13605. <Expanded>
  13606. true
  13607. </Expanded>
  13608. </Expression>
  13609. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  13610. </Section>
  13611. <OverallResults successes="11" failures="0" expectedFailures="0"/>
  13612. </Section>
  13613. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13614. <Original>
  13615. testCase.isOpen()
  13616. </Original>
  13617. <Expanded>
  13618. true
  13619. </Expanded>
  13620. </Expression>
  13621. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13622. <Original>
  13623. s1.isOpen()
  13624. </Original>
  13625. <Expanded>
  13626. true
  13627. </Expanded>
  13628. </Expression>
  13629. <Section name="successfully close one section, then find another" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13630. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13631. <Original>
  13632. s2.isOpen() == false
  13633. </Original>
  13634. <Expanded>
  13635. false == false
  13636. </Expanded>
  13637. </Expression>
  13638. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13639. <Original>
  13640. testCase.isComplete() == false
  13641. </Original>
  13642. <Expanded>
  13643. false == false
  13644. </Expanded>
  13645. </Expression>
  13646. <Section name="Re-enter - skips S1 and enters S2" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13647. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13648. <Original>
  13649. testCase2.isOpen()
  13650. </Original>
  13651. <Expanded>
  13652. true
  13653. </Expanded>
  13654. </Expression>
  13655. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13656. <Original>
  13657. s1b.isOpen() == false
  13658. </Original>
  13659. <Expanded>
  13660. false == false
  13661. </Expanded>
  13662. </Expression>
  13663. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13664. <Original>
  13665. s2b.isOpen()
  13666. </Original>
  13667. <Expanded>
  13668. true
  13669. </Expanded>
  13670. </Expression>
  13671. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13672. <Original>
  13673. ctx.completedCycle() == false
  13674. </Original>
  13675. <Expanded>
  13676. false == false
  13677. </Expanded>
  13678. </Expression>
  13679. <Section name="Successfully close S2" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13680. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13681. <Original>
  13682. ctx.completedCycle()
  13683. </Original>
  13684. <Expanded>
  13685. true
  13686. </Expanded>
  13687. </Expression>
  13688. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13689. <Original>
  13690. s2b.isSuccessfullyCompleted()
  13691. </Original>
  13692. <Expanded>
  13693. true
  13694. </Expanded>
  13695. </Expression>
  13696. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13697. <Original>
  13698. testCase2.isComplete() == false
  13699. </Original>
  13700. <Expanded>
  13701. false == false
  13702. </Expanded>
  13703. </Expression>
  13704. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13705. <Original>
  13706. testCase2.isSuccessfullyCompleted()
  13707. </Original>
  13708. <Expanded>
  13709. true
  13710. </Expanded>
  13711. </Expression>
  13712. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  13713. </Section>
  13714. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  13715. </Section>
  13716. <OverallResults successes="10" failures="0" expectedFailures="0"/>
  13717. </Section>
  13718. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13719. <Original>
  13720. testCase.isOpen()
  13721. </Original>
  13722. <Expanded>
  13723. true
  13724. </Expanded>
  13725. </Expression>
  13726. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13727. <Original>
  13728. s1.isOpen()
  13729. </Original>
  13730. <Expanded>
  13731. true
  13732. </Expanded>
  13733. </Expression>
  13734. <Section name="successfully close one section, then find another" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13735. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13736. <Original>
  13737. s2.isOpen() == false
  13738. </Original>
  13739. <Expanded>
  13740. false == false
  13741. </Expanded>
  13742. </Expression>
  13743. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13744. <Original>
  13745. testCase.isComplete() == false
  13746. </Original>
  13747. <Expanded>
  13748. false == false
  13749. </Expanded>
  13750. </Expression>
  13751. <Section name="Re-enter - skips S1 and enters S2" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13752. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13753. <Original>
  13754. testCase2.isOpen()
  13755. </Original>
  13756. <Expanded>
  13757. true
  13758. </Expanded>
  13759. </Expression>
  13760. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13761. <Original>
  13762. s1b.isOpen() == false
  13763. </Original>
  13764. <Expanded>
  13765. false == false
  13766. </Expanded>
  13767. </Expression>
  13768. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13769. <Original>
  13770. s2b.isOpen()
  13771. </Original>
  13772. <Expanded>
  13773. true
  13774. </Expanded>
  13775. </Expression>
  13776. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13777. <Original>
  13778. ctx.completedCycle() == false
  13779. </Original>
  13780. <Expanded>
  13781. false == false
  13782. </Expanded>
  13783. </Expression>
  13784. <Section name="fail S2" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13785. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13786. <Original>
  13787. ctx.completedCycle()
  13788. </Original>
  13789. <Expanded>
  13790. true
  13791. </Expanded>
  13792. </Expression>
  13793. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13794. <Original>
  13795. s2b.isComplete()
  13796. </Original>
  13797. <Expanded>
  13798. true
  13799. </Expanded>
  13800. </Expression>
  13801. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13802. <Original>
  13803. s2b.isSuccessfullyCompleted() == false
  13804. </Original>
  13805. <Expanded>
  13806. false == false
  13807. </Expanded>
  13808. </Expression>
  13809. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13810. <Original>
  13811. testCase2.isSuccessfullyCompleted() == false
  13812. </Original>
  13813. <Expanded>
  13814. false == false
  13815. </Expanded>
  13816. </Expression>
  13817. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13818. <Original>
  13819. testCase3.isOpen()
  13820. </Original>
  13821. <Expanded>
  13822. true
  13823. </Expanded>
  13824. </Expression>
  13825. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13826. <Original>
  13827. s1c.isOpen() == false
  13828. </Original>
  13829. <Expanded>
  13830. false == false
  13831. </Expanded>
  13832. </Expression>
  13833. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13834. <Original>
  13835. s2c.isOpen() == false
  13836. </Original>
  13837. <Expanded>
  13838. false == false
  13839. </Expanded>
  13840. </Expression>
  13841. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13842. <Original>
  13843. testCase3.isSuccessfullyCompleted()
  13844. </Original>
  13845. <Expanded>
  13846. true
  13847. </Expanded>
  13848. </Expression>
  13849. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  13850. </Section>
  13851. <OverallResults successes="12" failures="0" expectedFailures="0"/>
  13852. </Section>
  13853. <OverallResults successes="14" failures="0" expectedFailures="0"/>
  13854. </Section>
  13855. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13856. <Original>
  13857. testCase.isOpen()
  13858. </Original>
  13859. <Expanded>
  13860. true
  13861. </Expanded>
  13862. </Expression>
  13863. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13864. <Original>
  13865. s1.isOpen()
  13866. </Original>
  13867. <Expanded>
  13868. true
  13869. </Expanded>
  13870. </Expression>
  13871. <Section name="open a nested section" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13872. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13873. <Original>
  13874. s2.isOpen()
  13875. </Original>
  13876. <Expanded>
  13877. true
  13878. </Expanded>
  13879. </Expression>
  13880. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13881. <Original>
  13882. s2.isComplete()
  13883. </Original>
  13884. <Expanded>
  13885. true
  13886. </Expanded>
  13887. </Expression>
  13888. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13889. <Original>
  13890. s1.isComplete() == false
  13891. </Original>
  13892. <Expanded>
  13893. false == false
  13894. </Expanded>
  13895. </Expression>
  13896. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13897. <Original>
  13898. s1.isComplete()
  13899. </Original>
  13900. <Expanded>
  13901. true
  13902. </Expanded>
  13903. </Expression>
  13904. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13905. <Original>
  13906. testCase.isComplete() == false
  13907. </Original>
  13908. <Expanded>
  13909. false == false
  13910. </Expanded>
  13911. </Expression>
  13912. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
  13913. <Original>
  13914. testCase.isComplete()
  13915. </Original>
  13916. <Expanded>
  13917. true
  13918. </Expanded>
  13919. </Expression>
  13920. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  13921. </Section>
  13922. <OverallResult success="true"/>
  13923. </TestCase>
  13924. <TestCase name="Trim strings" tags="[string-manip]" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  13925. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  13926. <Original>
  13927. trim(std::string(no_whitespace)) == no_whitespace
  13928. </Original>
  13929. <Expanded>
  13930. "There is no extra whitespace here"
  13931. ==
  13932. "There is no extra whitespace here"
  13933. </Expanded>
  13934. </Expression>
  13935. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  13936. <Original>
  13937. trim(std::string(leading_whitespace)) == no_whitespace
  13938. </Original>
  13939. <Expanded>
  13940. "There is no extra whitespace here"
  13941. ==
  13942. "There is no extra whitespace here"
  13943. </Expanded>
  13944. </Expression>
  13945. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  13946. <Original>
  13947. trim(std::string(trailing_whitespace)) == no_whitespace
  13948. </Original>
  13949. <Expanded>
  13950. "There is no extra whitespace here"
  13951. ==
  13952. "There is no extra whitespace here"
  13953. </Expanded>
  13954. </Expression>
  13955. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  13956. <Original>
  13957. trim(std::string(whitespace_at_both_ends)) == no_whitespace
  13958. </Original>
  13959. <Expanded>
  13960. "There is no extra whitespace here"
  13961. ==
  13962. "There is no extra whitespace here"
  13963. </Expanded>
  13964. </Expression>
  13965. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  13966. <Original>
  13967. trim(StringRef(no_whitespace)) == StringRef(no_whitespace)
  13968. </Original>
  13969. <Expanded>
  13970. There is no extra whitespace here
  13971. ==
  13972. There is no extra whitespace here
  13973. </Expanded>
  13974. </Expression>
  13975. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  13976. <Original>
  13977. trim(StringRef(leading_whitespace)) == StringRef(no_whitespace)
  13978. </Original>
  13979. <Expanded>
  13980. There is no extra whitespace here
  13981. ==
  13982. There is no extra whitespace here
  13983. </Expanded>
  13984. </Expression>
  13985. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  13986. <Original>
  13987. trim(StringRef(trailing_whitespace)) == StringRef(no_whitespace)
  13988. </Original>
  13989. <Expanded>
  13990. There is no extra whitespace here
  13991. ==
  13992. There is no extra whitespace here
  13993. </Expanded>
  13994. </Expression>
  13995. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  13996. <Original>
  13997. trim(StringRef(whitespace_at_both_ends)) == StringRef(no_whitespace)
  13998. </Original>
  13999. <Expanded>
  14000. There is no extra whitespace here
  14001. ==
  14002. There is no extra whitespace here
  14003. </Expanded>
  14004. </Expression>
  14005. <OverallResult success="true"/>
  14006. </TestCase>
  14007. <TestCase name="Unexpected exceptions can be translated" tags="[!hide][!throws][.][failing]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14008. <Exception filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14009. 3.14
  14010. </Exception>
  14011. <OverallResult success="false"/>
  14012. </TestCase>
  14013. <TestCase name="Use a custom approx" tags="[Approx][custom]" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  14014. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  14015. <Original>
  14016. d == approx( 1.23 )
  14017. </Original>
  14018. <Expanded>
  14019. 1.23 == Approx( 1.23 )
  14020. </Expanded>
  14021. </Expression>
  14022. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  14023. <Original>
  14024. d == approx( 1.22 )
  14025. </Original>
  14026. <Expanded>
  14027. 1.23 == Approx( 1.22 )
  14028. </Expanded>
  14029. </Expression>
  14030. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  14031. <Original>
  14032. d == approx( 1.24 )
  14033. </Original>
  14034. <Expanded>
  14035. 1.23 == Approx( 1.24 )
  14036. </Expanded>
  14037. </Expression>
  14038. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  14039. <Original>
  14040. d != approx( 1.25 )
  14041. </Original>
  14042. <Expanded>
  14043. 1.23 != Approx( 1.25 )
  14044. </Expanded>
  14045. </Expression>
  14046. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  14047. <Original>
  14048. approx( d ) == 1.23
  14049. </Original>
  14050. <Expanded>
  14051. Approx( 1.23 ) == 1.23
  14052. </Expanded>
  14053. </Expression>
  14054. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  14055. <Original>
  14056. approx( d ) == 1.22
  14057. </Original>
  14058. <Expanded>
  14059. Approx( 1.23 ) == 1.22
  14060. </Expanded>
  14061. </Expression>
  14062. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  14063. <Original>
  14064. approx( d ) == 1.24
  14065. </Original>
  14066. <Expanded>
  14067. Approx( 1.23 ) == 1.24
  14068. </Expanded>
  14069. </Expression>
  14070. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
  14071. <Original>
  14072. approx( d ) != 1.25
  14073. </Original>
  14074. <Expanded>
  14075. Approx( 1.23 ) != 1.25
  14076. </Expanded>
  14077. </Expression>
  14078. <OverallResult success="true"/>
  14079. </TestCase>
  14080. <TestCase name="Variadic macros" tags="[sections][variadic]" filename="projects/<exe-name>/UsageTests/VariadicMacros.tests.cpp" >
  14081. <Section name="Section with one argument" filename="projects/<exe-name>/UsageTests/VariadicMacros.tests.cpp" >
  14082. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14083. </Section>
  14084. <OverallResult success="true"/>
  14085. </TestCase>
  14086. <TestCase name="Vector Approx matcher" tags="[approx][matchers][vector]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14087. <Section name="Empty vector is roughly equal to an empty vector" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14088. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14089. <Original>
  14090. empty, Approx(empty)
  14091. </Original>
  14092. <Expanded>
  14093. { } is approx: { }
  14094. </Expanded>
  14095. </Expression>
  14096. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14097. </Section>
  14098. <Section name="Vectors with elements" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14099. <Section name="A vector is approx equal to itself" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14100. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14101. <Original>
  14102. v1, Approx(v1)
  14103. </Original>
  14104. <Expanded>
  14105. { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
  14106. </Expanded>
  14107. </Expression>
  14108. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14109. <Original>
  14110. v1, Approx&lt;double>({ 1., 2., 3. })
  14111. </Original>
  14112. <Expanded>
  14113. { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
  14114. </Expanded>
  14115. </Expression>
  14116. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  14117. </Section>
  14118. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  14119. </Section>
  14120. <Section name="Vectors with elements" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14121. <Section name="Different length" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14122. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14123. <Original>
  14124. v1, !Approx(temp)
  14125. </Original>
  14126. <Expanded>
  14127. { 1.0, 2.0, 3.0 } not is approx: { 1.0, 2.0, 3.0, 4.0 }
  14128. </Expanded>
  14129. </Expression>
  14130. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14131. </Section>
  14132. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14133. </Section>
  14134. <Section name="Vectors with elements" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14135. <Section name="Same length, different elements" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14136. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14137. <Original>
  14138. v1, !Approx(v2)
  14139. </Original>
  14140. <Expanded>
  14141. { 1.0, 2.0, 3.0 } not is approx: { 1.5, 2.5, 3.5 }
  14142. </Expanded>
  14143. </Expression>
  14144. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14145. <Original>
  14146. v1, Approx(v2).margin(0.5)
  14147. </Original>
  14148. <Expanded>
  14149. { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
  14150. </Expanded>
  14151. </Expression>
  14152. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14153. <Original>
  14154. v1, Approx(v2).epsilon(0.5)
  14155. </Original>
  14156. <Expanded>
  14157. { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
  14158. </Expanded>
  14159. </Expression>
  14160. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14161. <Original>
  14162. v1, Approx(v2).epsilon(0.1).scale(500)
  14163. </Original>
  14164. <Expanded>
  14165. { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
  14166. </Expanded>
  14167. </Expression>
  14168. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  14169. </Section>
  14170. <OverallResults successes="4" failures="0" expectedFailures="0"/>
  14171. </Section>
  14172. <OverallResult success="true"/>
  14173. </TestCase>
  14174. <TestCase name="Vector Approx matcher -- failing" tags="[!hide][.][approx][failing][matchers][vector]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14175. <Section name="Empty and non empty vectors are not approx equal" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14176. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14177. <Original>
  14178. empty, Approx(t1)
  14179. </Original>
  14180. <Expanded>
  14181. { } is approx: { 1.0, 2.0 }
  14182. </Expanded>
  14183. </Expression>
  14184. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  14185. </Section>
  14186. <Section name="Just different vectors" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14187. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14188. <Original>
  14189. v1, Approx(v2)
  14190. </Original>
  14191. <Expanded>
  14192. { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 }
  14193. </Expanded>
  14194. </Expression>
  14195. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  14196. </Section>
  14197. <OverallResult success="false"/>
  14198. </TestCase>
  14199. <TestCase name="Vector matchers" tags="[matchers][vector]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14200. <Section name="Contains (element)" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14201. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14202. <Original>
  14203. v, VectorContains(1)
  14204. </Original>
  14205. <Expanded>
  14206. { 1, 2, 3 } Contains: 1
  14207. </Expanded>
  14208. </Expression>
  14209. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14210. <Original>
  14211. v, VectorContains(2)
  14212. </Original>
  14213. <Expanded>
  14214. { 1, 2, 3 } Contains: 2
  14215. </Expanded>
  14216. </Expression>
  14217. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14218. <Original>
  14219. v5, (VectorContains&lt;int, CustomAllocator&lt;int>>(2))
  14220. </Original>
  14221. <Expanded>
  14222. { 1, 2, 3 } Contains: 2
  14223. </Expanded>
  14224. </Expression>
  14225. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  14226. </Section>
  14227. <Section name="Contains (vector)" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14228. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14229. <Original>
  14230. v, Contains(v2)
  14231. </Original>
  14232. <Expanded>
  14233. { 1, 2, 3 } Contains: { 1, 2 }
  14234. </Expanded>
  14235. </Expression>
  14236. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14237. <Original>
  14238. v, Contains&lt;int>({ 1, 2 })
  14239. </Original>
  14240. <Expanded>
  14241. { 1, 2, 3 } Contains: { 1, 2 }
  14242. </Expanded>
  14243. </Expression>
  14244. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14245. <Original>
  14246. v5, (Contains&lt;int, std::allocator&lt;int>, CustomAllocator&lt;int>>(v2))
  14247. </Original>
  14248. <Expanded>
  14249. { 1, 2, 3 } Contains: { 1, 2 }
  14250. </Expanded>
  14251. </Expression>
  14252. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14253. <Original>
  14254. v, Contains(v2)
  14255. </Original>
  14256. <Expanded>
  14257. { 1, 2, 3 } Contains: { 1, 2, 3 }
  14258. </Expanded>
  14259. </Expression>
  14260. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14261. <Original>
  14262. v, Contains(empty)
  14263. </Original>
  14264. <Expanded>
  14265. { 1, 2, 3 } Contains: { }
  14266. </Expanded>
  14267. </Expression>
  14268. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14269. <Original>
  14270. empty, Contains(empty)
  14271. </Original>
  14272. <Expanded>
  14273. { } Contains: { }
  14274. </Expanded>
  14275. </Expression>
  14276. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14277. <Original>
  14278. v5, (Contains&lt;int, std::allocator&lt;int>, CustomAllocator&lt;int>>(v2))
  14279. </Original>
  14280. <Expanded>
  14281. { 1, 2, 3 } Contains: { 1, 2, 3 }
  14282. </Expanded>
  14283. </Expression>
  14284. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14285. <Original>
  14286. v5, Contains(v6)
  14287. </Original>
  14288. <Expanded>
  14289. { 1, 2, 3 } Contains: { 1, 2 }
  14290. </Expanded>
  14291. </Expression>
  14292. <OverallResults successes="8" failures="0" expectedFailures="0"/>
  14293. </Section>
  14294. <Section name="Contains (element), composed" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14295. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14296. <Original>
  14297. v, VectorContains(1) &amp;&amp; VectorContains(2)
  14298. </Original>
  14299. <Expanded>
  14300. { 1, 2, 3 } ( Contains: 1 and Contains: 2 )
  14301. </Expanded>
  14302. </Expression>
  14303. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14304. </Section>
  14305. <Section name="Equals" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14306. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14307. <Original>
  14308. v, Equals(v)
  14309. </Original>
  14310. <Expanded>
  14311. { 1, 2, 3 } Equals: { 1, 2, 3 }
  14312. </Expanded>
  14313. </Expression>
  14314. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14315. <Original>
  14316. empty, Equals(empty)
  14317. </Original>
  14318. <Expanded>
  14319. { } Equals: { }
  14320. </Expanded>
  14321. </Expression>
  14322. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14323. <Original>
  14324. v, Equals&lt;int>({ 1, 2, 3 })
  14325. </Original>
  14326. <Expanded>
  14327. { 1, 2, 3 } Equals: { 1, 2, 3 }
  14328. </Expanded>
  14329. </Expression>
  14330. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14331. <Original>
  14332. v, Equals(v2)
  14333. </Original>
  14334. <Expanded>
  14335. { 1, 2, 3 } Equals: { 1, 2, 3 }
  14336. </Expanded>
  14337. </Expression>
  14338. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14339. <Original>
  14340. v5, (Equals&lt;int, std::allocator&lt;int>, CustomAllocator&lt;int>>(v2))
  14341. </Original>
  14342. <Expanded>
  14343. { 1, 2, 3 } Equals: { 1, 2, 3 }
  14344. </Expanded>
  14345. </Expression>
  14346. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14347. <Original>
  14348. v5, Equals(v6)
  14349. </Original>
  14350. <Expanded>
  14351. { 1, 2, 3 } Equals: { 1, 2, 3 }
  14352. </Expanded>
  14353. </Expression>
  14354. <OverallResults successes="6" failures="0" expectedFailures="0"/>
  14355. </Section>
  14356. <Section name="UnorderedEquals" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14357. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14358. <Original>
  14359. v, UnorderedEquals(v)
  14360. </Original>
  14361. <Expanded>
  14362. { 1, 2, 3 } UnorderedEquals: { 1, 2, 3 }
  14363. </Expanded>
  14364. </Expression>
  14365. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14366. <Original>
  14367. v, UnorderedEquals&lt;int>({ 3, 2, 1 })
  14368. </Original>
  14369. <Expanded>
  14370. { 1, 2, 3 } UnorderedEquals: { 3, 2, 1 }
  14371. </Expanded>
  14372. </Expression>
  14373. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14374. <Original>
  14375. empty, UnorderedEquals(empty)
  14376. </Original>
  14377. <Expanded>
  14378. { } UnorderedEquals: { }
  14379. </Expanded>
  14380. </Expression>
  14381. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14382. <Original>
  14383. permuted, UnorderedEquals(v)
  14384. </Original>
  14385. <Expanded>
  14386. { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
  14387. </Expanded>
  14388. </Expression>
  14389. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14390. <Original>
  14391. permuted, UnorderedEquals(v)
  14392. </Original>
  14393. <Expanded>
  14394. { 2, 3, 1 } UnorderedEquals: { 1, 2, 3 }
  14395. </Expanded>
  14396. </Expression>
  14397. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14398. <Original>
  14399. v5, (UnorderedEquals&lt;int, std::allocator&lt;int>, CustomAllocator&lt;int>>(permuted))
  14400. </Original>
  14401. <Expanded>
  14402. { 1, 2, 3 } UnorderedEquals: { 2, 3, 1 }
  14403. </Expanded>
  14404. </Expression>
  14405. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14406. <Original>
  14407. v5_permuted, UnorderedEquals(v5)
  14408. </Original>
  14409. <Expanded>
  14410. { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
  14411. </Expanded>
  14412. </Expression>
  14413. <OverallResults successes="7" failures="0" expectedFailures="0"/>
  14414. </Section>
  14415. <OverallResult success="true"/>
  14416. </TestCase>
  14417. <TestCase name="Vector matchers that fail" tags="[!hide][.][failing][matchers][vector]" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14418. <Section name="Contains (element)" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14419. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14420. <Original>
  14421. v, VectorContains(-1)
  14422. </Original>
  14423. <Expanded>
  14424. { 1, 2, 3 } Contains: -1
  14425. </Expanded>
  14426. </Expression>
  14427. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14428. <Original>
  14429. empty, VectorContains(1)
  14430. </Original>
  14431. <Expanded>
  14432. { } Contains: 1
  14433. </Expanded>
  14434. </Expression>
  14435. <OverallResults successes="0" failures="2" expectedFailures="0"/>
  14436. </Section>
  14437. <Section name="Contains (vector)" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14438. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14439. <Original>
  14440. empty, Contains(v)
  14441. </Original>
  14442. <Expanded>
  14443. { } Contains: { 1, 2, 3 }
  14444. </Expanded>
  14445. </Expression>
  14446. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14447. <Original>
  14448. v, Contains(v2)
  14449. </Original>
  14450. <Expanded>
  14451. { 1, 2, 3 } Contains: { 1, 2, 4 }
  14452. </Expanded>
  14453. </Expression>
  14454. <OverallResults successes="0" failures="2" expectedFailures="0"/>
  14455. </Section>
  14456. <Section name="Equals" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14457. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14458. <Original>
  14459. v, Equals(v2)
  14460. </Original>
  14461. <Expanded>
  14462. { 1, 2, 3 } Equals: { 1, 2 }
  14463. </Expanded>
  14464. </Expression>
  14465. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14466. <Original>
  14467. v2, Equals(v)
  14468. </Original>
  14469. <Expanded>
  14470. { 1, 2 } Equals: { 1, 2, 3 }
  14471. </Expanded>
  14472. </Expression>
  14473. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14474. <Original>
  14475. empty, Equals(v)
  14476. </Original>
  14477. <Expanded>
  14478. { } Equals: { 1, 2, 3 }
  14479. </Expanded>
  14480. </Expression>
  14481. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14482. <Original>
  14483. v, Equals(empty)
  14484. </Original>
  14485. <Expanded>
  14486. { 1, 2, 3 } Equals: { }
  14487. </Expanded>
  14488. </Expression>
  14489. <OverallResults successes="0" failures="4" expectedFailures="0"/>
  14490. </Section>
  14491. <Section name="UnorderedEquals" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14492. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14493. <Original>
  14494. v, UnorderedEquals(empty)
  14495. </Original>
  14496. <Expanded>
  14497. { 1, 2, 3 } UnorderedEquals: { }
  14498. </Expanded>
  14499. </Expression>
  14500. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14501. <Original>
  14502. empty, UnorderedEquals(v)
  14503. </Original>
  14504. <Expanded>
  14505. { } UnorderedEquals: { 1, 2, 3 }
  14506. </Expanded>
  14507. </Expression>
  14508. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14509. <Original>
  14510. permuted, UnorderedEquals(v)
  14511. </Original>
  14512. <Expanded>
  14513. { 1, 3 } UnorderedEquals: { 1, 2, 3 }
  14514. </Expanded>
  14515. </Expression>
  14516. <Expression success="false" type="CHECK_THAT" filename="projects/<exe-name>/UsageTests/Matchers.tests.cpp" >
  14517. <Original>
  14518. permuted, UnorderedEquals(v)
  14519. </Original>
  14520. <Expanded>
  14521. { 3, 1 } UnorderedEquals: { 1, 2, 3 }
  14522. </Expanded>
  14523. </Expression>
  14524. <OverallResults successes="0" failures="4" expectedFailures="0"/>
  14525. </Section>
  14526. <OverallResult success="false"/>
  14527. </TestCase>
  14528. <TestCase name="When checked exceptions are thrown they can be expected or unexpected" tags="[!throws]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14529. <Expression success="true" type="REQUIRE_THROWS_AS" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14530. <Original>
  14531. thisThrows(), std::domain_error
  14532. </Original>
  14533. <Expanded>
  14534. thisThrows(), std::domain_error
  14535. </Expanded>
  14536. </Expression>
  14537. <Expression success="true" type="REQUIRE_NOTHROW" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14538. <Original>
  14539. thisDoesntThrow()
  14540. </Original>
  14541. <Expanded>
  14542. thisDoesntThrow()
  14543. </Expanded>
  14544. </Expression>
  14545. <Expression success="true" type="REQUIRE_THROWS" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14546. <Original>
  14547. thisThrows()
  14548. </Original>
  14549. <Expanded>
  14550. thisThrows()
  14551. </Expanded>
  14552. </Expression>
  14553. <OverallResult success="true"/>
  14554. </TestCase>
  14555. <TestCase name="When unchecked exceptions are thrown directly they are always failures" tags="[!hide][!throws][.][failing]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14556. <Exception filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14557. unexpected exception
  14558. </Exception>
  14559. <OverallResult success="false"/>
  14560. </TestCase>
  14561. <TestCase name="When unchecked exceptions are thrown during a CHECK the test should continue" tags="[!hide][!throws][.][failing]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14562. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14563. <Original>
  14564. thisThrows() == 0
  14565. </Original>
  14566. <Expanded>
  14567. thisThrows() == 0
  14568. </Expanded>
  14569. <Exception filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14570. expected exception
  14571. </Exception>
  14572. </Expression>
  14573. <OverallResult success="false"/>
  14574. </TestCase>
  14575. <TestCase name="When unchecked exceptions are thrown during a REQUIRE the test should abort fail" tags="[!hide][!throws][.][failing]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14576. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14577. <Original>
  14578. thisThrows() == 0
  14579. </Original>
  14580. <Expanded>
  14581. thisThrows() == 0
  14582. </Expanded>
  14583. <Exception filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14584. expected exception
  14585. </Exception>
  14586. </Expression>
  14587. <OverallResult success="false"/>
  14588. </TestCase>
  14589. <TestCase name="When unchecked exceptions are thrown from functions they are always failures" tags="[!hide][!throws][.][failing]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14590. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14591. <Original>
  14592. thisThrows() == 0
  14593. </Original>
  14594. <Expanded>
  14595. thisThrows() == 0
  14596. </Expanded>
  14597. <Exception filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14598. expected exception
  14599. </Exception>
  14600. </Expression>
  14601. <OverallResult success="false"/>
  14602. </TestCase>
  14603. <TestCase name="When unchecked exceptions are thrown from sections they are always failures" tags="[!hide][!throws][.][failing]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14604. <Section name="section name" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14605. <Exception filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14606. unexpected exception
  14607. </Exception>
  14608. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  14609. </Section>
  14610. <OverallResult success="false"/>
  14611. </TestCase>
  14612. <TestCase name="When unchecked exceptions are thrown, but caught, they do not affect the test" tags="[!throws]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  14613. <OverallResult success="false"/>
  14614. </TestCase>
  14615. <TestCase name="Where the LHS is not a simple value" tags="[!hide][.][Tricky][failing]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  14616. <Warning>
  14617. Uncomment the code in this test to check that it gives a sensible compiler error
  14618. </Warning>
  14619. <OverallResult success="false"/>
  14620. </TestCase>
  14621. <TestCase name="Where there is more to the expression after the RHS" tags="[!hide][.][Tricky][failing]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  14622. <Warning>
  14623. Uncomment the code in this test to check that it gives a sensible compiler error
  14624. </Warning>
  14625. <OverallResult success="false"/>
  14626. </TestCase>
  14627. <TestCase name="X/level/0/a" tags="[Tricky]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  14628. <OverallResult success="true"/>
  14629. </TestCase>
  14630. <TestCase name="X/level/0/b" tags="[Tricky][fizz]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  14631. <OverallResult success="true"/>
  14632. </TestCase>
  14633. <TestCase name="X/level/1/a" tags="[Tricky]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  14634. <OverallResult success="true"/>
  14635. </TestCase>
  14636. <TestCase name="X/level/1/b" tags="[Tricky]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  14637. <OverallResult success="true"/>
  14638. </TestCase>
  14639. <TestCase name="XmlEncode" tags="[XML]" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14640. <Section name="normal string" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14641. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14642. <Original>
  14643. encode( "normal string" ) == "normal string"
  14644. </Original>
  14645. <Expanded>
  14646. "normal string" == "normal string"
  14647. </Expanded>
  14648. </Expression>
  14649. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14650. </Section>
  14651. <Section name="empty string" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14652. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14653. <Original>
  14654. encode( "" ) == ""
  14655. </Original>
  14656. <Expanded>
  14657. "" == ""
  14658. </Expanded>
  14659. </Expression>
  14660. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14661. </Section>
  14662. <Section name="string with ampersand" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14663. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14664. <Original>
  14665. encode( "smith &amp; jones" ) == "smith &amp;amp; jones"
  14666. </Original>
  14667. <Expanded>
  14668. "smith &amp;amp; jones" == "smith &amp;amp; jones"
  14669. </Expanded>
  14670. </Expression>
  14671. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14672. </Section>
  14673. <Section name="string with less-than" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14674. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14675. <Original>
  14676. encode( "smith &lt; jones" ) == "smith &amp;lt; jones"
  14677. </Original>
  14678. <Expanded>
  14679. "smith &amp;lt; jones" == "smith &amp;lt; jones"
  14680. </Expanded>
  14681. </Expression>
  14682. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14683. </Section>
  14684. <Section name="string with greater-than" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14685. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14686. <Original>
  14687. encode( "smith > jones" ) == "smith > jones"
  14688. </Original>
  14689. <Expanded>
  14690. "smith > jones" == "smith > jones"
  14691. </Expanded>
  14692. </Expression>
  14693. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14694. <Original>
  14695. encode( "smith ]]&gt; jones" ) == "smith ]]&amp;gt; jones"
  14696. </Original>
  14697. <Expanded>
  14698. "smith ]]&amp;gt; jones"
  14699. ==
  14700. "smith ]]&amp;gt; jones"
  14701. </Expanded>
  14702. </Expression>
  14703. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  14704. </Section>
  14705. <Section name="string with quotes" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14706. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14707. <Original>
  14708. encode( stringWithQuotes ) == stringWithQuotes
  14709. </Original>
  14710. <Expanded>
  14711. "don't "quote" me on that"
  14712. ==
  14713. "don't "quote" me on that"
  14714. </Expanded>
  14715. </Expression>
  14716. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14717. <Original>
  14718. encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't &amp;quot;quote&amp;quot; me on that"
  14719. </Original>
  14720. <Expanded>
  14721. "don't &amp;quot;quote&amp;quot; me on that"
  14722. ==
  14723. "don't &amp;quot;quote&amp;quot; me on that"
  14724. </Expanded>
  14725. </Expression>
  14726. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  14727. </Section>
  14728. <Section name="string with control char (1)" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14729. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14730. <Original>
  14731. encode( "[\x01]" ) == "[\\x01]"
  14732. </Original>
  14733. <Expanded>
  14734. "[\x01]" == "[\x01]"
  14735. </Expanded>
  14736. </Expression>
  14737. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14738. </Section>
  14739. <Section name="string with control char (x7F)" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14740. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/Xml.tests.cpp" >
  14741. <Original>
  14742. encode( "[\x7F]" ) == "[\\x7F]"
  14743. </Original>
  14744. <Expanded>
  14745. "[\x7F]" == "[\x7F]"
  14746. </Expanded>
  14747. </Expression>
  14748. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14749. </Section>
  14750. <OverallResult success="true"/>
  14751. </TestCase>
  14752. <TestCase name="adding a hide tag implicitly enables all others" tags="[tags]" filename="projects/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14753. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14754. <Original>
  14755. testcase.tags, VectorContains(std::string(".")) &amp;&amp; VectorContains(std::string("!hide"))
  14756. </Original>
  14757. <Expanded>
  14758. { "!hide", "." } ( Contains: "." and Contains: "!hide" )
  14759. </Expanded>
  14760. </Expression>
  14761. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14762. <Original>
  14763. testcase.tags, VectorContains(std::string(".")) &amp;&amp; VectorContains(std::string("!hide"))
  14764. </Original>
  14765. <Expanded>
  14766. { "!hide", "." } ( Contains: "." and Contains: "!hide" )
  14767. </Expanded>
  14768. </Expression>
  14769. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  14770. <Original>
  14771. testcase.tags, VectorContains(std::string(".")) &amp;&amp; VectorContains(std::string("!hide"))
  14772. </Original>
  14773. <Expanded>
  14774. { "!hide", ".", "foo" } ( Contains: "." and Contains: "!hide" )
  14775. </Expanded>
  14776. </Expression>
  14777. <OverallResult success="true"/>
  14778. </TestCase>
  14779. <TestCase name="array&lt;int, N> -> toString" tags="[array][containers][toString]" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  14780. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  14781. <Original>
  14782. Catch::Detail::stringify( empty ) == "{ }"
  14783. </Original>
  14784. <Expanded>
  14785. "{ }" == "{ }"
  14786. </Expanded>
  14787. </Expression>
  14788. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  14789. <Original>
  14790. Catch::Detail::stringify( oneValue ) == "{ 42 }"
  14791. </Original>
  14792. <Expanded>
  14793. "{ 42 }" == "{ 42 }"
  14794. </Expanded>
  14795. </Expression>
  14796. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  14797. <Original>
  14798. Catch::Detail::stringify( twoValues ) == "{ 42, 250 }"
  14799. </Original>
  14800. <Expanded>
  14801. "{ 42, 250 }" == "{ 42, 250 }"
  14802. </Expanded>
  14803. </Expression>
  14804. <OverallResult success="true"/>
  14805. </TestCase>
  14806. <TestCase name="atomic if" tags="[0][failing]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14807. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14808. <Original>
  14809. x == 0
  14810. </Original>
  14811. <Expanded>
  14812. 0 == 0
  14813. </Expanded>
  14814. </Expression>
  14815. <OverallResult success="true"/>
  14816. </TestCase>
  14817. <TestCase name="boolean member" tags="[Tricky]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  14818. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  14819. <Original>
  14820. obj.prop != 0
  14821. </Original>
  14822. <Expanded>
  14823. 0x<hex digits> != 0
  14824. </Expanded>
  14825. </Expression>
  14826. <OverallResult success="true"/>
  14827. </TestCase>
  14828. <TestCase name="checkedElse" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14829. <Expression success="true" type="CHECKED_ELSE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14830. <Original>
  14831. flag
  14832. </Original>
  14833. <Expanded>
  14834. true
  14835. </Expanded>
  14836. </Expression>
  14837. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14838. <Original>
  14839. testCheckedElse( true )
  14840. </Original>
  14841. <Expanded>
  14842. true
  14843. </Expanded>
  14844. </Expression>
  14845. <OverallResult success="true"/>
  14846. </TestCase>
  14847. <TestCase name="checkedElse, failing" tags="[!hide][.][failing]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14848. <Expression success="false" type="CHECKED_ELSE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14849. <Original>
  14850. flag
  14851. </Original>
  14852. <Expanded>
  14853. false
  14854. </Expanded>
  14855. </Expression>
  14856. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14857. <Original>
  14858. testCheckedElse( false )
  14859. </Original>
  14860. <Expanded>
  14861. false
  14862. </Expanded>
  14863. </Expression>
  14864. <OverallResult success="false"/>
  14865. </TestCase>
  14866. <TestCase name="checkedIf" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14867. <Expression success="true" type="CHECKED_IF" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14868. <Original>
  14869. flag
  14870. </Original>
  14871. <Expanded>
  14872. true
  14873. </Expanded>
  14874. </Expression>
  14875. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14876. <Original>
  14877. testCheckedIf( true )
  14878. </Original>
  14879. <Expanded>
  14880. true
  14881. </Expanded>
  14882. </Expression>
  14883. <OverallResult success="true"/>
  14884. </TestCase>
  14885. <TestCase name="checkedIf, failing" tags="[!hide][.][failing]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14886. <Expression success="false" type="CHECKED_IF" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14887. <Original>
  14888. flag
  14889. </Original>
  14890. <Expanded>
  14891. false
  14892. </Expanded>
  14893. </Expression>
  14894. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14895. <Original>
  14896. testCheckedIf( false )
  14897. </Original>
  14898. <Expanded>
  14899. false
  14900. </Expanded>
  14901. </Expression>
  14902. <OverallResult success="false"/>
  14903. </TestCase>
  14904. <TestCase name="comparisons between const int variables" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  14905. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  14906. <Original>
  14907. unsigned_char_var == 1
  14908. </Original>
  14909. <Expanded>
  14910. 1 == 1
  14911. </Expanded>
  14912. </Expression>
  14913. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  14914. <Original>
  14915. unsigned_short_var == 1
  14916. </Original>
  14917. <Expanded>
  14918. 1 == 1
  14919. </Expanded>
  14920. </Expression>
  14921. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  14922. <Original>
  14923. unsigned_int_var == 1
  14924. </Original>
  14925. <Expanded>
  14926. 1 == 1
  14927. </Expanded>
  14928. </Expression>
  14929. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  14930. <Original>
  14931. unsigned_long_var == 1
  14932. </Original>
  14933. <Expanded>
  14934. 1 == 1
  14935. </Expanded>
  14936. </Expression>
  14937. <OverallResult success="true"/>
  14938. </TestCase>
  14939. <TestCase name="comparisons between int variables" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  14940. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  14941. <Original>
  14942. long_var == unsigned_char_var
  14943. </Original>
  14944. <Expanded>
  14945. 1 == 1
  14946. </Expanded>
  14947. </Expression>
  14948. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  14949. <Original>
  14950. long_var == unsigned_short_var
  14951. </Original>
  14952. <Expanded>
  14953. 1 == 1
  14954. </Expanded>
  14955. </Expression>
  14956. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  14957. <Original>
  14958. long_var == unsigned_int_var
  14959. </Original>
  14960. <Expanded>
  14961. 1 == 1
  14962. </Expanded>
  14963. </Expression>
  14964. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" >
  14965. <Original>
  14966. long_var == unsigned_long_var
  14967. </Original>
  14968. <Expanded>
  14969. 1 == 1
  14970. </Expanded>
  14971. </Expression>
  14972. <OverallResult success="true"/>
  14973. </TestCase>
  14974. <TestCase name="even more nested SECTION tests" tags="[sections]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14975. <Section name="c" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14976. <Section name="d (leaf)" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14977. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14978. </Section>
  14979. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14980. </Section>
  14981. <Section name="c" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14982. <Section name="e (leaf)" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14983. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14984. </Section>
  14985. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14986. </Section>
  14987. <Section name="f (leaf)" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14988. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  14989. </Section>
  14990. <OverallResult success="true"/>
  14991. </TestCase>
  14992. <TestCase name="first tag" tags="[tag1]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  14993. <OverallResult success="false"/>
  14994. </TestCase>
  14995. <TestCase name="has printf" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  14996. loose text artifact
  14997. <OverallResult success="false"/>
  14998. </TestCase>
  14999. <TestCase name="just failure" tags="[!hide][.][fail][isolated info][messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15000. <Failure filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15001. Previous info should not be seen
  15002. </Failure>
  15003. <OverallResult success="false"/>
  15004. </TestCase>
  15005. <TestCase name="just failure after unscoped info" tags="[!hide][.][failing][info][unscoped]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15006. <Failure filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15007. previous unscoped info SHOULD not be seen
  15008. </Failure>
  15009. <OverallResult success="false"/>
  15010. </TestCase>
  15011. <TestCase name="just info" tags="[info][isolated info][messages]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15012. <OverallResult success="false"/>
  15013. </TestCase>
  15014. <TestCase name="just unscoped info" tags="[info][unscoped]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15015. <OverallResult success="false"/>
  15016. </TestCase>
  15017. <TestCase name="long long" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15018. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15019. <Original>
  15020. l == std::numeric_limits&lt;long long>::max()
  15021. </Original>
  15022. <Expanded>
  15023. 9223372036854775807 (0x<hex digits>)
  15024. ==
  15025. 9223372036854775807 (0x<hex digits>)
  15026. </Expanded>
  15027. </Expression>
  15028. <OverallResult success="true"/>
  15029. </TestCase>
  15030. <TestCase name="looped SECTION tests" tags="[!hide][.][failing][sections]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15031. <Section name="b is currently: 0" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15032. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15033. <Original>
  15034. b > a
  15035. </Original>
  15036. <Expanded>
  15037. 0 > 1
  15038. </Expanded>
  15039. </Expression>
  15040. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  15041. </Section>
  15042. <Section name="b is currently: 1" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15043. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15044. <Original>
  15045. b > a
  15046. </Original>
  15047. <Expanded>
  15048. 1 > 1
  15049. </Expanded>
  15050. </Expression>
  15051. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  15052. </Section>
  15053. <Section name="b is currently: 2" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15054. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15055. <Original>
  15056. b > a
  15057. </Original>
  15058. <Expanded>
  15059. 2 > 1
  15060. </Expanded>
  15061. </Expression>
  15062. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15063. </Section>
  15064. <Section name="b is currently: 3" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15065. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15066. <Original>
  15067. b > a
  15068. </Original>
  15069. <Expanded>
  15070. 3 > 1
  15071. </Expanded>
  15072. </Expression>
  15073. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15074. </Section>
  15075. <Section name="b is currently: 4" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15076. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15077. <Original>
  15078. b > a
  15079. </Original>
  15080. <Expanded>
  15081. 4 > 1
  15082. </Expanded>
  15083. </Expression>
  15084. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15085. </Section>
  15086. <Section name="b is currently: 5" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15087. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15088. <Original>
  15089. b > a
  15090. </Original>
  15091. <Expanded>
  15092. 5 > 1
  15093. </Expanded>
  15094. </Expression>
  15095. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15096. </Section>
  15097. <Section name="b is currently: 6" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15098. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15099. <Original>
  15100. b > a
  15101. </Original>
  15102. <Expanded>
  15103. 6 > 1
  15104. </Expanded>
  15105. </Expression>
  15106. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15107. </Section>
  15108. <Section name="b is currently: 7" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15109. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15110. <Original>
  15111. b > a
  15112. </Original>
  15113. <Expanded>
  15114. 7 > 1
  15115. </Expanded>
  15116. </Expression>
  15117. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15118. </Section>
  15119. <Section name="b is currently: 8" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15120. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15121. <Original>
  15122. b > a
  15123. </Original>
  15124. <Expanded>
  15125. 8 > 1
  15126. </Expanded>
  15127. </Expression>
  15128. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15129. </Section>
  15130. <Section name="b is currently: 9" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15131. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15132. <Original>
  15133. b > a
  15134. </Original>
  15135. <Expanded>
  15136. 9 > 1
  15137. </Expanded>
  15138. </Expression>
  15139. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15140. </Section>
  15141. <OverallResult success="false"/>
  15142. </TestCase>
  15143. <TestCase name="looped tests" tags="[!hide][.][failing]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15144. <Info>
  15145. Testing if fib[0] (1) is even
  15146. </Info>
  15147. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15148. <Original>
  15149. ( fib[i] % 2 ) == 0
  15150. </Original>
  15151. <Expanded>
  15152. 1 == 0
  15153. </Expanded>
  15154. </Expression>
  15155. <Info>
  15156. Testing if fib[1] (1) is even
  15157. </Info>
  15158. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15159. <Original>
  15160. ( fib[i] % 2 ) == 0
  15161. </Original>
  15162. <Expanded>
  15163. 1 == 0
  15164. </Expanded>
  15165. </Expression>
  15166. <Info>
  15167. Testing if fib[2] (2) is even
  15168. </Info>
  15169. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15170. <Original>
  15171. ( fib[i] % 2 ) == 0
  15172. </Original>
  15173. <Expanded>
  15174. 0 == 0
  15175. </Expanded>
  15176. </Expression>
  15177. <Info>
  15178. Testing if fib[3] (3) is even
  15179. </Info>
  15180. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15181. <Original>
  15182. ( fib[i] % 2 ) == 0
  15183. </Original>
  15184. <Expanded>
  15185. 1 == 0
  15186. </Expanded>
  15187. </Expression>
  15188. <Info>
  15189. Testing if fib[4] (5) is even
  15190. </Info>
  15191. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15192. <Original>
  15193. ( fib[i] % 2 ) == 0
  15194. </Original>
  15195. <Expanded>
  15196. 1 == 0
  15197. </Expanded>
  15198. </Expression>
  15199. <Info>
  15200. Testing if fib[5] (8) is even
  15201. </Info>
  15202. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15203. <Original>
  15204. ( fib[i] % 2 ) == 0
  15205. </Original>
  15206. <Expanded>
  15207. 0 == 0
  15208. </Expanded>
  15209. </Expression>
  15210. <Info>
  15211. Testing if fib[6] (13) is even
  15212. </Info>
  15213. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15214. <Original>
  15215. ( fib[i] % 2 ) == 0
  15216. </Original>
  15217. <Expanded>
  15218. 1 == 0
  15219. </Expanded>
  15220. </Expression>
  15221. <Info>
  15222. Testing if fib[7] (21) is even
  15223. </Info>
  15224. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15225. <Original>
  15226. ( fib[i] % 2 ) == 0
  15227. </Original>
  15228. <Expanded>
  15229. 1 == 0
  15230. </Expanded>
  15231. </Expression>
  15232. <OverallResult success="false"/>
  15233. </TestCase>
  15234. <TestCase name="mix info, unscoped info and warning" tags="[info][unscoped]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15235. <Info>
  15236. info
  15237. </Info>
  15238. <Info>
  15239. unscoped info
  15240. </Info>
  15241. <Warning>
  15242. and warn may mix
  15243. </Warning>
  15244. <Info>
  15245. info
  15246. </Info>
  15247. <Info>
  15248. unscoped info
  15249. </Info>
  15250. <Warning>
  15251. they are not cleared after warnings
  15252. </Warning>
  15253. <OverallResult success="false"/>
  15254. </TestCase>
  15255. <TestCase name="more nested SECTION tests" tags="[!hide][.][failing][sections]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15256. <Section name="doesn't equal" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15257. <Section name="equal" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15258. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15259. <Original>
  15260. a == b
  15261. </Original>
  15262. <Expanded>
  15263. 1 == 2
  15264. </Expanded>
  15265. </Expression>
  15266. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  15267. </Section>
  15268. <OverallResults successes="0" failures="1" expectedFailures="0"/>
  15269. </Section>
  15270. <Section name="doesn't equal" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15271. <Section name="not equal" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15272. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15273. <Original>
  15274. a != b
  15275. </Original>
  15276. <Expanded>
  15277. 1 != 2
  15278. </Expanded>
  15279. </Expression>
  15280. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15281. </Section>
  15282. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15283. </Section>
  15284. <Section name="doesn't equal" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15285. <Section name="less than" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15286. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15287. <Original>
  15288. a &lt; b
  15289. </Original>
  15290. <Expanded>
  15291. 1 &lt; 2
  15292. </Expanded>
  15293. </Expression>
  15294. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15295. </Section>
  15296. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15297. </Section>
  15298. <OverallResult success="false"/>
  15299. </TestCase>
  15300. <TestCase name="nested SECTION tests" tags="[!hide][.][failing][sections]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15301. <Section name="doesn't equal" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15302. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15303. <Original>
  15304. a != b
  15305. </Original>
  15306. <Expanded>
  15307. 1 != 2
  15308. </Expanded>
  15309. </Expression>
  15310. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15311. <Original>
  15312. b != a
  15313. </Original>
  15314. <Expanded>
  15315. 2 != 1
  15316. </Expanded>
  15317. </Expression>
  15318. <Section name="not equal" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15319. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15320. <Original>
  15321. a != b
  15322. </Original>
  15323. <Expanded>
  15324. 1 != 2
  15325. </Expanded>
  15326. </Expression>
  15327. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15328. </Section>
  15329. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  15330. </Section>
  15331. <OverallResult success="true"/>
  15332. </TestCase>
  15333. <TestCase name="non streamable - with conv. op" tags="[Tricky]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  15334. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  15335. <Original>
  15336. s == "7"
  15337. </Original>
  15338. <Expanded>
  15339. "7" == "7"
  15340. </Expanded>
  15341. </Expression>
  15342. <OverallResult success="true"/>
  15343. </TestCase>
  15344. <TestCase name="non-copyable objects" tags="[!hide][.][failing]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  15345. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  15346. <Original>
  15347. ti == typeid(int)
  15348. </Original>
  15349. <Expanded>
  15350. {?} == {?}
  15351. </Expanded>
  15352. </Expression>
  15353. <OverallResult success="true"/>
  15354. </TestCase>
  15355. <TestCase name="not allowed" tags="[!throws]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15356. <OverallResult success="true"/>
  15357. </TestCase>
  15358. <TestCase name="not prints unscoped info from previous failures" tags="[!hide][.][failing][info][unscoped]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15359. <Info>
  15360. this MAY be seen only for the FIRST assertion IF info is printed for passing assertions
  15361. </Info>
  15362. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15363. <Original>
  15364. true
  15365. </Original>
  15366. <Expanded>
  15367. true
  15368. </Expanded>
  15369. </Expression>
  15370. <Info>
  15371. this MAY be seen only for the SECOND assertion IF info is printed for passing assertions
  15372. </Info>
  15373. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15374. <Original>
  15375. true
  15376. </Original>
  15377. <Expanded>
  15378. true
  15379. </Expanded>
  15380. </Expression>
  15381. <Info>
  15382. this SHOULD be seen
  15383. </Info>
  15384. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15385. <Original>
  15386. false
  15387. </Original>
  15388. <Expanded>
  15389. false
  15390. </Expanded>
  15391. </Expression>
  15392. <OverallResult success="false"/>
  15393. </TestCase>
  15394. <TestCase name="null strings" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15395. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15396. <Original>
  15397. makeString( false ) != static_cast&lt;char*>(0)
  15398. </Original>
  15399. <Expanded>
  15400. "valid string" != {null string}
  15401. </Expanded>
  15402. </Expression>
  15403. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15404. <Original>
  15405. makeString( true ) == static_cast&lt;char*>(0)
  15406. </Original>
  15407. <Expanded>
  15408. {null string} == {null string}
  15409. </Expanded>
  15410. </Expression>
  15411. <OverallResult success="true"/>
  15412. </TestCase>
  15413. <TestCase name="null_ptr" tags="[Tricky]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  15414. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  15415. <Original>
  15416. ptr.get() == 0
  15417. </Original>
  15418. <Expanded>
  15419. 0 == 0
  15420. </Expanded>
  15421. </Expression>
  15422. <OverallResult success="true"/>
  15423. </TestCase>
  15424. <TestCase name="pair&lt;pair&lt;int,const char *,pair&lt;std::string,int> > -> toString" tags="[pair][toString]" filename="projects/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  15425. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  15426. <Original>
  15427. ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }"
  15428. </Original>
  15429. <Expanded>
  15430. "{ { 42, "Arthur" }, { "Ford", 24 } }"
  15431. ==
  15432. "{ { 42, "Arthur" }, { "Ford", 24 } }"
  15433. </Expanded>
  15434. </Expression>
  15435. <OverallResult success="true"/>
  15436. </TestCase>
  15437. <TestCase name="parseEnums" tags="[Strings][enums]" filename="projects/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  15438. <Section name="No enums" filename="projects/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  15439. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  15440. <Original>
  15441. parseEnums( "" ), Equals( std::vector&lt;Catch::StringRef>{} )
  15442. </Original>
  15443. <Expanded>
  15444. { } Equals: { }
  15445. </Expanded>
  15446. </Expression>
  15447. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15448. </Section>
  15449. <Section name="One enum value" filename="projects/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  15450. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  15451. <Original>
  15452. parseEnums( "ClassName::EnumName::Value1" ), Equals(std::vector&lt;Catch::StringRef>{"Value1"} )
  15453. </Original>
  15454. <Expanded>
  15455. { Value1 } Equals: { Value1 }
  15456. </Expanded>
  15457. </Expression>
  15458. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  15459. <Original>
  15460. parseEnums( "Value1" ), Equals( std::vector&lt;Catch::StringRef>{"Value1"} )
  15461. </Original>
  15462. <Expanded>
  15463. { Value1 } Equals: { Value1 }
  15464. </Expanded>
  15465. </Expression>
  15466. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  15467. <Original>
  15468. parseEnums( "EnumName::Value1" ), Equals(std::vector&lt;Catch::StringRef>{"Value1"} )
  15469. </Original>
  15470. <Expanded>
  15471. { Value1 } Equals: { Value1 }
  15472. </Expanded>
  15473. </Expression>
  15474. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  15475. </Section>
  15476. <Section name="Multiple enum values" filename="projects/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  15477. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  15478. <Original>
  15479. parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2" ), Equals( std::vector&lt;Catch::StringRef>{"Value1", "Value2"} )
  15480. </Original>
  15481. <Expanded>
  15482. { Value1, Value2 } Equals: { Value1, Value2 }
  15483. </Expanded>
  15484. </Expression>
  15485. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  15486. <Original>
  15487. parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2, ClassName::EnumName::Value3" ), Equals( std::vector&lt;Catch::StringRef>{"Value1", "Value2", "Value3"} )
  15488. </Original>
  15489. <Expanded>
  15490. { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
  15491. </Expanded>
  15492. </Expression>
  15493. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/IntrospectiveTests/ToString.tests.cpp" >
  15494. <Original>
  15495. parseEnums( "ClassName::EnumName::Value1,ClassName::EnumName::Value2 , ClassName::EnumName::Value3" ), Equals( std::vector&lt;Catch::StringRef>{"Value1", "Value2", "Value3"} )
  15496. </Original>
  15497. <Expanded>
  15498. { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
  15499. </Expanded>
  15500. </Expression>
  15501. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  15502. </Section>
  15503. <OverallResult success="true"/>
  15504. </TestCase>
  15505. <TestCase name="pointer to class" tags="[Tricky]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  15506. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  15507. <Original>
  15508. p == 0
  15509. </Original>
  15510. <Expanded>
  15511. 0 == 0
  15512. </Expanded>
  15513. </Expression>
  15514. <OverallResult success="true"/>
  15515. </TestCase>
  15516. <TestCase name="print unscoped info if passing unscoped info is printed" tags="[info][unscoped]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15517. <Info>
  15518. this MAY be seen IF info is printed for passing assertions
  15519. </Info>
  15520. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15521. <Original>
  15522. true
  15523. </Original>
  15524. <Expanded>
  15525. true
  15526. </Expanded>
  15527. </Expression>
  15528. <OverallResult success="true"/>
  15529. </TestCase>
  15530. <TestCase name="prints unscoped info on failure" tags="[!hide][.][failing][info][unscoped]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15531. <Info>
  15532. this SHOULD be seen
  15533. </Info>
  15534. <Info>
  15535. this SHOULD also be seen
  15536. </Info>
  15537. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15538. <Original>
  15539. false
  15540. </Original>
  15541. <Expanded>
  15542. false
  15543. </Expanded>
  15544. </Expression>
  15545. <OverallResult success="false"/>
  15546. </TestCase>
  15547. <TestCase name="prints unscoped info only for the first assertion" tags="[!hide][.][failing][info][unscoped]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15548. <Info>
  15549. this SHOULD be seen only ONCE
  15550. </Info>
  15551. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15552. <Original>
  15553. false
  15554. </Original>
  15555. <Expanded>
  15556. false
  15557. </Expanded>
  15558. </Expression>
  15559. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15560. <Original>
  15561. true
  15562. </Original>
  15563. <Expanded>
  15564. true
  15565. </Expanded>
  15566. </Expression>
  15567. <Info>
  15568. this MAY also be seen only ONCE IF info is printed for passing assertions
  15569. </Info>
  15570. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15571. <Original>
  15572. true
  15573. </Original>
  15574. <Expanded>
  15575. true
  15576. </Expanded>
  15577. </Expression>
  15578. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15579. <Original>
  15580. true
  15581. </Original>
  15582. <Expanded>
  15583. true
  15584. </Expanded>
  15585. </Expression>
  15586. <OverallResult success="false"/>
  15587. </TestCase>
  15588. <TestCase name="random SECTION tests" tags="[!hide][.][failing][sections]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15589. <Section name="doesn't equal" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15590. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15591. <Original>
  15592. a != b
  15593. </Original>
  15594. <Expanded>
  15595. 1 != 2
  15596. </Expanded>
  15597. </Expression>
  15598. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15599. <Original>
  15600. b != a
  15601. </Original>
  15602. <Expanded>
  15603. 2 != 1
  15604. </Expanded>
  15605. </Expression>
  15606. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15607. </Section>
  15608. <Section name="not equal" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15609. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15610. <Original>
  15611. a != b
  15612. </Original>
  15613. <Expanded>
  15614. 1 != 2
  15615. </Expanded>
  15616. </Expression>
  15617. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15618. </Section>
  15619. <OverallResult success="true"/>
  15620. </TestCase>
  15621. <TestCase name="replaceInPlace" tags="[string-manip]" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15622. <Section name="replace single char" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15623. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15624. <Original>
  15625. Catch::replaceInPlace(letters, "b", "z")
  15626. </Original>
  15627. <Expanded>
  15628. true
  15629. </Expanded>
  15630. </Expression>
  15631. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15632. <Original>
  15633. letters == "azcdefcg"
  15634. </Original>
  15635. <Expanded>
  15636. "azcdefcg" == "azcdefcg"
  15637. </Expanded>
  15638. </Expression>
  15639. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15640. </Section>
  15641. <Section name="replace two chars" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15642. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15643. <Original>
  15644. Catch::replaceInPlace(letters, "c", "z")
  15645. </Original>
  15646. <Expanded>
  15647. true
  15648. </Expanded>
  15649. </Expression>
  15650. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15651. <Original>
  15652. letters == "abzdefzg"
  15653. </Original>
  15654. <Expanded>
  15655. "abzdefzg" == "abzdefzg"
  15656. </Expanded>
  15657. </Expression>
  15658. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15659. </Section>
  15660. <Section name="replace first char" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15661. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15662. <Original>
  15663. Catch::replaceInPlace(letters, "a", "z")
  15664. </Original>
  15665. <Expanded>
  15666. true
  15667. </Expanded>
  15668. </Expression>
  15669. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15670. <Original>
  15671. letters == "zbcdefcg"
  15672. </Original>
  15673. <Expanded>
  15674. "zbcdefcg" == "zbcdefcg"
  15675. </Expanded>
  15676. </Expression>
  15677. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15678. </Section>
  15679. <Section name="replace last char" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15680. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15681. <Original>
  15682. Catch::replaceInPlace(letters, "g", "z")
  15683. </Original>
  15684. <Expanded>
  15685. true
  15686. </Expanded>
  15687. </Expression>
  15688. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15689. <Original>
  15690. letters == "abcdefcz"
  15691. </Original>
  15692. <Expanded>
  15693. "abcdefcz" == "abcdefcz"
  15694. </Expanded>
  15695. </Expression>
  15696. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15697. </Section>
  15698. <Section name="replace all chars" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15699. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15700. <Original>
  15701. Catch::replaceInPlace(letters, letters, "replaced")
  15702. </Original>
  15703. <Expanded>
  15704. true
  15705. </Expanded>
  15706. </Expression>
  15707. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15708. <Original>
  15709. letters == "replaced"
  15710. </Original>
  15711. <Expanded>
  15712. "replaced" == "replaced"
  15713. </Expanded>
  15714. </Expression>
  15715. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15716. </Section>
  15717. <Section name="replace no chars" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15718. <Expression success="true" type="CHECK_FALSE" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15719. <Original>
  15720. !(Catch::replaceInPlace(letters, "x", "z"))
  15721. </Original>
  15722. <Expanded>
  15723. !false
  15724. </Expanded>
  15725. </Expression>
  15726. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15727. <Original>
  15728. letters == letters
  15729. </Original>
  15730. <Expanded>
  15731. "abcdefcg" == "abcdefcg"
  15732. </Expanded>
  15733. </Expression>
  15734. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15735. </Section>
  15736. <Section name="escape '" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15737. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15738. <Original>
  15739. Catch::replaceInPlace(s, "'", "|'")
  15740. </Original>
  15741. <Expanded>
  15742. true
  15743. </Expanded>
  15744. </Expression>
  15745. <Expression success="true" type="CHECK" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15746. <Original>
  15747. s == "didn|'t"
  15748. </Original>
  15749. <Expanded>
  15750. "didn|'t" == "didn|'t"
  15751. </Expanded>
  15752. </Expression>
  15753. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  15754. </Section>
  15755. <OverallResult success="true"/>
  15756. </TestCase>
  15757. <TestCase name="second tag" tags="[tag2]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15758. <OverallResult success="false"/>
  15759. </TestCase>
  15760. <TestCase name="send a single char to INFO" tags="[!hide][.][failing]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15761. <Info>
  15762. 3
  15763. </Info>
  15764. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  15765. <Original>
  15766. false
  15767. </Original>
  15768. <Expanded>
  15769. false
  15770. </Expanded>
  15771. </Expression>
  15772. <OverallResult success="false"/>
  15773. </TestCase>
  15774. <TestCase name="sends information to INFO" tags="[!hide][.][failing]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15775. <Info>
  15776. hi
  15777. </Info>
  15778. <Info>
  15779. i := 7
  15780. </Info>
  15781. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15782. <Original>
  15783. false
  15784. </Original>
  15785. <Expanded>
  15786. false
  15787. </Expanded>
  15788. </Expression>
  15789. <OverallResult success="false"/>
  15790. </TestCase>
  15791. <TestCase name="shortened hide tags are split apart" filename="projects/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  15792. <Expression success="true" type="REQUIRE_THAT" filename="projects/<exe-name>/IntrospectiveTests/Tag.tests.cpp" >
  15793. <Original>
  15794. testcase.tags, Catch::VectorContains(std::string("magic-tag")) &amp;&amp; Catch::VectorContains(std::string("."))
  15795. </Original>
  15796. <Expanded>
  15797. { "!hide", ".", "magic-tag" } ( Contains: "magic-tag" and Contains: "." )
  15798. </Expanded>
  15799. </Expression>
  15800. <OverallResult success="true"/>
  15801. </TestCase>
  15802. <TestCase name="splitString" tags="[string-manip]" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15803. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15804. <Original>
  15805. splitStringRef("", ','), Equals(std::vector&lt;StringRef>())
  15806. </Original>
  15807. <Expanded>
  15808. { } Equals: { }
  15809. </Expanded>
  15810. </Expression>
  15811. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15812. <Original>
  15813. splitStringRef("abc", ','), Equals(std::vector&lt;StringRef>{"abc"})
  15814. </Original>
  15815. <Expanded>
  15816. { abc } Equals: { abc }
  15817. </Expanded>
  15818. </Expression>
  15819. <Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/IntrospectiveTests/StringManip.tests.cpp" >
  15820. <Original>
  15821. splitStringRef("abc,def", ','), Equals(std::vector&lt;StringRef>{"abc", "def"})
  15822. </Original>
  15823. <Expanded>
  15824. { abc, def } Equals: { abc, def }
  15825. </Expanded>
  15826. </Expression>
  15827. <OverallResult success="true"/>
  15828. </TestCase>
  15829. <TestCase name="stacks unscoped info in loops" tags="[!hide][.][failing][info][unscoped]" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15830. <Info>
  15831. Count 1 to 3...
  15832. </Info>
  15833. <Info>
  15834. 1
  15835. </Info>
  15836. <Info>
  15837. 2
  15838. </Info>
  15839. <Info>
  15840. 3
  15841. </Info>
  15842. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15843. <Original>
  15844. false
  15845. </Original>
  15846. <Expanded>
  15847. false
  15848. </Expanded>
  15849. </Expression>
  15850. <Info>
  15851. Count 4 to 6...
  15852. </Info>
  15853. <Info>
  15854. 4
  15855. </Info>
  15856. <Info>
  15857. 5
  15858. </Info>
  15859. <Info>
  15860. 6
  15861. </Info>
  15862. <Expression success="false" type="CHECK" filename="projects/<exe-name>/UsageTests/Message.tests.cpp" >
  15863. <Original>
  15864. false
  15865. </Original>
  15866. <Expanded>
  15867. false
  15868. </Expanded>
  15869. </Expression>
  15870. <OverallResult success="false"/>
  15871. </TestCase>
  15872. <TestCase name="std::map is convertible string" tags="[toString]" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  15873. <Section name="empty" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  15874. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  15875. <Original>
  15876. Catch::Detail::stringify( emptyMap ) == "{ }"
  15877. </Original>
  15878. <Expanded>
  15879. "{ }" == "{ }"
  15880. </Expanded>
  15881. </Expression>
  15882. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15883. </Section>
  15884. <Section name="single item" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  15885. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  15886. <Original>
  15887. Catch::Detail::stringify( map ) == "{ { \"one\", 1 } }"
  15888. </Original>
  15889. <Expanded>
  15890. "{ { "one", 1 } }" == "{ { "one", 1 } }"
  15891. </Expanded>
  15892. </Expression>
  15893. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15894. </Section>
  15895. <Section name="several items" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  15896. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  15897. <Original>
  15898. Catch::Detail::stringify( map ) == "{ { \"abc\", 1 }, { \"def\", 2 }, { \"ghi\", 3 } }"
  15899. </Original>
  15900. <Expanded>
  15901. "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
  15902. ==
  15903. "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
  15904. </Expanded>
  15905. </Expression>
  15906. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15907. </Section>
  15908. <OverallResult success="true"/>
  15909. </TestCase>
  15910. <TestCase name="std::pair&lt;int,const std::string> -> toString" tags="[pair][toString]" filename="projects/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  15911. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  15912. <Original>
  15913. ::Catch::Detail::stringify(value) == "{ 34, \"xyzzy\" }"
  15914. </Original>
  15915. <Expanded>
  15916. "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
  15917. </Expanded>
  15918. </Expression>
  15919. <OverallResult success="true"/>
  15920. </TestCase>
  15921. <TestCase name="std::pair&lt;int,std::string> -> toString" tags="[pair][toString]" filename="projects/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  15922. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  15923. <Original>
  15924. ::Catch::Detail::stringify( value ) == "{ 34, \"xyzzy\" }"
  15925. </Original>
  15926. <Expanded>
  15927. "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
  15928. </Expanded>
  15929. </Expression>
  15930. <OverallResult success="true"/>
  15931. </TestCase>
  15932. <TestCase name="std::set is convertible string" tags="[toString]" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  15933. <Section name="empty" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  15934. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  15935. <Original>
  15936. Catch::Detail::stringify( emptySet ) == "{ }"
  15937. </Original>
  15938. <Expanded>
  15939. "{ }" == "{ }"
  15940. </Expanded>
  15941. </Expression>
  15942. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15943. </Section>
  15944. <Section name="single item" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  15945. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  15946. <Original>
  15947. Catch::Detail::stringify( set ) == "{ \"one\" }"
  15948. </Original>
  15949. <Expanded>
  15950. "{ "one" }" == "{ "one" }"
  15951. </Expanded>
  15952. </Expression>
  15953. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15954. </Section>
  15955. <Section name="several items" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  15956. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringGeneral.tests.cpp" >
  15957. <Original>
  15958. Catch::Detail::stringify( set ) == "{ \"abc\", \"def\", \"ghi\" }"
  15959. </Original>
  15960. <Expanded>
  15961. "{ "abc", "def", "ghi" }"
  15962. ==
  15963. "{ "abc", "def", "ghi" }"
  15964. </Expanded>
  15965. </Expression>
  15966. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  15967. </Section>
  15968. <OverallResult success="true"/>
  15969. </TestCase>
  15970. <TestCase name="std::vector&lt;std::pair&lt;std::string,int> > -> toString" tags="[pair][toString]" filename="projects/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  15971. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringPair.tests.cpp" >
  15972. <Original>
  15973. ::Catch::Detail::stringify( pr ) == "{ { \"green\", 55 } }"
  15974. </Original>
  15975. <Expanded>
  15976. "{ { "green", 55 } }"
  15977. ==
  15978. "{ { "green", 55 } }"
  15979. </Expanded>
  15980. </Expression>
  15981. <OverallResult success="true"/>
  15982. </TestCase>
  15983. <TestCase name="string literals of different sizes can be compared" tags="[!hide][.][Tricky][failing]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  15984. <Expression success="false" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" >
  15985. <Original>
  15986. std::string( "first" ) == "second"
  15987. </Original>
  15988. <Expanded>
  15989. "first" == "second"
  15990. </Expanded>
  15991. </Expression>
  15992. <OverallResult success="false"/>
  15993. </TestCase>
  15994. <TestCase name="stringify ranges" tags="[toString]" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  15995. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  15996. <Original>
  15997. ::Catch::Detail::stringify(streamable_range{}) == "op&lt;&lt;(streamable_range)"
  15998. </Original>
  15999. <Expanded>
  16000. "op&lt;&lt;(streamable_range)"
  16001. ==
  16002. "op&lt;&lt;(streamable_range)"
  16003. </Expanded>
  16004. </Expression>
  16005. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16006. <Original>
  16007. ::Catch::Detail::stringify(stringmaker_range{}) == "stringmaker(streamable_range)"
  16008. </Original>
  16009. <Expanded>
  16010. "stringmaker(streamable_range)"
  16011. ==
  16012. "stringmaker(streamable_range)"
  16013. </Expanded>
  16014. </Expression>
  16015. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16016. <Original>
  16017. ::Catch::Detail::stringify(just_range{}) == "{ 1, 2, 3, 4 }"
  16018. </Original>
  16019. <Expanded>
  16020. "{ 1, 2, 3, 4 }" == "{ 1, 2, 3, 4 }"
  16021. </Expanded>
  16022. </Expression>
  16023. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16024. <Original>
  16025. ::Catch::Detail::stringify(disabled_range{}) == "{ !!! }"
  16026. </Original>
  16027. <Expanded>
  16028. "{ !!! }" == "{ !!! }"
  16029. </Expanded>
  16030. </Expression>
  16031. <OverallResult success="true"/>
  16032. </TestCase>
  16033. <TestCase name="stringify( has_maker )" tags="[toString]" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16034. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16035. <Original>
  16036. ::Catch::Detail::stringify( item ) == "StringMaker&lt;has_maker>"
  16037. </Original>
  16038. <Expanded>
  16039. "StringMaker&lt;has_maker>"
  16040. ==
  16041. "StringMaker&lt;has_maker>"
  16042. </Expanded>
  16043. </Expression>
  16044. <OverallResult success="true"/>
  16045. </TestCase>
  16046. <TestCase name="stringify( has_maker_and_operator )" tags="[toString]" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16047. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16048. <Original>
  16049. ::Catch::Detail::stringify( item ) == "StringMaker&lt;has_maker_and_operator>"
  16050. </Original>
  16051. <Expanded>
  16052. "StringMaker&lt;has_maker_and_operator>"
  16053. ==
  16054. "StringMaker&lt;has_maker_and_operator>"
  16055. </Expanded>
  16056. </Expression>
  16057. <OverallResult success="true"/>
  16058. </TestCase>
  16059. <TestCase name="stringify( has_neither )" tags="[toString]" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16060. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16061. <Original>
  16062. ::Catch::Detail::stringify(item) == "{ !!! }"
  16063. </Original>
  16064. <Expanded>
  16065. "{ !!! }" == "{ !!! }"
  16066. </Expanded>
  16067. </Expression>
  16068. <OverallResult success="true"/>
  16069. </TestCase>
  16070. <TestCase name="stringify( has_operator )" tags="[toString]" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16071. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16072. <Original>
  16073. ::Catch::Detail::stringify( item ) == "operator&lt;&lt;( has_operator )"
  16074. </Original>
  16075. <Expanded>
  16076. "operator&lt;&lt;( has_operator )"
  16077. ==
  16078. "operator&lt;&lt;( has_operator )"
  16079. </Expanded>
  16080. </Expression>
  16081. <OverallResult success="true"/>
  16082. </TestCase>
  16083. <TestCase name="stringify( has_template_operator )" tags="[toString]" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16084. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16085. <Original>
  16086. ::Catch::Detail::stringify( item ) == "operator&lt;&lt;( has_template_operator )"
  16087. </Original>
  16088. <Expanded>
  16089. "operator&lt;&lt;( has_template_operator )"
  16090. ==
  16091. "operator&lt;&lt;( has_template_operator )"
  16092. </Expanded>
  16093. </Expression>
  16094. <OverallResult success="true"/>
  16095. </TestCase>
  16096. <TestCase name="stringify( vectors&lt;has_maker> )" tags="[toString]" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16097. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16098. <Original>
  16099. ::Catch::Detail::stringify( v ) == "{ StringMaker&lt;has_maker> }"
  16100. </Original>
  16101. <Expanded>
  16102. "{ StringMaker&lt;has_maker> }"
  16103. ==
  16104. "{ StringMaker&lt;has_maker> }"
  16105. </Expanded>
  16106. </Expression>
  16107. <OverallResult success="true"/>
  16108. </TestCase>
  16109. <TestCase name="stringify( vectors&lt;has_maker_and_operator> )" tags="[toString]" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16110. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16111. <Original>
  16112. ::Catch::Detail::stringify( v ) == "{ StringMaker&lt;has_maker_and_operator> }"
  16113. </Original>
  16114. <Expanded>
  16115. "{ StringMaker&lt;has_maker_and_operator> }"
  16116. ==
  16117. "{ StringMaker&lt;has_maker_and_operator> }"
  16118. </Expanded>
  16119. </Expression>
  16120. <OverallResult success="true"/>
  16121. </TestCase>
  16122. <TestCase name="stringify( vectors&lt;has_operator> )" tags="[toString]" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16123. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringWhich.tests.cpp" >
  16124. <Original>
  16125. ::Catch::Detail::stringify( v ) == "{ operator&lt;&lt;( has_operator ) }"
  16126. </Original>
  16127. <Expanded>
  16128. "{ operator&lt;&lt;( has_operator ) }"
  16129. ==
  16130. "{ operator&lt;&lt;( has_operator ) }"
  16131. </Expanded>
  16132. </Expression>
  16133. <OverallResult success="true"/>
  16134. </TestCase>
  16135. <TestCase name="strlen3" tags="[generators]" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  16136. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  16137. <Original>
  16138. data.str.size() == data.len
  16139. </Original>
  16140. <Expanded>
  16141. 3 == 3
  16142. </Expanded>
  16143. </Expression>
  16144. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  16145. <Original>
  16146. data.str.size() == data.len
  16147. </Original>
  16148. <Expanded>
  16149. 3 == 3
  16150. </Expanded>
  16151. </Expression>
  16152. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  16153. <Original>
  16154. data.str.size() == data.len
  16155. </Original>
  16156. <Expanded>
  16157. 5 == 5
  16158. </Expanded>
  16159. </Expression>
  16160. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  16161. <Original>
  16162. data.str.size() == data.len
  16163. </Original>
  16164. <Expanded>
  16165. 4 == 4
  16166. </Expanded>
  16167. </Expression>
  16168. <OverallResult success="true"/>
  16169. </TestCase>
  16170. <TestCase name="tables" tags="[generators]" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  16171. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  16172. <Original>
  16173. strlen(std::get&lt;0>(data)) == static_cast&lt;size_t>(std::get&lt;1>(data))
  16174. </Original>
  16175. <Expanded>
  16176. 5 == 5
  16177. </Expanded>
  16178. </Expression>
  16179. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  16180. <Original>
  16181. strlen(std::get&lt;0>(data)) == static_cast&lt;size_t>(std::get&lt;1>(data))
  16182. </Original>
  16183. <Expanded>
  16184. 6 == 6
  16185. </Expanded>
  16186. </Expression>
  16187. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  16188. <Original>
  16189. strlen(std::get&lt;0>(data)) == static_cast&lt;size_t>(std::get&lt;1>(data))
  16190. </Original>
  16191. <Expanded>
  16192. 5 == 5
  16193. </Expanded>
  16194. </Expression>
  16195. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Generators.tests.cpp" >
  16196. <Original>
  16197. strlen(std::get&lt;0>(data)) == static_cast&lt;size_t>(std::get&lt;1>(data))
  16198. </Original>
  16199. <Expanded>
  16200. 6 == 6
  16201. </Expanded>
  16202. </Expression>
  16203. <OverallResult success="true"/>
  16204. </TestCase>
  16205. <TestCase name="thrown std::strings are translated" tags="[!hide][!throws][.][failing]" filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  16206. <Exception filename="projects/<exe-name>/UsageTests/Exception.tests.cpp" >
  16207. Why would you throw a std::string?
  16208. </Exception>
  16209. <OverallResult success="false"/>
  16210. </TestCase>
  16211. <TestCase name="toString on const wchar_t const pointer returns the string contents" tags="[toString]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16212. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16213. <Original>
  16214. result == "\"wide load\""
  16215. </Original>
  16216. <Expanded>
  16217. ""wide load"" == ""wide load""
  16218. </Expanded>
  16219. </Expression>
  16220. <OverallResult success="true"/>
  16221. </TestCase>
  16222. <TestCase name="toString on const wchar_t pointer returns the string contents" tags="[toString]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16223. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16224. <Original>
  16225. result == "\"wide load\""
  16226. </Original>
  16227. <Expanded>
  16228. ""wide load"" == ""wide load""
  16229. </Expanded>
  16230. </Expression>
  16231. <OverallResult success="true"/>
  16232. </TestCase>
  16233. <TestCase name="toString on wchar_t const pointer returns the string contents" tags="[toString]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16234. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16235. <Original>
  16236. result == "\"wide load\""
  16237. </Original>
  16238. <Expanded>
  16239. ""wide load"" == ""wide load""
  16240. </Expanded>
  16241. </Expression>
  16242. <OverallResult success="true"/>
  16243. </TestCase>
  16244. <TestCase name="toString on wchar_t returns the string contents" tags="[toString]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16245. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16246. <Original>
  16247. result == "\"wide load\""
  16248. </Original>
  16249. <Expanded>
  16250. ""wide load"" == ""wide load""
  16251. </Expanded>
  16252. </Expression>
  16253. <OverallResult success="true"/>
  16254. </TestCase>
  16255. <TestCase name="toString(enum class w/operator&lt;&lt;)" tags="[enum][enumClass][toString]" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  16256. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  16257. <Original>
  16258. ::Catch::Detail::stringify(e0) == "E2/V0"
  16259. </Original>
  16260. <Expanded>
  16261. "E2/V0" == "E2/V0"
  16262. </Expanded>
  16263. </Expression>
  16264. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  16265. <Original>
  16266. ::Catch::Detail::stringify(e1) == "E2/V1"
  16267. </Original>
  16268. <Expanded>
  16269. "E2/V1" == "E2/V1"
  16270. </Expanded>
  16271. </Expression>
  16272. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  16273. <Original>
  16274. ::Catch::Detail::stringify(e3) == "Unknown enum value 10"
  16275. </Original>
  16276. <Expanded>
  16277. "Unknown enum value 10"
  16278. ==
  16279. "Unknown enum value 10"
  16280. </Expanded>
  16281. </Expression>
  16282. <OverallResult success="true"/>
  16283. </TestCase>
  16284. <TestCase name="toString(enum class)" tags="[enum][enumClass][toString]" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  16285. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  16286. <Original>
  16287. ::Catch::Detail::stringify(e0) == "0"
  16288. </Original>
  16289. <Expanded>
  16290. "0" == "0"
  16291. </Expanded>
  16292. </Expression>
  16293. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  16294. <Original>
  16295. ::Catch::Detail::stringify(e1) == "1"
  16296. </Original>
  16297. <Expanded>
  16298. "1" == "1"
  16299. </Expanded>
  16300. </Expression>
  16301. <OverallResult success="true"/>
  16302. </TestCase>
  16303. <TestCase name="toString(enum w/operator&lt;&lt;)" tags="[enum][toString]" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  16304. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  16305. <Original>
  16306. ::Catch::Detail::stringify(e0) == "E2{0}"
  16307. </Original>
  16308. <Expanded>
  16309. "E2{0}" == "E2{0}"
  16310. </Expanded>
  16311. </Expression>
  16312. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  16313. <Original>
  16314. ::Catch::Detail::stringify(e1) == "E2{1}"
  16315. </Original>
  16316. <Expanded>
  16317. "E2{1}" == "E2{1}"
  16318. </Expanded>
  16319. </Expression>
  16320. <OverallResult success="true"/>
  16321. </TestCase>
  16322. <TestCase name="toString(enum)" tags="[enum][toString]" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  16323. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  16324. <Original>
  16325. ::Catch::Detail::stringify(e0) == "0"
  16326. </Original>
  16327. <Expanded>
  16328. "0" == "0"
  16329. </Expanded>
  16330. </Expression>
  16331. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/EnumToString.tests.cpp" >
  16332. <Original>
  16333. ::Catch::Detail::stringify(e1) == "1"
  16334. </Original>
  16335. <Expanded>
  16336. "1" == "1"
  16337. </Expanded>
  16338. </Expression>
  16339. <OverallResult success="true"/>
  16340. </TestCase>
  16341. <TestCase name="tuple&lt;>" tags="[toString][tuple]" filename="projects/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  16342. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  16343. <Original>
  16344. "{ }" == ::Catch::Detail::stringify(type{})
  16345. </Original>
  16346. <Expanded>
  16347. "{ }" == "{ }"
  16348. </Expanded>
  16349. </Expression>
  16350. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  16351. <Original>
  16352. "{ }" == ::Catch::Detail::stringify(value)
  16353. </Original>
  16354. <Expanded>
  16355. "{ }" == "{ }"
  16356. </Expanded>
  16357. </Expression>
  16358. <OverallResult success="true"/>
  16359. </TestCase>
  16360. <TestCase name="tuple&lt;float,int>" tags="[toString][tuple]" filename="projects/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  16361. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  16362. <Original>
  16363. "1.2f" == ::Catch::Detail::stringify(float(1.2))
  16364. </Original>
  16365. <Expanded>
  16366. "1.2f" == "1.2f"
  16367. </Expanded>
  16368. </Expression>
  16369. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  16370. <Original>
  16371. "{ 1.2f, 0 }" == ::Catch::Detail::stringify(type{1.2f,0})
  16372. </Original>
  16373. <Expanded>
  16374. "{ 1.2f, 0 }" == "{ 1.2f, 0 }"
  16375. </Expanded>
  16376. </Expression>
  16377. <OverallResult success="true"/>
  16378. </TestCase>
  16379. <TestCase name="tuple&lt;int>" tags="[toString][tuple]" filename="projects/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  16380. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  16381. <Original>
  16382. "{ 0 }" == ::Catch::Detail::stringify(type{0})
  16383. </Original>
  16384. <Expanded>
  16385. "{ 0 }" == "{ 0 }"
  16386. </Expanded>
  16387. </Expression>
  16388. <OverallResult success="true"/>
  16389. </TestCase>
  16390. <TestCase name="tuple&lt;0,int,const char *>" tags="[toString][tuple]" filename="projects/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  16391. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  16392. <Original>
  16393. "{ 0, 42, \"Catch me\" }" == ::Catch::Detail::stringify(value)
  16394. </Original>
  16395. <Expanded>
  16396. "{ 0, 42, "Catch me" }"
  16397. ==
  16398. "{ 0, 42, "Catch me" }"
  16399. </Expanded>
  16400. </Expression>
  16401. <OverallResult success="true"/>
  16402. </TestCase>
  16403. <TestCase name="tuple&lt;string,string>" tags="[toString][tuple]" filename="projects/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  16404. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  16405. <Original>
  16406. "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"})
  16407. </Original>
  16408. <Expanded>
  16409. "{ "hello", "world" }"
  16410. ==
  16411. "{ "hello", "world" }"
  16412. </Expanded>
  16413. </Expression>
  16414. <OverallResult success="true"/>
  16415. </TestCase>
  16416. <TestCase name="tuple&lt;tuple&lt;int>,tuple&lt;>,float>" tags="[toString][tuple]" filename="projects/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  16417. <Expression success="true" type="CHECK" filename="projects/<exe-name>/UsageTests/ToStringTuple.tests.cpp" >
  16418. <Original>
  16419. "{ { 42 }, { }, 1.2f }" == ::Catch::Detail::stringify(value)
  16420. </Original>
  16421. <Expanded>
  16422. "{ { 42 }, { }, 1.2f }"
  16423. ==
  16424. "{ { 42 }, { }, 1.2f }"
  16425. </Expanded>
  16426. </Expression>
  16427. <OverallResult success="true"/>
  16428. </TestCase>
  16429. <TestCase name="vec&lt;vec&lt;string,alloc>> -> toString" tags="[toString][vector,allocator]" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16430. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16431. <Original>
  16432. ::Catch::Detail::stringify(v) == "{ }"
  16433. </Original>
  16434. <Expanded>
  16435. "{ }" == "{ }"
  16436. </Expanded>
  16437. </Expression>
  16438. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16439. <Original>
  16440. ::Catch::Detail::stringify(v) == "{ { \"hello\" }, { \"world\" } }"
  16441. </Original>
  16442. <Expanded>
  16443. "{ { "hello" }, { "world" } }"
  16444. ==
  16445. "{ { "hello" }, { "world" } }"
  16446. </Expanded>
  16447. </Expression>
  16448. <OverallResult success="true"/>
  16449. </TestCase>
  16450. <TestCase name="vector&lt;bool> -> toString" tags="[containers][toString][vector]" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16451. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16452. <Original>
  16453. ::Catch::Detail::stringify(bools) == "{ }"
  16454. </Original>
  16455. <Expanded>
  16456. "{ }" == "{ }"
  16457. </Expanded>
  16458. </Expression>
  16459. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16460. <Original>
  16461. ::Catch::Detail::stringify(bools) == "{ true }"
  16462. </Original>
  16463. <Expanded>
  16464. "{ true }" == "{ true }"
  16465. </Expanded>
  16466. </Expression>
  16467. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16468. <Original>
  16469. ::Catch::Detail::stringify(bools) == "{ true, false }"
  16470. </Original>
  16471. <Expanded>
  16472. "{ true, false }" == "{ true, false }"
  16473. </Expanded>
  16474. </Expression>
  16475. <OverallResult success="true"/>
  16476. </TestCase>
  16477. <TestCase name="vector&lt;int,allocator> -> toString" tags="[toString][vector,allocator]" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16478. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16479. <Original>
  16480. ::Catch::Detail::stringify(vv) == "{ }"
  16481. </Original>
  16482. <Expanded>
  16483. "{ }" == "{ }"
  16484. </Expanded>
  16485. </Expression>
  16486. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16487. <Original>
  16488. ::Catch::Detail::stringify(vv) == "{ 42 }"
  16489. </Original>
  16490. <Expanded>
  16491. "{ 42 }" == "{ 42 }"
  16492. </Expanded>
  16493. </Expression>
  16494. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16495. <Original>
  16496. ::Catch::Detail::stringify(vv) == "{ 42, 250 }"
  16497. </Original>
  16498. <Expanded>
  16499. "{ 42, 250 }" == "{ 42, 250 }"
  16500. </Expanded>
  16501. </Expression>
  16502. <OverallResult success="true"/>
  16503. </TestCase>
  16504. <TestCase name="vector&lt;int> -> toString" tags="[toString][vector]" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16505. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16506. <Original>
  16507. ::Catch::Detail::stringify(vv) == "{ }"
  16508. </Original>
  16509. <Expanded>
  16510. "{ }" == "{ }"
  16511. </Expanded>
  16512. </Expression>
  16513. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16514. <Original>
  16515. ::Catch::Detail::stringify(vv) == "{ 42 }"
  16516. </Original>
  16517. <Expanded>
  16518. "{ 42 }" == "{ 42 }"
  16519. </Expanded>
  16520. </Expression>
  16521. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16522. <Original>
  16523. ::Catch::Detail::stringify(vv) == "{ 42, 250 }"
  16524. </Original>
  16525. <Expanded>
  16526. "{ 42, 250 }" == "{ 42, 250 }"
  16527. </Expanded>
  16528. </Expression>
  16529. <OverallResult success="true"/>
  16530. </TestCase>
  16531. <TestCase name="vector&lt;string> -> toString" tags="[toString][vector]" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16532. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16533. <Original>
  16534. ::Catch::Detail::stringify(vv) == "{ }"
  16535. </Original>
  16536. <Expanded>
  16537. "{ }" == "{ }"
  16538. </Expanded>
  16539. </Expression>
  16540. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16541. <Original>
  16542. ::Catch::Detail::stringify(vv) == "{ \"hello\" }"
  16543. </Original>
  16544. <Expanded>
  16545. "{ "hello" }" == "{ "hello" }"
  16546. </Expanded>
  16547. </Expression>
  16548. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringVector.tests.cpp" >
  16549. <Original>
  16550. ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }"
  16551. </Original>
  16552. <Expanded>
  16553. "{ "hello", "world" }"
  16554. ==
  16555. "{ "hello", "world" }"
  16556. </Expanded>
  16557. </Expression>
  16558. <OverallResult success="true"/>
  16559. </TestCase>
  16560. <TestCase name="vectors can be sized and resized" tags="[vector]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16561. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16562. <Original>
  16563. v.size() == 5
  16564. </Original>
  16565. <Expanded>
  16566. 5 == 5
  16567. </Expanded>
  16568. </Expression>
  16569. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16570. <Original>
  16571. v.capacity() >= 5
  16572. </Original>
  16573. <Expanded>
  16574. 5 >= 5
  16575. </Expanded>
  16576. </Expression>
  16577. <Section name="resizing bigger changes size and capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16578. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16579. <Original>
  16580. v.size() == 10
  16581. </Original>
  16582. <Expanded>
  16583. 10 == 10
  16584. </Expanded>
  16585. </Expression>
  16586. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16587. <Original>
  16588. v.capacity() >= 10
  16589. </Original>
  16590. <Expanded>
  16591. 10 >= 10
  16592. </Expanded>
  16593. </Expression>
  16594. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  16595. </Section>
  16596. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16597. <Original>
  16598. v.size() == 5
  16599. </Original>
  16600. <Expanded>
  16601. 5 == 5
  16602. </Expanded>
  16603. </Expression>
  16604. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16605. <Original>
  16606. v.capacity() >= 5
  16607. </Original>
  16608. <Expanded>
  16609. 5 >= 5
  16610. </Expanded>
  16611. </Expression>
  16612. <Section name="resizing smaller changes size but not capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16613. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16614. <Original>
  16615. v.size() == 0
  16616. </Original>
  16617. <Expanded>
  16618. 0 == 0
  16619. </Expanded>
  16620. </Expression>
  16621. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16622. <Original>
  16623. v.capacity() >= 5
  16624. </Original>
  16625. <Expanded>
  16626. 5 >= 5
  16627. </Expanded>
  16628. </Expression>
  16629. <Section name="We can use the 'swap trick' to reset the capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16630. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16631. <Original>
  16632. v.capacity() == 0
  16633. </Original>
  16634. <Expanded>
  16635. 0 == 0
  16636. </Expanded>
  16637. </Expression>
  16638. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16639. </Section>
  16640. <OverallResults successes="3" failures="0" expectedFailures="0"/>
  16641. </Section>
  16642. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16643. <Original>
  16644. v.size() == 5
  16645. </Original>
  16646. <Expanded>
  16647. 5 == 5
  16648. </Expanded>
  16649. </Expression>
  16650. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16651. <Original>
  16652. v.capacity() >= 5
  16653. </Original>
  16654. <Expanded>
  16655. 5 >= 5
  16656. </Expanded>
  16657. </Expression>
  16658. <Section name="reserving bigger changes capacity but not size" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16659. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16660. <Original>
  16661. v.size() == 5
  16662. </Original>
  16663. <Expanded>
  16664. 5 == 5
  16665. </Expanded>
  16666. </Expression>
  16667. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16668. <Original>
  16669. v.capacity() >= 10
  16670. </Original>
  16671. <Expanded>
  16672. 10 >= 10
  16673. </Expanded>
  16674. </Expression>
  16675. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  16676. </Section>
  16677. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16678. <Original>
  16679. v.size() == 5
  16680. </Original>
  16681. <Expanded>
  16682. 5 == 5
  16683. </Expanded>
  16684. </Expression>
  16685. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16686. <Original>
  16687. v.capacity() >= 5
  16688. </Original>
  16689. <Expanded>
  16690. 5 >= 5
  16691. </Expanded>
  16692. </Expression>
  16693. <Section name="reserving smaller does not change size or capacity" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16694. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16695. <Original>
  16696. v.size() == 5
  16697. </Original>
  16698. <Expanded>
  16699. 5 == 5
  16700. </Expanded>
  16701. </Expression>
  16702. <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16703. <Original>
  16704. v.capacity() >= 5
  16705. </Original>
  16706. <Expanded>
  16707. 5 >= 5
  16708. </Expanded>
  16709. </Expression>
  16710. <OverallResults successes="2" failures="0" expectedFailures="0"/>
  16711. </Section>
  16712. <OverallResult success="true"/>
  16713. </TestCase>
  16714. <TestCase name="xmlentitycheck" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16715. <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="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16716. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16717. </Section>
  16718. <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="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
  16719. <OverallResults successes="1" failures="0" expectedFailures="0"/>
  16720. </Section>
  16721. <OverallResult success="true"/>
  16722. </TestCase>
  16723. <OverallResults successes="1607" failures="149" expectedFailures="21"/>
  16724. <OverallResultsCases successes="232" failures="86" expectedFailures="4"/>
  16725. </Group>
  16726. <OverallResults successes="1607" failures="148" expectedFailures="21"/>
  16727. <OverallResultsCases successes="232" failures="86" expectedFailures="4"/>
  16728. </Catch>