console.sw.approved.txt 591 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455
  1. Filters: ~[!nonportable]~[!benchmark]~[approvals] *
  2. Randomness seeded to: 1
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. <exe-name> is a Catch2 v<version> host application.
  5. Run with -? for options
  6. -------------------------------------------------------------------------------
  7. # A test name that starts with a #
  8. -------------------------------------------------------------------------------
  9. Misc.tests.cpp:<line number>
  10. ...............................................................................
  11. Misc.tests.cpp:<line number>: PASSED:
  12. with message:
  13. yay
  14. -------------------------------------------------------------------------------
  15. #1027: Bitfields can be captured
  16. -------------------------------------------------------------------------------
  17. Compilation.tests.cpp:<line number>
  18. ...............................................................................
  19. Compilation.tests.cpp:<line number>: PASSED:
  20. REQUIRE( y.v == 0 )
  21. with expansion:
  22. 0 == 0
  23. Compilation.tests.cpp:<line number>: PASSED:
  24. REQUIRE( 0 == y.v )
  25. with expansion:
  26. 0 == 0
  27. -------------------------------------------------------------------------------
  28. #1147
  29. -------------------------------------------------------------------------------
  30. Compilation.tests.cpp:<line number>
  31. ...............................................................................
  32. Compilation.tests.cpp:<line number>: PASSED:
  33. REQUIRE( t1 == t2 )
  34. with expansion:
  35. {?} == {?}
  36. Compilation.tests.cpp:<line number>: PASSED:
  37. REQUIRE( t1 != t2 )
  38. with expansion:
  39. {?} != {?}
  40. Compilation.tests.cpp:<line number>: PASSED:
  41. REQUIRE( t1 < t2 )
  42. with expansion:
  43. {?} < {?}
  44. Compilation.tests.cpp:<line number>: PASSED:
  45. REQUIRE( t1 > t2 )
  46. with expansion:
  47. {?} > {?}
  48. Compilation.tests.cpp:<line number>: PASSED:
  49. REQUIRE( t1 <= t2 )
  50. with expansion:
  51. {?} <= {?}
  52. Compilation.tests.cpp:<line number>: PASSED:
  53. REQUIRE( t1 >= t2 )
  54. with expansion:
  55. {?} >= {?}
  56. -------------------------------------------------------------------------------
  57. #1175 - Hidden Test
  58. -------------------------------------------------------------------------------
  59. Misc.tests.cpp:<line number>
  60. ...............................................................................
  61. Misc.tests.cpp:<line number>: PASSED:
  62. -------------------------------------------------------------------------------
  63. #1238
  64. -------------------------------------------------------------------------------
  65. Compilation.tests.cpp:<line number>
  66. ...............................................................................
  67. Compilation.tests.cpp:<line number>: PASSED:
  68. REQUIRE( std::memcmp(uarr, "123", sizeof(uarr)) == 0 )
  69. with expansion:
  70. 0 == 0
  71. with messages:
  72. uarr := "123"
  73. sarr := "456"
  74. Compilation.tests.cpp:<line number>: PASSED:
  75. REQUIRE( std::memcmp(sarr, "456", sizeof(sarr)) == 0 )
  76. with expansion:
  77. 0 == 0
  78. with messages:
  79. uarr := "123"
  80. sarr := "456"
  81. -------------------------------------------------------------------------------
  82. #1245
  83. -------------------------------------------------------------------------------
  84. Compilation.tests.cpp:<line number>
  85. ...............................................................................
  86. Compilation.tests.cpp:<line number>: PASSED:
  87. -------------------------------------------------------------------------------
  88. #1319: Sections can have description (even if it is not saved
  89. SectionName
  90. -------------------------------------------------------------------------------
  91. Compilation.tests.cpp:<line number>
  92. ...............................................................................
  93. Compilation.tests.cpp:<line number>: PASSED:
  94. -------------------------------------------------------------------------------
  95. #1403
  96. -------------------------------------------------------------------------------
  97. Compilation.tests.cpp:<line number>
  98. ...............................................................................
  99. Compilation.tests.cpp:<line number>: PASSED:
  100. REQUIRE( h1 == h2 )
  101. with expansion:
  102. [1403 helper] == [1403 helper]
  103. -------------------------------------------------------------------------------
  104. #1455 - INFO and WARN can start with a linebreak
  105. -------------------------------------------------------------------------------
  106. Message.tests.cpp:<line number>
  107. ...............................................................................
  108. Message.tests.cpp:<line number>: warning:
  109. This info message starts with a linebreak
  110. This warning message starts with a linebreak
  111. No assertions in test case '#1455 - INFO and WARN can start with a linebreak'
  112. This would not be caught previously
  113. Nor would this
  114. -------------------------------------------------------------------------------
  115. #1514: stderr/stdout is not captured in tests aborted by an exception
  116. -------------------------------------------------------------------------------
  117. Tricky.tests.cpp:<line number>
  118. ...............................................................................
  119. Tricky.tests.cpp:<line number>: FAILED:
  120. explicitly with message:
  121. 1514
  122. -------------------------------------------------------------------------------
  123. #1548
  124. -------------------------------------------------------------------------------
  125. Compilation.tests.cpp:<line number>
  126. ...............................................................................
  127. Compilation.tests.cpp:<line number>: PASSED:
  128. REQUIRE( std::is_same<TypeList<int>, TypeList<int>>::value )
  129. with expansion:
  130. true
  131. -------------------------------------------------------------------------------
  132. #1905 -- test spec parser properly clears internal state between compound tests
  133. -------------------------------------------------------------------------------
  134. CmdLine.tests.cpp:<line number>
  135. ...............................................................................
  136. CmdLine.tests.cpp:<line number>: PASSED:
  137. REQUIRE( spec.matches(*fakeTestCase("spec . char")) )
  138. with expansion:
  139. true
  140. CmdLine.tests.cpp:<line number>: PASSED:
  141. REQUIRE( spec.matches(*fakeTestCase("spec , char")) )
  142. with expansion:
  143. true
  144. CmdLine.tests.cpp:<line number>: PASSED:
  145. REQUIRE_FALSE( spec.matches(*fakeTestCase(R"(spec \, char)")) )
  146. with expansion:
  147. !false
  148. -------------------------------------------------------------------------------
  149. #1912 -- test spec parser handles escaping
  150. Various parentheses
  151. -------------------------------------------------------------------------------
  152. CmdLine.tests.cpp:<line number>
  153. ...............................................................................
  154. CmdLine.tests.cpp:<line number>: PASSED:
  155. REQUIRE( spec.matches(*fakeTestCase(R"(spec {a} char)")) )
  156. with expansion:
  157. true
  158. CmdLine.tests.cpp:<line number>: PASSED:
  159. REQUIRE( spec.matches(*fakeTestCase(R"(spec [a] char)")) )
  160. with expansion:
  161. true
  162. CmdLine.tests.cpp:<line number>: PASSED:
  163. REQUIRE_FALSE( spec.matches(*fakeTestCase("differs but has similar tag", "[a]")) )
  164. with expansion:
  165. !false
  166. -------------------------------------------------------------------------------
  167. #1912 -- test spec parser handles escaping
  168. backslash in test name
  169. -------------------------------------------------------------------------------
  170. CmdLine.tests.cpp:<line number>
  171. ...............................................................................
  172. CmdLine.tests.cpp:<line number>: PASSED:
  173. REQUIRE( spec.matches(*fakeTestCase(R"(spec \ char)")) )
  174. with expansion:
  175. true
  176. -------------------------------------------------------------------------------
  177. #1913 - GENERATE inside a for loop should not keep recreating the generator
  178. -------------------------------------------------------------------------------
  179. Generators.tests.cpp:<line number>
  180. ...............................................................................
  181. Generators.tests.cpp:<line number>: PASSED:
  182. REQUIRE( counter < 7 )
  183. with expansion:
  184. 3 < 7
  185. -------------------------------------------------------------------------------
  186. #1913 - GENERATE inside a for loop should not keep recreating the generator
  187. -------------------------------------------------------------------------------
  188. Generators.tests.cpp:<line number>
  189. ...............................................................................
  190. Generators.tests.cpp:<line number>: PASSED:
  191. REQUIRE( counter < 7 )
  192. with expansion:
  193. 6 < 7
  194. -------------------------------------------------------------------------------
  195. #1913 - GENERATEs can share a line
  196. -------------------------------------------------------------------------------
  197. Generators.tests.cpp:<line number>
  198. ...............................................................................
  199. Generators.tests.cpp:<line number>: PASSED:
  200. REQUIRE( i != j )
  201. with expansion:
  202. 1 != 3
  203. -------------------------------------------------------------------------------
  204. #1913 - GENERATEs can share a line
  205. -------------------------------------------------------------------------------
  206. Generators.tests.cpp:<line number>
  207. ...............................................................................
  208. Generators.tests.cpp:<line number>: PASSED:
  209. REQUIRE( i != j )
  210. with expansion:
  211. 1 != 4
  212. -------------------------------------------------------------------------------
  213. #1913 - GENERATEs can share a line
  214. -------------------------------------------------------------------------------
  215. Generators.tests.cpp:<line number>
  216. ...............................................................................
  217. Generators.tests.cpp:<line number>: PASSED:
  218. REQUIRE( i != j )
  219. with expansion:
  220. 2 != 3
  221. -------------------------------------------------------------------------------
  222. #1913 - GENERATEs can share a line
  223. -------------------------------------------------------------------------------
  224. Generators.tests.cpp:<line number>
  225. ...............................................................................
  226. Generators.tests.cpp:<line number>: PASSED:
  227. REQUIRE( i != j )
  228. with expansion:
  229. 2 != 4
  230. -------------------------------------------------------------------------------
  231. #1938 - GENERATE after a section
  232. A
  233. -------------------------------------------------------------------------------
  234. PartTracker.tests.cpp:<line number>
  235. ...............................................................................
  236. PartTracker.tests.cpp:<line number>: PASSED:
  237. with message:
  238. A
  239. -------------------------------------------------------------------------------
  240. #1938 - GENERATE after a section
  241. B
  242. -------------------------------------------------------------------------------
  243. PartTracker.tests.cpp:<line number>
  244. ...............................................................................
  245. PartTracker.tests.cpp:<line number>: PASSED:
  246. REQUIRE( m )
  247. with expansion:
  248. 1
  249. -------------------------------------------------------------------------------
  250. #1938 - GENERATE after a section
  251. B
  252. -------------------------------------------------------------------------------
  253. PartTracker.tests.cpp:<line number>
  254. ...............................................................................
  255. PartTracker.tests.cpp:<line number>: PASSED:
  256. REQUIRE( m )
  257. with expansion:
  258. 2
  259. -------------------------------------------------------------------------------
  260. #1938 - GENERATE after a section
  261. B
  262. -------------------------------------------------------------------------------
  263. PartTracker.tests.cpp:<line number>
  264. ...............................................................................
  265. PartTracker.tests.cpp:<line number>: PASSED:
  266. REQUIRE( m )
  267. with expansion:
  268. 3
  269. -------------------------------------------------------------------------------
  270. #1938 - Section followed by flat generate
  271. A
  272. -------------------------------------------------------------------------------
  273. PartTracker.tests.cpp:<line number>
  274. ...............................................................................
  275. PartTracker.tests.cpp:<line number>: PASSED:
  276. REQUIRE( 1 )
  277. -------------------------------------------------------------------------------
  278. #1938 - Section followed by flat generate
  279. -------------------------------------------------------------------------------
  280. PartTracker.tests.cpp:<line number>
  281. ...............................................................................
  282. PartTracker.tests.cpp:<line number>: PASSED:
  283. REQUIRE( m )
  284. with expansion:
  285. 2
  286. -------------------------------------------------------------------------------
  287. #1938 - Section followed by flat generate
  288. -------------------------------------------------------------------------------
  289. PartTracker.tests.cpp:<line number>
  290. ...............................................................................
  291. PartTracker.tests.cpp:<line number>: PASSED:
  292. REQUIRE( m )
  293. with expansion:
  294. 3
  295. -------------------------------------------------------------------------------
  296. #1938 - flat generate
  297. -------------------------------------------------------------------------------
  298. PartTracker.tests.cpp:<line number>
  299. ...............................................................................
  300. PartTracker.tests.cpp:<line number>: PASSED:
  301. REQUIRE( m )
  302. with expansion:
  303. 1
  304. -------------------------------------------------------------------------------
  305. #1938 - flat generate
  306. -------------------------------------------------------------------------------
  307. PartTracker.tests.cpp:<line number>
  308. ...............................................................................
  309. PartTracker.tests.cpp:<line number>: PASSED:
  310. REQUIRE( m )
  311. with expansion:
  312. 2
  313. -------------------------------------------------------------------------------
  314. #1938 - flat generate
  315. -------------------------------------------------------------------------------
  316. PartTracker.tests.cpp:<line number>
  317. ...............................................................................
  318. PartTracker.tests.cpp:<line number>: PASSED:
  319. REQUIRE( m )
  320. with expansion:
  321. 3
  322. -------------------------------------------------------------------------------
  323. #1938 - mixed sections and generates
  324. A
  325. -------------------------------------------------------------------------------
  326. PartTracker.tests.cpp:<line number>
  327. ...............................................................................
  328. PartTracker.tests.cpp:<line number>: PASSED:
  329. with message:
  330. A
  331. -------------------------------------------------------------------------------
  332. #1938 - mixed sections and generates
  333. -------------------------------------------------------------------------------
  334. PartTracker.tests.cpp:<line number>
  335. ...............................................................................
  336. PartTracker.tests.cpp:<line number>: PASSED:
  337. with messages:
  338. i := 1
  339. j := 3
  340. k := 5
  341. -------------------------------------------------------------------------------
  342. #1938 - mixed sections and generates
  343. B
  344. -------------------------------------------------------------------------------
  345. PartTracker.tests.cpp:<line number>
  346. ...............................................................................
  347. PartTracker.tests.cpp:<line number>: PASSED:
  348. with message:
  349. B
  350. -------------------------------------------------------------------------------
  351. #1938 - mixed sections and generates
  352. -------------------------------------------------------------------------------
  353. PartTracker.tests.cpp:<line number>
  354. ...............................................................................
  355. PartTracker.tests.cpp:<line number>: PASSED:
  356. with messages:
  357. i := 1
  358. j := 3
  359. k := 6
  360. -------------------------------------------------------------------------------
  361. #1938 - mixed sections and generates
  362. B
  363. -------------------------------------------------------------------------------
  364. PartTracker.tests.cpp:<line number>
  365. ...............................................................................
  366. PartTracker.tests.cpp:<line number>: PASSED:
  367. with message:
  368. B
  369. -------------------------------------------------------------------------------
  370. #1938 - mixed sections and generates
  371. -------------------------------------------------------------------------------
  372. PartTracker.tests.cpp:<line number>
  373. ...............................................................................
  374. PartTracker.tests.cpp:<line number>: PASSED:
  375. with messages:
  376. i := 1
  377. j := 4
  378. k := 5
  379. -------------------------------------------------------------------------------
  380. #1938 - mixed sections and generates
  381. -------------------------------------------------------------------------------
  382. PartTracker.tests.cpp:<line number>
  383. ...............................................................................
  384. PartTracker.tests.cpp:<line number>: PASSED:
  385. with messages:
  386. i := 1
  387. j := 4
  388. k := 6
  389. -------------------------------------------------------------------------------
  390. #1938 - mixed sections and generates
  391. A
  392. -------------------------------------------------------------------------------
  393. PartTracker.tests.cpp:<line number>
  394. ...............................................................................
  395. PartTracker.tests.cpp:<line number>: PASSED:
  396. with message:
  397. A
  398. -------------------------------------------------------------------------------
  399. #1938 - mixed sections and generates
  400. -------------------------------------------------------------------------------
  401. PartTracker.tests.cpp:<line number>
  402. ...............................................................................
  403. PartTracker.tests.cpp:<line number>: PASSED:
  404. with messages:
  405. i := 2
  406. j := 3
  407. k := 5
  408. -------------------------------------------------------------------------------
  409. #1938 - mixed sections and generates
  410. B
  411. -------------------------------------------------------------------------------
  412. PartTracker.tests.cpp:<line number>
  413. ...............................................................................
  414. PartTracker.tests.cpp:<line number>: PASSED:
  415. with message:
  416. B
  417. -------------------------------------------------------------------------------
  418. #1938 - mixed sections and generates
  419. -------------------------------------------------------------------------------
  420. PartTracker.tests.cpp:<line number>
  421. ...............................................................................
  422. PartTracker.tests.cpp:<line number>: PASSED:
  423. with messages:
  424. i := 2
  425. j := 3
  426. k := 6
  427. -------------------------------------------------------------------------------
  428. #1938 - mixed sections and generates
  429. B
  430. -------------------------------------------------------------------------------
  431. PartTracker.tests.cpp:<line number>
  432. ...............................................................................
  433. PartTracker.tests.cpp:<line number>: PASSED:
  434. with message:
  435. B
  436. -------------------------------------------------------------------------------
  437. #1938 - mixed sections and generates
  438. -------------------------------------------------------------------------------
  439. PartTracker.tests.cpp:<line number>
  440. ...............................................................................
  441. PartTracker.tests.cpp:<line number>: PASSED:
  442. with messages:
  443. i := 2
  444. j := 4
  445. k := 5
  446. -------------------------------------------------------------------------------
  447. #1938 - mixed sections and generates
  448. -------------------------------------------------------------------------------
  449. PartTracker.tests.cpp:<line number>
  450. ...............................................................................
  451. PartTracker.tests.cpp:<line number>: PASSED:
  452. with messages:
  453. i := 2
  454. j := 4
  455. k := 6
  456. -------------------------------------------------------------------------------
  457. #1938 - nested generate
  458. -------------------------------------------------------------------------------
  459. PartTracker.tests.cpp:<line number>
  460. ...............................................................................
  461. PartTracker.tests.cpp:<line number>: PASSED:
  462. REQUIRE( m )
  463. with expansion:
  464. 1
  465. PartTracker.tests.cpp:<line number>: PASSED:
  466. REQUIRE( n )
  467. with expansion:
  468. 1
  469. -------------------------------------------------------------------------------
  470. #1938 - nested generate
  471. -------------------------------------------------------------------------------
  472. PartTracker.tests.cpp:<line number>
  473. ...............................................................................
  474. PartTracker.tests.cpp:<line number>: PASSED:
  475. REQUIRE( m )
  476. with expansion:
  477. 1
  478. PartTracker.tests.cpp:<line number>: PASSED:
  479. REQUIRE( n )
  480. with expansion:
  481. 2
  482. -------------------------------------------------------------------------------
  483. #1938 - nested generate
  484. -------------------------------------------------------------------------------
  485. PartTracker.tests.cpp:<line number>
  486. ...............................................................................
  487. PartTracker.tests.cpp:<line number>: PASSED:
  488. REQUIRE( m )
  489. with expansion:
  490. 1
  491. PartTracker.tests.cpp:<line number>: PASSED:
  492. REQUIRE( n )
  493. with expansion:
  494. 3
  495. -------------------------------------------------------------------------------
  496. #1938 - nested generate
  497. -------------------------------------------------------------------------------
  498. PartTracker.tests.cpp:<line number>
  499. ...............................................................................
  500. PartTracker.tests.cpp:<line number>: PASSED:
  501. REQUIRE( m )
  502. with expansion:
  503. 2
  504. PartTracker.tests.cpp:<line number>: PASSED:
  505. REQUIRE( n )
  506. with expansion:
  507. 1
  508. -------------------------------------------------------------------------------
  509. #1938 - nested generate
  510. -------------------------------------------------------------------------------
  511. PartTracker.tests.cpp:<line number>
  512. ...............................................................................
  513. PartTracker.tests.cpp:<line number>: PASSED:
  514. REQUIRE( m )
  515. with expansion:
  516. 2
  517. PartTracker.tests.cpp:<line number>: PASSED:
  518. REQUIRE( n )
  519. with expansion:
  520. 2
  521. -------------------------------------------------------------------------------
  522. #1938 - nested generate
  523. -------------------------------------------------------------------------------
  524. PartTracker.tests.cpp:<line number>
  525. ...............................................................................
  526. PartTracker.tests.cpp:<line number>: PASSED:
  527. REQUIRE( m )
  528. with expansion:
  529. 2
  530. PartTracker.tests.cpp:<line number>: PASSED:
  531. REQUIRE( n )
  532. with expansion:
  533. 3
  534. -------------------------------------------------------------------------------
  535. #1938 - nested generate
  536. -------------------------------------------------------------------------------
  537. PartTracker.tests.cpp:<line number>
  538. ...............................................................................
  539. PartTracker.tests.cpp:<line number>: PASSED:
  540. REQUIRE( m )
  541. with expansion:
  542. 3
  543. PartTracker.tests.cpp:<line number>: PASSED:
  544. REQUIRE( n )
  545. with expansion:
  546. 1
  547. -------------------------------------------------------------------------------
  548. #1938 - nested generate
  549. -------------------------------------------------------------------------------
  550. PartTracker.tests.cpp:<line number>
  551. ...............................................................................
  552. PartTracker.tests.cpp:<line number>: PASSED:
  553. REQUIRE( m )
  554. with expansion:
  555. 3
  556. PartTracker.tests.cpp:<line number>: PASSED:
  557. REQUIRE( n )
  558. with expansion:
  559. 2
  560. -------------------------------------------------------------------------------
  561. #1938 - nested generate
  562. -------------------------------------------------------------------------------
  563. PartTracker.tests.cpp:<line number>
  564. ...............................................................................
  565. PartTracker.tests.cpp:<line number>: PASSED:
  566. REQUIRE( m )
  567. with expansion:
  568. 3
  569. PartTracker.tests.cpp:<line number>: PASSED:
  570. REQUIRE( n )
  571. with expansion:
  572. 3
  573. -------------------------------------------------------------------------------
  574. #1954 - 7 arg template test case sig compiles - 1, 1, 1, 1, 1, 0, 0
  575. -------------------------------------------------------------------------------
  576. Misc.tests.cpp:<line number>
  577. ...............................................................................
  578. Misc.tests.cpp:<line number>: PASSED:
  579. -------------------------------------------------------------------------------
  580. #1954 - 7 arg template test case sig compiles - 5, 1, 1, 1, 1, 0, 0
  581. -------------------------------------------------------------------------------
  582. Misc.tests.cpp:<line number>
  583. ...............................................................................
  584. Misc.tests.cpp:<line number>: PASSED:
  585. -------------------------------------------------------------------------------
  586. #1954 - 7 arg template test case sig compiles - 5, 3, 1, 1, 1, 0, 0
  587. -------------------------------------------------------------------------------
  588. Misc.tests.cpp:<line number>
  589. ...............................................................................
  590. Misc.tests.cpp:<line number>: PASSED:
  591. -------------------------------------------------------------------------------
  592. #2152 - ULP checks between differently signed values were wrong - double
  593. -------------------------------------------------------------------------------
  594. Matchers.tests.cpp:<line number>
  595. ...............................................................................
  596. Matchers.tests.cpp:<line number>: PASSED:
  597. CHECK_THAT( smallest_non_zero, WithinULP( -smallest_non_zero, 2 ) )
  598. with expansion:
  599. 0.0 is within 2 ULPs of -4.9406564584124654e-324 ([-1.4821969375237396e-323,
  600. 4.9406564584124654e-324])
  601. Matchers.tests.cpp:<line number>: PASSED:
  602. CHECK_THAT( smallest_non_zero, !WithinULP( -smallest_non_zero, 1 ) )
  603. with expansion:
  604. 0.0 not is within 1 ULPs of -4.9406564584124654e-324 ([-9.8813129168249309e-
  605. 324, -0.0000000000000000e+00])
  606. -------------------------------------------------------------------------------
  607. #2152 - ULP checks between differently signed values were wrong - float
  608. -------------------------------------------------------------------------------
  609. Matchers.tests.cpp:<line number>
  610. ...............................................................................
  611. Matchers.tests.cpp:<line number>: PASSED:
  612. CHECK_THAT( smallest_non_zero, WithinULP( -smallest_non_zero, 2 ) )
  613. with expansion:
  614. 0.0f is within 2 ULPs of -1.40129846e-45f ([-4.20389539e-45, 1.40129846e-45])
  615. Matchers.tests.cpp:<line number>: PASSED:
  616. CHECK_THAT( smallest_non_zero, !WithinULP( -smallest_non_zero, 1 ) )
  617. with expansion:
  618. 0.0f not is within 1 ULPs of -1.40129846e-45f ([-2.80259693e-45, -0.
  619. 00000000e+00])
  620. -------------------------------------------------------------------------------
  621. #748 - captures with unexpected exceptions
  622. outside assertions
  623. -------------------------------------------------------------------------------
  624. Exception.tests.cpp:<line number>
  625. ...............................................................................
  626. Exception.tests.cpp:<line number>: FAILED:
  627. due to unexpected exception with messages:
  628. answer := 42
  629. expected exception
  630. -------------------------------------------------------------------------------
  631. #748 - captures with unexpected exceptions
  632. inside REQUIRE_NOTHROW
  633. -------------------------------------------------------------------------------
  634. Exception.tests.cpp:<line number>
  635. ...............................................................................
  636. Exception.tests.cpp:<line number>: FAILED:
  637. REQUIRE_NOTHROW( thisThrows() )
  638. due to unexpected exception with messages:
  639. answer := 42
  640. expected exception
  641. -------------------------------------------------------------------------------
  642. #748 - captures with unexpected exceptions
  643. inside REQUIRE_THROWS
  644. -------------------------------------------------------------------------------
  645. Exception.tests.cpp:<line number>
  646. ...............................................................................
  647. Exception.tests.cpp:<line number>: PASSED:
  648. REQUIRE_THROWS( thisThrows() )
  649. with message:
  650. answer := 42
  651. -------------------------------------------------------------------------------
  652. #809
  653. -------------------------------------------------------------------------------
  654. Compilation.tests.cpp:<line number>
  655. ...............................................................................
  656. Compilation.tests.cpp:<line number>: PASSED:
  657. REQUIRE( 42 == f )
  658. with expansion:
  659. 42 == {?}
  660. -------------------------------------------------------------------------------
  661. #833
  662. -------------------------------------------------------------------------------
  663. Compilation.tests.cpp:<line number>
  664. ...............................................................................
  665. Compilation.tests.cpp:<line number>: PASSED:
  666. REQUIRE( a == t )
  667. with expansion:
  668. 3 == 3
  669. Compilation.tests.cpp:<line number>: PASSED:
  670. CHECK( a == t )
  671. with expansion:
  672. 3 == 3
  673. Compilation.tests.cpp:<line number>: PASSED:
  674. REQUIRE_THROWS( throws_int(true) )
  675. Compilation.tests.cpp:<line number>: PASSED:
  676. CHECK_THROWS_AS( throws_int(true), int )
  677. Compilation.tests.cpp:<line number>: PASSED:
  678. REQUIRE_NOTHROW( throws_int(false) )
  679. Compilation.tests.cpp:<line number>: PASSED:
  680. REQUIRE_THAT( "aaa", Catch::Matchers::EndsWith("aaa") )
  681. with expansion:
  682. "aaa" ends with: "aaa"
  683. Compilation.tests.cpp:<line number>: PASSED:
  684. REQUIRE( templated_tests<int>(3) )
  685. with expansion:
  686. true
  687. -------------------------------------------------------------------------------
  688. #835 -- errno should not be touched by Catch2
  689. -------------------------------------------------------------------------------
  690. Misc.tests.cpp:<line number>
  691. ...............................................................................
  692. Misc.tests.cpp:<line number>: FAILED:
  693. CHECK( f() == 0 )
  694. with expansion:
  695. 1 == 0
  696. Misc.tests.cpp:<line number>: PASSED:
  697. REQUIRE( errno_after == 1 )
  698. with expansion:
  699. 1 == 1
  700. -------------------------------------------------------------------------------
  701. #872
  702. -------------------------------------------------------------------------------
  703. Compilation.tests.cpp:<line number>
  704. ...............................................................................
  705. Compilation.tests.cpp:<line number>: PASSED:
  706. REQUIRE( x == 4 )
  707. with expansion:
  708. {?} == 4
  709. with message:
  710. dummy := 0
  711. -------------------------------------------------------------------------------
  712. #961 -- Dynamically created sections should all be reported
  713. Looped section 0
  714. -------------------------------------------------------------------------------
  715. Misc.tests.cpp:<line number>
  716. ...............................................................................
  717. Misc.tests.cpp:<line number>: PASSED:
  718. with message:
  719. Everything is OK
  720. -------------------------------------------------------------------------------
  721. #961 -- Dynamically created sections should all be reported
  722. Looped section 1
  723. -------------------------------------------------------------------------------
  724. Misc.tests.cpp:<line number>
  725. ...............................................................................
  726. Misc.tests.cpp:<line number>: PASSED:
  727. with message:
  728. Everything is OK
  729. -------------------------------------------------------------------------------
  730. #961 -- Dynamically created sections should all be reported
  731. Looped section 2
  732. -------------------------------------------------------------------------------
  733. Misc.tests.cpp:<line number>
  734. ...............................................................................
  735. Misc.tests.cpp:<line number>: PASSED:
  736. with message:
  737. Everything is OK
  738. -------------------------------------------------------------------------------
  739. #961 -- Dynamically created sections should all be reported
  740. Looped section 3
  741. -------------------------------------------------------------------------------
  742. Misc.tests.cpp:<line number>
  743. ...............................................................................
  744. Misc.tests.cpp:<line number>: PASSED:
  745. with message:
  746. Everything is OK
  747. -------------------------------------------------------------------------------
  748. #961 -- Dynamically created sections should all be reported
  749. Looped section 4
  750. -------------------------------------------------------------------------------
  751. Misc.tests.cpp:<line number>
  752. ...............................................................................
  753. Misc.tests.cpp:<line number>: PASSED:
  754. with message:
  755. Everything is OK
  756. -------------------------------------------------------------------------------
  757. 'Not' checks that should fail
  758. -------------------------------------------------------------------------------
  759. Condition.tests.cpp:<line number>
  760. ...............................................................................
  761. Condition.tests.cpp:<line number>: FAILED:
  762. CHECK( false != false )
  763. Condition.tests.cpp:<line number>: FAILED:
  764. CHECK( true != true )
  765. Condition.tests.cpp:<line number>: FAILED:
  766. CHECK( !true )
  767. with expansion:
  768. false
  769. Condition.tests.cpp:<line number>: FAILED:
  770. CHECK_FALSE( true )
  771. with expansion:
  772. !true
  773. Condition.tests.cpp:<line number>: FAILED:
  774. CHECK( !trueValue )
  775. with expansion:
  776. false
  777. Condition.tests.cpp:<line number>: FAILED:
  778. CHECK_FALSE( trueValue )
  779. with expansion:
  780. !true
  781. Condition.tests.cpp:<line number>: FAILED:
  782. CHECK( !(1 == 1) )
  783. with expansion:
  784. false
  785. Condition.tests.cpp:<line number>: FAILED:
  786. CHECK_FALSE( 1 == 1 )
  787. -------------------------------------------------------------------------------
  788. 'Not' checks that should succeed
  789. -------------------------------------------------------------------------------
  790. Condition.tests.cpp:<line number>
  791. ...............................................................................
  792. Condition.tests.cpp:<line number>: PASSED:
  793. REQUIRE( false == false )
  794. Condition.tests.cpp:<line number>: PASSED:
  795. REQUIRE( true == true )
  796. Condition.tests.cpp:<line number>: PASSED:
  797. REQUIRE( !false )
  798. with expansion:
  799. true
  800. Condition.tests.cpp:<line number>: PASSED:
  801. REQUIRE_FALSE( false )
  802. with expansion:
  803. !false
  804. Condition.tests.cpp:<line number>: PASSED:
  805. REQUIRE( !falseValue )
  806. with expansion:
  807. true
  808. Condition.tests.cpp:<line number>: PASSED:
  809. REQUIRE_FALSE( falseValue )
  810. with expansion:
  811. !false
  812. Condition.tests.cpp:<line number>: PASSED:
  813. REQUIRE( !(1 == 2) )
  814. with expansion:
  815. true
  816. Condition.tests.cpp:<line number>: PASSED:
  817. REQUIRE_FALSE( 1 == 2 )
  818. -------------------------------------------------------------------------------
  819. (unimplemented) static bools can be evaluated
  820. compare to true
  821. -------------------------------------------------------------------------------
  822. Tricky.tests.cpp:<line number>
  823. ...............................................................................
  824. Tricky.tests.cpp:<line number>: PASSED:
  825. REQUIRE( is_true<true>::value == true )
  826. with expansion:
  827. true == true
  828. Tricky.tests.cpp:<line number>: PASSED:
  829. REQUIRE( true == is_true<true>::value )
  830. with expansion:
  831. true == true
  832. -------------------------------------------------------------------------------
  833. (unimplemented) static bools can be evaluated
  834. compare to false
  835. -------------------------------------------------------------------------------
  836. Tricky.tests.cpp:<line number>
  837. ...............................................................................
  838. Tricky.tests.cpp:<line number>: PASSED:
  839. REQUIRE( is_true<false>::value == false )
  840. with expansion:
  841. false == false
  842. Tricky.tests.cpp:<line number>: PASSED:
  843. REQUIRE( false == is_true<false>::value )
  844. with expansion:
  845. false == false
  846. -------------------------------------------------------------------------------
  847. (unimplemented) static bools can be evaluated
  848. negation
  849. -------------------------------------------------------------------------------
  850. Tricky.tests.cpp:<line number>
  851. ...............................................................................
  852. Tricky.tests.cpp:<line number>: PASSED:
  853. REQUIRE( !is_true<false>::value )
  854. with expansion:
  855. true
  856. -------------------------------------------------------------------------------
  857. (unimplemented) static bools can be evaluated
  858. double negation
  859. -------------------------------------------------------------------------------
  860. Tricky.tests.cpp:<line number>
  861. ...............................................................................
  862. Tricky.tests.cpp:<line number>: PASSED:
  863. REQUIRE( !!is_true<true>::value )
  864. with expansion:
  865. true
  866. -------------------------------------------------------------------------------
  867. (unimplemented) static bools can be evaluated
  868. direct
  869. -------------------------------------------------------------------------------
  870. Tricky.tests.cpp:<line number>
  871. ...............................................................................
  872. Tricky.tests.cpp:<line number>: PASSED:
  873. REQUIRE( is_true<true>::value )
  874. with expansion:
  875. true
  876. Tricky.tests.cpp:<line number>: PASSED:
  877. REQUIRE_FALSE( is_true<false>::value )
  878. with expansion:
  879. !false
  880. -------------------------------------------------------------------------------
  881. 3x3x3 ints
  882. -------------------------------------------------------------------------------
  883. Generators.tests.cpp:<line number>
  884. ...............................................................................
  885. Generators.tests.cpp:<line number>: PASSED:
  886. CHECK( x < y )
  887. with expansion:
  888. 1 < 4
  889. Generators.tests.cpp:<line number>: PASSED:
  890. CHECK( y < z )
  891. with expansion:
  892. 4 < 7
  893. Generators.tests.cpp:<line number>: PASSED:
  894. REQUIRE( x < z )
  895. with expansion:
  896. 1 < 7
  897. -------------------------------------------------------------------------------
  898. 3x3x3 ints
  899. -------------------------------------------------------------------------------
  900. Generators.tests.cpp:<line number>
  901. ...............................................................................
  902. Generators.tests.cpp:<line number>: PASSED:
  903. CHECK( x < y )
  904. with expansion:
  905. 1 < 4
  906. Generators.tests.cpp:<line number>: PASSED:
  907. CHECK( y < z )
  908. with expansion:
  909. 4 < 8
  910. Generators.tests.cpp:<line number>: PASSED:
  911. REQUIRE( x < z )
  912. with expansion:
  913. 1 < 8
  914. -------------------------------------------------------------------------------
  915. 3x3x3 ints
  916. -------------------------------------------------------------------------------
  917. Generators.tests.cpp:<line number>
  918. ...............................................................................
  919. Generators.tests.cpp:<line number>: PASSED:
  920. CHECK( x < y )
  921. with expansion:
  922. 1 < 4
  923. Generators.tests.cpp:<line number>: PASSED:
  924. CHECK( y < z )
  925. with expansion:
  926. 4 < 9
  927. Generators.tests.cpp:<line number>: PASSED:
  928. REQUIRE( x < z )
  929. with expansion:
  930. 1 < 9
  931. -------------------------------------------------------------------------------
  932. 3x3x3 ints
  933. -------------------------------------------------------------------------------
  934. Generators.tests.cpp:<line number>
  935. ...............................................................................
  936. Generators.tests.cpp:<line number>: PASSED:
  937. CHECK( x < y )
  938. with expansion:
  939. 1 < 5
  940. Generators.tests.cpp:<line number>: PASSED:
  941. CHECK( y < z )
  942. with expansion:
  943. 5 < 7
  944. Generators.tests.cpp:<line number>: PASSED:
  945. REQUIRE( x < z )
  946. with expansion:
  947. 1 < 7
  948. -------------------------------------------------------------------------------
  949. 3x3x3 ints
  950. -------------------------------------------------------------------------------
  951. Generators.tests.cpp:<line number>
  952. ...............................................................................
  953. Generators.tests.cpp:<line number>: PASSED:
  954. CHECK( x < y )
  955. with expansion:
  956. 1 < 5
  957. Generators.tests.cpp:<line number>: PASSED:
  958. CHECK( y < z )
  959. with expansion:
  960. 5 < 8
  961. Generators.tests.cpp:<line number>: PASSED:
  962. REQUIRE( x < z )
  963. with expansion:
  964. 1 < 8
  965. -------------------------------------------------------------------------------
  966. 3x3x3 ints
  967. -------------------------------------------------------------------------------
  968. Generators.tests.cpp:<line number>
  969. ...............................................................................
  970. Generators.tests.cpp:<line number>: PASSED:
  971. CHECK( x < y )
  972. with expansion:
  973. 1 < 5
  974. Generators.tests.cpp:<line number>: PASSED:
  975. CHECK( y < z )
  976. with expansion:
  977. 5 < 9
  978. Generators.tests.cpp:<line number>: PASSED:
  979. REQUIRE( x < z )
  980. with expansion:
  981. 1 < 9
  982. -------------------------------------------------------------------------------
  983. 3x3x3 ints
  984. -------------------------------------------------------------------------------
  985. Generators.tests.cpp:<line number>
  986. ...............................................................................
  987. Generators.tests.cpp:<line number>: PASSED:
  988. CHECK( x < y )
  989. with expansion:
  990. 1 < 6
  991. Generators.tests.cpp:<line number>: PASSED:
  992. CHECK( y < z )
  993. with expansion:
  994. 6 < 7
  995. Generators.tests.cpp:<line number>: PASSED:
  996. REQUIRE( x < z )
  997. with expansion:
  998. 1 < 7
  999. -------------------------------------------------------------------------------
  1000. 3x3x3 ints
  1001. -------------------------------------------------------------------------------
  1002. Generators.tests.cpp:<line number>
  1003. ...............................................................................
  1004. Generators.tests.cpp:<line number>: PASSED:
  1005. CHECK( x < y )
  1006. with expansion:
  1007. 1 < 6
  1008. Generators.tests.cpp:<line number>: PASSED:
  1009. CHECK( y < z )
  1010. with expansion:
  1011. 6 < 8
  1012. Generators.tests.cpp:<line number>: PASSED:
  1013. REQUIRE( x < z )
  1014. with expansion:
  1015. 1 < 8
  1016. -------------------------------------------------------------------------------
  1017. 3x3x3 ints
  1018. -------------------------------------------------------------------------------
  1019. Generators.tests.cpp:<line number>
  1020. ...............................................................................
  1021. Generators.tests.cpp:<line number>: PASSED:
  1022. CHECK( x < y )
  1023. with expansion:
  1024. 1 < 6
  1025. Generators.tests.cpp:<line number>: PASSED:
  1026. CHECK( y < z )
  1027. with expansion:
  1028. 6 < 9
  1029. Generators.tests.cpp:<line number>: PASSED:
  1030. REQUIRE( x < z )
  1031. with expansion:
  1032. 1 < 9
  1033. -------------------------------------------------------------------------------
  1034. 3x3x3 ints
  1035. -------------------------------------------------------------------------------
  1036. Generators.tests.cpp:<line number>
  1037. ...............................................................................
  1038. Generators.tests.cpp:<line number>: PASSED:
  1039. CHECK( x < y )
  1040. with expansion:
  1041. 2 < 4
  1042. Generators.tests.cpp:<line number>: PASSED:
  1043. CHECK( y < z )
  1044. with expansion:
  1045. 4 < 7
  1046. Generators.tests.cpp:<line number>: PASSED:
  1047. REQUIRE( x < z )
  1048. with expansion:
  1049. 2 < 7
  1050. -------------------------------------------------------------------------------
  1051. 3x3x3 ints
  1052. -------------------------------------------------------------------------------
  1053. Generators.tests.cpp:<line number>
  1054. ...............................................................................
  1055. Generators.tests.cpp:<line number>: PASSED:
  1056. CHECK( x < y )
  1057. with expansion:
  1058. 2 < 4
  1059. Generators.tests.cpp:<line number>: PASSED:
  1060. CHECK( y < z )
  1061. with expansion:
  1062. 4 < 8
  1063. Generators.tests.cpp:<line number>: PASSED:
  1064. REQUIRE( x < z )
  1065. with expansion:
  1066. 2 < 8
  1067. -------------------------------------------------------------------------------
  1068. 3x3x3 ints
  1069. -------------------------------------------------------------------------------
  1070. Generators.tests.cpp:<line number>
  1071. ...............................................................................
  1072. Generators.tests.cpp:<line number>: PASSED:
  1073. CHECK( x < y )
  1074. with expansion:
  1075. 2 < 4
  1076. Generators.tests.cpp:<line number>: PASSED:
  1077. CHECK( y < z )
  1078. with expansion:
  1079. 4 < 9
  1080. Generators.tests.cpp:<line number>: PASSED:
  1081. REQUIRE( x < z )
  1082. with expansion:
  1083. 2 < 9
  1084. -------------------------------------------------------------------------------
  1085. 3x3x3 ints
  1086. -------------------------------------------------------------------------------
  1087. Generators.tests.cpp:<line number>
  1088. ...............................................................................
  1089. Generators.tests.cpp:<line number>: PASSED:
  1090. CHECK( x < y )
  1091. with expansion:
  1092. 2 < 5
  1093. Generators.tests.cpp:<line number>: PASSED:
  1094. CHECK( y < z )
  1095. with expansion:
  1096. 5 < 7
  1097. Generators.tests.cpp:<line number>: PASSED:
  1098. REQUIRE( x < z )
  1099. with expansion:
  1100. 2 < 7
  1101. -------------------------------------------------------------------------------
  1102. 3x3x3 ints
  1103. -------------------------------------------------------------------------------
  1104. Generators.tests.cpp:<line number>
  1105. ...............................................................................
  1106. Generators.tests.cpp:<line number>: PASSED:
  1107. CHECK( x < y )
  1108. with expansion:
  1109. 2 < 5
  1110. Generators.tests.cpp:<line number>: PASSED:
  1111. CHECK( y < z )
  1112. with expansion:
  1113. 5 < 8
  1114. Generators.tests.cpp:<line number>: PASSED:
  1115. REQUIRE( x < z )
  1116. with expansion:
  1117. 2 < 8
  1118. -------------------------------------------------------------------------------
  1119. 3x3x3 ints
  1120. -------------------------------------------------------------------------------
  1121. Generators.tests.cpp:<line number>
  1122. ...............................................................................
  1123. Generators.tests.cpp:<line number>: PASSED:
  1124. CHECK( x < y )
  1125. with expansion:
  1126. 2 < 5
  1127. Generators.tests.cpp:<line number>: PASSED:
  1128. CHECK( y < z )
  1129. with expansion:
  1130. 5 < 9
  1131. Generators.tests.cpp:<line number>: PASSED:
  1132. REQUIRE( x < z )
  1133. with expansion:
  1134. 2 < 9
  1135. -------------------------------------------------------------------------------
  1136. 3x3x3 ints
  1137. -------------------------------------------------------------------------------
  1138. Generators.tests.cpp:<line number>
  1139. ...............................................................................
  1140. Generators.tests.cpp:<line number>: PASSED:
  1141. CHECK( x < y )
  1142. with expansion:
  1143. 2 < 6
  1144. Generators.tests.cpp:<line number>: PASSED:
  1145. CHECK( y < z )
  1146. with expansion:
  1147. 6 < 7
  1148. Generators.tests.cpp:<line number>: PASSED:
  1149. REQUIRE( x < z )
  1150. with expansion:
  1151. 2 < 7
  1152. -------------------------------------------------------------------------------
  1153. 3x3x3 ints
  1154. -------------------------------------------------------------------------------
  1155. Generators.tests.cpp:<line number>
  1156. ...............................................................................
  1157. Generators.tests.cpp:<line number>: PASSED:
  1158. CHECK( x < y )
  1159. with expansion:
  1160. 2 < 6
  1161. Generators.tests.cpp:<line number>: PASSED:
  1162. CHECK( y < z )
  1163. with expansion:
  1164. 6 < 8
  1165. Generators.tests.cpp:<line number>: PASSED:
  1166. REQUIRE( x < z )
  1167. with expansion:
  1168. 2 < 8
  1169. -------------------------------------------------------------------------------
  1170. 3x3x3 ints
  1171. -------------------------------------------------------------------------------
  1172. Generators.tests.cpp:<line number>
  1173. ...............................................................................
  1174. Generators.tests.cpp:<line number>: PASSED:
  1175. CHECK( x < y )
  1176. with expansion:
  1177. 2 < 6
  1178. Generators.tests.cpp:<line number>: PASSED:
  1179. CHECK( y < z )
  1180. with expansion:
  1181. 6 < 9
  1182. Generators.tests.cpp:<line number>: PASSED:
  1183. REQUIRE( x < z )
  1184. with expansion:
  1185. 2 < 9
  1186. -------------------------------------------------------------------------------
  1187. 3x3x3 ints
  1188. -------------------------------------------------------------------------------
  1189. Generators.tests.cpp:<line number>
  1190. ...............................................................................
  1191. Generators.tests.cpp:<line number>: PASSED:
  1192. CHECK( x < y )
  1193. with expansion:
  1194. 3 < 4
  1195. Generators.tests.cpp:<line number>: PASSED:
  1196. CHECK( y < z )
  1197. with expansion:
  1198. 4 < 7
  1199. Generators.tests.cpp:<line number>: PASSED:
  1200. REQUIRE( x < z )
  1201. with expansion:
  1202. 3 < 7
  1203. -------------------------------------------------------------------------------
  1204. 3x3x3 ints
  1205. -------------------------------------------------------------------------------
  1206. Generators.tests.cpp:<line number>
  1207. ...............................................................................
  1208. Generators.tests.cpp:<line number>: PASSED:
  1209. CHECK( x < y )
  1210. with expansion:
  1211. 3 < 4
  1212. Generators.tests.cpp:<line number>: PASSED:
  1213. CHECK( y < z )
  1214. with expansion:
  1215. 4 < 8
  1216. Generators.tests.cpp:<line number>: PASSED:
  1217. REQUIRE( x < z )
  1218. with expansion:
  1219. 3 < 8
  1220. -------------------------------------------------------------------------------
  1221. 3x3x3 ints
  1222. -------------------------------------------------------------------------------
  1223. Generators.tests.cpp:<line number>
  1224. ...............................................................................
  1225. Generators.tests.cpp:<line number>: PASSED:
  1226. CHECK( x < y )
  1227. with expansion:
  1228. 3 < 4
  1229. Generators.tests.cpp:<line number>: PASSED:
  1230. CHECK( y < z )
  1231. with expansion:
  1232. 4 < 9
  1233. Generators.tests.cpp:<line number>: PASSED:
  1234. REQUIRE( x < z )
  1235. with expansion:
  1236. 3 < 9
  1237. -------------------------------------------------------------------------------
  1238. 3x3x3 ints
  1239. -------------------------------------------------------------------------------
  1240. Generators.tests.cpp:<line number>
  1241. ...............................................................................
  1242. Generators.tests.cpp:<line number>: PASSED:
  1243. CHECK( x < y )
  1244. with expansion:
  1245. 3 < 5
  1246. Generators.tests.cpp:<line number>: PASSED:
  1247. CHECK( y < z )
  1248. with expansion:
  1249. 5 < 7
  1250. Generators.tests.cpp:<line number>: PASSED:
  1251. REQUIRE( x < z )
  1252. with expansion:
  1253. 3 < 7
  1254. -------------------------------------------------------------------------------
  1255. 3x3x3 ints
  1256. -------------------------------------------------------------------------------
  1257. Generators.tests.cpp:<line number>
  1258. ...............................................................................
  1259. Generators.tests.cpp:<line number>: PASSED:
  1260. CHECK( x < y )
  1261. with expansion:
  1262. 3 < 5
  1263. Generators.tests.cpp:<line number>: PASSED:
  1264. CHECK( y < z )
  1265. with expansion:
  1266. 5 < 8
  1267. Generators.tests.cpp:<line number>: PASSED:
  1268. REQUIRE( x < z )
  1269. with expansion:
  1270. 3 < 8
  1271. -------------------------------------------------------------------------------
  1272. 3x3x3 ints
  1273. -------------------------------------------------------------------------------
  1274. Generators.tests.cpp:<line number>
  1275. ...............................................................................
  1276. Generators.tests.cpp:<line number>: PASSED:
  1277. CHECK( x < y )
  1278. with expansion:
  1279. 3 < 5
  1280. Generators.tests.cpp:<line number>: PASSED:
  1281. CHECK( y < z )
  1282. with expansion:
  1283. 5 < 9
  1284. Generators.tests.cpp:<line number>: PASSED:
  1285. REQUIRE( x < z )
  1286. with expansion:
  1287. 3 < 9
  1288. -------------------------------------------------------------------------------
  1289. 3x3x3 ints
  1290. -------------------------------------------------------------------------------
  1291. Generators.tests.cpp:<line number>
  1292. ...............................................................................
  1293. Generators.tests.cpp:<line number>: PASSED:
  1294. CHECK( x < y )
  1295. with expansion:
  1296. 3 < 6
  1297. Generators.tests.cpp:<line number>: PASSED:
  1298. CHECK( y < z )
  1299. with expansion:
  1300. 6 < 7
  1301. Generators.tests.cpp:<line number>: PASSED:
  1302. REQUIRE( x < z )
  1303. with expansion:
  1304. 3 < 7
  1305. -------------------------------------------------------------------------------
  1306. 3x3x3 ints
  1307. -------------------------------------------------------------------------------
  1308. Generators.tests.cpp:<line number>
  1309. ...............................................................................
  1310. Generators.tests.cpp:<line number>: PASSED:
  1311. CHECK( x < y )
  1312. with expansion:
  1313. 3 < 6
  1314. Generators.tests.cpp:<line number>: PASSED:
  1315. CHECK( y < z )
  1316. with expansion:
  1317. 6 < 8
  1318. Generators.tests.cpp:<line number>: PASSED:
  1319. REQUIRE( x < z )
  1320. with expansion:
  1321. 3 < 8
  1322. -------------------------------------------------------------------------------
  1323. 3x3x3 ints
  1324. -------------------------------------------------------------------------------
  1325. Generators.tests.cpp:<line number>
  1326. ...............................................................................
  1327. Generators.tests.cpp:<line number>: PASSED:
  1328. CHECK( x < y )
  1329. with expansion:
  1330. 3 < 6
  1331. Generators.tests.cpp:<line number>: PASSED:
  1332. CHECK( y < z )
  1333. with expansion:
  1334. 6 < 9
  1335. Generators.tests.cpp:<line number>: PASSED:
  1336. REQUIRE( x < z )
  1337. with expansion:
  1338. 3 < 9
  1339. -------------------------------------------------------------------------------
  1340. A METHOD_AS_TEST_CASE based test run that fails
  1341. -------------------------------------------------------------------------------
  1342. Class.tests.cpp:<line number>
  1343. ...............................................................................
  1344. Class.tests.cpp:<line number>: FAILED:
  1345. REQUIRE( s == "world" )
  1346. with expansion:
  1347. "hello" == "world"
  1348. -------------------------------------------------------------------------------
  1349. A METHOD_AS_TEST_CASE based test run that succeeds
  1350. -------------------------------------------------------------------------------
  1351. Class.tests.cpp:<line number>
  1352. ...............................................................................
  1353. Class.tests.cpp:<line number>: PASSED:
  1354. REQUIRE( s == "hello" )
  1355. with expansion:
  1356. "hello" == "hello"
  1357. -------------------------------------------------------------------------------
  1358. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo
  1359. <float>
  1360. -------------------------------------------------------------------------------
  1361. Class.tests.cpp:<line number>
  1362. ...............................................................................
  1363. Class.tests.cpp:<line number>: FAILED:
  1364. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
  1365. with expansion:
  1366. 0 == 1
  1367. -------------------------------------------------------------------------------
  1368. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo
  1369. <int>
  1370. -------------------------------------------------------------------------------
  1371. Class.tests.cpp:<line number>
  1372. ...............................................................................
  1373. Class.tests.cpp:<line number>: FAILED:
  1374. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
  1375. with expansion:
  1376. 0 == 1
  1377. -------------------------------------------------------------------------------
  1378. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector
  1379. <float>
  1380. -------------------------------------------------------------------------------
  1381. Class.tests.cpp:<line number>
  1382. ...............................................................................
  1383. Class.tests.cpp:<line number>: FAILED:
  1384. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
  1385. with expansion:
  1386. 0 == 1
  1387. -------------------------------------------------------------------------------
  1388. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector
  1389. <int>
  1390. -------------------------------------------------------------------------------
  1391. Class.tests.cpp:<line number>
  1392. ...............................................................................
  1393. Class.tests.cpp:<line number>: FAILED:
  1394. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
  1395. with expansion:
  1396. 0 == 1
  1397. -------------------------------------------------------------------------------
  1398. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo
  1399. <float>
  1400. -------------------------------------------------------------------------------
  1401. Class.tests.cpp:<line number>
  1402. ...............................................................................
  1403. Class.tests.cpp:<line number>: PASSED:
  1404. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
  1405. with expansion:
  1406. 0 == 0
  1407. -------------------------------------------------------------------------------
  1408. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo
  1409. <int>
  1410. -------------------------------------------------------------------------------
  1411. Class.tests.cpp:<line number>
  1412. ...............................................................................
  1413. Class.tests.cpp:<line number>: PASSED:
  1414. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
  1415. with expansion:
  1416. 0 == 0
  1417. -------------------------------------------------------------------------------
  1418. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector
  1419. <float>
  1420. -------------------------------------------------------------------------------
  1421. Class.tests.cpp:<line number>
  1422. ...............................................................................
  1423. Class.tests.cpp:<line number>: PASSED:
  1424. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
  1425. with expansion:
  1426. 0 == 0
  1427. -------------------------------------------------------------------------------
  1428. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector
  1429. <int>
  1430. -------------------------------------------------------------------------------
  1431. Class.tests.cpp:<line number>
  1432. ...............................................................................
  1433. Class.tests.cpp:<line number>: PASSED:
  1434. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
  1435. with expansion:
  1436. 0 == 0
  1437. -------------------------------------------------------------------------------
  1438. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails -
  1439. Template_Foo_2<float, 6>
  1440. -------------------------------------------------------------------------------
  1441. Class.tests.cpp:<line number>
  1442. ...............................................................................
  1443. Class.tests.cpp:<line number>: FAILED:
  1444. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
  1445. with expansion:
  1446. 6 < 2
  1447. -------------------------------------------------------------------------------
  1448. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails -
  1449. Template_Foo_2<int, 2>
  1450. -------------------------------------------------------------------------------
  1451. Class.tests.cpp:<line number>
  1452. ...............................................................................
  1453. Class.tests.cpp:<line number>: FAILED:
  1454. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
  1455. with expansion:
  1456. 2 < 2
  1457. -------------------------------------------------------------------------------
  1458. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array
  1459. <float, 6>
  1460. -------------------------------------------------------------------------------
  1461. Class.tests.cpp:<line number>
  1462. ...............................................................................
  1463. Class.tests.cpp:<line number>: FAILED:
  1464. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
  1465. with expansion:
  1466. 6 < 2
  1467. -------------------------------------------------------------------------------
  1468. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array
  1469. <int, 2>
  1470. -------------------------------------------------------------------------------
  1471. Class.tests.cpp:<line number>
  1472. ...............................................................................
  1473. Class.tests.cpp:<line number>: FAILED:
  1474. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
  1475. with expansion:
  1476. 2 < 2
  1477. -------------------------------------------------------------------------------
  1478. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds -
  1479. Template_Foo_2<float,6>
  1480. -------------------------------------------------------------------------------
  1481. Class.tests.cpp:<line number>
  1482. ...............................................................................
  1483. Class.tests.cpp:<line number>: PASSED:
  1484. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
  1485. with expansion:
  1486. 6 >= 2
  1487. -------------------------------------------------------------------------------
  1488. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds -
  1489. Template_Foo_2<int,2>
  1490. -------------------------------------------------------------------------------
  1491. Class.tests.cpp:<line number>
  1492. ...............................................................................
  1493. Class.tests.cpp:<line number>: PASSED:
  1494. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
  1495. with expansion:
  1496. 2 >= 2
  1497. -------------------------------------------------------------------------------
  1498. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::
  1499. array<float,6>
  1500. -------------------------------------------------------------------------------
  1501. Class.tests.cpp:<line number>
  1502. ...............................................................................
  1503. Class.tests.cpp:<line number>: PASSED:
  1504. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
  1505. with expansion:
  1506. 6 >= 2
  1507. -------------------------------------------------------------------------------
  1508. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::
  1509. array<int,2>
  1510. -------------------------------------------------------------------------------
  1511. Class.tests.cpp:<line number>
  1512. ...............................................................................
  1513. Class.tests.cpp:<line number>: PASSED:
  1514. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
  1515. with expansion:
  1516. 2 >= 2
  1517. -------------------------------------------------------------------------------
  1518. A TEMPLATE_TEST_CASE_METHOD based test run that fails - double
  1519. -------------------------------------------------------------------------------
  1520. Class.tests.cpp:<line number>
  1521. ...............................................................................
  1522. Class.tests.cpp:<line number>: FAILED:
  1523. REQUIRE( Template_Fixture<TestType>::m_a == 2 )
  1524. with expansion:
  1525. 1.0 == 2
  1526. -------------------------------------------------------------------------------
  1527. A TEMPLATE_TEST_CASE_METHOD based test run that fails - float
  1528. -------------------------------------------------------------------------------
  1529. Class.tests.cpp:<line number>
  1530. ...............................................................................
  1531. Class.tests.cpp:<line number>: FAILED:
  1532. REQUIRE( Template_Fixture<TestType>::m_a == 2 )
  1533. with expansion:
  1534. 1.0f == 2
  1535. -------------------------------------------------------------------------------
  1536. A TEMPLATE_TEST_CASE_METHOD based test run that fails - int
  1537. -------------------------------------------------------------------------------
  1538. Class.tests.cpp:<line number>
  1539. ...............................................................................
  1540. Class.tests.cpp:<line number>: FAILED:
  1541. REQUIRE( Template_Fixture<TestType>::m_a == 2 )
  1542. with expansion:
  1543. 1 == 2
  1544. -------------------------------------------------------------------------------
  1545. A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - double
  1546. -------------------------------------------------------------------------------
  1547. Class.tests.cpp:<line number>
  1548. ...............................................................................
  1549. Class.tests.cpp:<line number>: PASSED:
  1550. REQUIRE( Template_Fixture<TestType>::m_a == 1 )
  1551. with expansion:
  1552. 1.0 == 1
  1553. -------------------------------------------------------------------------------
  1554. A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - float
  1555. -------------------------------------------------------------------------------
  1556. Class.tests.cpp:<line number>
  1557. ...............................................................................
  1558. Class.tests.cpp:<line number>: PASSED:
  1559. REQUIRE( Template_Fixture<TestType>::m_a == 1 )
  1560. with expansion:
  1561. 1.0f == 1
  1562. -------------------------------------------------------------------------------
  1563. A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - int
  1564. -------------------------------------------------------------------------------
  1565. Class.tests.cpp:<line number>
  1566. ...............................................................................
  1567. Class.tests.cpp:<line number>: PASSED:
  1568. REQUIRE( Template_Fixture<TestType>::m_a == 1 )
  1569. with expansion:
  1570. 1 == 1
  1571. -------------------------------------------------------------------------------
  1572. A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 1
  1573. -------------------------------------------------------------------------------
  1574. Class.tests.cpp:<line number>
  1575. ...............................................................................
  1576. Class.tests.cpp:<line number>: FAILED:
  1577. REQUIRE( Nttp_Fixture<V>::value == 0 )
  1578. with expansion:
  1579. 1 == 0
  1580. -------------------------------------------------------------------------------
  1581. A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 3
  1582. -------------------------------------------------------------------------------
  1583. Class.tests.cpp:<line number>
  1584. ...............................................................................
  1585. Class.tests.cpp:<line number>: FAILED:
  1586. REQUIRE( Nttp_Fixture<V>::value == 0 )
  1587. with expansion:
  1588. 3 == 0
  1589. -------------------------------------------------------------------------------
  1590. A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 6
  1591. -------------------------------------------------------------------------------
  1592. Class.tests.cpp:<line number>
  1593. ...............................................................................
  1594. Class.tests.cpp:<line number>: FAILED:
  1595. REQUIRE( Nttp_Fixture<V>::value == 0 )
  1596. with expansion:
  1597. 6 == 0
  1598. -------------------------------------------------------------------------------
  1599. A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 1
  1600. -------------------------------------------------------------------------------
  1601. Class.tests.cpp:<line number>
  1602. ...............................................................................
  1603. Class.tests.cpp:<line number>: PASSED:
  1604. REQUIRE( Nttp_Fixture<V>::value > 0 )
  1605. with expansion:
  1606. 1 > 0
  1607. -------------------------------------------------------------------------------
  1608. A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 3
  1609. -------------------------------------------------------------------------------
  1610. Class.tests.cpp:<line number>
  1611. ...............................................................................
  1612. Class.tests.cpp:<line number>: PASSED:
  1613. REQUIRE( Nttp_Fixture<V>::value > 0 )
  1614. with expansion:
  1615. 3 > 0
  1616. -------------------------------------------------------------------------------
  1617. A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 6
  1618. -------------------------------------------------------------------------------
  1619. Class.tests.cpp:<line number>
  1620. ...............................................................................
  1621. Class.tests.cpp:<line number>: PASSED:
  1622. REQUIRE( Nttp_Fixture<V>::value > 0 )
  1623. with expansion:
  1624. 6 > 0
  1625. -------------------------------------------------------------------------------
  1626. A TEST_CASE_METHOD based test run that fails
  1627. -------------------------------------------------------------------------------
  1628. Class.tests.cpp:<line number>
  1629. ...............................................................................
  1630. Class.tests.cpp:<line number>: FAILED:
  1631. REQUIRE( m_a == 2 )
  1632. with expansion:
  1633. 1 == 2
  1634. -------------------------------------------------------------------------------
  1635. A TEST_CASE_METHOD based test run that succeeds
  1636. -------------------------------------------------------------------------------
  1637. Class.tests.cpp:<line number>
  1638. ...............................................................................
  1639. Class.tests.cpp:<line number>: PASSED:
  1640. REQUIRE( m_a == 1 )
  1641. with expansion:
  1642. 1 == 1
  1643. -------------------------------------------------------------------------------
  1644. A Template product test case - Foo<float>
  1645. -------------------------------------------------------------------------------
  1646. Misc.tests.cpp:<line number>
  1647. ...............................................................................
  1648. Misc.tests.cpp:<line number>: PASSED:
  1649. REQUIRE( x.size() == 0 )
  1650. with expansion:
  1651. 0 == 0
  1652. -------------------------------------------------------------------------------
  1653. A Template product test case - Foo<int>
  1654. -------------------------------------------------------------------------------
  1655. Misc.tests.cpp:<line number>
  1656. ...............................................................................
  1657. Misc.tests.cpp:<line number>: PASSED:
  1658. REQUIRE( x.size() == 0 )
  1659. with expansion:
  1660. 0 == 0
  1661. -------------------------------------------------------------------------------
  1662. A Template product test case - std::vector<float>
  1663. -------------------------------------------------------------------------------
  1664. Misc.tests.cpp:<line number>
  1665. ...............................................................................
  1666. Misc.tests.cpp:<line number>: PASSED:
  1667. REQUIRE( x.size() == 0 )
  1668. with expansion:
  1669. 0 == 0
  1670. -------------------------------------------------------------------------------
  1671. A Template product test case - std::vector<int>
  1672. -------------------------------------------------------------------------------
  1673. Misc.tests.cpp:<line number>
  1674. ...............................................................................
  1675. Misc.tests.cpp:<line number>: PASSED:
  1676. REQUIRE( x.size() == 0 )
  1677. with expansion:
  1678. 0 == 0
  1679. -------------------------------------------------------------------------------
  1680. A Template product test case with array signature - Bar<float, 42>
  1681. -------------------------------------------------------------------------------
  1682. Misc.tests.cpp:<line number>
  1683. ...............................................................................
  1684. Misc.tests.cpp:<line number>: PASSED:
  1685. REQUIRE( x.size() > 0 )
  1686. with expansion:
  1687. 42 > 0
  1688. -------------------------------------------------------------------------------
  1689. A Template product test case with array signature - Bar<int, 9>
  1690. -------------------------------------------------------------------------------
  1691. Misc.tests.cpp:<line number>
  1692. ...............................................................................
  1693. Misc.tests.cpp:<line number>: PASSED:
  1694. REQUIRE( x.size() > 0 )
  1695. with expansion:
  1696. 9 > 0
  1697. -------------------------------------------------------------------------------
  1698. A Template product test case with array signature - std::array<float, 42>
  1699. -------------------------------------------------------------------------------
  1700. Misc.tests.cpp:<line number>
  1701. ...............................................................................
  1702. Misc.tests.cpp:<line number>: PASSED:
  1703. REQUIRE( x.size() > 0 )
  1704. with expansion:
  1705. 42 > 0
  1706. -------------------------------------------------------------------------------
  1707. A Template product test case with array signature - std::array<int, 9>
  1708. -------------------------------------------------------------------------------
  1709. Misc.tests.cpp:<line number>
  1710. ...............................................................................
  1711. Misc.tests.cpp:<line number>: PASSED:
  1712. REQUIRE( x.size() > 0 )
  1713. with expansion:
  1714. 9 > 0
  1715. -------------------------------------------------------------------------------
  1716. A comparison that uses literals instead of the normal constructor
  1717. -------------------------------------------------------------------------------
  1718. Approx.tests.cpp:<line number>
  1719. ...............................................................................
  1720. Approx.tests.cpp:<line number>: PASSED:
  1721. REQUIRE( d == 1.23_a )
  1722. with expansion:
  1723. 1.23 == Approx( 1.23 )
  1724. Approx.tests.cpp:<line number>: PASSED:
  1725. REQUIRE( d != 1.22_a )
  1726. with expansion:
  1727. 1.23 != Approx( 1.22 )
  1728. Approx.tests.cpp:<line number>: PASSED:
  1729. REQUIRE( -d == -1.23_a )
  1730. with expansion:
  1731. -1.23 == Approx( -1.23 )
  1732. Approx.tests.cpp:<line number>: PASSED:
  1733. REQUIRE( d == 1.2_a .epsilon(.1) )
  1734. with expansion:
  1735. 1.23 == Approx( 1.2 )
  1736. Approx.tests.cpp:<line number>: PASSED:
  1737. REQUIRE( d != 1.2_a .epsilon(.001) )
  1738. with expansion:
  1739. 1.23 != Approx( 1.2 )
  1740. Approx.tests.cpp:<line number>: PASSED:
  1741. REQUIRE( d == 1_a .epsilon(.3) )
  1742. with expansion:
  1743. 1.23 == Approx( 1.0 )
  1744. -------------------------------------------------------------------------------
  1745. A couple of nested sections followed by a failure
  1746. Outer
  1747. Inner
  1748. -------------------------------------------------------------------------------
  1749. Misc.tests.cpp:<line number>
  1750. ...............................................................................
  1751. Misc.tests.cpp:<line number>: PASSED:
  1752. with message:
  1753. that's not flying - that's failing in style
  1754. -------------------------------------------------------------------------------
  1755. A couple of nested sections followed by a failure
  1756. -------------------------------------------------------------------------------
  1757. Misc.tests.cpp:<line number>
  1758. ...............................................................................
  1759. Misc.tests.cpp:<line number>: FAILED:
  1760. explicitly with message:
  1761. to infinity and beyond
  1762. -------------------------------------------------------------------------------
  1763. A failing expression with a non streamable type is still captured
  1764. -------------------------------------------------------------------------------
  1765. Tricky.tests.cpp:<line number>
  1766. ...............................................................................
  1767. Tricky.tests.cpp:<line number>: FAILED:
  1768. CHECK( &o1 == &o2 )
  1769. with expansion:
  1770. 0x<hex digits> == 0x<hex digits>
  1771. Tricky.tests.cpp:<line number>: FAILED:
  1772. CHECK( o1 == o2 )
  1773. with expansion:
  1774. {?} == {?}
  1775. -------------------------------------------------------------------------------
  1776. Absolute margin
  1777. -------------------------------------------------------------------------------
  1778. Approx.tests.cpp:<line number>
  1779. ...............................................................................
  1780. Approx.tests.cpp:<line number>: PASSED:
  1781. REQUIRE( 104.0 != Approx(100.0) )
  1782. with expansion:
  1783. 104.0 != Approx( 100.0 )
  1784. Approx.tests.cpp:<line number>: PASSED:
  1785. REQUIRE( 104.0 == Approx(100.0).margin(5) )
  1786. with expansion:
  1787. 104.0 == Approx( 100.0 )
  1788. Approx.tests.cpp:<line number>: PASSED:
  1789. REQUIRE( 104.0 == Approx(100.0).margin(4) )
  1790. with expansion:
  1791. 104.0 == Approx( 100.0 )
  1792. Approx.tests.cpp:<line number>: PASSED:
  1793. REQUIRE( 104.0 != Approx(100.0).margin(3) )
  1794. with expansion:
  1795. 104.0 != Approx( 100.0 )
  1796. Approx.tests.cpp:<line number>: PASSED:
  1797. REQUIRE( 100.3 != Approx(100.0) )
  1798. with expansion:
  1799. 100.3 != Approx( 100.0 )
  1800. Approx.tests.cpp:<line number>: PASSED:
  1801. REQUIRE( 100.3 == Approx(100.0).margin(0.5) )
  1802. with expansion:
  1803. 100.3 == Approx( 100.0 )
  1804. -------------------------------------------------------------------------------
  1805. An empty test with no assertions
  1806. -------------------------------------------------------------------------------
  1807. Misc.tests.cpp:<line number>
  1808. ...............................................................................
  1809. No assertions in test case 'An empty test with no assertions'
  1810. -------------------------------------------------------------------------------
  1811. An expression with side-effects should only be evaluated once
  1812. -------------------------------------------------------------------------------
  1813. Tricky.tests.cpp:<line number>
  1814. ...............................................................................
  1815. Tricky.tests.cpp:<line number>: PASSED:
  1816. REQUIRE( i++ == 7 )
  1817. with expansion:
  1818. 7 == 7
  1819. Tricky.tests.cpp:<line number>: PASSED:
  1820. REQUIRE( i++ == 8 )
  1821. with expansion:
  1822. 8 == 8
  1823. -------------------------------------------------------------------------------
  1824. An unchecked exception reports the line of the last assertion
  1825. -------------------------------------------------------------------------------
  1826. Exception.tests.cpp:<line number>
  1827. ...............................................................................
  1828. Exception.tests.cpp:<line number>: PASSED:
  1829. CHECK( 1 == 1 )
  1830. Exception.tests.cpp:<line number>: FAILED:
  1831. {Unknown expression after the reported line}
  1832. due to unexpected exception with message:
  1833. unexpected exception
  1834. -------------------------------------------------------------------------------
  1835. Anonymous test case 1
  1836. -------------------------------------------------------------------------------
  1837. VariadicMacros.tests.cpp:<line number>
  1838. ...............................................................................
  1839. VariadicMacros.tests.cpp:<line number>: PASSED:
  1840. with message:
  1841. anonymous test case
  1842. -------------------------------------------------------------------------------
  1843. Approx setters validate their arguments
  1844. -------------------------------------------------------------------------------
  1845. Approx.tests.cpp:<line number>
  1846. ...............................................................................
  1847. Approx.tests.cpp:<line number>: PASSED:
  1848. REQUIRE_NOTHROW( Approx(0).margin(0) )
  1849. Approx.tests.cpp:<line number>: PASSED:
  1850. REQUIRE_NOTHROW( Approx(0).margin(1234656) )
  1851. Approx.tests.cpp:<line number>: PASSED:
  1852. REQUIRE_THROWS_AS( Approx(0).margin(-2), std::domain_error )
  1853. Approx.tests.cpp:<line number>: PASSED:
  1854. REQUIRE_NOTHROW( Approx(0).epsilon(0) )
  1855. Approx.tests.cpp:<line number>: PASSED:
  1856. REQUIRE_NOTHROW( Approx(0).epsilon(1) )
  1857. Approx.tests.cpp:<line number>: PASSED:
  1858. REQUIRE_THROWS_AS( Approx(0).epsilon(-0.001), std::domain_error )
  1859. Approx.tests.cpp:<line number>: PASSED:
  1860. REQUIRE_THROWS_AS( Approx(0).epsilon(1.0001), std::domain_error )
  1861. -------------------------------------------------------------------------------
  1862. Approx with exactly-representable margin
  1863. -------------------------------------------------------------------------------
  1864. Approx.tests.cpp:<line number>
  1865. ...............................................................................
  1866. Approx.tests.cpp:<line number>: PASSED:
  1867. CHECK( 0.25f == Approx(0.0f).margin(0.25f) )
  1868. with expansion:
  1869. 0.25f == Approx( 0.0 )
  1870. Approx.tests.cpp:<line number>: PASSED:
  1871. CHECK( 0.0f == Approx(0.25f).margin(0.25f) )
  1872. with expansion:
  1873. 0.0f == Approx( 0.25 )
  1874. Approx.tests.cpp:<line number>: PASSED:
  1875. CHECK( 0.5f == Approx(0.25f).margin(0.25f) )
  1876. with expansion:
  1877. 0.5f == Approx( 0.25 )
  1878. Approx.tests.cpp:<line number>: PASSED:
  1879. CHECK( 245.0f == Approx(245.25f).margin(0.25f) )
  1880. with expansion:
  1881. 245.0f == Approx( 245.25 )
  1882. Approx.tests.cpp:<line number>: PASSED:
  1883. CHECK( 245.5f == Approx(245.25f).margin(0.25f) )
  1884. with expansion:
  1885. 245.5f == Approx( 245.25 )
  1886. -------------------------------------------------------------------------------
  1887. Approximate PI
  1888. -------------------------------------------------------------------------------
  1889. Approx.tests.cpp:<line number>
  1890. ...............................................................................
  1891. Approx.tests.cpp:<line number>: PASSED:
  1892. REQUIRE( divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) )
  1893. with expansion:
  1894. 3.1428571429 == Approx( 3.141 )
  1895. Approx.tests.cpp:<line number>: PASSED:
  1896. REQUIRE( divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) )
  1897. with expansion:
  1898. 3.1428571429 != Approx( 3.141 )
  1899. -------------------------------------------------------------------------------
  1900. Approximate comparisons with different epsilons
  1901. -------------------------------------------------------------------------------
  1902. Approx.tests.cpp:<line number>
  1903. ...............................................................................
  1904. Approx.tests.cpp:<line number>: PASSED:
  1905. REQUIRE( d != Approx( 1.231 ) )
  1906. with expansion:
  1907. 1.23 != Approx( 1.231 )
  1908. Approx.tests.cpp:<line number>: PASSED:
  1909. REQUIRE( d == Approx( 1.231 ).epsilon( 0.1 ) )
  1910. with expansion:
  1911. 1.23 == Approx( 1.231 )
  1912. -------------------------------------------------------------------------------
  1913. Approximate comparisons with floats
  1914. -------------------------------------------------------------------------------
  1915. Approx.tests.cpp:<line number>
  1916. ...............................................................................
  1917. Approx.tests.cpp:<line number>: PASSED:
  1918. REQUIRE( 1.23f == Approx( 1.23f ) )
  1919. with expansion:
  1920. 1.23f == Approx( 1.2300000191 )
  1921. Approx.tests.cpp:<line number>: PASSED:
  1922. REQUIRE( 0.0f == Approx( 0.0f ) )
  1923. with expansion:
  1924. 0.0f == Approx( 0.0 )
  1925. -------------------------------------------------------------------------------
  1926. Approximate comparisons with ints
  1927. -------------------------------------------------------------------------------
  1928. Approx.tests.cpp:<line number>
  1929. ...............................................................................
  1930. Approx.tests.cpp:<line number>: PASSED:
  1931. REQUIRE( 1 == Approx( 1 ) )
  1932. with expansion:
  1933. 1 == Approx( 1.0 )
  1934. Approx.tests.cpp:<line number>: PASSED:
  1935. REQUIRE( 0 == Approx( 0 ) )
  1936. with expansion:
  1937. 0 == Approx( 0.0 )
  1938. -------------------------------------------------------------------------------
  1939. Approximate comparisons with mixed numeric types
  1940. -------------------------------------------------------------------------------
  1941. Approx.tests.cpp:<line number>
  1942. ...............................................................................
  1943. Approx.tests.cpp:<line number>: PASSED:
  1944. REQUIRE( 1.0f == Approx( 1 ) )
  1945. with expansion:
  1946. 1.0f == Approx( 1.0 )
  1947. Approx.tests.cpp:<line number>: PASSED:
  1948. REQUIRE( 0 == Approx( dZero) )
  1949. with expansion:
  1950. 0 == Approx( 0.0 )
  1951. Approx.tests.cpp:<line number>: PASSED:
  1952. REQUIRE( 0 == Approx( dSmall ).margin( 0.001 ) )
  1953. with expansion:
  1954. 0 == Approx( 0.00001 )
  1955. Approx.tests.cpp:<line number>: PASSED:
  1956. REQUIRE( 1.234f == Approx( dMedium ) )
  1957. with expansion:
  1958. 1.234f == Approx( 1.234 )
  1959. Approx.tests.cpp:<line number>: PASSED:
  1960. REQUIRE( dMedium == Approx( 1.234f ) )
  1961. with expansion:
  1962. 1.234 == Approx( 1.2339999676 )
  1963. -------------------------------------------------------------------------------
  1964. Arbitrary predicate matcher
  1965. Function pointer
  1966. -------------------------------------------------------------------------------
  1967. Matchers.tests.cpp:<line number>
  1968. ...............................................................................
  1969. Matchers.tests.cpp:<line number>: PASSED:
  1970. REQUIRE_THAT( 1, Predicate<int>( alwaysTrue, "always true" ) )
  1971. with expansion:
  1972. 1 matches predicate: "always true"
  1973. Matchers.tests.cpp:<line number>: PASSED:
  1974. REQUIRE_THAT( 1, !Predicate<int>( alwaysFalse, "always false" ) )
  1975. with expansion:
  1976. 1 not matches predicate: "always false"
  1977. -------------------------------------------------------------------------------
  1978. Arbitrary predicate matcher
  1979. Lambdas + different type
  1980. -------------------------------------------------------------------------------
  1981. Matchers.tests.cpp:<line number>
  1982. ...............................................................................
  1983. Matchers.tests.cpp:<line number>: PASSED:
  1984. REQUIRE_THAT( "Hello olleH", Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); }, "First and last character should be equal" ) )
  1985. with expansion:
  1986. "Hello olleH" matches predicate: "First and last character should be equal"
  1987. Matchers.tests.cpp:<line number>: PASSED:
  1988. REQUIRE_THAT( "This wouldn't pass", !Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); } ) )
  1989. with expansion:
  1990. "This wouldn't pass" not matches undescribed predicate
  1991. -------------------------------------------------------------------------------
  1992. Assertion macros support bit operators and bool conversions
  1993. -------------------------------------------------------------------------------
  1994. Compilation.tests.cpp:<line number>
  1995. ...............................................................................
  1996. Compilation.tests.cpp:<line number>: PASSED:
  1997. REQUIRE( lhs | rhs )
  1998. with expansion:
  1999. Val: 1 | Val: 2
  2000. Compilation.tests.cpp:<line number>: PASSED:
  2001. REQUIRE_FALSE( lhs & rhs )
  2002. with expansion:
  2003. !(Val: 1 & Val: 2)
  2004. Compilation.tests.cpp:<line number>: PASSED:
  2005. REQUIRE( HasBitOperators{ 1 } & HasBitOperators{ 1 } )
  2006. with expansion:
  2007. Val: 1 & Val: 1
  2008. Compilation.tests.cpp:<line number>: PASSED:
  2009. REQUIRE( lhs ^ rhs )
  2010. with expansion:
  2011. Val: 1 ^ Val: 2
  2012. Compilation.tests.cpp:<line number>: PASSED:
  2013. REQUIRE_FALSE( lhs ^ lhs )
  2014. with expansion:
  2015. !(Val: 1 ^ Val: 1)
  2016. -------------------------------------------------------------------------------
  2017. Assertions then sections
  2018. -------------------------------------------------------------------------------
  2019. Tricky.tests.cpp:<line number>
  2020. ...............................................................................
  2021. Tricky.tests.cpp:<line number>: PASSED:
  2022. REQUIRE( true )
  2023. -------------------------------------------------------------------------------
  2024. Assertions then sections
  2025. A section
  2026. -------------------------------------------------------------------------------
  2027. Tricky.tests.cpp:<line number>
  2028. ...............................................................................
  2029. Tricky.tests.cpp:<line number>: PASSED:
  2030. REQUIRE( true )
  2031. -------------------------------------------------------------------------------
  2032. Assertions then sections
  2033. A section
  2034. Another section
  2035. -------------------------------------------------------------------------------
  2036. Tricky.tests.cpp:<line number>
  2037. ...............................................................................
  2038. Tricky.tests.cpp:<line number>: PASSED:
  2039. REQUIRE( true )
  2040. -------------------------------------------------------------------------------
  2041. Assertions then sections
  2042. -------------------------------------------------------------------------------
  2043. Tricky.tests.cpp:<line number>
  2044. ...............................................................................
  2045. Tricky.tests.cpp:<line number>: PASSED:
  2046. REQUIRE( true )
  2047. -------------------------------------------------------------------------------
  2048. Assertions then sections
  2049. A section
  2050. -------------------------------------------------------------------------------
  2051. Tricky.tests.cpp:<line number>
  2052. ...............................................................................
  2053. Tricky.tests.cpp:<line number>: PASSED:
  2054. REQUIRE( true )
  2055. -------------------------------------------------------------------------------
  2056. Assertions then sections
  2057. A section
  2058. Another other section
  2059. -------------------------------------------------------------------------------
  2060. Tricky.tests.cpp:<line number>
  2061. ...............................................................................
  2062. Tricky.tests.cpp:<line number>: PASSED:
  2063. REQUIRE( true )
  2064. -------------------------------------------------------------------------------
  2065. Basic use of the Contains range matcher
  2066. Different argument ranges, same element type, default comparison
  2067. -------------------------------------------------------------------------------
  2068. MatchersRanges.tests.cpp:<line number>
  2069. ...............................................................................
  2070. MatchersRanges.tests.cpp:<line number>: PASSED:
  2071. REQUIRE_THAT( a, Contains(1) )
  2072. with expansion:
  2073. { 1, 2, 3 } contains element 1
  2074. MatchersRanges.tests.cpp:<line number>: PASSED:
  2075. REQUIRE_THAT( b, Contains(1) )
  2076. with expansion:
  2077. { 0, 1, 2 } contains element 1
  2078. MatchersRanges.tests.cpp:<line number>: PASSED:
  2079. REQUIRE_THAT( c, !Contains(1) )
  2080. with expansion:
  2081. { 4, 5, 6 } not contains element 1
  2082. -------------------------------------------------------------------------------
  2083. Basic use of the Contains range matcher
  2084. Different argument ranges, same element type, custom comparison
  2085. -------------------------------------------------------------------------------
  2086. MatchersRanges.tests.cpp:<line number>
  2087. ...............................................................................
  2088. MatchersRanges.tests.cpp:<line number>: PASSED:
  2089. REQUIRE_THAT( a, Contains(0, close_enough) )
  2090. with expansion:
  2091. { 1, 2, 3 } contains element 0
  2092. MatchersRanges.tests.cpp:<line number>: PASSED:
  2093. REQUIRE_THAT( b, Contains(0, close_enough) )
  2094. with expansion:
  2095. { 0, 1, 2 } contains element 0
  2096. MatchersRanges.tests.cpp:<line number>: PASSED:
  2097. REQUIRE_THAT( c, !Contains(0, close_enough) )
  2098. with expansion:
  2099. { 4, 5, 6 } not contains element 0
  2100. -------------------------------------------------------------------------------
  2101. Basic use of the Contains range matcher
  2102. Different element type, custom comparisons
  2103. -------------------------------------------------------------------------------
  2104. MatchersRanges.tests.cpp:<line number>
  2105. ...............................................................................
  2106. MatchersRanges.tests.cpp:<line number>: PASSED:
  2107. REQUIRE_THAT( a, Contains(4, [](auto&& lhs, size_t sz) { return lhs.size() == sz; }) )
  2108. with expansion:
  2109. { "abc", "abcd", "abcde" } contains element 4
  2110. -------------------------------------------------------------------------------
  2111. Basic use of the Contains range matcher
  2112. Can handle type that requires ADL-found free function begin and end
  2113. -------------------------------------------------------------------------------
  2114. MatchersRanges.tests.cpp:<line number>
  2115. ...............................................................................
  2116. MatchersRanges.tests.cpp:<line number>: PASSED:
  2117. REQUIRE_THAT( in, Contains(1) )
  2118. with expansion:
  2119. { 1, 2, 3, 4, 5 } contains element 1
  2120. MatchersRanges.tests.cpp:<line number>: PASSED:
  2121. REQUIRE_THAT( in, !Contains(8) )
  2122. with expansion:
  2123. { 1, 2, 3, 4, 5 } not contains element 8
  2124. -------------------------------------------------------------------------------
  2125. Basic use of the Contains range matcher
  2126. Initialization with move only types
  2127. -------------------------------------------------------------------------------
  2128. MatchersRanges.tests.cpp:<line number>
  2129. ...............................................................................
  2130. MatchersRanges.tests.cpp:<line number>: PASSED:
  2131. REQUIRE_THAT( in, Contains(MoveOnlyTestElement{ 2 }) )
  2132. with expansion:
  2133. { 1, 2, 3 } contains element 2
  2134. MatchersRanges.tests.cpp:<line number>: PASSED:
  2135. REQUIRE_THAT( in, !Contains(MoveOnlyTestElement{ 9 }) )
  2136. with expansion:
  2137. { 1, 2, 3 } not contains element 9
  2138. -------------------------------------------------------------------------------
  2139. Basic use of the Contains range matcher
  2140. Matching using matcher
  2141. -------------------------------------------------------------------------------
  2142. MatchersRanges.tests.cpp:<line number>
  2143. ...............................................................................
  2144. MatchersRanges.tests.cpp:<line number>: PASSED:
  2145. REQUIRE_THAT( in, Contains(Catch::Matchers::WithinAbs(0.5, 0.5)) )
  2146. with expansion:
  2147. { 1.0, 2.0, 3.0, 0.0 } contains element matching is within 0.5 of 0.5
  2148. -------------------------------------------------------------------------------
  2149. Basic use of the Empty range matcher
  2150. Simple, std-provided containers
  2151. -------------------------------------------------------------------------------
  2152. MatchersRanges.tests.cpp:<line number>
  2153. ...............................................................................
  2154. MatchersRanges.tests.cpp:<line number>: PASSED:
  2155. REQUIRE_THAT( empty_array, IsEmpty() )
  2156. with expansion:
  2157. { } is empty
  2158. MatchersRanges.tests.cpp:<line number>: PASSED:
  2159. REQUIRE_THAT( non_empty_array, !IsEmpty() )
  2160. with expansion:
  2161. { 0.0 } not is empty
  2162. MatchersRanges.tests.cpp:<line number>: PASSED:
  2163. REQUIRE_THAT( empty_vec, IsEmpty() )
  2164. with expansion:
  2165. { } is empty
  2166. MatchersRanges.tests.cpp:<line number>: PASSED:
  2167. REQUIRE_THAT( non_empty_vec, !IsEmpty() )
  2168. with expansion:
  2169. { 'a', 'b', 'c' } not is empty
  2170. MatchersRanges.tests.cpp:<line number>: PASSED:
  2171. REQUIRE_THAT( inner_lists_are_empty, !IsEmpty() )
  2172. with expansion:
  2173. { { } } not is empty
  2174. MatchersRanges.tests.cpp:<line number>: PASSED:
  2175. REQUIRE_THAT( inner_lists_are_empty.front(), IsEmpty() )
  2176. with expansion:
  2177. { } is empty
  2178. -------------------------------------------------------------------------------
  2179. Basic use of the Empty range matcher
  2180. Type with empty
  2181. -------------------------------------------------------------------------------
  2182. MatchersRanges.tests.cpp:<line number>
  2183. ...............................................................................
  2184. MatchersRanges.tests.cpp:<line number>: PASSED:
  2185. REQUIRE_THAT( has_empty{}, !IsEmpty() )
  2186. with expansion:
  2187. {?} not is empty
  2188. -------------------------------------------------------------------------------
  2189. Basic use of the Empty range matcher
  2190. Type requires ADL found empty free function
  2191. -------------------------------------------------------------------------------
  2192. MatchersRanges.tests.cpp:<line number>
  2193. ...............................................................................
  2194. MatchersRanges.tests.cpp:<line number>: PASSED:
  2195. REQUIRE_THAT( unrelated::ADL_empty{}, IsEmpty() )
  2196. with expansion:
  2197. {?} is empty
  2198. -------------------------------------------------------------------------------
  2199. CAPTURE can deal with complex expressions
  2200. -------------------------------------------------------------------------------
  2201. Message.tests.cpp:<line number>
  2202. ...............................................................................
  2203. Message.tests.cpp:<line number>: PASSED:
  2204. with messages:
  2205. a := 1
  2206. b := 2
  2207. c := 3
  2208. a + b := 3
  2209. a+b := 3
  2210. c > b := true
  2211. a == 1 := true
  2212. -------------------------------------------------------------------------------
  2213. CAPTURE can deal with complex expressions involving commas
  2214. -------------------------------------------------------------------------------
  2215. Message.tests.cpp:<line number>
  2216. ...............................................................................
  2217. Message.tests.cpp:<line number>: PASSED:
  2218. with messages:
  2219. std::vector<int>{1, 2, 3}[0, 1, 2] := 3
  2220. std::vector<int>{1, 2, 3}[(0, 1)] := 2
  2221. std::vector<int>{1, 2, 3}[0] := 1
  2222. (helper_1436<int, int>{12, -12}) := { 12, -12 }
  2223. (helper_1436<int, int>(-12, 12)) := { -12, 12 }
  2224. (1, 2) := 2
  2225. (2, 3) := 3
  2226. -------------------------------------------------------------------------------
  2227. CAPTURE parses string and character constants
  2228. -------------------------------------------------------------------------------
  2229. Message.tests.cpp:<line number>
  2230. ...............................................................................
  2231. Message.tests.cpp:<line number>: PASSED:
  2232. with messages:
  2233. ("comma, in string", "escaped, \", ") := "escaped, ", "
  2234. "single quote in string,'," := "single quote in string,',"
  2235. "some escapes, \\,\\\\" := "some escapes, \,\\"
  2236. "some, ), unmatched, } prenheses {[<" := "some, ), unmatched, } prenheses {[
  2237. <"
  2238. '"' := '"'
  2239. '\'' := '''
  2240. ',' := ','
  2241. '}' := '}'
  2242. ')' := ')'
  2243. '(' := '('
  2244. '{' := '{'
  2245. -------------------------------------------------------------------------------
  2246. Capture and info messages
  2247. Capture should stringify like assertions
  2248. -------------------------------------------------------------------------------
  2249. ToStringGeneral.tests.cpp:<line number>
  2250. ...............................................................................
  2251. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2252. REQUIRE( true )
  2253. with message:
  2254. i := 2
  2255. -------------------------------------------------------------------------------
  2256. Capture and info messages
  2257. Info should NOT stringify the way assertions do
  2258. -------------------------------------------------------------------------------
  2259. ToStringGeneral.tests.cpp:<line number>
  2260. ...............................................................................
  2261. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2262. REQUIRE( true )
  2263. with message:
  2264. 3
  2265. -------------------------------------------------------------------------------
  2266. CaseInsensitiveEqualsTo is case insensitive
  2267. Degenerate cases
  2268. -------------------------------------------------------------------------------
  2269. Details.tests.cpp:<line number>
  2270. ...............................................................................
  2271. Details.tests.cpp:<line number>: PASSED:
  2272. REQUIRE( eq( "", "" ) )
  2273. with expansion:
  2274. true
  2275. Details.tests.cpp:<line number>: PASSED:
  2276. REQUIRE_FALSE( eq( "", "a" ) )
  2277. with expansion:
  2278. !false
  2279. -------------------------------------------------------------------------------
  2280. CaseInsensitiveEqualsTo is case insensitive
  2281. Plain comparisons
  2282. -------------------------------------------------------------------------------
  2283. Details.tests.cpp:<line number>
  2284. ...............................................................................
  2285. Details.tests.cpp:<line number>: PASSED:
  2286. REQUIRE( eq( "a", "a" ) )
  2287. with expansion:
  2288. true
  2289. Details.tests.cpp:<line number>: PASSED:
  2290. REQUIRE( eq( "a", "A" ) )
  2291. with expansion:
  2292. true
  2293. Details.tests.cpp:<line number>: PASSED:
  2294. REQUIRE( eq( "A", "a" ) )
  2295. with expansion:
  2296. true
  2297. Details.tests.cpp:<line number>: PASSED:
  2298. REQUIRE( eq( "A", "A" ) )
  2299. with expansion:
  2300. true
  2301. Details.tests.cpp:<line number>: PASSED:
  2302. REQUIRE_FALSE( eq( "a", "b" ) )
  2303. with expansion:
  2304. !false
  2305. Details.tests.cpp:<line number>: PASSED:
  2306. REQUIRE_FALSE( eq( "a", "B" ) )
  2307. with expansion:
  2308. !false
  2309. -------------------------------------------------------------------------------
  2310. CaseInsensitiveLess is case insensitive
  2311. Degenerate cases
  2312. -------------------------------------------------------------------------------
  2313. Details.tests.cpp:<line number>
  2314. ...............................................................................
  2315. Details.tests.cpp:<line number>: PASSED:
  2316. REQUIRE( lt( "", "a" ) )
  2317. with expansion:
  2318. true
  2319. Details.tests.cpp:<line number>: PASSED:
  2320. REQUIRE_FALSE( lt( "a", "a" ) )
  2321. with expansion:
  2322. !false
  2323. Details.tests.cpp:<line number>: PASSED:
  2324. REQUIRE_FALSE( lt( "", "" ) )
  2325. with expansion:
  2326. !false
  2327. -------------------------------------------------------------------------------
  2328. CaseInsensitiveLess is case insensitive
  2329. Plain comparisons
  2330. -------------------------------------------------------------------------------
  2331. Details.tests.cpp:<line number>
  2332. ...............................................................................
  2333. Details.tests.cpp:<line number>: PASSED:
  2334. REQUIRE( lt( "a", "b" ) )
  2335. with expansion:
  2336. true
  2337. Details.tests.cpp:<line number>: PASSED:
  2338. REQUIRE( lt( "a", "B" ) )
  2339. with expansion:
  2340. true
  2341. Details.tests.cpp:<line number>: PASSED:
  2342. REQUIRE( lt( "A", "b" ) )
  2343. with expansion:
  2344. true
  2345. Details.tests.cpp:<line number>: PASSED:
  2346. REQUIRE( lt( "A", "B" ) )
  2347. with expansion:
  2348. true
  2349. -------------------------------------------------------------------------------
  2350. Character pretty printing
  2351. Specifically escaped
  2352. -------------------------------------------------------------------------------
  2353. ToStringGeneral.tests.cpp:<line number>
  2354. ...............................................................................
  2355. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2356. CHECK( tab == '\t' )
  2357. with expansion:
  2358. '\t' == '\t'
  2359. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2360. CHECK( newline == '\n' )
  2361. with expansion:
  2362. '\n' == '\n'
  2363. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2364. CHECK( carr_return == '\r' )
  2365. with expansion:
  2366. '\r' == '\r'
  2367. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2368. CHECK( form_feed == '\f' )
  2369. with expansion:
  2370. '\f' == '\f'
  2371. -------------------------------------------------------------------------------
  2372. Character pretty printing
  2373. General chars
  2374. -------------------------------------------------------------------------------
  2375. ToStringGeneral.tests.cpp:<line number>
  2376. ...............................................................................
  2377. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2378. CHECK( space == ' ' )
  2379. with expansion:
  2380. ' ' == ' '
  2381. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2382. REQUIRE( c == chars[i] )
  2383. with expansion:
  2384. 'a' == 'a'
  2385. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2386. REQUIRE( c == chars[i] )
  2387. with expansion:
  2388. 'z' == 'z'
  2389. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2390. REQUIRE( c == chars[i] )
  2391. with expansion:
  2392. 'A' == 'A'
  2393. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2394. REQUIRE( c == chars[i] )
  2395. with expansion:
  2396. 'Z' == 'Z'
  2397. -------------------------------------------------------------------------------
  2398. Character pretty printing
  2399. Low ASCII
  2400. -------------------------------------------------------------------------------
  2401. ToStringGeneral.tests.cpp:<line number>
  2402. ...............................................................................
  2403. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2404. CHECK( null_terminator == '\0' )
  2405. with expansion:
  2406. 0 == 0
  2407. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2408. REQUIRE( c == i )
  2409. with expansion:
  2410. 2 == 2
  2411. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2412. REQUIRE( c == i )
  2413. with expansion:
  2414. 3 == 3
  2415. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2416. REQUIRE( c == i )
  2417. with expansion:
  2418. 4 == 4
  2419. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2420. REQUIRE( c == i )
  2421. with expansion:
  2422. 5 == 5
  2423. -------------------------------------------------------------------------------
  2424. Clara::Arg supports single-arg parse the way Opt does
  2425. -------------------------------------------------------------------------------
  2426. Clara.tests.cpp:<line number>
  2427. ...............................................................................
  2428. Clara.tests.cpp:<line number>: PASSED:
  2429. CHECK( name.empty() )
  2430. with expansion:
  2431. true
  2432. Clara.tests.cpp:<line number>: PASSED:
  2433. REQUIRE( name == "foo" )
  2434. with expansion:
  2435. "foo" == "foo"
  2436. -------------------------------------------------------------------------------
  2437. Clara::Opt supports accept-many lambdas
  2438. Parsing fails on multiple options without accept_many
  2439. -------------------------------------------------------------------------------
  2440. Clara.tests.cpp:<line number>
  2441. ...............................................................................
  2442. Clara.tests.cpp:<line number>: PASSED:
  2443. CHECK_FALSE( parse_result )
  2444. with expansion:
  2445. !{?}
  2446. -------------------------------------------------------------------------------
  2447. Clara::Opt supports accept-many lambdas
  2448. Parsing succeeds on multiple options with accept_many
  2449. -------------------------------------------------------------------------------
  2450. Clara.tests.cpp:<line number>
  2451. ...............................................................................
  2452. Clara.tests.cpp:<line number>: PASSED:
  2453. CHECK( parse_result )
  2454. with expansion:
  2455. {?}
  2456. Clara.tests.cpp:<line number>: PASSED:
  2457. CHECK( res == std::vector<std::string>{ "aaa", "bbb" } )
  2458. with expansion:
  2459. { "aaa", "bbb" } == { "aaa", "bbb" }
  2460. -------------------------------------------------------------------------------
  2461. ColourGuard behaviour
  2462. ColourGuard is disengaged by default
  2463. -------------------------------------------------------------------------------
  2464. ColourImpl.tests.cpp:<line number>
  2465. ...............................................................................
  2466. ColourImpl.tests.cpp:<line number>: PASSED:
  2467. REQUIRE( streamWrapper.str().empty() )
  2468. with expansion:
  2469. true
  2470. -------------------------------------------------------------------------------
  2471. ColourGuard behaviour
  2472. ColourGuard is engaged by op<<
  2473. -------------------------------------------------------------------------------
  2474. ColourImpl.tests.cpp:<line number>
  2475. ...............................................................................
  2476. ColourImpl.tests.cpp:<line number>: PASSED:
  2477. REQUIRE( streamWrapper.str() == "1\nUsing code: 2\n2\nUsing code: 0\n3\n" )
  2478. with expansion:
  2479. "1
  2480. Using code: 2
  2481. 2
  2482. Using code: 0
  2483. 3
  2484. "
  2485. ==
  2486. "1
  2487. Using code: 2
  2488. 2
  2489. Using code: 0
  2490. 3
  2491. "
  2492. -------------------------------------------------------------------------------
  2493. ColourGuard behaviour
  2494. ColourGuard can be engaged explicitly
  2495. -------------------------------------------------------------------------------
  2496. ColourImpl.tests.cpp:<line number>
  2497. ...............................................................................
  2498. ColourImpl.tests.cpp:<line number>: PASSED:
  2499. REQUIRE( streamWrapper.str() == "Using code: 2\nA\nB\nUsing code: 0\nC\n" )
  2500. with expansion:
  2501. "Using code: 2
  2502. A
  2503. B
  2504. Using code: 0
  2505. C
  2506. "
  2507. ==
  2508. "Using code: 2
  2509. A
  2510. B
  2511. Using code: 0
  2512. C
  2513. "
  2514. -------------------------------------------------------------------------------
  2515. Combining MatchAllOfGeneric does not nest
  2516. -------------------------------------------------------------------------------
  2517. Matchers.tests.cpp:<line number>
  2518. ...............................................................................
  2519. Matchers.tests.cpp:<line number>: PASSED:
  2520. with message:
  2521. std::is_same< decltype( ( MatcherA() && MatcherB() ) && MatcherC() ), Catch::
  2522. Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value
  2523. Matchers.tests.cpp:<line number>: PASSED:
  2524. REQUIRE_THAT( 1, ( MatcherA() && MatcherB() ) && MatcherC() )
  2525. with expansion:
  2526. 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T)
  2527. 1 )
  2528. Matchers.tests.cpp:<line number>: PASSED:
  2529. with message:
  2530. std::is_same< decltype( MatcherA() && ( MatcherB() && MatcherC() ) ), Catch::
  2531. Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value
  2532. Matchers.tests.cpp:<line number>: PASSED:
  2533. REQUIRE_THAT( 1, MatcherA() && ( MatcherB() && MatcherC() ) )
  2534. with expansion:
  2535. 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T)
  2536. 1 )
  2537. Matchers.tests.cpp:<line number>: PASSED:
  2538. with message:
  2539. std::is_same< decltype( ( MatcherA() && MatcherB() ) && ( MatcherC() &&
  2540. MatcherD() ) ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA,
  2541. MatcherB, MatcherC, MatcherD>>:: value
  2542. Matchers.tests.cpp:<line number>: PASSED:
  2543. REQUIRE_THAT( 1, ( MatcherA() && MatcherB() ) && ( MatcherC() && MatcherD() ) )
  2544. with expansion:
  2545. 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T)
  2546. 1 and equals: true )
  2547. -------------------------------------------------------------------------------
  2548. Combining MatchAnyOfGeneric does not nest
  2549. -------------------------------------------------------------------------------
  2550. Matchers.tests.cpp:<line number>
  2551. ...............................................................................
  2552. Matchers.tests.cpp:<line number>: PASSED:
  2553. with message:
  2554. std::is_same< decltype( ( MatcherA() || MatcherB() ) || MatcherC() ), Catch::
  2555. Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value
  2556. Matchers.tests.cpp:<line number>: PASSED:
  2557. REQUIRE_THAT( 1, ( MatcherA() || MatcherB() ) || MatcherC() )
  2558. with expansion:
  2559. 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1
  2560. )
  2561. Matchers.tests.cpp:<line number>: PASSED:
  2562. with message:
  2563. std::is_same< decltype( MatcherA() || ( MatcherB() || MatcherC() ) ), Catch::
  2564. Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value
  2565. Matchers.tests.cpp:<line number>: PASSED:
  2566. REQUIRE_THAT( 1, MatcherA() || ( MatcherB() || MatcherC() ) )
  2567. with expansion:
  2568. 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1
  2569. )
  2570. Matchers.tests.cpp:<line number>: PASSED:
  2571. with message:
  2572. std::is_same< decltype( ( MatcherA() || MatcherB() ) || ( MatcherC() ||
  2573. MatcherD() ) ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA,
  2574. MatcherB, MatcherC, MatcherD>>:: value
  2575. Matchers.tests.cpp:<line number>: PASSED:
  2576. REQUIRE_THAT( 1, ( MatcherA() || MatcherB() ) || ( MatcherC() || MatcherD() ) )
  2577. with expansion:
  2578. 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1
  2579. or equals: true )
  2580. -------------------------------------------------------------------------------
  2581. Combining MatchNotOfGeneric does not nest
  2582. -------------------------------------------------------------------------------
  2583. Matchers.tests.cpp:<line number>
  2584. ...............................................................................
  2585. Matchers.tests.cpp:<line number>: PASSED:
  2586. with message:
  2587. std::is_same< decltype( !MatcherA() ), Catch::Matchers::Detail::
  2588. MatchNotOfGeneric<MatcherA>>::value
  2589. Matchers.tests.cpp:<line number>: PASSED:
  2590. REQUIRE_THAT( 0, !MatcherA() )
  2591. with expansion:
  2592. 0 not equals: (int) 1 or (string) "1"
  2593. Matchers.tests.cpp:<line number>: PASSED:
  2594. with message:
  2595. std::is_same<decltype( !!MatcherA() ), MatcherA const&>::value
  2596. Matchers.tests.cpp:<line number>: PASSED:
  2597. REQUIRE_THAT( 1, !!MatcherA() )
  2598. with expansion:
  2599. 1 equals: (int) 1 or (string) "1"
  2600. Matchers.tests.cpp:<line number>: PASSED:
  2601. with message:
  2602. std::is_same< decltype( !!!MatcherA() ), Catch::Matchers::Detail::
  2603. MatchNotOfGeneric<MatcherA>>::value
  2604. Matchers.tests.cpp:<line number>: PASSED:
  2605. REQUIRE_THAT( 0, !!!MatcherA() )
  2606. with expansion:
  2607. 0 not equals: (int) 1 or (string) "1"
  2608. Matchers.tests.cpp:<line number>: PASSED:
  2609. with message:
  2610. std::is_same<decltype( !!!!MatcherA() ), MatcherA const&>::value
  2611. Matchers.tests.cpp:<line number>: PASSED:
  2612. REQUIRE_THAT( 1, !!!!MatcherA() )
  2613. with expansion:
  2614. 1 equals: (int) 1 or (string) "1"
  2615. -------------------------------------------------------------------------------
  2616. Combining concrete matchers does not use templated matchers
  2617. -------------------------------------------------------------------------------
  2618. Matchers.tests.cpp:<line number>
  2619. ...............................................................................
  2620. Matchers.tests.cpp:<line number>: PASSED:
  2621. with message:
  2622. std::is_same<decltype( StartsWith( "foo" ) || ( StartsWith( "bar" ) &&
  2623. EndsWith( "bar" ) && !EndsWith( "foo" ) ) ), Catch::Matchers::Detail::
  2624. MatchAnyOf<std::string>>::value
  2625. -------------------------------------------------------------------------------
  2626. Combining only templated matchers
  2627. -------------------------------------------------------------------------------
  2628. Matchers.tests.cpp:<line number>
  2629. ...............................................................................
  2630. Matchers.tests.cpp:<line number>: PASSED:
  2631. with message:
  2632. std::is_same<decltype( MatcherA() || MatcherB() ), Catch::Matchers::Detail::
  2633. MatchAnyOfGeneric<MatcherA, MatcherB>>::value
  2634. Matchers.tests.cpp:<line number>: PASSED:
  2635. REQUIRE_THAT( 1, MatcherA() || MatcherB() )
  2636. with expansion:
  2637. 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 )
  2638. Matchers.tests.cpp:<line number>: PASSED:
  2639. with message:
  2640. std::is_same<decltype( MatcherA() && MatcherB() ), Catch::Matchers::Detail::
  2641. MatchAllOfGeneric<MatcherA, MatcherB>>::value
  2642. Matchers.tests.cpp:<line number>: PASSED:
  2643. REQUIRE_THAT( 1, MatcherA() && MatcherB() )
  2644. with expansion:
  2645. 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 )
  2646. Matchers.tests.cpp:<line number>: PASSED:
  2647. with message:
  2648. std::is_same< decltype( MatcherA() || !MatcherB() ), Catch::Matchers::Detail:
  2649. :MatchAnyOfGeneric< MatcherA, Catch::Matchers::Detail::MatchNotOfGeneric
  2650. <MatcherB>>>::value
  2651. Matchers.tests.cpp:<line number>: PASSED:
  2652. REQUIRE_THAT( 1, MatcherA() || !MatcherB() )
  2653. with expansion:
  2654. 1 ( equals: (int) 1 or (string) "1" or not equals: (long long) 1 )
  2655. -------------------------------------------------------------------------------
  2656. Combining templated and concrete matchers
  2657. -------------------------------------------------------------------------------
  2658. Matchers.tests.cpp:<line number>
  2659. ...............................................................................
  2660. Matchers.tests.cpp:<line number>: PASSED:
  2661. REQUIRE_THAT( vec, Predicate<std::vector<int>>( []( auto const& v ) { return std::all_of( v.begin(), v.end(), []( int elem ) { return elem % 2 == 1; } ); }, "All elements are odd" ) && !EqualsRange( a ) )
  2662. with expansion:
  2663. { 1, 3, 5 } ( matches predicate: "All elements are odd" and not Equals: { 5,
  2664. 3, 1 } )
  2665. Matchers.tests.cpp:<line number>: PASSED:
  2666. REQUIRE_THAT( str, StartsWith( "foo" ) && EqualsRange( arr ) && EndsWith( "bar" ) )
  2667. with expansion:
  2668. "foobar" ( starts with: "foo" and Equals: { 'f', 'o', 'o', 'b', 'a', 'r' }
  2669. and ends with: "bar" )
  2670. Matchers.tests.cpp:<line number>: PASSED:
  2671. REQUIRE_THAT( str, StartsWith( "foo" ) && !EqualsRange( bad_arr ) && EndsWith( "bar" ) )
  2672. with expansion:
  2673. "foobar" ( starts with: "foo" and not Equals: { 'o', 'o', 'f', 'b', 'a', 'r'
  2674. } and ends with: "bar" )
  2675. Matchers.tests.cpp:<line number>: PASSED:
  2676. REQUIRE_THAT( str, EqualsRange( arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) )
  2677. with expansion:
  2678. "foobar" ( Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and starts with: "foo"
  2679. and ends with: "bar" )
  2680. Matchers.tests.cpp:<line number>: PASSED:
  2681. REQUIRE_THAT( str, !EqualsRange( bad_arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) )
  2682. with expansion:
  2683. "foobar" ( not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and starts with:
  2684. "foo" and ends with: "bar" )
  2685. Matchers.tests.cpp:<line number>: PASSED:
  2686. REQUIRE_THAT( str, EqualsRange( bad_arr ) || ( StartsWith( "foo" ) && EndsWith( "bar" ) ) )
  2687. with expansion:
  2688. "foobar" ( Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } or ( starts with: "foo"
  2689. and ends with: "bar" ) )
  2690. Matchers.tests.cpp:<line number>: PASSED:
  2691. REQUIRE_THAT( str, ( StartsWith( "foo" ) && EndsWith( "bar" ) ) || EqualsRange( bad_arr ) )
  2692. with expansion:
  2693. "foobar" ( ( starts with: "foo" and ends with: "bar" ) or Equals: { 'o', 'o',
  2694. 'f', 'b', 'a', 'r' } )
  2695. -------------------------------------------------------------------------------
  2696. Combining templated matchers
  2697. -------------------------------------------------------------------------------
  2698. Matchers.tests.cpp:<line number>
  2699. ...............................................................................
  2700. Matchers.tests.cpp:<line number>: PASSED:
  2701. REQUIRE_THAT( container, EqualsRange( a ) || EqualsRange( b ) || EqualsRange( c ) )
  2702. with expansion:
  2703. { 1, 2, 3 } ( Equals: { 1, 2, 3 } or Equals: { 0, 1, 2 } or Equals: { 4, 5, 6
  2704. } )
  2705. -------------------------------------------------------------------------------
  2706. Commas in various macros are allowed
  2707. -------------------------------------------------------------------------------
  2708. Tricky.tests.cpp:<line number>
  2709. ...............................................................................
  2710. Tricky.tests.cpp:<line number>: PASSED:
  2711. REQUIRE_THROWS( std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} )
  2712. Tricky.tests.cpp:<line number>: PASSED:
  2713. CHECK_THROWS( std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} )
  2714. Tricky.tests.cpp:<line number>: PASSED:
  2715. REQUIRE_NOTHROW( std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} )
  2716. Tricky.tests.cpp:<line number>: PASSED:
  2717. CHECK_NOTHROW( std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} )
  2718. Tricky.tests.cpp:<line number>: PASSED:
  2719. REQUIRE( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
  2720. with expansion:
  2721. { 1, 2 } == { 1, 2 }
  2722. Tricky.tests.cpp:<line number>: PASSED:
  2723. CHECK( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
  2724. with expansion:
  2725. { 1, 2 } == { 1, 2 }
  2726. Tricky.tests.cpp:<line number>: PASSED:
  2727. REQUIRE_FALSE( std::vector<int>{1, 2} == std::vector<int>{1, 2, 3} )
  2728. with expansion:
  2729. !({ 1, 2 } == { 1, 2, 3 })
  2730. Tricky.tests.cpp:<line number>: PASSED:
  2731. CHECK_FALSE( std::vector<int>{1, 2} == std::vector<int>{1, 2, 3} )
  2732. with expansion:
  2733. !({ 1, 2 } == { 1, 2, 3 })
  2734. Tricky.tests.cpp:<line number>: PASSED:
  2735. CHECK_NOFAIL( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
  2736. with expansion:
  2737. { 1, 2 } == { 1, 2 }
  2738. Tricky.tests.cpp:<line number>: PASSED:
  2739. CHECKED_IF( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
  2740. with expansion:
  2741. { 1, 2 } == { 1, 2 }
  2742. Tricky.tests.cpp:<line number>: PASSED:
  2743. REQUIRE( true )
  2744. Tricky.tests.cpp:<line number>: PASSED:
  2745. CHECKED_ELSE( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
  2746. with expansion:
  2747. { 1, 2 } == { 1, 2 }
  2748. -------------------------------------------------------------------------------
  2749. Comparing function pointers
  2750. -------------------------------------------------------------------------------
  2751. Tricky.tests.cpp:<line number>
  2752. ...............................................................................
  2753. Tricky.tests.cpp:<line number>: PASSED:
  2754. REQUIRE( a )
  2755. with expansion:
  2756. 0x<hex digits>
  2757. Tricky.tests.cpp:<line number>: PASSED:
  2758. REQUIRE( a == &foo )
  2759. with expansion:
  2760. 0x<hex digits> == 0x<hex digits>
  2761. -------------------------------------------------------------------------------
  2762. Comparison ops
  2763. -------------------------------------------------------------------------------
  2764. RandomNumberGeneration.tests.cpp:<line number>
  2765. ...............................................................................
  2766. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  2767. REQUIRE( SimplePcg32{} == SimplePcg32{} )
  2768. with expansion:
  2769. {?} == {?}
  2770. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  2771. REQUIRE( SimplePcg32{ 0 } != SimplePcg32{} )
  2772. with expansion:
  2773. {?} != {?}
  2774. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  2775. REQUIRE_FALSE( SimplePcg32{ 1 } == SimplePcg32{ 2 } )
  2776. with expansion:
  2777. !({?} == {?})
  2778. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  2779. REQUIRE_FALSE( SimplePcg32{ 1 } != SimplePcg32{ 1 } )
  2780. with expansion:
  2781. !({?} != {?})
  2782. -------------------------------------------------------------------------------
  2783. Comparison with explicitly convertible types
  2784. -------------------------------------------------------------------------------
  2785. Approx.tests.cpp:<line number>
  2786. ...............................................................................
  2787. Approx.tests.cpp:<line number>: PASSED:
  2788. REQUIRE( td == Approx(10.0) )
  2789. with expansion:
  2790. StrongDoubleTypedef(10) == Approx( 10.0 )
  2791. Approx.tests.cpp:<line number>: PASSED:
  2792. REQUIRE( Approx(10.0) == td )
  2793. with expansion:
  2794. Approx( 10.0 ) == StrongDoubleTypedef(10)
  2795. Approx.tests.cpp:<line number>: PASSED:
  2796. REQUIRE( td != Approx(11.0) )
  2797. with expansion:
  2798. StrongDoubleTypedef(10) != Approx( 11.0 )
  2799. Approx.tests.cpp:<line number>: PASSED:
  2800. REQUIRE( Approx(11.0) != td )
  2801. with expansion:
  2802. Approx( 11.0 ) != StrongDoubleTypedef(10)
  2803. Approx.tests.cpp:<line number>: PASSED:
  2804. REQUIRE( td <= Approx(10.0) )
  2805. with expansion:
  2806. StrongDoubleTypedef(10) <= Approx( 10.0 )
  2807. Approx.tests.cpp:<line number>: PASSED:
  2808. REQUIRE( td <= Approx(11.0) )
  2809. with expansion:
  2810. StrongDoubleTypedef(10) <= Approx( 11.0 )
  2811. Approx.tests.cpp:<line number>: PASSED:
  2812. REQUIRE( Approx(10.0) <= td )
  2813. with expansion:
  2814. Approx( 10.0 ) <= StrongDoubleTypedef(10)
  2815. Approx.tests.cpp:<line number>: PASSED:
  2816. REQUIRE( Approx(9.0) <= td )
  2817. with expansion:
  2818. Approx( 9.0 ) <= StrongDoubleTypedef(10)
  2819. Approx.tests.cpp:<line number>: PASSED:
  2820. REQUIRE( td >= Approx(9.0) )
  2821. with expansion:
  2822. StrongDoubleTypedef(10) >= Approx( 9.0 )
  2823. Approx.tests.cpp:<line number>: PASSED:
  2824. REQUIRE( td >= Approx(td) )
  2825. with expansion:
  2826. StrongDoubleTypedef(10) >= Approx( 10.0 )
  2827. Approx.tests.cpp:<line number>: PASSED:
  2828. REQUIRE( Approx(td) >= td )
  2829. with expansion:
  2830. Approx( 10.0 ) >= StrongDoubleTypedef(10)
  2831. Approx.tests.cpp:<line number>: PASSED:
  2832. REQUIRE( Approx(11.0) >= td )
  2833. with expansion:
  2834. Approx( 11.0 ) >= StrongDoubleTypedef(10)
  2835. -------------------------------------------------------------------------------
  2836. Comparisons between ints where one side is computed
  2837. -------------------------------------------------------------------------------
  2838. Condition.tests.cpp:<line number>
  2839. ...............................................................................
  2840. Condition.tests.cpp:<line number>: PASSED:
  2841. CHECK( 54 == 6*9 )
  2842. with expansion:
  2843. 54 == 54
  2844. -------------------------------------------------------------------------------
  2845. Comparisons between unsigned ints and negative signed ints match c++ standard
  2846. behaviour
  2847. -------------------------------------------------------------------------------
  2848. Condition.tests.cpp:<line number>
  2849. ...............................................................................
  2850. Condition.tests.cpp:<line number>: PASSED:
  2851. CHECK( ( -1 > 2u ) )
  2852. with expansion:
  2853. true
  2854. Condition.tests.cpp:<line number>: PASSED:
  2855. CHECK( -1 > 2u )
  2856. with expansion:
  2857. -1 > 2
  2858. Condition.tests.cpp:<line number>: PASSED:
  2859. CHECK( ( 2u < -1 ) )
  2860. with expansion:
  2861. true
  2862. Condition.tests.cpp:<line number>: PASSED:
  2863. CHECK( 2u < -1 )
  2864. with expansion:
  2865. 2 < -1
  2866. Condition.tests.cpp:<line number>: PASSED:
  2867. CHECK( ( minInt > 2u ) )
  2868. with expansion:
  2869. true
  2870. Condition.tests.cpp:<line number>: PASSED:
  2871. CHECK( minInt > 2u )
  2872. with expansion:
  2873. -2147483648 > 2
  2874. -------------------------------------------------------------------------------
  2875. Comparisons with int literals don't warn when mixing signed/ unsigned
  2876. -------------------------------------------------------------------------------
  2877. Condition.tests.cpp:<line number>
  2878. ...............................................................................
  2879. Condition.tests.cpp:<line number>: PASSED:
  2880. REQUIRE( i == 1 )
  2881. with expansion:
  2882. 1 == 1
  2883. Condition.tests.cpp:<line number>: PASSED:
  2884. REQUIRE( ui == 2 )
  2885. with expansion:
  2886. 2 == 2
  2887. Condition.tests.cpp:<line number>: PASSED:
  2888. REQUIRE( l == 3 )
  2889. with expansion:
  2890. 3 == 3
  2891. Condition.tests.cpp:<line number>: PASSED:
  2892. REQUIRE( ul == 4 )
  2893. with expansion:
  2894. 4 == 4
  2895. Condition.tests.cpp:<line number>: PASSED:
  2896. REQUIRE( c == 5 )
  2897. with expansion:
  2898. 5 == 5
  2899. Condition.tests.cpp:<line number>: PASSED:
  2900. REQUIRE( uc == 6 )
  2901. with expansion:
  2902. 6 == 6
  2903. Condition.tests.cpp:<line number>: PASSED:
  2904. REQUIRE( 1 == i )
  2905. with expansion:
  2906. 1 == 1
  2907. Condition.tests.cpp:<line number>: PASSED:
  2908. REQUIRE( 2 == ui )
  2909. with expansion:
  2910. 2 == 2
  2911. Condition.tests.cpp:<line number>: PASSED:
  2912. REQUIRE( 3 == l )
  2913. with expansion:
  2914. 3 == 3
  2915. Condition.tests.cpp:<line number>: PASSED:
  2916. REQUIRE( 4 == ul )
  2917. with expansion:
  2918. 4 == 4
  2919. Condition.tests.cpp:<line number>: PASSED:
  2920. REQUIRE( 5 == c )
  2921. with expansion:
  2922. 5 == 5
  2923. Condition.tests.cpp:<line number>: PASSED:
  2924. REQUIRE( 6 == uc )
  2925. with expansion:
  2926. 6 == 6
  2927. Condition.tests.cpp:<line number>: PASSED:
  2928. REQUIRE( (std::numeric_limits<uint32_t>::max)() > ul )
  2929. with expansion:
  2930. 4294967295 (0x<hex digits>) > 4
  2931. -------------------------------------------------------------------------------
  2932. Composed generic matchers shortcircuit
  2933. MatchAllOf
  2934. -------------------------------------------------------------------------------
  2935. Matchers.tests.cpp:<line number>
  2936. ...............................................................................
  2937. Matchers.tests.cpp:<line number>: PASSED:
  2938. CHECK_FALSE( matcher.match( 1 ) )
  2939. with expansion:
  2940. !false
  2941. Matchers.tests.cpp:<line number>: PASSED:
  2942. REQUIRE( first.matchCalled )
  2943. with expansion:
  2944. true
  2945. Matchers.tests.cpp:<line number>: PASSED:
  2946. REQUIRE( !second.matchCalled )
  2947. with expansion:
  2948. true
  2949. -------------------------------------------------------------------------------
  2950. Composed generic matchers shortcircuit
  2951. MatchAnyOf
  2952. -------------------------------------------------------------------------------
  2953. Matchers.tests.cpp:<line number>
  2954. ...............................................................................
  2955. Matchers.tests.cpp:<line number>: PASSED:
  2956. CHECK( matcher.match( 1 ) )
  2957. with expansion:
  2958. true
  2959. Matchers.tests.cpp:<line number>: PASSED:
  2960. REQUIRE( first.matchCalled )
  2961. with expansion:
  2962. true
  2963. Matchers.tests.cpp:<line number>: PASSED:
  2964. REQUIRE( !second.matchCalled )
  2965. with expansion:
  2966. true
  2967. -------------------------------------------------------------------------------
  2968. Composed matchers shortcircuit
  2969. MatchAllOf
  2970. -------------------------------------------------------------------------------
  2971. Matchers.tests.cpp:<line number>
  2972. ...............................................................................
  2973. Matchers.tests.cpp:<line number>: PASSED:
  2974. CHECK_FALSE( matcher.match( 1 ) )
  2975. with expansion:
  2976. !false
  2977. Matchers.tests.cpp:<line number>: PASSED:
  2978. REQUIRE( first.matchCalled )
  2979. with expansion:
  2980. true
  2981. Matchers.tests.cpp:<line number>: PASSED:
  2982. REQUIRE( !second.matchCalled )
  2983. with expansion:
  2984. true
  2985. -------------------------------------------------------------------------------
  2986. Composed matchers shortcircuit
  2987. MatchAnyOf
  2988. -------------------------------------------------------------------------------
  2989. Matchers.tests.cpp:<line number>
  2990. ...............................................................................
  2991. Matchers.tests.cpp:<line number>: PASSED:
  2992. CHECK( matcher.match( 1 ) )
  2993. with expansion:
  2994. true
  2995. Matchers.tests.cpp:<line number>: PASSED:
  2996. REQUIRE( first.matchCalled )
  2997. with expansion:
  2998. true
  2999. Matchers.tests.cpp:<line number>: PASSED:
  3000. REQUIRE( !second.matchCalled )
  3001. with expansion:
  3002. true
  3003. -------------------------------------------------------------------------------
  3004. Contains string matcher
  3005. -------------------------------------------------------------------------------
  3006. Matchers.tests.cpp:<line number>
  3007. ...............................................................................
  3008. Matchers.tests.cpp:<line number>: FAILED:
  3009. CHECK_THAT( testStringForMatching(), ContainsSubstring( "not there", Catch::CaseSensitive::No ) )
  3010. with expansion:
  3011. "this string contains 'abc' as a substring" contains: "not there" (case
  3012. insensitive)
  3013. Matchers.tests.cpp:<line number>: FAILED:
  3014. CHECK_THAT( testStringForMatching(), ContainsSubstring( "STRING" ) )
  3015. with expansion:
  3016. "this string contains 'abc' as a substring" contains: "STRING"
  3017. -------------------------------------------------------------------------------
  3018. Copy and then generate a range
  3019. from var and iterators
  3020. -------------------------------------------------------------------------------
  3021. Generators.tests.cpp:<line number>
  3022. ...............................................................................
  3023. Generators.tests.cpp:<line number>: PASSED:
  3024. REQUIRE( elem % 2 == 1 )
  3025. with expansion:
  3026. 1 == 1
  3027. -------------------------------------------------------------------------------
  3028. Copy and then generate a range
  3029. from var and iterators
  3030. -------------------------------------------------------------------------------
  3031. Generators.tests.cpp:<line number>
  3032. ...............................................................................
  3033. Generators.tests.cpp:<line number>: PASSED:
  3034. REQUIRE( elem % 2 == 1 )
  3035. with expansion:
  3036. 1 == 1
  3037. -------------------------------------------------------------------------------
  3038. Copy and then generate a range
  3039. from var and iterators
  3040. -------------------------------------------------------------------------------
  3041. Generators.tests.cpp:<line number>
  3042. ...............................................................................
  3043. Generators.tests.cpp:<line number>: PASSED:
  3044. REQUIRE( elem % 2 == 1 )
  3045. with expansion:
  3046. 1 == 1
  3047. -------------------------------------------------------------------------------
  3048. Copy and then generate a range
  3049. from var and iterators
  3050. -------------------------------------------------------------------------------
  3051. Generators.tests.cpp:<line number>
  3052. ...............................................................................
  3053. Generators.tests.cpp:<line number>: PASSED:
  3054. REQUIRE( elem % 2 == 1 )
  3055. with expansion:
  3056. 1 == 1
  3057. -------------------------------------------------------------------------------
  3058. Copy and then generate a range
  3059. from var and iterators
  3060. -------------------------------------------------------------------------------
  3061. Generators.tests.cpp:<line number>
  3062. ...............................................................................
  3063. Generators.tests.cpp:<line number>: PASSED:
  3064. REQUIRE( elem % 2 == 1 )
  3065. with expansion:
  3066. 1 == 1
  3067. -------------------------------------------------------------------------------
  3068. Copy and then generate a range
  3069. from var and iterators
  3070. -------------------------------------------------------------------------------
  3071. Generators.tests.cpp:<line number>
  3072. ...............................................................................
  3073. Generators.tests.cpp:<line number>: PASSED:
  3074. REQUIRE( elem % 2 == 1 )
  3075. with expansion:
  3076. 1 == 1
  3077. -------------------------------------------------------------------------------
  3078. Copy and then generate a range
  3079. From a temporary container
  3080. -------------------------------------------------------------------------------
  3081. Generators.tests.cpp:<line number>
  3082. ...............................................................................
  3083. Generators.tests.cpp:<line number>: PASSED:
  3084. REQUIRE( elem % 2 == 1 )
  3085. with expansion:
  3086. 1 == 1
  3087. -------------------------------------------------------------------------------
  3088. Copy and then generate a range
  3089. From a temporary container
  3090. -------------------------------------------------------------------------------
  3091. Generators.tests.cpp:<line number>
  3092. ...............................................................................
  3093. Generators.tests.cpp:<line number>: PASSED:
  3094. REQUIRE( elem % 2 == 1 )
  3095. with expansion:
  3096. 1 == 1
  3097. -------------------------------------------------------------------------------
  3098. Copy and then generate a range
  3099. From a temporary container
  3100. -------------------------------------------------------------------------------
  3101. Generators.tests.cpp:<line number>
  3102. ...............................................................................
  3103. Generators.tests.cpp:<line number>: PASSED:
  3104. REQUIRE( elem % 2 == 1 )
  3105. with expansion:
  3106. 1 == 1
  3107. -------------------------------------------------------------------------------
  3108. Copy and then generate a range
  3109. From a temporary container
  3110. -------------------------------------------------------------------------------
  3111. Generators.tests.cpp:<line number>
  3112. ...............................................................................
  3113. Generators.tests.cpp:<line number>: PASSED:
  3114. REQUIRE( elem % 2 == 1 )
  3115. with expansion:
  3116. 1 == 1
  3117. -------------------------------------------------------------------------------
  3118. Copy and then generate a range
  3119. From a temporary container
  3120. -------------------------------------------------------------------------------
  3121. Generators.tests.cpp:<line number>
  3122. ...............................................................................
  3123. Generators.tests.cpp:<line number>: PASSED:
  3124. REQUIRE( elem % 2 == 1 )
  3125. with expansion:
  3126. 1 == 1
  3127. -------------------------------------------------------------------------------
  3128. Copy and then generate a range
  3129. From a temporary container
  3130. -------------------------------------------------------------------------------
  3131. Generators.tests.cpp:<line number>
  3132. ...............................................................................
  3133. Generators.tests.cpp:<line number>: PASSED:
  3134. REQUIRE( elem % 2 == 1 )
  3135. with expansion:
  3136. 1 == 1
  3137. -------------------------------------------------------------------------------
  3138. Copy and then generate a range
  3139. Final validation
  3140. -------------------------------------------------------------------------------
  3141. Generators.tests.cpp:<line number>
  3142. ...............................................................................
  3143. Generators.tests.cpp:<line number>: PASSED:
  3144. REQUIRE( call_count == 1 )
  3145. with expansion:
  3146. 1 == 1
  3147. Generators.tests.cpp:<line number>: PASSED:
  3148. REQUIRE( make_data().size() == test_count )
  3149. with expansion:
  3150. 6 == 6
  3151. -------------------------------------------------------------------------------
  3152. Cout stream properly declares it writes to stdout
  3153. -------------------------------------------------------------------------------
  3154. Stream.tests.cpp:<line number>
  3155. ...............................................................................
  3156. Stream.tests.cpp:<line number>: PASSED:
  3157. REQUIRE( Catch::makeStream( "-" )->isConsole() )
  3158. with expansion:
  3159. true
  3160. -------------------------------------------------------------------------------
  3161. Custom exceptions can be translated when testing for nothrow
  3162. -------------------------------------------------------------------------------
  3163. Exception.tests.cpp:<line number>
  3164. ...............................................................................
  3165. Exception.tests.cpp:<line number>: FAILED:
  3166. REQUIRE_NOTHROW( throwCustom() )
  3167. due to unexpected exception with message:
  3168. custom exception - not std
  3169. -------------------------------------------------------------------------------
  3170. Custom exceptions can be translated when testing for throwing as something else
  3171. -------------------------------------------------------------------------------
  3172. Exception.tests.cpp:<line number>
  3173. ...............................................................................
  3174. Exception.tests.cpp:<line number>: FAILED:
  3175. REQUIRE_THROWS_AS( throwCustom(), std::exception )
  3176. due to unexpected exception with message:
  3177. custom exception - not std
  3178. -------------------------------------------------------------------------------
  3179. Custom std-exceptions can be custom translated
  3180. -------------------------------------------------------------------------------
  3181. Exception.tests.cpp:<line number>
  3182. ...............................................................................
  3183. Exception.tests.cpp:<line number>: FAILED:
  3184. due to unexpected exception with message:
  3185. custom std exception
  3186. -------------------------------------------------------------------------------
  3187. Default scale is invisible to comparison
  3188. -------------------------------------------------------------------------------
  3189. Approx.tests.cpp:<line number>
  3190. ...............................................................................
  3191. Approx.tests.cpp:<line number>: PASSED:
  3192. REQUIRE( 101.000001 != Approx(100).epsilon(0.01) )
  3193. with expansion:
  3194. 101.000001 != Approx( 100.0 )
  3195. Approx.tests.cpp:<line number>: PASSED:
  3196. REQUIRE( std::pow(10, -5) != Approx(std::pow(10, -7)) )
  3197. with expansion:
  3198. 0.00001 != Approx( 0.0000001 )
  3199. -------------------------------------------------------------------------------
  3200. Directly creating an EnumInfo
  3201. -------------------------------------------------------------------------------
  3202. ToString.tests.cpp:<line number>
  3203. ...............................................................................
  3204. ToString.tests.cpp:<line number>: PASSED:
  3205. CHECK( enumInfo->lookup(0) == "Value1" )
  3206. with expansion:
  3207. Value1 == "Value1"
  3208. ToString.tests.cpp:<line number>: PASSED:
  3209. CHECK( enumInfo->lookup(1) == "Value2" )
  3210. with expansion:
  3211. Value2 == "Value2"
  3212. ToString.tests.cpp:<line number>: PASSED:
  3213. CHECK( enumInfo->lookup(3) == "{** unexpected enum value **}" )
  3214. with expansion:
  3215. {** unexpected enum value **}
  3216. ==
  3217. "{** unexpected enum value **}"
  3218. -------------------------------------------------------------------------------
  3219. Empty stream name opens cout stream
  3220. -------------------------------------------------------------------------------
  3221. Stream.tests.cpp:<line number>
  3222. ...............................................................................
  3223. Stream.tests.cpp:<line number>: PASSED:
  3224. REQUIRE( Catch::makeStream( "" )->isConsole() )
  3225. with expansion:
  3226. true
  3227. -------------------------------------------------------------------------------
  3228. Empty tag is not allowed
  3229. -------------------------------------------------------------------------------
  3230. Tag.tests.cpp:<line number>
  3231. ...............................................................................
  3232. Tag.tests.cpp:<line number>: PASSED:
  3233. REQUIRE_THROWS( Catch::TestCaseInfo( "", { "fake test name", "[]" }, dummySourceLineInfo ) )
  3234. -------------------------------------------------------------------------------
  3235. EndsWith string matcher
  3236. -------------------------------------------------------------------------------
  3237. Matchers.tests.cpp:<line number>
  3238. ...............................................................................
  3239. Matchers.tests.cpp:<line number>: FAILED:
  3240. CHECK_THAT( testStringForMatching(), EndsWith( "Substring" ) )
  3241. with expansion:
  3242. "this string contains 'abc' as a substring" ends with: "Substring"
  3243. Matchers.tests.cpp:<line number>: FAILED:
  3244. CHECK_THAT( testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) )
  3245. with expansion:
  3246. "this string contains 'abc' as a substring" ends with: "this" (case
  3247. insensitive)
  3248. -------------------------------------------------------------------------------
  3249. Enums can quickly have stringification enabled using REGISTER_ENUM
  3250. -------------------------------------------------------------------------------
  3251. EnumToString.tests.cpp:<line number>
  3252. ...............................................................................
  3253. EnumToString.tests.cpp:<line number>: PASSED:
  3254. REQUIRE( stringify( EnumClass3::Value1 ) == "Value1" )
  3255. with expansion:
  3256. "Value1" == "Value1"
  3257. EnumToString.tests.cpp:<line number>: PASSED:
  3258. REQUIRE( stringify( EnumClass3::Value2 ) == "Value2" )
  3259. with expansion:
  3260. "Value2" == "Value2"
  3261. EnumToString.tests.cpp:<line number>: PASSED:
  3262. REQUIRE( stringify( EnumClass3::Value3 ) == "Value3" )
  3263. with expansion:
  3264. "Value3" == "Value3"
  3265. EnumToString.tests.cpp:<line number>: PASSED:
  3266. REQUIRE( stringify( EnumClass3::Value4 ) == "{** unexpected enum value **}" )
  3267. with expansion:
  3268. "{** unexpected enum value **}"
  3269. ==
  3270. "{** unexpected enum value **}"
  3271. EnumToString.tests.cpp:<line number>: PASSED:
  3272. REQUIRE( stringify( ec3 ) == "Value2" )
  3273. with expansion:
  3274. "Value2" == "Value2"
  3275. -------------------------------------------------------------------------------
  3276. Enums in namespaces can quickly have stringification enabled using
  3277. REGISTER_ENUM
  3278. -------------------------------------------------------------------------------
  3279. EnumToString.tests.cpp:<line number>
  3280. ...............................................................................
  3281. EnumToString.tests.cpp:<line number>: PASSED:
  3282. REQUIRE( stringify( Bikeshed::Colours::Red ) == "Red" )
  3283. with expansion:
  3284. "Red" == "Red"
  3285. EnumToString.tests.cpp:<line number>: PASSED:
  3286. REQUIRE( stringify( Bikeshed::Colours::Blue ) == "Blue" )
  3287. with expansion:
  3288. "Blue" == "Blue"
  3289. -------------------------------------------------------------------------------
  3290. Epsilon only applies to Approx's value
  3291. -------------------------------------------------------------------------------
  3292. Approx.tests.cpp:<line number>
  3293. ...............................................................................
  3294. Approx.tests.cpp:<line number>: PASSED:
  3295. REQUIRE( 101.01 != Approx(100).epsilon(0.01) )
  3296. with expansion:
  3297. 101.01 != Approx( 100.0 )
  3298. -------------------------------------------------------------------------------
  3299. Equality checks that should fail
  3300. -------------------------------------------------------------------------------
  3301. Condition.tests.cpp:<line number>
  3302. ...............................................................................
  3303. Condition.tests.cpp:<line number>: FAILED:
  3304. CHECK( data.int_seven == 6 )
  3305. with expansion:
  3306. 7 == 6
  3307. Condition.tests.cpp:<line number>: FAILED:
  3308. CHECK( data.int_seven == 8 )
  3309. with expansion:
  3310. 7 == 8
  3311. Condition.tests.cpp:<line number>: FAILED:
  3312. CHECK( data.int_seven == 0 )
  3313. with expansion:
  3314. 7 == 0
  3315. Condition.tests.cpp:<line number>: FAILED:
  3316. CHECK( data.float_nine_point_one == Approx( 9.11f ) )
  3317. with expansion:
  3318. 9.1f == Approx( 9.1099996567 )
  3319. Condition.tests.cpp:<line number>: FAILED:
  3320. CHECK( data.float_nine_point_one == Approx( 9.0f ) )
  3321. with expansion:
  3322. 9.1f == Approx( 9.0 )
  3323. Condition.tests.cpp:<line number>: FAILED:
  3324. CHECK( data.float_nine_point_one == Approx( 1 ) )
  3325. with expansion:
  3326. 9.1f == Approx( 1.0 )
  3327. Condition.tests.cpp:<line number>: FAILED:
  3328. CHECK( data.float_nine_point_one == Approx( 0 ) )
  3329. with expansion:
  3330. 9.1f == Approx( 0.0 )
  3331. Condition.tests.cpp:<line number>: FAILED:
  3332. CHECK( data.double_pi == Approx( 3.1415 ) )
  3333. with expansion:
  3334. 3.1415926535 == Approx( 3.1415 )
  3335. Condition.tests.cpp:<line number>: FAILED:
  3336. CHECK( data.str_hello == "goodbye" )
  3337. with expansion:
  3338. "hello" == "goodbye"
  3339. Condition.tests.cpp:<line number>: FAILED:
  3340. CHECK( data.str_hello == "hell" )
  3341. with expansion:
  3342. "hello" == "hell"
  3343. Condition.tests.cpp:<line number>: FAILED:
  3344. CHECK( data.str_hello == "hello1" )
  3345. with expansion:
  3346. "hello" == "hello1"
  3347. Condition.tests.cpp:<line number>: FAILED:
  3348. CHECK( data.str_hello.size() == 6 )
  3349. with expansion:
  3350. 5 == 6
  3351. Condition.tests.cpp:<line number>: FAILED:
  3352. CHECK( x == Approx( 1.301 ) )
  3353. with expansion:
  3354. 1.3 == Approx( 1.301 )
  3355. -------------------------------------------------------------------------------
  3356. Equality checks that should succeed
  3357. -------------------------------------------------------------------------------
  3358. Condition.tests.cpp:<line number>
  3359. ...............................................................................
  3360. Condition.tests.cpp:<line number>: PASSED:
  3361. REQUIRE( data.int_seven == 7 )
  3362. with expansion:
  3363. 7 == 7
  3364. Condition.tests.cpp:<line number>: PASSED:
  3365. REQUIRE( data.float_nine_point_one == Approx( 9.1f ) )
  3366. with expansion:
  3367. 9.1f == Approx( 9.1000003815 )
  3368. Condition.tests.cpp:<line number>: PASSED:
  3369. REQUIRE( data.double_pi == Approx( 3.1415926535 ) )
  3370. with expansion:
  3371. 3.1415926535 == Approx( 3.1415926535 )
  3372. Condition.tests.cpp:<line number>: PASSED:
  3373. REQUIRE( data.str_hello == "hello" )
  3374. with expansion:
  3375. "hello" == "hello"
  3376. Condition.tests.cpp:<line number>: PASSED:
  3377. REQUIRE( "hello" == data.str_hello )
  3378. with expansion:
  3379. "hello" == "hello"
  3380. Condition.tests.cpp:<line number>: PASSED:
  3381. REQUIRE( data.str_hello.size() == 5 )
  3382. with expansion:
  3383. 5 == 5
  3384. Condition.tests.cpp:<line number>: PASSED:
  3385. REQUIRE( x == Approx( 1.3 ) )
  3386. with expansion:
  3387. 1.3 == Approx( 1.3 )
  3388. -------------------------------------------------------------------------------
  3389. Equals
  3390. -------------------------------------------------------------------------------
  3391. Matchers.tests.cpp:<line number>
  3392. ...............................................................................
  3393. Matchers.tests.cpp:<line number>: PASSED:
  3394. CHECK_THAT( testStringForMatching(), Equals( "this string contains 'abc' as a substring" ) )
  3395. with expansion:
  3396. "this string contains 'abc' as a substring" equals: "this string contains
  3397. 'abc' as a substring"
  3398. Matchers.tests.cpp:<line number>: PASSED:
  3399. CHECK_THAT( testStringForMatching(), Equals( "this string contains 'ABC' as a substring", Catch::CaseSensitive::No ) )
  3400. with expansion:
  3401. "this string contains 'abc' as a substring" equals: "this string contains
  3402. 'abc' as a substring" (case insensitive)
  3403. -------------------------------------------------------------------------------
  3404. Equals string matcher
  3405. -------------------------------------------------------------------------------
  3406. Matchers.tests.cpp:<line number>
  3407. ...............................................................................
  3408. Matchers.tests.cpp:<line number>: FAILED:
  3409. CHECK_THAT( testStringForMatching(), Equals( "this string contains 'ABC' as a substring" ) )
  3410. with expansion:
  3411. "this string contains 'abc' as a substring" equals: "this string contains
  3412. 'ABC' as a substring"
  3413. Matchers.tests.cpp:<line number>: FAILED:
  3414. CHECK_THAT( testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) )
  3415. with expansion:
  3416. "this string contains 'abc' as a substring" equals: "something else" (case
  3417. insensitive)
  3418. -------------------------------------------------------------------------------
  3419. Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified
  3420. -------------------------------------------------------------------------------
  3421. ToStringGeneral.tests.cpp:<line number>
  3422. ...............................................................................
  3423. ToStringGeneral.tests.cpp:<line number>: PASSED:
  3424. REQUIRE( ::Catch::Detail::stringify(WhatException{}) == "This exception has overridden what() method" )
  3425. with expansion:
  3426. "This exception has overridden what() method"
  3427. ==
  3428. "This exception has overridden what() method"
  3429. ToStringGeneral.tests.cpp:<line number>: PASSED:
  3430. REQUIRE( ::Catch::Detail::stringify(OperatorException{}) == "OperatorException" )
  3431. with expansion:
  3432. "OperatorException" == "OperatorException"
  3433. ToStringGeneral.tests.cpp:<line number>: PASSED:
  3434. REQUIRE( ::Catch::Detail::stringify(StringMakerException{}) == "StringMakerException" )
  3435. with expansion:
  3436. "StringMakerException"
  3437. ==
  3438. "StringMakerException"
  3439. -------------------------------------------------------------------------------
  3440. Exception matchers that fail
  3441. No exception
  3442. -------------------------------------------------------------------------------
  3443. Matchers.tests.cpp:<line number>
  3444. ...............................................................................
  3445. Matchers.tests.cpp:<line number>: FAILED:
  3446. CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } )
  3447. because no exception was thrown where one was expected:
  3448. Matchers.tests.cpp:<line number>: FAILED:
  3449. REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } )
  3450. because no exception was thrown where one was expected:
  3451. -------------------------------------------------------------------------------
  3452. Exception matchers that fail
  3453. Type mismatch
  3454. -------------------------------------------------------------------------------
  3455. Matchers.tests.cpp:<line number>
  3456. ...............................................................................
  3457. Matchers.tests.cpp:<line number>: FAILED:
  3458. CHECK_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } )
  3459. due to unexpected exception with message:
  3460. Unknown exception
  3461. Matchers.tests.cpp:<line number>: FAILED:
  3462. REQUIRE_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } )
  3463. due to unexpected exception with message:
  3464. Unknown exception
  3465. -------------------------------------------------------------------------------
  3466. Exception matchers that fail
  3467. Contents are wrong
  3468. -------------------------------------------------------------------------------
  3469. Matchers.tests.cpp:<line number>
  3470. ...............................................................................
  3471. Matchers.tests.cpp:<line number>: FAILED:
  3472. CHECK_THROWS_MATCHES( throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 } )
  3473. with expansion:
  3474. SpecialException::what special exception has value of 1
  3475. Matchers.tests.cpp:<line number>: FAILED:
  3476. REQUIRE_THROWS_MATCHES( throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 } )
  3477. with expansion:
  3478. SpecialException::what special exception has value of 1
  3479. -------------------------------------------------------------------------------
  3480. Exception matchers that succeed
  3481. -------------------------------------------------------------------------------
  3482. Matchers.tests.cpp:<line number>
  3483. ...............................................................................
  3484. Matchers.tests.cpp:<line number>: PASSED:
  3485. CHECK_THROWS_MATCHES( throwsSpecialException( 1 ), SpecialException, ExceptionMatcher{ 1 } )
  3486. with expansion:
  3487. SpecialException::what special exception has value of 1
  3488. Matchers.tests.cpp:<line number>: PASSED:
  3489. REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, ExceptionMatcher{ 2 } )
  3490. with expansion:
  3491. SpecialException::what special exception has value of 2
  3492. -------------------------------------------------------------------------------
  3493. Exception messages can be tested for
  3494. exact match
  3495. -------------------------------------------------------------------------------
  3496. Exception.tests.cpp:<line number>
  3497. ...............................................................................
  3498. Exception.tests.cpp:<line number>: PASSED:
  3499. REQUIRE_THROWS_WITH( thisThrows(), "expected exception" )
  3500. with expansion:
  3501. "expected exception" equals: "expected exception"
  3502. -------------------------------------------------------------------------------
  3503. Exception messages can be tested for
  3504. different case
  3505. -------------------------------------------------------------------------------
  3506. Exception.tests.cpp:<line number>
  3507. ...............................................................................
  3508. Exception.tests.cpp:<line number>: PASSED:
  3509. REQUIRE_THROWS_WITH( thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) )
  3510. with expansion:
  3511. "expected exception" equals: "expected exception" (case insensitive)
  3512. -------------------------------------------------------------------------------
  3513. Exception messages can be tested for
  3514. wildcarded
  3515. -------------------------------------------------------------------------------
  3516. Exception.tests.cpp:<line number>
  3517. ...............................................................................
  3518. Exception.tests.cpp:<line number>: PASSED:
  3519. REQUIRE_THROWS_WITH( thisThrows(), StartsWith( "expected" ) )
  3520. with expansion:
  3521. "expected exception" starts with: "expected"
  3522. Exception.tests.cpp:<line number>: PASSED:
  3523. REQUIRE_THROWS_WITH( thisThrows(), EndsWith( "exception" ) )
  3524. with expansion:
  3525. "expected exception" ends with: "exception"
  3526. Exception.tests.cpp:<line number>: PASSED:
  3527. REQUIRE_THROWS_WITH( thisThrows(), ContainsSubstring( "except" ) )
  3528. with expansion:
  3529. "expected exception" contains: "except"
  3530. Exception.tests.cpp:<line number>: PASSED:
  3531. REQUIRE_THROWS_WITH( thisThrows(), ContainsSubstring( "exCept", Catch::CaseSensitive::No ) )
  3532. with expansion:
  3533. "expected exception" contains: "except" (case insensitive)
  3534. -------------------------------------------------------------------------------
  3535. Exceptions matchers
  3536. -------------------------------------------------------------------------------
  3537. Matchers.tests.cpp:<line number>
  3538. ...............................................................................
  3539. Matchers.tests.cpp:<line number>: PASSED:
  3540. REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, Message( "DerivedException::what" ) )
  3541. with expansion:
  3542. DerivedException::what exception message matches "DerivedException::what"
  3543. Matchers.tests.cpp:<line number>: PASSED:
  3544. REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, !Message( "derivedexception::what" ) )
  3545. with expansion:
  3546. DerivedException::what not exception message matches "derivedexception::what"
  3547. Matchers.tests.cpp:<line number>: PASSED:
  3548. REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, !Message( "DerivedException::what" ) )
  3549. with expansion:
  3550. SpecialException::what not exception message matches "DerivedException::what"
  3551. Matchers.tests.cpp:<line number>: PASSED:
  3552. REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, Message( "SpecialException::what" ) )
  3553. with expansion:
  3554. SpecialException::what exception message matches "SpecialException::what"
  3555. -------------------------------------------------------------------------------
  3556. Expected exceptions that don't throw or unexpected exceptions fail the test
  3557. -------------------------------------------------------------------------------
  3558. Exception.tests.cpp:<line number>
  3559. ...............................................................................
  3560. Exception.tests.cpp:<line number>: FAILED:
  3561. CHECK_THROWS_AS( thisThrows(), std::string )
  3562. due to unexpected exception with message:
  3563. expected exception
  3564. Exception.tests.cpp:<line number>: FAILED:
  3565. CHECK_THROWS_AS( thisDoesntThrow(), std::domain_error )
  3566. because no exception was thrown where one was expected:
  3567. Exception.tests.cpp:<line number>: FAILED:
  3568. CHECK_NOTHROW( thisThrows() )
  3569. due to unexpected exception with message:
  3570. expected exception
  3571. -------------------------------------------------------------------------------
  3572. FAIL aborts the test
  3573. -------------------------------------------------------------------------------
  3574. Message.tests.cpp:<line number>
  3575. ...............................................................................
  3576. Message.tests.cpp:<line number>: FAILED:
  3577. explicitly with message:
  3578. This is a failure
  3579. -------------------------------------------------------------------------------
  3580. FAIL does not require an argument
  3581. -------------------------------------------------------------------------------
  3582. Message.tests.cpp:<line number>
  3583. ...............................................................................
  3584. Message.tests.cpp:<line number>: FAILED:
  3585. -------------------------------------------------------------------------------
  3586. FAIL_CHECK does not abort the test
  3587. -------------------------------------------------------------------------------
  3588. Message.tests.cpp:<line number>
  3589. ...............................................................................
  3590. Message.tests.cpp:<line number>: FAILED:
  3591. explicitly with message:
  3592. This is a failure
  3593. Message.tests.cpp:<line number>: warning:
  3594. This message appears in the output
  3595. -------------------------------------------------------------------------------
  3596. Factorials are computed
  3597. -------------------------------------------------------------------------------
  3598. Misc.tests.cpp:<line number>
  3599. ...............................................................................
  3600. Misc.tests.cpp:<line number>: PASSED:
  3601. REQUIRE( Factorial(0) == 1 )
  3602. with expansion:
  3603. 1 == 1
  3604. Misc.tests.cpp:<line number>: PASSED:
  3605. REQUIRE( Factorial(1) == 1 )
  3606. with expansion:
  3607. 1 == 1
  3608. Misc.tests.cpp:<line number>: PASSED:
  3609. REQUIRE( Factorial(2) == 2 )
  3610. with expansion:
  3611. 2 == 2
  3612. Misc.tests.cpp:<line number>: PASSED:
  3613. REQUIRE( Factorial(3) == 6 )
  3614. with expansion:
  3615. 6 == 6
  3616. Misc.tests.cpp:<line number>: PASSED:
  3617. REQUIRE( Factorial(10) == 3628800 )
  3618. with expansion:
  3619. 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
  3620. -------------------------------------------------------------------------------
  3621. Floating point matchers: double
  3622. Relative
  3623. -------------------------------------------------------------------------------
  3624. Matchers.tests.cpp:<line number>
  3625. ...............................................................................
  3626. Matchers.tests.cpp:<line number>: PASSED:
  3627. REQUIRE_THAT( 10., WithinRel( 11.1, 0.1 ) )
  3628. with expansion:
  3629. 10.0 and 11.1 are within 10% of each other
  3630. Matchers.tests.cpp:<line number>: PASSED:
  3631. REQUIRE_THAT( 10., !WithinRel( 11.2, 0.1 ) )
  3632. with expansion:
  3633. 10.0 not and 11.2 are within 10% of each other
  3634. Matchers.tests.cpp:<line number>: PASSED:
  3635. REQUIRE_THAT( 1., !WithinRel( 0., 0.99 ) )
  3636. with expansion:
  3637. 1.0 not and 0 are within 99% of each other
  3638. Matchers.tests.cpp:<line number>: PASSED:
  3639. REQUIRE_THAT( -0., WithinRel( 0. ) )
  3640. with expansion:
  3641. -0.0 and 0 are within 2.22045e-12% of each other
  3642. -------------------------------------------------------------------------------
  3643. Floating point matchers: double
  3644. Relative
  3645. Some subnormal values
  3646. -------------------------------------------------------------------------------
  3647. Matchers.tests.cpp:<line number>
  3648. ...............................................................................
  3649. Matchers.tests.cpp:<line number>: PASSED:
  3650. REQUIRE_THAT( v1, WithinRel( v2 ) )
  3651. with expansion:
  3652. 0.0 and 2.22507e-308 are within 2.22045e-12% of each other
  3653. -------------------------------------------------------------------------------
  3654. Floating point matchers: double
  3655. Margin
  3656. -------------------------------------------------------------------------------
  3657. Matchers.tests.cpp:<line number>
  3658. ...............................................................................
  3659. Matchers.tests.cpp:<line number>: PASSED:
  3660. REQUIRE_THAT( 1., WithinAbs( 1., 0 ) )
  3661. with expansion:
  3662. 1.0 is within 0.0 of 1.0
  3663. Matchers.tests.cpp:<line number>: PASSED:
  3664. REQUIRE_THAT( 0., WithinAbs( 1., 1 ) )
  3665. with expansion:
  3666. 0.0 is within 1.0 of 1.0
  3667. Matchers.tests.cpp:<line number>: PASSED:
  3668. REQUIRE_THAT( 0., !WithinAbs( 1., 0.99 ) )
  3669. with expansion:
  3670. 0.0 not is within 0.99 of 1.0
  3671. Matchers.tests.cpp:<line number>: PASSED:
  3672. REQUIRE_THAT( 0., !WithinAbs( 1., 0.99 ) )
  3673. with expansion:
  3674. 0.0 not is within 0.99 of 1.0
  3675. Matchers.tests.cpp:<line number>: PASSED:
  3676. REQUIRE_THAT( 11., !WithinAbs( 10., 0.5 ) )
  3677. with expansion:
  3678. 11.0 not is within 0.5 of 10.0
  3679. Matchers.tests.cpp:<line number>: PASSED:
  3680. REQUIRE_THAT( 10., !WithinAbs( 11., 0.5 ) )
  3681. with expansion:
  3682. 10.0 not is within 0.5 of 11.0
  3683. Matchers.tests.cpp:<line number>: PASSED:
  3684. REQUIRE_THAT( -10., WithinAbs( -10., 0.5 ) )
  3685. with expansion:
  3686. -10.0 is within 0.5 of -10.0
  3687. Matchers.tests.cpp:<line number>: PASSED:
  3688. REQUIRE_THAT( -10., WithinAbs( -9.6, 0.5 ) )
  3689. with expansion:
  3690. -10.0 is within 0.5 of -9.6
  3691. -------------------------------------------------------------------------------
  3692. Floating point matchers: double
  3693. ULPs
  3694. -------------------------------------------------------------------------------
  3695. Matchers.tests.cpp:<line number>
  3696. ...............................................................................
  3697. Matchers.tests.cpp:<line number>: PASSED:
  3698. REQUIRE_THAT( 1., WithinULP( 1., 0 ) )
  3699. with expansion:
  3700. 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.
  3701. 0000000000000000e+00])
  3702. Matchers.tests.cpp:<line number>: PASSED:
  3703. REQUIRE_THAT( nextafter( 1., 2. ), WithinULP( 1., 1 ) )
  3704. with expansion:
  3705. 1.0 is within 1 ULPs of 1.0000000000000000e+00 ([9.9999999999999989e-01, 1.
  3706. 0000000000000002e+00])
  3707. Matchers.tests.cpp:<line number>: PASSED:
  3708. REQUIRE_THAT( 0., WithinULP( nextafter( 0., 1. ), 1 ) )
  3709. with expansion:
  3710. 0.0 is within 1 ULPs of 4.9406564584124654e-324 ([0.0000000000000000e+00, 9.
  3711. 8813129168249309e-324])
  3712. Matchers.tests.cpp:<line number>: PASSED:
  3713. REQUIRE_THAT( 1., WithinULP( nextafter( 1., 0. ), 1 ) )
  3714. with expansion:
  3715. 1.0 is within 1 ULPs of 9.9999999999999989e-01 ([9.9999999999999978e-01, 1.
  3716. 0000000000000000e+00])
  3717. Matchers.tests.cpp:<line number>: PASSED:
  3718. REQUIRE_THAT( 1., !WithinULP( nextafter( 1., 2. ), 0 ) )
  3719. with expansion:
  3720. 1.0 not is within 0 ULPs of 1.0000000000000002e+00 ([1.0000000000000002e+00,
  3721. 1.0000000000000002e+00])
  3722. Matchers.tests.cpp:<line number>: PASSED:
  3723. REQUIRE_THAT( 1., WithinULP( 1., 0 ) )
  3724. with expansion:
  3725. 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.
  3726. 0000000000000000e+00])
  3727. Matchers.tests.cpp:<line number>: PASSED:
  3728. REQUIRE_THAT( -0., WithinULP( 0., 0 ) )
  3729. with expansion:
  3730. -0.0 is within 0 ULPs of 0.0000000000000000e+00 ([0.0000000000000000e+00, 0.
  3731. 0000000000000000e+00])
  3732. -------------------------------------------------------------------------------
  3733. Floating point matchers: double
  3734. Composed
  3735. -------------------------------------------------------------------------------
  3736. Matchers.tests.cpp:<line number>
  3737. ...............................................................................
  3738. Matchers.tests.cpp:<line number>: PASSED:
  3739. REQUIRE_THAT( 1., WithinAbs( 1., 0.5 ) || WithinULP( 2., 1 ) )
  3740. with expansion:
  3741. 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0000000000000000e+00 ([1.
  3742. 9999999999999998e+00, 2.0000000000000004e+00]) )
  3743. Matchers.tests.cpp:<line number>: PASSED:
  3744. REQUIRE_THAT( 1., WithinAbs( 2., 0.5 ) || WithinULP( 1., 0 ) )
  3745. with expansion:
  3746. 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0000000000000000e+00 ([1.
  3747. 0000000000000000e+00, 1.0000000000000000e+00]) )
  3748. Matchers.tests.cpp:<line number>: PASSED:
  3749. REQUIRE_THAT( 0.0001, WithinAbs( 0., 0.001 ) || WithinRel( 0., 0.1 ) )
  3750. with expansion:
  3751. 0.0001 ( is within 0.001 of 0.0 or and 0 are within 10% of each other )
  3752. -------------------------------------------------------------------------------
  3753. Floating point matchers: double
  3754. Constructor validation
  3755. -------------------------------------------------------------------------------
  3756. Matchers.tests.cpp:<line number>
  3757. ...............................................................................
  3758. Matchers.tests.cpp:<line number>: PASSED:
  3759. REQUIRE_NOTHROW( WithinAbs( 1., 0. ) )
  3760. Matchers.tests.cpp:<line number>: PASSED:
  3761. REQUIRE_THROWS_AS( WithinAbs( 1., -1. ), std::domain_error )
  3762. Matchers.tests.cpp:<line number>: PASSED:
  3763. REQUIRE_NOTHROW( WithinULP( 1., 0 ) )
  3764. Matchers.tests.cpp:<line number>: PASSED:
  3765. REQUIRE_NOTHROW( WithinRel( 1., 0. ) )
  3766. Matchers.tests.cpp:<line number>: PASSED:
  3767. REQUIRE_THROWS_AS( WithinRel( 1., -0.2 ), std::domain_error )
  3768. Matchers.tests.cpp:<line number>: PASSED:
  3769. REQUIRE_THROWS_AS( WithinRel( 1., 1. ), std::domain_error )
  3770. -------------------------------------------------------------------------------
  3771. Floating point matchers: float
  3772. Relative
  3773. -------------------------------------------------------------------------------
  3774. Matchers.tests.cpp:<line number>
  3775. ...............................................................................
  3776. Matchers.tests.cpp:<line number>: PASSED:
  3777. REQUIRE_THAT( 10.f, WithinRel( 11.1f, 0.1f ) )
  3778. with expansion:
  3779. 10.0f and 11.1 are within 10% of each other
  3780. Matchers.tests.cpp:<line number>: PASSED:
  3781. REQUIRE_THAT( 10.f, !WithinRel( 11.2f, 0.1f ) )
  3782. with expansion:
  3783. 10.0f not and 11.2 are within 10% of each other
  3784. Matchers.tests.cpp:<line number>: PASSED:
  3785. REQUIRE_THAT( 1.f, !WithinRel( 0.f, 0.99f ) )
  3786. with expansion:
  3787. 1.0f not and 0 are within 99% of each other
  3788. Matchers.tests.cpp:<line number>: PASSED:
  3789. REQUIRE_THAT( -0.f, WithinRel( 0.f ) )
  3790. with expansion:
  3791. -0.0f and 0 are within 0.00119209% of each other
  3792. -------------------------------------------------------------------------------
  3793. Floating point matchers: float
  3794. Relative
  3795. Some subnormal values
  3796. -------------------------------------------------------------------------------
  3797. Matchers.tests.cpp:<line number>
  3798. ...............................................................................
  3799. Matchers.tests.cpp:<line number>: PASSED:
  3800. REQUIRE_THAT( v1, WithinRel( v2 ) )
  3801. with expansion:
  3802. 0.0f and 1.17549e-38 are within 0.00119209% of each other
  3803. -------------------------------------------------------------------------------
  3804. Floating point matchers: float
  3805. Margin
  3806. -------------------------------------------------------------------------------
  3807. Matchers.tests.cpp:<line number>
  3808. ...............................................................................
  3809. Matchers.tests.cpp:<line number>: PASSED:
  3810. REQUIRE_THAT( 1.f, WithinAbs( 1.f, 0 ) )
  3811. with expansion:
  3812. 1.0f is within 0.0 of 1.0
  3813. Matchers.tests.cpp:<line number>: PASSED:
  3814. REQUIRE_THAT( 0.f, WithinAbs( 1.f, 1 ) )
  3815. with expansion:
  3816. 0.0f is within 1.0 of 1.0
  3817. Matchers.tests.cpp:<line number>: PASSED:
  3818. REQUIRE_THAT( 0.f, !WithinAbs( 1.f, 0.99f ) )
  3819. with expansion:
  3820. 0.0f not is within 0.9900000095 of 1.0
  3821. Matchers.tests.cpp:<line number>: PASSED:
  3822. REQUIRE_THAT( 0.f, !WithinAbs( 1.f, 0.99f ) )
  3823. with expansion:
  3824. 0.0f not is within 0.9900000095 of 1.0
  3825. Matchers.tests.cpp:<line number>: PASSED:
  3826. REQUIRE_THAT( 0.f, WithinAbs( -0.f, 0 ) )
  3827. with expansion:
  3828. 0.0f is within 0.0 of -0.0
  3829. Matchers.tests.cpp:<line number>: PASSED:
  3830. REQUIRE_THAT( 11.f, !WithinAbs( 10.f, 0.5f ) )
  3831. with expansion:
  3832. 11.0f not is within 0.5 of 10.0
  3833. Matchers.tests.cpp:<line number>: PASSED:
  3834. REQUIRE_THAT( 10.f, !WithinAbs( 11.f, 0.5f ) )
  3835. with expansion:
  3836. 10.0f not is within 0.5 of 11.0
  3837. Matchers.tests.cpp:<line number>: PASSED:
  3838. REQUIRE_THAT( -10.f, WithinAbs( -10.f, 0.5f ) )
  3839. with expansion:
  3840. -10.0f is within 0.5 of -10.0
  3841. Matchers.tests.cpp:<line number>: PASSED:
  3842. REQUIRE_THAT( -10.f, WithinAbs( -9.6f, 0.5f ) )
  3843. with expansion:
  3844. -10.0f is within 0.5 of -9.6000003815
  3845. -------------------------------------------------------------------------------
  3846. Floating point matchers: float
  3847. ULPs
  3848. -------------------------------------------------------------------------------
  3849. Matchers.tests.cpp:<line number>
  3850. ...............................................................................
  3851. Matchers.tests.cpp:<line number>: PASSED:
  3852. REQUIRE_THAT( 1.f, WithinULP( 1.f, 0 ) )
  3853. with expansion:
  3854. 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
  3855. Matchers.tests.cpp:<line number>: PASSED:
  3856. REQUIRE_THAT( -1.f, WithinULP( -1.f, 0 ) )
  3857. with expansion:
  3858. -1.0f is within 0 ULPs of -1.00000000e+00f ([-1.00000000e+00, -1.00000000e+
  3859. 00])
  3860. Matchers.tests.cpp:<line number>: PASSED:
  3861. REQUIRE_THAT( nextafter( 1.f, 2.f ), WithinULP( 1.f, 1 ) )
  3862. with expansion:
  3863. 1.0f is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00])
  3864. Matchers.tests.cpp:<line number>: PASSED:
  3865. REQUIRE_THAT( 0.f, WithinULP( nextafter( 0.f, 1.f ), 1 ) )
  3866. with expansion:
  3867. 0.0f is within 1 ULPs of 1.40129846e-45f ([0.00000000e+00, 2.80259693e-45])
  3868. Matchers.tests.cpp:<line number>: PASSED:
  3869. REQUIRE_THAT( 1.f, WithinULP( nextafter( 1.f, 0.f ), 1 ) )
  3870. with expansion:
  3871. 1.0f is within 1 ULPs of 9.99999940e-01f ([9.99999881e-01, 1.00000000e+00])
  3872. Matchers.tests.cpp:<line number>: PASSED:
  3873. REQUIRE_THAT( 1.f, !WithinULP( nextafter( 1.f, 2.f ), 0 ) )
  3874. with expansion:
  3875. 1.0f not is within 0 ULPs of 1.00000012e+00f ([1.00000012e+00, 1.00000012e+
  3876. 00])
  3877. Matchers.tests.cpp:<line number>: PASSED:
  3878. REQUIRE_THAT( 1.f, WithinULP( 1.f, 0 ) )
  3879. with expansion:
  3880. 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
  3881. Matchers.tests.cpp:<line number>: PASSED:
  3882. REQUIRE_THAT( -0.f, WithinULP( 0.f, 0 ) )
  3883. with expansion:
  3884. -0.0f is within 0 ULPs of 0.00000000e+00f ([0.00000000e+00, 0.00000000e+00])
  3885. -------------------------------------------------------------------------------
  3886. Floating point matchers: float
  3887. Composed
  3888. -------------------------------------------------------------------------------
  3889. Matchers.tests.cpp:<line number>
  3890. ...............................................................................
  3891. Matchers.tests.cpp:<line number>: PASSED:
  3892. REQUIRE_THAT( 1.f, WithinAbs( 1.f, 0.5 ) || WithinULP( 1.f, 1 ) )
  3893. with expansion:
  3894. 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.00000000e+00f ([9.
  3895. 99999940e-01, 1.00000012e+00]) )
  3896. Matchers.tests.cpp:<line number>: PASSED:
  3897. REQUIRE_THAT( 1.f, WithinAbs( 2.f, 0.5 ) || WithinULP( 1.f, 0 ) )
  3898. with expansion:
  3899. 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.00000000e+00f ([1.
  3900. 00000000e+00, 1.00000000e+00]) )
  3901. Matchers.tests.cpp:<line number>: PASSED:
  3902. REQUIRE_THAT( 0.0001f, WithinAbs( 0.f, 0.001f ) || WithinRel( 0.f, 0.1f ) )
  3903. with expansion:
  3904. 0.0001f ( is within 0.001 of 0.0 or and 0 are within 10% of each other )
  3905. -------------------------------------------------------------------------------
  3906. Floating point matchers: float
  3907. Constructor validation
  3908. -------------------------------------------------------------------------------
  3909. Matchers.tests.cpp:<line number>
  3910. ...............................................................................
  3911. Matchers.tests.cpp:<line number>: PASSED:
  3912. REQUIRE_NOTHROW( WithinAbs( 1.f, 0.f ) )
  3913. Matchers.tests.cpp:<line number>: PASSED:
  3914. REQUIRE_THROWS_AS( WithinAbs( 1.f, -1.f ), std::domain_error )
  3915. Matchers.tests.cpp:<line number>: PASSED:
  3916. REQUIRE_NOTHROW( WithinULP( 1.f, 0 ) )
  3917. Matchers.tests.cpp:<line number>: PASSED:
  3918. REQUIRE_THROWS_AS( WithinULP( 1.f, static_cast<uint64_t>( -1 ) ), std::domain_error )
  3919. Matchers.tests.cpp:<line number>: PASSED:
  3920. REQUIRE_NOTHROW( WithinRel( 1.f, 0.f ) )
  3921. Matchers.tests.cpp:<line number>: PASSED:
  3922. REQUIRE_THROWS_AS( WithinRel( 1.f, -0.2f ), std::domain_error )
  3923. Matchers.tests.cpp:<line number>: PASSED:
  3924. REQUIRE_THROWS_AS( WithinRel( 1.f, 1.f ), std::domain_error )
  3925. -------------------------------------------------------------------------------
  3926. Generators -- adapters
  3927. Filtering by predicate
  3928. Basic usage
  3929. -------------------------------------------------------------------------------
  3930. Generators.tests.cpp:<line number>
  3931. ...............................................................................
  3932. Generators.tests.cpp:<line number>: PASSED:
  3933. REQUIRE( i % 2 == 0 )
  3934. with expansion:
  3935. 0 == 0
  3936. -------------------------------------------------------------------------------
  3937. Generators -- adapters
  3938. Filtering by predicate
  3939. Basic usage
  3940. -------------------------------------------------------------------------------
  3941. Generators.tests.cpp:<line number>
  3942. ...............................................................................
  3943. Generators.tests.cpp:<line number>: PASSED:
  3944. REQUIRE( i % 2 == 0 )
  3945. with expansion:
  3946. 0 == 0
  3947. -------------------------------------------------------------------------------
  3948. Generators -- adapters
  3949. Filtering by predicate
  3950. Basic usage
  3951. -------------------------------------------------------------------------------
  3952. Generators.tests.cpp:<line number>
  3953. ...............................................................................
  3954. Generators.tests.cpp:<line number>: PASSED:
  3955. REQUIRE( i % 2 == 0 )
  3956. with expansion:
  3957. 0 == 0
  3958. -------------------------------------------------------------------------------
  3959. Generators -- adapters
  3960. Filtering by predicate
  3961. Throws if there are no matching values
  3962. -------------------------------------------------------------------------------
  3963. Generators.tests.cpp:<line number>
  3964. ...............................................................................
  3965. Generators.tests.cpp:<line number>: PASSED:
  3966. REQUIRE_THROWS_AS( filter([] (int) {return false; }, value(1)), Catch::GeneratorException )
  3967. -------------------------------------------------------------------------------
  3968. Generators -- adapters
  3969. Shortening a range
  3970. -------------------------------------------------------------------------------
  3971. Generators.tests.cpp:<line number>
  3972. ...............................................................................
  3973. Generators.tests.cpp:<line number>: PASSED:
  3974. REQUIRE( i < 4 )
  3975. with expansion:
  3976. 1 < 4
  3977. -------------------------------------------------------------------------------
  3978. Generators -- adapters
  3979. Shortening a range
  3980. -------------------------------------------------------------------------------
  3981. Generators.tests.cpp:<line number>
  3982. ...............................................................................
  3983. Generators.tests.cpp:<line number>: PASSED:
  3984. REQUIRE( i < 4 )
  3985. with expansion:
  3986. 2 < 4
  3987. -------------------------------------------------------------------------------
  3988. Generators -- adapters
  3989. Shortening a range
  3990. -------------------------------------------------------------------------------
  3991. Generators.tests.cpp:<line number>
  3992. ...............................................................................
  3993. Generators.tests.cpp:<line number>: PASSED:
  3994. REQUIRE( i < 4 )
  3995. with expansion:
  3996. 3 < 4
  3997. -------------------------------------------------------------------------------
  3998. Generators -- adapters
  3999. Transforming elements
  4000. Same type
  4001. -------------------------------------------------------------------------------
  4002. Generators.tests.cpp:<line number>
  4003. ...............................................................................
  4004. Generators.tests.cpp:<line number>: PASSED:
  4005. REQUIRE( i % 2 == 0 )
  4006. with expansion:
  4007. 0 == 0
  4008. -------------------------------------------------------------------------------
  4009. Generators -- adapters
  4010. Transforming elements
  4011. Same type
  4012. -------------------------------------------------------------------------------
  4013. Generators.tests.cpp:<line number>
  4014. ...............................................................................
  4015. Generators.tests.cpp:<line number>: PASSED:
  4016. REQUIRE( i % 2 == 0 )
  4017. with expansion:
  4018. 0 == 0
  4019. -------------------------------------------------------------------------------
  4020. Generators -- adapters
  4021. Transforming elements
  4022. Same type
  4023. -------------------------------------------------------------------------------
  4024. Generators.tests.cpp:<line number>
  4025. ...............................................................................
  4026. Generators.tests.cpp:<line number>: PASSED:
  4027. REQUIRE( i % 2 == 0 )
  4028. with expansion:
  4029. 0 == 0
  4030. -------------------------------------------------------------------------------
  4031. Generators -- adapters
  4032. Transforming elements
  4033. Different type
  4034. -------------------------------------------------------------------------------
  4035. Generators.tests.cpp:<line number>
  4036. ...............................................................................
  4037. Generators.tests.cpp:<line number>: PASSED:
  4038. REQUIRE( i.size() == 1 )
  4039. with expansion:
  4040. 1 == 1
  4041. -------------------------------------------------------------------------------
  4042. Generators -- adapters
  4043. Transforming elements
  4044. Different type
  4045. -------------------------------------------------------------------------------
  4046. Generators.tests.cpp:<line number>
  4047. ...............................................................................
  4048. Generators.tests.cpp:<line number>: PASSED:
  4049. REQUIRE( i.size() == 1 )
  4050. with expansion:
  4051. 1 == 1
  4052. -------------------------------------------------------------------------------
  4053. Generators -- adapters
  4054. Transforming elements
  4055. Different type
  4056. -------------------------------------------------------------------------------
  4057. Generators.tests.cpp:<line number>
  4058. ...............................................................................
  4059. Generators.tests.cpp:<line number>: PASSED:
  4060. REQUIRE( i.size() == 1 )
  4061. with expansion:
  4062. 1 == 1
  4063. -------------------------------------------------------------------------------
  4064. Generators -- adapters
  4065. Transforming elements
  4066. Different deduced type
  4067. -------------------------------------------------------------------------------
  4068. Generators.tests.cpp:<line number>
  4069. ...............................................................................
  4070. Generators.tests.cpp:<line number>: PASSED:
  4071. REQUIRE( i.size() == 1 )
  4072. with expansion:
  4073. 1 == 1
  4074. -------------------------------------------------------------------------------
  4075. Generators -- adapters
  4076. Transforming elements
  4077. Different deduced type
  4078. -------------------------------------------------------------------------------
  4079. Generators.tests.cpp:<line number>
  4080. ...............................................................................
  4081. Generators.tests.cpp:<line number>: PASSED:
  4082. REQUIRE( i.size() == 1 )
  4083. with expansion:
  4084. 1 == 1
  4085. -------------------------------------------------------------------------------
  4086. Generators -- adapters
  4087. Transforming elements
  4088. Different deduced type
  4089. -------------------------------------------------------------------------------
  4090. Generators.tests.cpp:<line number>
  4091. ...............................................................................
  4092. Generators.tests.cpp:<line number>: PASSED:
  4093. REQUIRE( i.size() == 1 )
  4094. with expansion:
  4095. 1 == 1
  4096. -------------------------------------------------------------------------------
  4097. Generators -- adapters
  4098. Repeating a generator
  4099. -------------------------------------------------------------------------------
  4100. Generators.tests.cpp:<line number>
  4101. ...............................................................................
  4102. Generators.tests.cpp:<line number>: PASSED:
  4103. REQUIRE( j > 0 )
  4104. with expansion:
  4105. 1 > 0
  4106. -------------------------------------------------------------------------------
  4107. Generators -- adapters
  4108. Repeating a generator
  4109. -------------------------------------------------------------------------------
  4110. Generators.tests.cpp:<line number>
  4111. ...............................................................................
  4112. Generators.tests.cpp:<line number>: PASSED:
  4113. REQUIRE( j > 0 )
  4114. with expansion:
  4115. 2 > 0
  4116. -------------------------------------------------------------------------------
  4117. Generators -- adapters
  4118. Repeating a generator
  4119. -------------------------------------------------------------------------------
  4120. Generators.tests.cpp:<line number>
  4121. ...............................................................................
  4122. Generators.tests.cpp:<line number>: PASSED:
  4123. REQUIRE( j > 0 )
  4124. with expansion:
  4125. 3 > 0
  4126. -------------------------------------------------------------------------------
  4127. Generators -- adapters
  4128. Repeating a generator
  4129. -------------------------------------------------------------------------------
  4130. Generators.tests.cpp:<line number>
  4131. ...............................................................................
  4132. Generators.tests.cpp:<line number>: PASSED:
  4133. REQUIRE( j > 0 )
  4134. with expansion:
  4135. 1 > 0
  4136. -------------------------------------------------------------------------------
  4137. Generators -- adapters
  4138. Repeating a generator
  4139. -------------------------------------------------------------------------------
  4140. Generators.tests.cpp:<line number>
  4141. ...............................................................................
  4142. Generators.tests.cpp:<line number>: PASSED:
  4143. REQUIRE( j > 0 )
  4144. with expansion:
  4145. 2 > 0
  4146. -------------------------------------------------------------------------------
  4147. Generators -- adapters
  4148. Repeating a generator
  4149. -------------------------------------------------------------------------------
  4150. Generators.tests.cpp:<line number>
  4151. ...............................................................................
  4152. Generators.tests.cpp:<line number>: PASSED:
  4153. REQUIRE( j > 0 )
  4154. with expansion:
  4155. 3 > 0
  4156. -------------------------------------------------------------------------------
  4157. Generators -- adapters
  4158. Chunking a generator into sized pieces
  4159. Number of elements in source is divisible by chunk size
  4160. -------------------------------------------------------------------------------
  4161. Generators.tests.cpp:<line number>
  4162. ...............................................................................
  4163. Generators.tests.cpp:<line number>: PASSED:
  4164. REQUIRE( chunk2.size() == 2 )
  4165. with expansion:
  4166. 2 == 2
  4167. Generators.tests.cpp:<line number>: PASSED:
  4168. REQUIRE( chunk2.front() == chunk2.back() )
  4169. with expansion:
  4170. 1 == 1
  4171. -------------------------------------------------------------------------------
  4172. Generators -- adapters
  4173. Chunking a generator into sized pieces
  4174. Number of elements in source is divisible by chunk size
  4175. -------------------------------------------------------------------------------
  4176. Generators.tests.cpp:<line number>
  4177. ...............................................................................
  4178. Generators.tests.cpp:<line number>: PASSED:
  4179. REQUIRE( chunk2.size() == 2 )
  4180. with expansion:
  4181. 2 == 2
  4182. Generators.tests.cpp:<line number>: PASSED:
  4183. REQUIRE( chunk2.front() == chunk2.back() )
  4184. with expansion:
  4185. 2 == 2
  4186. -------------------------------------------------------------------------------
  4187. Generators -- adapters
  4188. Chunking a generator into sized pieces
  4189. Number of elements in source is divisible by chunk size
  4190. -------------------------------------------------------------------------------
  4191. Generators.tests.cpp:<line number>
  4192. ...............................................................................
  4193. Generators.tests.cpp:<line number>: PASSED:
  4194. REQUIRE( chunk2.size() == 2 )
  4195. with expansion:
  4196. 2 == 2
  4197. Generators.tests.cpp:<line number>: PASSED:
  4198. REQUIRE( chunk2.front() == chunk2.back() )
  4199. with expansion:
  4200. 3 == 3
  4201. -------------------------------------------------------------------------------
  4202. Generators -- adapters
  4203. Chunking a generator into sized pieces
  4204. Number of elements in source is not divisible by chunk size
  4205. -------------------------------------------------------------------------------
  4206. Generators.tests.cpp:<line number>
  4207. ...............................................................................
  4208. Generators.tests.cpp:<line number>: PASSED:
  4209. REQUIRE( chunk2.size() == 2 )
  4210. with expansion:
  4211. 2 == 2
  4212. Generators.tests.cpp:<line number>: PASSED:
  4213. REQUIRE( chunk2.front() == chunk2.back() )
  4214. with expansion:
  4215. 1 == 1
  4216. Generators.tests.cpp:<line number>: PASSED:
  4217. REQUIRE( chunk2.front() < 3 )
  4218. with expansion:
  4219. 1 < 3
  4220. -------------------------------------------------------------------------------
  4221. Generators -- adapters
  4222. Chunking a generator into sized pieces
  4223. Number of elements in source is not divisible by chunk size
  4224. -------------------------------------------------------------------------------
  4225. Generators.tests.cpp:<line number>
  4226. ...............................................................................
  4227. Generators.tests.cpp:<line number>: PASSED:
  4228. REQUIRE( chunk2.size() == 2 )
  4229. with expansion:
  4230. 2 == 2
  4231. Generators.tests.cpp:<line number>: PASSED:
  4232. REQUIRE( chunk2.front() == chunk2.back() )
  4233. with expansion:
  4234. 2 == 2
  4235. Generators.tests.cpp:<line number>: PASSED:
  4236. REQUIRE( chunk2.front() < 3 )
  4237. with expansion:
  4238. 2 < 3
  4239. -------------------------------------------------------------------------------
  4240. Generators -- adapters
  4241. Chunking a generator into sized pieces
  4242. Chunk size of zero
  4243. -------------------------------------------------------------------------------
  4244. Generators.tests.cpp:<line number>
  4245. ...............................................................................
  4246. Generators.tests.cpp:<line number>: PASSED:
  4247. REQUIRE( chunk2.size() == 0 )
  4248. with expansion:
  4249. 0 == 0
  4250. -------------------------------------------------------------------------------
  4251. Generators -- adapters
  4252. Chunking a generator into sized pieces
  4253. Chunk size of zero
  4254. -------------------------------------------------------------------------------
  4255. Generators.tests.cpp:<line number>
  4256. ...............................................................................
  4257. Generators.tests.cpp:<line number>: PASSED:
  4258. REQUIRE( chunk2.size() == 0 )
  4259. with expansion:
  4260. 0 == 0
  4261. -------------------------------------------------------------------------------
  4262. Generators -- adapters
  4263. Chunking a generator into sized pieces
  4264. Chunk size of zero
  4265. -------------------------------------------------------------------------------
  4266. Generators.tests.cpp:<line number>
  4267. ...............................................................................
  4268. Generators.tests.cpp:<line number>: PASSED:
  4269. REQUIRE( chunk2.size() == 0 )
  4270. with expansion:
  4271. 0 == 0
  4272. -------------------------------------------------------------------------------
  4273. Generators -- adapters
  4274. Chunking a generator into sized pieces
  4275. Throws on too small generators
  4276. -------------------------------------------------------------------------------
  4277. Generators.tests.cpp:<line number>
  4278. ...............................................................................
  4279. Generators.tests.cpp:<line number>: PASSED:
  4280. REQUIRE_THROWS_AS( chunk(2, value(1)), Catch::GeneratorException )
  4281. -------------------------------------------------------------------------------
  4282. Generators -- simple
  4283. one
  4284. -------------------------------------------------------------------------------
  4285. Generators.tests.cpp:<line number>
  4286. ...............................................................................
  4287. Generators.tests.cpp:<line number>: PASSED:
  4288. REQUIRE( j < i )
  4289. with expansion:
  4290. -3 < 1
  4291. -------------------------------------------------------------------------------
  4292. Generators -- simple
  4293. one
  4294. -------------------------------------------------------------------------------
  4295. Generators.tests.cpp:<line number>
  4296. ...............................................................................
  4297. Generators.tests.cpp:<line number>: PASSED:
  4298. REQUIRE( j < i )
  4299. with expansion:
  4300. -2 < 1
  4301. -------------------------------------------------------------------------------
  4302. Generators -- simple
  4303. one
  4304. -------------------------------------------------------------------------------
  4305. Generators.tests.cpp:<line number>
  4306. ...............................................................................
  4307. Generators.tests.cpp:<line number>: PASSED:
  4308. REQUIRE( j < i )
  4309. with expansion:
  4310. -1 < 1
  4311. -------------------------------------------------------------------------------
  4312. Generators -- simple
  4313. two
  4314. -------------------------------------------------------------------------------
  4315. Generators.tests.cpp:<line number>
  4316. ...............................................................................
  4317. Generators.tests.cpp:<line number>: PASSED:
  4318. REQUIRE( 4u * i > str.size() )
  4319. with expansion:
  4320. 4 > 1
  4321. -------------------------------------------------------------------------------
  4322. Generators -- simple
  4323. two
  4324. -------------------------------------------------------------------------------
  4325. Generators.tests.cpp:<line number>
  4326. ...............................................................................
  4327. Generators.tests.cpp:<line number>: PASSED:
  4328. REQUIRE( 4u * i > str.size() )
  4329. with expansion:
  4330. 4 > 2
  4331. -------------------------------------------------------------------------------
  4332. Generators -- simple
  4333. two
  4334. -------------------------------------------------------------------------------
  4335. Generators.tests.cpp:<line number>
  4336. ...............................................................................
  4337. Generators.tests.cpp:<line number>: PASSED:
  4338. REQUIRE( 4u * i > str.size() )
  4339. with expansion:
  4340. 4 > 3
  4341. -------------------------------------------------------------------------------
  4342. Generators -- simple
  4343. one
  4344. -------------------------------------------------------------------------------
  4345. Generators.tests.cpp:<line number>
  4346. ...............................................................................
  4347. Generators.tests.cpp:<line number>: PASSED:
  4348. REQUIRE( j < i )
  4349. with expansion:
  4350. -3 < 2
  4351. -------------------------------------------------------------------------------
  4352. Generators -- simple
  4353. one
  4354. -------------------------------------------------------------------------------
  4355. Generators.tests.cpp:<line number>
  4356. ...............................................................................
  4357. Generators.tests.cpp:<line number>: PASSED:
  4358. REQUIRE( j < i )
  4359. with expansion:
  4360. -2 < 2
  4361. -------------------------------------------------------------------------------
  4362. Generators -- simple
  4363. one
  4364. -------------------------------------------------------------------------------
  4365. Generators.tests.cpp:<line number>
  4366. ...............................................................................
  4367. Generators.tests.cpp:<line number>: PASSED:
  4368. REQUIRE( j < i )
  4369. with expansion:
  4370. -1 < 2
  4371. -------------------------------------------------------------------------------
  4372. Generators -- simple
  4373. two
  4374. -------------------------------------------------------------------------------
  4375. Generators.tests.cpp:<line number>
  4376. ...............................................................................
  4377. Generators.tests.cpp:<line number>: PASSED:
  4378. REQUIRE( 4u * i > str.size() )
  4379. with expansion:
  4380. 8 > 1
  4381. -------------------------------------------------------------------------------
  4382. Generators -- simple
  4383. two
  4384. -------------------------------------------------------------------------------
  4385. Generators.tests.cpp:<line number>
  4386. ...............................................................................
  4387. Generators.tests.cpp:<line number>: PASSED:
  4388. REQUIRE( 4u * i > str.size() )
  4389. with expansion:
  4390. 8 > 2
  4391. -------------------------------------------------------------------------------
  4392. Generators -- simple
  4393. two
  4394. -------------------------------------------------------------------------------
  4395. Generators.tests.cpp:<line number>
  4396. ...............................................................................
  4397. Generators.tests.cpp:<line number>: PASSED:
  4398. REQUIRE( 4u * i > str.size() )
  4399. with expansion:
  4400. 8 > 3
  4401. -------------------------------------------------------------------------------
  4402. Generators -- simple
  4403. one
  4404. -------------------------------------------------------------------------------
  4405. Generators.tests.cpp:<line number>
  4406. ...............................................................................
  4407. Generators.tests.cpp:<line number>: PASSED:
  4408. REQUIRE( j < i )
  4409. with expansion:
  4410. -3 < 3
  4411. -------------------------------------------------------------------------------
  4412. Generators -- simple
  4413. one
  4414. -------------------------------------------------------------------------------
  4415. Generators.tests.cpp:<line number>
  4416. ...............................................................................
  4417. Generators.tests.cpp:<line number>: PASSED:
  4418. REQUIRE( j < i )
  4419. with expansion:
  4420. -2 < 3
  4421. -------------------------------------------------------------------------------
  4422. Generators -- simple
  4423. one
  4424. -------------------------------------------------------------------------------
  4425. Generators.tests.cpp:<line number>
  4426. ...............................................................................
  4427. Generators.tests.cpp:<line number>: PASSED:
  4428. REQUIRE( j < i )
  4429. with expansion:
  4430. -1 < 3
  4431. -------------------------------------------------------------------------------
  4432. Generators -- simple
  4433. two
  4434. -------------------------------------------------------------------------------
  4435. Generators.tests.cpp:<line number>
  4436. ...............................................................................
  4437. Generators.tests.cpp:<line number>: PASSED:
  4438. REQUIRE( 4u * i > str.size() )
  4439. with expansion:
  4440. 12 > 1
  4441. -------------------------------------------------------------------------------
  4442. Generators -- simple
  4443. two
  4444. -------------------------------------------------------------------------------
  4445. Generators.tests.cpp:<line number>
  4446. ...............................................................................
  4447. Generators.tests.cpp:<line number>: PASSED:
  4448. REQUIRE( 4u * i > str.size() )
  4449. with expansion:
  4450. 12 > 2
  4451. -------------------------------------------------------------------------------
  4452. Generators -- simple
  4453. two
  4454. -------------------------------------------------------------------------------
  4455. Generators.tests.cpp:<line number>
  4456. ...............................................................................
  4457. Generators.tests.cpp:<line number>: PASSED:
  4458. REQUIRE( 4u * i > str.size() )
  4459. with expansion:
  4460. 12 > 3
  4461. -------------------------------------------------------------------------------
  4462. Generators internals
  4463. Single value
  4464. -------------------------------------------------------------------------------
  4465. GeneratorsImpl.tests.cpp:<line number>
  4466. ...............................................................................
  4467. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4468. REQUIRE( gen.get() == 123 )
  4469. with expansion:
  4470. 123 == 123
  4471. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4472. REQUIRE_FALSE( gen.next() )
  4473. with expansion:
  4474. !false
  4475. -------------------------------------------------------------------------------
  4476. Generators internals
  4477. Preset values
  4478. -------------------------------------------------------------------------------
  4479. GeneratorsImpl.tests.cpp:<line number>
  4480. ...............................................................................
  4481. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4482. REQUIRE( gen.get() == 1 )
  4483. with expansion:
  4484. 1 == 1
  4485. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4486. REQUIRE( gen.next() )
  4487. with expansion:
  4488. true
  4489. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4490. REQUIRE( gen.get() == 3 )
  4491. with expansion:
  4492. 3 == 3
  4493. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4494. REQUIRE( gen.next() )
  4495. with expansion:
  4496. true
  4497. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4498. REQUIRE( gen.get() == 5 )
  4499. with expansion:
  4500. 5 == 5
  4501. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4502. REQUIRE_FALSE( gen.next() )
  4503. with expansion:
  4504. !false
  4505. -------------------------------------------------------------------------------
  4506. Generators internals
  4507. Generator combinator
  4508. -------------------------------------------------------------------------------
  4509. GeneratorsImpl.tests.cpp:<line number>
  4510. ...............................................................................
  4511. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4512. REQUIRE( gen.get() == 1 )
  4513. with expansion:
  4514. 1 == 1
  4515. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4516. REQUIRE( gen.next() )
  4517. with expansion:
  4518. true
  4519. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4520. REQUIRE( gen.get() == 5 )
  4521. with expansion:
  4522. 5 == 5
  4523. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4524. REQUIRE( gen.next() )
  4525. with expansion:
  4526. true
  4527. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4528. REQUIRE( gen.get() == 2 )
  4529. with expansion:
  4530. 2 == 2
  4531. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4532. REQUIRE( gen.next() )
  4533. with expansion:
  4534. true
  4535. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4536. REQUIRE( gen.get() == 4 )
  4537. with expansion:
  4538. 4 == 4
  4539. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4540. REQUIRE( gen.next() )
  4541. with expansion:
  4542. true
  4543. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4544. REQUIRE( gen.get() == 0 )
  4545. with expansion:
  4546. 0 == 0
  4547. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4548. REQUIRE_FALSE( gen.next() )
  4549. with expansion:
  4550. !false
  4551. -------------------------------------------------------------------------------
  4552. Generators internals
  4553. Explicitly typed generator sequence
  4554. -------------------------------------------------------------------------------
  4555. GeneratorsImpl.tests.cpp:<line number>
  4556. ...............................................................................
  4557. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4558. REQUIRE( gen.get().size() == 2 )
  4559. with expansion:
  4560. 2 == 2
  4561. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4562. REQUIRE( gen.get() == "aa" )
  4563. with expansion:
  4564. "aa" == "aa"
  4565. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4566. REQUIRE( gen.next() )
  4567. with expansion:
  4568. true
  4569. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4570. REQUIRE( gen.get() == "bb" )
  4571. with expansion:
  4572. "bb" == "bb"
  4573. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4574. REQUIRE( gen.next() )
  4575. with expansion:
  4576. true
  4577. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4578. REQUIRE( gen.get() == "cc" )
  4579. with expansion:
  4580. "cc" == "cc"
  4581. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4582. REQUIRE_FALSE( gen.next() )
  4583. with expansion:
  4584. !false
  4585. -------------------------------------------------------------------------------
  4586. Generators internals
  4587. Filter generator
  4588. Simple filtering
  4589. -------------------------------------------------------------------------------
  4590. GeneratorsImpl.tests.cpp:<line number>
  4591. ...............................................................................
  4592. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4593. REQUIRE( gen.get() == 1 )
  4594. with expansion:
  4595. 1 == 1
  4596. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4597. REQUIRE( gen.next() )
  4598. with expansion:
  4599. true
  4600. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4601. REQUIRE( gen.get() == 3 )
  4602. with expansion:
  4603. 3 == 3
  4604. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4605. REQUIRE_FALSE( gen.next() )
  4606. with expansion:
  4607. !false
  4608. -------------------------------------------------------------------------------
  4609. Generators internals
  4610. Filter generator
  4611. Filter out multiple elements at the start and end
  4612. -------------------------------------------------------------------------------
  4613. GeneratorsImpl.tests.cpp:<line number>
  4614. ...............................................................................
  4615. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4616. REQUIRE( gen.get() == 1 )
  4617. with expansion:
  4618. 1 == 1
  4619. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4620. REQUIRE( gen.next() )
  4621. with expansion:
  4622. true
  4623. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4624. REQUIRE( gen.get() == 3 )
  4625. with expansion:
  4626. 3 == 3
  4627. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4628. REQUIRE_FALSE( gen.next() )
  4629. with expansion:
  4630. !false
  4631. -------------------------------------------------------------------------------
  4632. Generators internals
  4633. Filter generator
  4634. Throws on construction if it can't get initial element
  4635. -------------------------------------------------------------------------------
  4636. GeneratorsImpl.tests.cpp:<line number>
  4637. ...............................................................................
  4638. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4639. REQUIRE_THROWS_AS( filter([](int) { return false; }, value(1)), Catch::GeneratorException )
  4640. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4641. REQUIRE_THROWS_AS( filter([](int) { return false; }, values({ 1, 2, 3 })), Catch::GeneratorException )
  4642. -------------------------------------------------------------------------------
  4643. Generators internals
  4644. Take generator
  4645. Take less
  4646. -------------------------------------------------------------------------------
  4647. GeneratorsImpl.tests.cpp:<line number>
  4648. ...............................................................................
  4649. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4650. REQUIRE( gen.get() == 1 )
  4651. with expansion:
  4652. 1 == 1
  4653. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4654. REQUIRE( gen.next() )
  4655. with expansion:
  4656. true
  4657. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4658. REQUIRE( gen.get() == 2 )
  4659. with expansion:
  4660. 2 == 2
  4661. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4662. REQUIRE_FALSE( gen.next() )
  4663. with expansion:
  4664. !false
  4665. -------------------------------------------------------------------------------
  4666. Generators internals
  4667. Take generator
  4668. Take more
  4669. -------------------------------------------------------------------------------
  4670. GeneratorsImpl.tests.cpp:<line number>
  4671. ...............................................................................
  4672. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4673. REQUIRE( gen.get() == 1 )
  4674. with expansion:
  4675. 1 == 1
  4676. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4677. REQUIRE_FALSE( gen.next() )
  4678. with expansion:
  4679. !false
  4680. -------------------------------------------------------------------------------
  4681. Generators internals
  4682. Map with explicit return type
  4683. -------------------------------------------------------------------------------
  4684. GeneratorsImpl.tests.cpp:<line number>
  4685. ...............................................................................
  4686. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4687. REQUIRE( gen.get() == 2.0 )
  4688. with expansion:
  4689. 2.0 == 2.0
  4690. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4691. REQUIRE( gen.next() )
  4692. with expansion:
  4693. true
  4694. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4695. REQUIRE( gen.get() == 4.0 )
  4696. with expansion:
  4697. 4.0 == 4.0
  4698. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4699. REQUIRE( gen.next() )
  4700. with expansion:
  4701. true
  4702. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4703. REQUIRE( gen.get() == 6.0 )
  4704. with expansion:
  4705. 6.0 == 6.0
  4706. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4707. REQUIRE_FALSE( gen.next() )
  4708. with expansion:
  4709. !false
  4710. -------------------------------------------------------------------------------
  4711. Generators internals
  4712. Map with deduced return type
  4713. -------------------------------------------------------------------------------
  4714. GeneratorsImpl.tests.cpp:<line number>
  4715. ...............................................................................
  4716. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4717. REQUIRE( gen.get() == 2.0 )
  4718. with expansion:
  4719. 2.0 == 2.0
  4720. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4721. REQUIRE( gen.next() )
  4722. with expansion:
  4723. true
  4724. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4725. REQUIRE( gen.get() == 4.0 )
  4726. with expansion:
  4727. 4.0 == 4.0
  4728. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4729. REQUIRE( gen.next() )
  4730. with expansion:
  4731. true
  4732. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4733. REQUIRE( gen.get() == 6.0 )
  4734. with expansion:
  4735. 6.0 == 6.0
  4736. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4737. REQUIRE_FALSE( gen.next() )
  4738. with expansion:
  4739. !false
  4740. -------------------------------------------------------------------------------
  4741. Generators internals
  4742. Repeat
  4743. Singular repeat
  4744. -------------------------------------------------------------------------------
  4745. GeneratorsImpl.tests.cpp:<line number>
  4746. ...............................................................................
  4747. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4748. REQUIRE( gen.get() == 3 )
  4749. with expansion:
  4750. 3 == 3
  4751. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4752. REQUIRE_FALSE( gen.next() )
  4753. with expansion:
  4754. !false
  4755. -------------------------------------------------------------------------------
  4756. Generators internals
  4757. Repeat
  4758. Actual repeat
  4759. -------------------------------------------------------------------------------
  4760. GeneratorsImpl.tests.cpp:<line number>
  4761. ...............................................................................
  4762. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4763. REQUIRE( gen.get() == 1 )
  4764. with expansion:
  4765. 1 == 1
  4766. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4767. REQUIRE( gen.next() )
  4768. with expansion:
  4769. true
  4770. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4771. REQUIRE( gen.get() == 2 )
  4772. with expansion:
  4773. 2 == 2
  4774. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4775. REQUIRE( gen.next() )
  4776. with expansion:
  4777. true
  4778. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4779. REQUIRE( gen.get() == 3 )
  4780. with expansion:
  4781. 3 == 3
  4782. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4783. REQUIRE( gen.next() )
  4784. with expansion:
  4785. true
  4786. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4787. REQUIRE( gen.get() == 1 )
  4788. with expansion:
  4789. 1 == 1
  4790. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4791. REQUIRE( gen.next() )
  4792. with expansion:
  4793. true
  4794. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4795. REQUIRE( gen.get() == 2 )
  4796. with expansion:
  4797. 2 == 2
  4798. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4799. REQUIRE( gen.next() )
  4800. with expansion:
  4801. true
  4802. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4803. REQUIRE( gen.get() == 3 )
  4804. with expansion:
  4805. 3 == 3
  4806. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4807. REQUIRE_FALSE( gen.next() )
  4808. with expansion:
  4809. !false
  4810. -------------------------------------------------------------------------------
  4811. Generators internals
  4812. Range
  4813. Positive auto step
  4814. Integer
  4815. -------------------------------------------------------------------------------
  4816. GeneratorsImpl.tests.cpp:<line number>
  4817. ...............................................................................
  4818. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4819. REQUIRE( gen.get() == -2 )
  4820. with expansion:
  4821. -2 == -2
  4822. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4823. REQUIRE( gen.next() )
  4824. with expansion:
  4825. true
  4826. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4827. REQUIRE( gen.get() == -1 )
  4828. with expansion:
  4829. -1 == -1
  4830. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4831. REQUIRE( gen.next() )
  4832. with expansion:
  4833. true
  4834. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4835. REQUIRE( gen.get() == 0 )
  4836. with expansion:
  4837. 0 == 0
  4838. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4839. REQUIRE( gen.next() )
  4840. with expansion:
  4841. true
  4842. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4843. REQUIRE( gen.get() == 1 )
  4844. with expansion:
  4845. 1 == 1
  4846. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4847. REQUIRE_FALSE( gen.next() )
  4848. with expansion:
  4849. !false
  4850. -------------------------------------------------------------------------------
  4851. Generators internals
  4852. Range
  4853. Negative auto step
  4854. Integer
  4855. -------------------------------------------------------------------------------
  4856. GeneratorsImpl.tests.cpp:<line number>
  4857. ...............................................................................
  4858. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4859. REQUIRE( gen.get() == 2 )
  4860. with expansion:
  4861. 2 == 2
  4862. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4863. REQUIRE( gen.next() )
  4864. with expansion:
  4865. true
  4866. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4867. REQUIRE( gen.get() == 1 )
  4868. with expansion:
  4869. 1 == 1
  4870. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4871. REQUIRE( gen.next() )
  4872. with expansion:
  4873. true
  4874. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4875. REQUIRE( gen.get() == 0 )
  4876. with expansion:
  4877. 0 == 0
  4878. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4879. REQUIRE( gen.next() )
  4880. with expansion:
  4881. true
  4882. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4883. REQUIRE( gen.get() == -1 )
  4884. with expansion:
  4885. -1 == -1
  4886. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4887. REQUIRE_FALSE( gen.next() )
  4888. with expansion:
  4889. !false
  4890. -------------------------------------------------------------------------------
  4891. Generators internals
  4892. Range
  4893. Positive manual step
  4894. Integer
  4895. Exact
  4896. -------------------------------------------------------------------------------
  4897. GeneratorsImpl.tests.cpp:<line number>
  4898. ...............................................................................
  4899. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4900. REQUIRE( gen.get() == -7 )
  4901. with expansion:
  4902. -7 == -7
  4903. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4904. REQUIRE( gen.next() )
  4905. with expansion:
  4906. true
  4907. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4908. REQUIRE( gen.get() == -4 )
  4909. with expansion:
  4910. -4 == -4
  4911. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4912. REQUIRE( gen.next() )
  4913. with expansion:
  4914. true
  4915. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4916. REQUIRE( gen.get() == -1 )
  4917. with expansion:
  4918. -1 == -1
  4919. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4920. REQUIRE( gen.next() )
  4921. with expansion:
  4922. true
  4923. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4924. REQUIRE( gen.get() == 2 )
  4925. with expansion:
  4926. 2 == 2
  4927. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4928. REQUIRE_FALSE( gen.next() )
  4929. with expansion:
  4930. !false
  4931. -------------------------------------------------------------------------------
  4932. Generators internals
  4933. Range
  4934. Positive manual step
  4935. Integer
  4936. Slightly over end
  4937. -------------------------------------------------------------------------------
  4938. GeneratorsImpl.tests.cpp:<line number>
  4939. ...............................................................................
  4940. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4941. REQUIRE( gen.get() == -7 )
  4942. with expansion:
  4943. -7 == -7
  4944. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4945. REQUIRE( gen.next() )
  4946. with expansion:
  4947. true
  4948. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4949. REQUIRE( gen.get() == -4 )
  4950. with expansion:
  4951. -4 == -4
  4952. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4953. REQUIRE( gen.next() )
  4954. with expansion:
  4955. true
  4956. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4957. REQUIRE( gen.get() == -1 )
  4958. with expansion:
  4959. -1 == -1
  4960. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4961. REQUIRE( gen.next() )
  4962. with expansion:
  4963. true
  4964. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4965. REQUIRE( gen.get() == 2 )
  4966. with expansion:
  4967. 2 == 2
  4968. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4969. REQUIRE_FALSE( gen.next() )
  4970. with expansion:
  4971. !false
  4972. -------------------------------------------------------------------------------
  4973. Generators internals
  4974. Range
  4975. Positive manual step
  4976. Integer
  4977. Slightly under end
  4978. -------------------------------------------------------------------------------
  4979. GeneratorsImpl.tests.cpp:<line number>
  4980. ...............................................................................
  4981. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4982. REQUIRE( gen.get() == -7 )
  4983. with expansion:
  4984. -7 == -7
  4985. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4986. REQUIRE( gen.next() )
  4987. with expansion:
  4988. true
  4989. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4990. REQUIRE( gen.get() == -4 )
  4991. with expansion:
  4992. -4 == -4
  4993. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4994. REQUIRE( gen.next() )
  4995. with expansion:
  4996. true
  4997. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4998. REQUIRE( gen.get() == -1 )
  4999. with expansion:
  5000. -1 == -1
  5001. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5002. REQUIRE( gen.next() )
  5003. with expansion:
  5004. true
  5005. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5006. REQUIRE( gen.get() == 2 )
  5007. with expansion:
  5008. 2 == 2
  5009. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5010. REQUIRE( gen.next() )
  5011. with expansion:
  5012. true
  5013. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5014. REQUIRE( gen.get() == 5 )
  5015. with expansion:
  5016. 5 == 5
  5017. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5018. REQUIRE_FALSE( gen.next() )
  5019. with expansion:
  5020. !false
  5021. -------------------------------------------------------------------------------
  5022. Generators internals
  5023. Range
  5024. Positive manual step
  5025. Floating Point
  5026. Exact
  5027. -------------------------------------------------------------------------------
  5028. GeneratorsImpl.tests.cpp:<line number>
  5029. ...............................................................................
  5030. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5031. REQUIRE( gen.get() == Approx(expected) )
  5032. with expansion:
  5033. -1.0 == Approx( -1.0 )
  5034. with message:
  5035. Current expected value is -1
  5036. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5037. REQUIRE( gen.next() )
  5038. with expansion:
  5039. true
  5040. with message:
  5041. Current expected value is -1
  5042. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5043. REQUIRE( gen.get() == Approx(expected) )
  5044. with expansion:
  5045. -0.9 == Approx( -0.9 )
  5046. with message:
  5047. Current expected value is -0.9
  5048. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5049. REQUIRE( gen.next() )
  5050. with expansion:
  5051. true
  5052. with message:
  5053. Current expected value is -0.9
  5054. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5055. REQUIRE( gen.get() == Approx(expected) )
  5056. with expansion:
  5057. -0.8 == Approx( -0.8 )
  5058. with message:
  5059. Current expected value is -0.8
  5060. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5061. REQUIRE( gen.next() )
  5062. with expansion:
  5063. true
  5064. with message:
  5065. Current expected value is -0.8
  5066. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5067. REQUIRE( gen.get() == Approx(expected) )
  5068. with expansion:
  5069. -0.7 == Approx( -0.7 )
  5070. with message:
  5071. Current expected value is -0.7
  5072. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5073. REQUIRE( gen.next() )
  5074. with expansion:
  5075. true
  5076. with message:
  5077. Current expected value is -0.7
  5078. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5079. REQUIRE( gen.get() == Approx(expected) )
  5080. with expansion:
  5081. -0.6 == Approx( -0.6 )
  5082. with message:
  5083. Current expected value is -0.6
  5084. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5085. REQUIRE( gen.next() )
  5086. with expansion:
  5087. true
  5088. with message:
  5089. Current expected value is -0.6
  5090. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5091. REQUIRE( gen.get() == Approx(expected) )
  5092. with expansion:
  5093. -0.5 == Approx( -0.5 )
  5094. with message:
  5095. Current expected value is -0.5
  5096. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5097. REQUIRE( gen.next() )
  5098. with expansion:
  5099. true
  5100. with message:
  5101. Current expected value is -0.5
  5102. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5103. REQUIRE( gen.get() == Approx(expected) )
  5104. with expansion:
  5105. -0.4 == Approx( -0.4 )
  5106. with message:
  5107. Current expected value is -0.4
  5108. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5109. REQUIRE( gen.next() )
  5110. with expansion:
  5111. true
  5112. with message:
  5113. Current expected value is -0.4
  5114. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5115. REQUIRE( gen.get() == Approx(expected) )
  5116. with expansion:
  5117. -0.3 == Approx( -0.3 )
  5118. with message:
  5119. Current expected value is -0.3
  5120. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5121. REQUIRE( gen.next() )
  5122. with expansion:
  5123. true
  5124. with message:
  5125. Current expected value is -0.3
  5126. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5127. REQUIRE( gen.get() == Approx(expected) )
  5128. with expansion:
  5129. -0.2 == Approx( -0.2 )
  5130. with message:
  5131. Current expected value is -0.2
  5132. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5133. REQUIRE( gen.next() )
  5134. with expansion:
  5135. true
  5136. with message:
  5137. Current expected value is -0.2
  5138. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5139. REQUIRE( gen.get() == Approx(expected) )
  5140. with expansion:
  5141. -0.1 == Approx( -0.1 )
  5142. with message:
  5143. Current expected value is -0.1
  5144. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5145. REQUIRE( gen.next() )
  5146. with expansion:
  5147. true
  5148. with message:
  5149. Current expected value is -0.1
  5150. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5151. REQUIRE( gen.get() == Approx(expected) )
  5152. with expansion:
  5153. -0.0 == Approx( -0.0 )
  5154. with message:
  5155. Current expected value is -1.38778e-16
  5156. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5157. REQUIRE( gen.next() )
  5158. with expansion:
  5159. true
  5160. with message:
  5161. Current expected value is -1.38778e-16
  5162. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5163. REQUIRE( gen.get() == Approx(expected) )
  5164. with expansion:
  5165. 0.1 == Approx( 0.1 )
  5166. with message:
  5167. Current expected value is 0.1
  5168. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5169. REQUIRE( gen.next() )
  5170. with expansion:
  5171. true
  5172. with message:
  5173. Current expected value is 0.1
  5174. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5175. REQUIRE( gen.get() == Approx(expected) )
  5176. with expansion:
  5177. 0.2 == Approx( 0.2 )
  5178. with message:
  5179. Current expected value is 0.2
  5180. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5181. REQUIRE( gen.next() )
  5182. with expansion:
  5183. true
  5184. with message:
  5185. Current expected value is 0.2
  5186. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5187. REQUIRE( gen.get() == Approx(expected) )
  5188. with expansion:
  5189. 0.3 == Approx( 0.3 )
  5190. with message:
  5191. Current expected value is 0.3
  5192. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5193. REQUIRE( gen.next() )
  5194. with expansion:
  5195. true
  5196. with message:
  5197. Current expected value is 0.3
  5198. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5199. REQUIRE( gen.get() == Approx(expected) )
  5200. with expansion:
  5201. 0.4 == Approx( 0.4 )
  5202. with message:
  5203. Current expected value is 0.4
  5204. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5205. REQUIRE( gen.next() )
  5206. with expansion:
  5207. true
  5208. with message:
  5209. Current expected value is 0.4
  5210. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5211. REQUIRE( gen.get() == Approx(expected) )
  5212. with expansion:
  5213. 0.5 == Approx( 0.5 )
  5214. with message:
  5215. Current expected value is 0.5
  5216. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5217. REQUIRE( gen.next() )
  5218. with expansion:
  5219. true
  5220. with message:
  5221. Current expected value is 0.5
  5222. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5223. REQUIRE( gen.get() == Approx(expected) )
  5224. with expansion:
  5225. 0.6 == Approx( 0.6 )
  5226. with message:
  5227. Current expected value is 0.6
  5228. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5229. REQUIRE( gen.next() )
  5230. with expansion:
  5231. true
  5232. with message:
  5233. Current expected value is 0.6
  5234. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5235. REQUIRE( gen.get() == Approx(expected) )
  5236. with expansion:
  5237. 0.7 == Approx( 0.7 )
  5238. with message:
  5239. Current expected value is 0.7
  5240. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5241. REQUIRE( gen.next() )
  5242. with expansion:
  5243. true
  5244. with message:
  5245. Current expected value is 0.7
  5246. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5247. REQUIRE( gen.get() == Approx(expected) )
  5248. with expansion:
  5249. 0.8 == Approx( 0.8 )
  5250. with message:
  5251. Current expected value is 0.8
  5252. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5253. REQUIRE( gen.next() )
  5254. with expansion:
  5255. true
  5256. with message:
  5257. Current expected value is 0.8
  5258. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5259. REQUIRE( gen.get() == Approx(expected) )
  5260. with expansion:
  5261. 0.9 == Approx( 0.9 )
  5262. with message:
  5263. Current expected value is 0.9
  5264. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5265. REQUIRE( gen.next() )
  5266. with expansion:
  5267. true
  5268. with message:
  5269. Current expected value is 0.9
  5270. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5271. REQUIRE( gen.get() == Approx( rangeEnd ) )
  5272. with expansion:
  5273. 1.0 == Approx( 1.0 )
  5274. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5275. REQUIRE_FALSE( gen.next() )
  5276. with expansion:
  5277. !false
  5278. -------------------------------------------------------------------------------
  5279. Generators internals
  5280. Range
  5281. Positive manual step
  5282. Floating Point
  5283. Slightly over end
  5284. -------------------------------------------------------------------------------
  5285. GeneratorsImpl.tests.cpp:<line number>
  5286. ...............................................................................
  5287. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5288. REQUIRE( gen.get() == Approx(expected) )
  5289. with expansion:
  5290. -1.0 == Approx( -1.0 )
  5291. with message:
  5292. Current expected value is -1
  5293. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5294. REQUIRE( gen.next() )
  5295. with expansion:
  5296. true
  5297. with message:
  5298. Current expected value is -1
  5299. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5300. REQUIRE( gen.get() == Approx(expected) )
  5301. with expansion:
  5302. -0.7 == Approx( -0.7 )
  5303. with message:
  5304. Current expected value is -0.7
  5305. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5306. REQUIRE( gen.next() )
  5307. with expansion:
  5308. true
  5309. with message:
  5310. Current expected value is -0.7
  5311. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5312. REQUIRE( gen.get() == Approx(expected) )
  5313. with expansion:
  5314. -0.4 == Approx( -0.4 )
  5315. with message:
  5316. Current expected value is -0.4
  5317. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5318. REQUIRE( gen.next() )
  5319. with expansion:
  5320. true
  5321. with message:
  5322. Current expected value is -0.4
  5323. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5324. REQUIRE( gen.get() == Approx(expected) )
  5325. with expansion:
  5326. -0.1 == Approx( -0.1 )
  5327. with message:
  5328. Current expected value is -0.1
  5329. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5330. REQUIRE( gen.next() )
  5331. with expansion:
  5332. true
  5333. with message:
  5334. Current expected value is -0.1
  5335. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5336. REQUIRE( gen.get() == Approx(expected) )
  5337. with expansion:
  5338. 0.2 == Approx( 0.2 )
  5339. with message:
  5340. Current expected value is 0.2
  5341. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5342. REQUIRE( gen.next() )
  5343. with expansion:
  5344. true
  5345. with message:
  5346. Current expected value is 0.2
  5347. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5348. REQUIRE( gen.get() == Approx(expected) )
  5349. with expansion:
  5350. 0.5 == Approx( 0.5 )
  5351. with message:
  5352. Current expected value is 0.5
  5353. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5354. REQUIRE( gen.next() )
  5355. with expansion:
  5356. true
  5357. with message:
  5358. Current expected value is 0.5
  5359. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5360. REQUIRE_FALSE( gen.next() )
  5361. with expansion:
  5362. !false
  5363. -------------------------------------------------------------------------------
  5364. Generators internals
  5365. Range
  5366. Positive manual step
  5367. Floating Point
  5368. Slightly under end
  5369. -------------------------------------------------------------------------------
  5370. GeneratorsImpl.tests.cpp:<line number>
  5371. ...............................................................................
  5372. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5373. REQUIRE( gen.get() == Approx(expected) )
  5374. with expansion:
  5375. -1.0 == Approx( -1.0 )
  5376. with message:
  5377. Current expected value is -1
  5378. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5379. REQUIRE( gen.next() )
  5380. with expansion:
  5381. true
  5382. with message:
  5383. Current expected value is -1
  5384. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5385. REQUIRE( gen.get() == Approx(expected) )
  5386. with expansion:
  5387. -0.7 == Approx( -0.7 )
  5388. with message:
  5389. Current expected value is -0.7
  5390. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5391. REQUIRE( gen.next() )
  5392. with expansion:
  5393. true
  5394. with message:
  5395. Current expected value is -0.7
  5396. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5397. REQUIRE( gen.get() == Approx(expected) )
  5398. with expansion:
  5399. -0.4 == Approx( -0.4 )
  5400. with message:
  5401. Current expected value is -0.4
  5402. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5403. REQUIRE( gen.next() )
  5404. with expansion:
  5405. true
  5406. with message:
  5407. Current expected value is -0.4
  5408. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5409. REQUIRE( gen.get() == Approx(expected) )
  5410. with expansion:
  5411. -0.1 == Approx( -0.1 )
  5412. with message:
  5413. Current expected value is -0.1
  5414. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5415. REQUIRE( gen.next() )
  5416. with expansion:
  5417. true
  5418. with message:
  5419. Current expected value is -0.1
  5420. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5421. REQUIRE( gen.get() == Approx(expected) )
  5422. with expansion:
  5423. 0.2 == Approx( 0.2 )
  5424. with message:
  5425. Current expected value is 0.2
  5426. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5427. REQUIRE( gen.next() )
  5428. with expansion:
  5429. true
  5430. with message:
  5431. Current expected value is 0.2
  5432. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5433. REQUIRE( gen.get() == Approx(expected) )
  5434. with expansion:
  5435. 0.5 == Approx( 0.5 )
  5436. with message:
  5437. Current expected value is 0.5
  5438. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5439. REQUIRE( gen.next() )
  5440. with expansion:
  5441. true
  5442. with message:
  5443. Current expected value is 0.5
  5444. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5445. REQUIRE_FALSE( gen.next() )
  5446. with expansion:
  5447. !false
  5448. -------------------------------------------------------------------------------
  5449. Generators internals
  5450. Range
  5451. Negative manual step
  5452. Integer
  5453. Exact
  5454. -------------------------------------------------------------------------------
  5455. GeneratorsImpl.tests.cpp:<line number>
  5456. ...............................................................................
  5457. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5458. REQUIRE( gen.get() == 5 )
  5459. with expansion:
  5460. 5 == 5
  5461. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5462. REQUIRE( gen.next() )
  5463. with expansion:
  5464. true
  5465. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5466. REQUIRE( gen.get() == 2 )
  5467. with expansion:
  5468. 2 == 2
  5469. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5470. REQUIRE( gen.next() )
  5471. with expansion:
  5472. true
  5473. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5474. REQUIRE( gen.get() == -1 )
  5475. with expansion:
  5476. -1 == -1
  5477. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5478. REQUIRE( gen.next() )
  5479. with expansion:
  5480. true
  5481. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5482. REQUIRE( gen.get() == -4 )
  5483. with expansion:
  5484. -4 == -4
  5485. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5486. REQUIRE_FALSE( gen.next() )
  5487. with expansion:
  5488. !false
  5489. -------------------------------------------------------------------------------
  5490. Generators internals
  5491. Range
  5492. Negative manual step
  5493. Integer
  5494. Slightly over end
  5495. -------------------------------------------------------------------------------
  5496. GeneratorsImpl.tests.cpp:<line number>
  5497. ...............................................................................
  5498. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5499. REQUIRE( gen.get() == 5 )
  5500. with expansion:
  5501. 5 == 5
  5502. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5503. REQUIRE( gen.next() )
  5504. with expansion:
  5505. true
  5506. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5507. REQUIRE( gen.get() == 2 )
  5508. with expansion:
  5509. 2 == 2
  5510. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5511. REQUIRE( gen.next() )
  5512. with expansion:
  5513. true
  5514. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5515. REQUIRE( gen.get() == -1 )
  5516. with expansion:
  5517. -1 == -1
  5518. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5519. REQUIRE( gen.next() )
  5520. with expansion:
  5521. true
  5522. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5523. REQUIRE( gen.get() == -4 )
  5524. with expansion:
  5525. -4 == -4
  5526. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5527. REQUIRE_FALSE( gen.next() )
  5528. with expansion:
  5529. !false
  5530. -------------------------------------------------------------------------------
  5531. Generators internals
  5532. Range
  5533. Negative manual step
  5534. Integer
  5535. Slightly under end
  5536. -------------------------------------------------------------------------------
  5537. GeneratorsImpl.tests.cpp:<line number>
  5538. ...............................................................................
  5539. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5540. REQUIRE( gen.get() == 5 )
  5541. with expansion:
  5542. 5 == 5
  5543. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5544. REQUIRE( gen.next() )
  5545. with expansion:
  5546. true
  5547. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5548. REQUIRE( gen.get() == 2 )
  5549. with expansion:
  5550. 2 == 2
  5551. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5552. REQUIRE( gen.next() )
  5553. with expansion:
  5554. true
  5555. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5556. REQUIRE( gen.get() == -1 )
  5557. with expansion:
  5558. -1 == -1
  5559. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5560. REQUIRE( gen.next() )
  5561. with expansion:
  5562. true
  5563. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5564. REQUIRE( gen.get() == -4 )
  5565. with expansion:
  5566. -4 == -4
  5567. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5568. REQUIRE( gen.next() )
  5569. with expansion:
  5570. true
  5571. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5572. REQUIRE( gen.get() == -7 )
  5573. with expansion:
  5574. -7 == -7
  5575. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  5576. REQUIRE_FALSE( gen.next() )
  5577. with expansion:
  5578. !false
  5579. -------------------------------------------------------------------------------
  5580. Greater-than inequalities with different epsilons
  5581. -------------------------------------------------------------------------------
  5582. Approx.tests.cpp:<line number>
  5583. ...............................................................................
  5584. Approx.tests.cpp:<line number>: PASSED:
  5585. REQUIRE( d >= Approx( 1.22 ) )
  5586. with expansion:
  5587. 1.23 >= Approx( 1.22 )
  5588. Approx.tests.cpp:<line number>: PASSED:
  5589. REQUIRE( d >= Approx( 1.23 ) )
  5590. with expansion:
  5591. 1.23 >= Approx( 1.23 )
  5592. Approx.tests.cpp:<line number>: PASSED:
  5593. REQUIRE_FALSE( d >= Approx( 1.24 ) )
  5594. with expansion:
  5595. !(1.23 >= Approx( 1.24 ))
  5596. Approx.tests.cpp:<line number>: PASSED:
  5597. REQUIRE( d >= Approx( 1.24 ).epsilon(0.1) )
  5598. with expansion:
  5599. 1.23 >= Approx( 1.24 )
  5600. -------------------------------------------------------------------------------
  5601. Hashers with different seed produce different hash with same test case
  5602. -------------------------------------------------------------------------------
  5603. TestCaseInfoHasher.tests.cpp:<line number>
  5604. ...............................................................................
  5605. TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
  5606. REQUIRE( h1( dummy ) != h2( dummy ) )
  5607. with expansion:
  5608. 3422778688 (0x<hex digits>)
  5609. !=
  5610. 130711275 (0x<hex digits>)
  5611. -------------------------------------------------------------------------------
  5612. Hashers with same seed produce same hash
  5613. -------------------------------------------------------------------------------
  5614. TestCaseInfoHasher.tests.cpp:<line number>
  5615. ...............................................................................
  5616. TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
  5617. REQUIRE( h1( dummy ) == h2( dummy ) )
  5618. with expansion:
  5619. 3422778688 (0x<hex digits>)
  5620. ==
  5621. 3422778688 (0x<hex digits>)
  5622. -------------------------------------------------------------------------------
  5623. Hashing different test cases produces different result
  5624. Different test name
  5625. -------------------------------------------------------------------------------
  5626. TestCaseInfoHasher.tests.cpp:<line number>
  5627. ...............................................................................
  5628. TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
  5629. REQUIRE( h( dummy1 ) != h( dummy2 ) )
  5630. with expansion:
  5631. 2903002874 (0x<hex digits>)
  5632. !=
  5633. 2668622104 (0x<hex digits>)
  5634. -------------------------------------------------------------------------------
  5635. Hashing different test cases produces different result
  5636. Different classname
  5637. -------------------------------------------------------------------------------
  5638. TestCaseInfoHasher.tests.cpp:<line number>
  5639. ...............................................................................
  5640. TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
  5641. REQUIRE( h( dummy1 ) != h( dummy2 ) )
  5642. with expansion:
  5643. 2673152918 (0x<hex digits>)
  5644. !=
  5645. 3916075712 (0x<hex digits>)
  5646. -------------------------------------------------------------------------------
  5647. Hashing different test cases produces different result
  5648. Different tags
  5649. -------------------------------------------------------------------------------
  5650. TestCaseInfoHasher.tests.cpp:<line number>
  5651. ...............................................................................
  5652. TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
  5653. REQUIRE( h( dummy1 ) != h( dummy2 ) )
  5654. with expansion:
  5655. 2074929312 (0x<hex digits>)
  5656. !=
  5657. 3429949824 (0x<hex digits>)
  5658. -------------------------------------------------------------------------------
  5659. Hashing test case produces same hash across multiple calls
  5660. -------------------------------------------------------------------------------
  5661. TestCaseInfoHasher.tests.cpp:<line number>
  5662. ...............................................................................
  5663. TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
  5664. REQUIRE( h( dummy ) == h( dummy ) )
  5665. with expansion:
  5666. 3422778688 (0x<hex digits>)
  5667. ==
  5668. 3422778688 (0x<hex digits>)
  5669. -------------------------------------------------------------------------------
  5670. INFO and WARN do not abort tests
  5671. -------------------------------------------------------------------------------
  5672. Message.tests.cpp:<line number>
  5673. ...............................................................................
  5674. Message.tests.cpp:<line number>: warning:
  5675. this is a message
  5676. this is a warning
  5677. No assertions in test case 'INFO and WARN do not abort tests'
  5678. -------------------------------------------------------------------------------
  5679. INFO gets logged on failure
  5680. -------------------------------------------------------------------------------
  5681. Message.tests.cpp:<line number>
  5682. ...............................................................................
  5683. Message.tests.cpp:<line number>: FAILED:
  5684. REQUIRE( a == 1 )
  5685. with expansion:
  5686. 2 == 1
  5687. with messages:
  5688. this message should be logged
  5689. so should this
  5690. -------------------------------------------------------------------------------
  5691. INFO gets logged on failure, even if captured before successful assertions
  5692. -------------------------------------------------------------------------------
  5693. Message.tests.cpp:<line number>
  5694. ...............................................................................
  5695. Message.tests.cpp:<line number>: PASSED:
  5696. CHECK( a == 2 )
  5697. with expansion:
  5698. 2 == 2
  5699. with message:
  5700. this message may be logged later
  5701. Message.tests.cpp:<line number>: FAILED:
  5702. CHECK( a == 1 )
  5703. with expansion:
  5704. 2 == 1
  5705. with messages:
  5706. this message may be logged later
  5707. this message should be logged
  5708. Message.tests.cpp:<line number>: FAILED:
  5709. CHECK( a == 0 )
  5710. with expansion:
  5711. 2 == 0
  5712. with messages:
  5713. this message may be logged later
  5714. this message should be logged
  5715. and this, but later
  5716. Message.tests.cpp:<line number>: PASSED:
  5717. CHECK( a == 2 )
  5718. with expansion:
  5719. 2 == 2
  5720. with messages:
  5721. this message may be logged later
  5722. this message should be logged
  5723. and this, but later
  5724. but not this
  5725. -------------------------------------------------------------------------------
  5726. INFO is reset for each loop
  5727. -------------------------------------------------------------------------------
  5728. Message.tests.cpp:<line number>
  5729. ...............................................................................
  5730. Message.tests.cpp:<line number>: PASSED:
  5731. REQUIRE( i < 10 )
  5732. with expansion:
  5733. 0 < 10
  5734. with messages:
  5735. current counter 0
  5736. i := 0
  5737. Message.tests.cpp:<line number>: PASSED:
  5738. REQUIRE( i < 10 )
  5739. with expansion:
  5740. 1 < 10
  5741. with messages:
  5742. current counter 1
  5743. i := 1
  5744. Message.tests.cpp:<line number>: PASSED:
  5745. REQUIRE( i < 10 )
  5746. with expansion:
  5747. 2 < 10
  5748. with messages:
  5749. current counter 2
  5750. i := 2
  5751. Message.tests.cpp:<line number>: PASSED:
  5752. REQUIRE( i < 10 )
  5753. with expansion:
  5754. 3 < 10
  5755. with messages:
  5756. current counter 3
  5757. i := 3
  5758. Message.tests.cpp:<line number>: PASSED:
  5759. REQUIRE( i < 10 )
  5760. with expansion:
  5761. 4 < 10
  5762. with messages:
  5763. current counter 4
  5764. i := 4
  5765. Message.tests.cpp:<line number>: PASSED:
  5766. REQUIRE( i < 10 )
  5767. with expansion:
  5768. 5 < 10
  5769. with messages:
  5770. current counter 5
  5771. i := 5
  5772. Message.tests.cpp:<line number>: PASSED:
  5773. REQUIRE( i < 10 )
  5774. with expansion:
  5775. 6 < 10
  5776. with messages:
  5777. current counter 6
  5778. i := 6
  5779. Message.tests.cpp:<line number>: PASSED:
  5780. REQUIRE( i < 10 )
  5781. with expansion:
  5782. 7 < 10
  5783. with messages:
  5784. current counter 7
  5785. i := 7
  5786. Message.tests.cpp:<line number>: PASSED:
  5787. REQUIRE( i < 10 )
  5788. with expansion:
  5789. 8 < 10
  5790. with messages:
  5791. current counter 8
  5792. i := 8
  5793. Message.tests.cpp:<line number>: PASSED:
  5794. REQUIRE( i < 10 )
  5795. with expansion:
  5796. 9 < 10
  5797. with messages:
  5798. current counter 9
  5799. i := 9
  5800. Message.tests.cpp:<line number>: FAILED:
  5801. REQUIRE( i < 10 )
  5802. with expansion:
  5803. 10 < 10
  5804. with messages:
  5805. current counter 10
  5806. i := 10
  5807. -------------------------------------------------------------------------------
  5808. Inequality checks that should fail
  5809. -------------------------------------------------------------------------------
  5810. Condition.tests.cpp:<line number>
  5811. ...............................................................................
  5812. Condition.tests.cpp:<line number>: FAILED:
  5813. CHECK( data.int_seven != 7 )
  5814. with expansion:
  5815. 7 != 7
  5816. Condition.tests.cpp:<line number>: FAILED:
  5817. CHECK( data.float_nine_point_one != Approx( 9.1f ) )
  5818. with expansion:
  5819. 9.1f != Approx( 9.1000003815 )
  5820. Condition.tests.cpp:<line number>: FAILED:
  5821. CHECK( data.double_pi != Approx( 3.1415926535 ) )
  5822. with expansion:
  5823. 3.1415926535 != Approx( 3.1415926535 )
  5824. Condition.tests.cpp:<line number>: FAILED:
  5825. CHECK( data.str_hello != "hello" )
  5826. with expansion:
  5827. "hello" != "hello"
  5828. Condition.tests.cpp:<line number>: FAILED:
  5829. CHECK( data.str_hello.size() != 5 )
  5830. with expansion:
  5831. 5 != 5
  5832. -------------------------------------------------------------------------------
  5833. Inequality checks that should succeed
  5834. -------------------------------------------------------------------------------
  5835. Condition.tests.cpp:<line number>
  5836. ...............................................................................
  5837. Condition.tests.cpp:<line number>: PASSED:
  5838. REQUIRE( data.int_seven != 6 )
  5839. with expansion:
  5840. 7 != 6
  5841. Condition.tests.cpp:<line number>: PASSED:
  5842. REQUIRE( data.int_seven != 8 )
  5843. with expansion:
  5844. 7 != 8
  5845. Condition.tests.cpp:<line number>: PASSED:
  5846. REQUIRE( data.float_nine_point_one != Approx( 9.11f ) )
  5847. with expansion:
  5848. 9.1f != Approx( 9.1099996567 )
  5849. Condition.tests.cpp:<line number>: PASSED:
  5850. REQUIRE( data.float_nine_point_one != Approx( 9.0f ) )
  5851. with expansion:
  5852. 9.1f != Approx( 9.0 )
  5853. Condition.tests.cpp:<line number>: PASSED:
  5854. REQUIRE( data.float_nine_point_one != Approx( 1 ) )
  5855. with expansion:
  5856. 9.1f != Approx( 1.0 )
  5857. Condition.tests.cpp:<line number>: PASSED:
  5858. REQUIRE( data.float_nine_point_one != Approx( 0 ) )
  5859. with expansion:
  5860. 9.1f != Approx( 0.0 )
  5861. Condition.tests.cpp:<line number>: PASSED:
  5862. REQUIRE( data.double_pi != Approx( 3.1415 ) )
  5863. with expansion:
  5864. 3.1415926535 != Approx( 3.1415 )
  5865. Condition.tests.cpp:<line number>: PASSED:
  5866. REQUIRE( data.str_hello != "goodbye" )
  5867. with expansion:
  5868. "hello" != "goodbye"
  5869. Condition.tests.cpp:<line number>: PASSED:
  5870. REQUIRE( data.str_hello != "hell" )
  5871. with expansion:
  5872. "hello" != "hell"
  5873. Condition.tests.cpp:<line number>: PASSED:
  5874. REQUIRE( data.str_hello != "hello1" )
  5875. with expansion:
  5876. "hello" != "hello1"
  5877. Condition.tests.cpp:<line number>: PASSED:
  5878. REQUIRE( data.str_hello.size() != 6 )
  5879. with expansion:
  5880. 5 != 6
  5881. -------------------------------------------------------------------------------
  5882. Lambdas in assertions
  5883. -------------------------------------------------------------------------------
  5884. Compilation.tests.cpp:<line number>
  5885. ...............................................................................
  5886. Compilation.tests.cpp:<line number>: PASSED:
  5887. REQUIRE( []() { return true; }() )
  5888. with expansion:
  5889. true
  5890. -------------------------------------------------------------------------------
  5891. Less-than inequalities with different epsilons
  5892. -------------------------------------------------------------------------------
  5893. Approx.tests.cpp:<line number>
  5894. ...............................................................................
  5895. Approx.tests.cpp:<line number>: PASSED:
  5896. REQUIRE( d <= Approx( 1.24 ) )
  5897. with expansion:
  5898. 1.23 <= Approx( 1.24 )
  5899. Approx.tests.cpp:<line number>: PASSED:
  5900. REQUIRE( d <= Approx( 1.23 ) )
  5901. with expansion:
  5902. 1.23 <= Approx( 1.23 )
  5903. Approx.tests.cpp:<line number>: PASSED:
  5904. REQUIRE_FALSE( d <= Approx( 1.22 ) )
  5905. with expansion:
  5906. !(1.23 <= Approx( 1.22 ))
  5907. Approx.tests.cpp:<line number>: PASSED:
  5908. REQUIRE( d <= Approx( 1.22 ).epsilon(0.1) )
  5909. with expansion:
  5910. 1.23 <= Approx( 1.22 )
  5911. -------------------------------------------------------------------------------
  5912. ManuallyRegistered
  5913. -------------------------------------------------------------------------------
  5914. Misc.tests.cpp:<line number>
  5915. ...............................................................................
  5916. Misc.tests.cpp:<line number>: PASSED:
  5917. with message:
  5918. was called
  5919. -------------------------------------------------------------------------------
  5920. Matchers can be (AllOf) composed with the && operator
  5921. -------------------------------------------------------------------------------
  5922. Matchers.tests.cpp:<line number>
  5923. ...............................................................................
  5924. Matchers.tests.cpp:<line number>: PASSED:
  5925. CHECK_THAT( testStringForMatching(), ContainsSubstring( "string" ) && ContainsSubstring( "abc" ) && ContainsSubstring( "substring" ) && ContainsSubstring( "contains" ) )
  5926. with expansion:
  5927. "this string contains 'abc' as a substring" ( contains: "string" and
  5928. contains: "abc" and contains: "substring" and contains: "contains" )
  5929. -------------------------------------------------------------------------------
  5930. Matchers can be (AnyOf) composed with the || operator
  5931. -------------------------------------------------------------------------------
  5932. Matchers.tests.cpp:<line number>
  5933. ...............................................................................
  5934. Matchers.tests.cpp:<line number>: PASSED:
  5935. CHECK_THAT( testStringForMatching(), ContainsSubstring( "string" ) || ContainsSubstring( "different" ) || ContainsSubstring( "random" ) )
  5936. with expansion:
  5937. "this string contains 'abc' as a substring" ( contains: "string" or contains:
  5938. "different" or contains: "random" )
  5939. Matchers.tests.cpp:<line number>: PASSED:
  5940. CHECK_THAT( testStringForMatching2(), ContainsSubstring( "string" ) || ContainsSubstring( "different" ) || ContainsSubstring( "random" ) )
  5941. with expansion:
  5942. "some completely different text that contains one common word" ( contains:
  5943. "string" or contains: "different" or contains: "random" )
  5944. -------------------------------------------------------------------------------
  5945. Matchers can be composed with both && and ||
  5946. -------------------------------------------------------------------------------
  5947. Matchers.tests.cpp:<line number>
  5948. ...............................................................................
  5949. Matchers.tests.cpp:<line number>: PASSED:
  5950. CHECK_THAT( testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) && ContainsSubstring( "substring" ) )
  5951. with expansion:
  5952. "this string contains 'abc' as a substring" ( ( contains: "string" or
  5953. contains: "different" ) and contains: "substring" )
  5954. -------------------------------------------------------------------------------
  5955. Matchers can be composed with both && and || - failing
  5956. -------------------------------------------------------------------------------
  5957. Matchers.tests.cpp:<line number>
  5958. ...............................................................................
  5959. Matchers.tests.cpp:<line number>: FAILED:
  5960. CHECK_THAT( testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) && ContainsSubstring( "random" ) )
  5961. with expansion:
  5962. "this string contains 'abc' as a substring" ( ( contains: "string" or
  5963. contains: "different" ) and contains: "random" )
  5964. -------------------------------------------------------------------------------
  5965. Matchers can be negated (Not) with the ! operator
  5966. -------------------------------------------------------------------------------
  5967. Matchers.tests.cpp:<line number>
  5968. ...............................................................................
  5969. Matchers.tests.cpp:<line number>: PASSED:
  5970. CHECK_THAT( testStringForMatching(), !ContainsSubstring( "different" ) )
  5971. with expansion:
  5972. "this string contains 'abc' as a substring" not contains: "different"
  5973. -------------------------------------------------------------------------------
  5974. Matchers can be negated (Not) with the ! operator - failing
  5975. -------------------------------------------------------------------------------
  5976. Matchers.tests.cpp:<line number>
  5977. ...............................................................................
  5978. Matchers.tests.cpp:<line number>: FAILED:
  5979. CHECK_THAT( testStringForMatching(), !ContainsSubstring( "substring" ) )
  5980. with expansion:
  5981. "this string contains 'abc' as a substring" not contains: "substring"
  5982. -------------------------------------------------------------------------------
  5983. Mayfail test case with nested sections
  5984. A
  5985. 1
  5986. -------------------------------------------------------------------------------
  5987. Condition.tests.cpp:<line number>
  5988. ...............................................................................
  5989. Condition.tests.cpp:<line number>: FAILED:
  5990. -------------------------------------------------------------------------------
  5991. Mayfail test case with nested sections
  5992. A
  5993. 2
  5994. -------------------------------------------------------------------------------
  5995. Condition.tests.cpp:<line number>
  5996. ...............................................................................
  5997. Condition.tests.cpp:<line number>: FAILED:
  5998. -------------------------------------------------------------------------------
  5999. Mayfail test case with nested sections
  6000. B
  6001. 1
  6002. -------------------------------------------------------------------------------
  6003. Condition.tests.cpp:<line number>
  6004. ...............................................................................
  6005. Condition.tests.cpp:<line number>: FAILED:
  6006. -------------------------------------------------------------------------------
  6007. Mayfail test case with nested sections
  6008. B
  6009. 2
  6010. -------------------------------------------------------------------------------
  6011. Condition.tests.cpp:<line number>
  6012. ...............................................................................
  6013. Condition.tests.cpp:<line number>: FAILED:
  6014. -------------------------------------------------------------------------------
  6015. Mismatching exception messages failing the test
  6016. -------------------------------------------------------------------------------
  6017. Exception.tests.cpp:<line number>
  6018. ...............................................................................
  6019. Exception.tests.cpp:<line number>: PASSED:
  6020. REQUIRE_THROWS_WITH( thisThrows(), "expected exception" )
  6021. with expansion:
  6022. "expected exception" equals: "expected exception"
  6023. Exception.tests.cpp:<line number>: FAILED:
  6024. REQUIRE_THROWS_WITH( thisThrows(), "should fail" )
  6025. with expansion:
  6026. "expected exception" equals: "should fail"
  6027. -------------------------------------------------------------------------------
  6028. Multireporter calls reporters and listeners in correct order
  6029. -------------------------------------------------------------------------------
  6030. Reporters.tests.cpp:<line number>
  6031. ...............................................................................
  6032. Reporters.tests.cpp:<line number>: PASSED:
  6033. REQUIRE( records == expected )
  6034. with expansion:
  6035. { "Hello", "world", "Goodbye", "world" }
  6036. ==
  6037. { "Hello", "world", "Goodbye", "world" }
  6038. -------------------------------------------------------------------------------
  6039. Multireporter updates ReporterPreferences properly
  6040. -------------------------------------------------------------------------------
  6041. Reporters.tests.cpp:<line number>
  6042. ...............................................................................
  6043. Reporters.tests.cpp:<line number>: PASSED:
  6044. REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == false )
  6045. with expansion:
  6046. false == false
  6047. Reporters.tests.cpp:<line number>: PASSED:
  6048. REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
  6049. with expansion:
  6050. false == false
  6051. -------------------------------------------------------------------------------
  6052. Multireporter updates ReporterPreferences properly
  6053. Adding listeners
  6054. -------------------------------------------------------------------------------
  6055. Reporters.tests.cpp:<line number>
  6056. ...............................................................................
  6057. Reporters.tests.cpp:<line number>: PASSED:
  6058. REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
  6059. with expansion:
  6060. true == true
  6061. Reporters.tests.cpp:<line number>: PASSED:
  6062. REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
  6063. with expansion:
  6064. false == false
  6065. Reporters.tests.cpp:<line number>: PASSED:
  6066. REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
  6067. with expansion:
  6068. true == true
  6069. Reporters.tests.cpp:<line number>: PASSED:
  6070. REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
  6071. with expansion:
  6072. true == true
  6073. Reporters.tests.cpp:<line number>: PASSED:
  6074. REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
  6075. with expansion:
  6076. true == true
  6077. Reporters.tests.cpp:<line number>: PASSED:
  6078. REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
  6079. with expansion:
  6080. true == true
  6081. -------------------------------------------------------------------------------
  6082. Multireporter updates ReporterPreferences properly
  6083. -------------------------------------------------------------------------------
  6084. Reporters.tests.cpp:<line number>
  6085. ...............................................................................
  6086. Reporters.tests.cpp:<line number>: PASSED:
  6087. REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == false )
  6088. with expansion:
  6089. false == false
  6090. Reporters.tests.cpp:<line number>: PASSED:
  6091. REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
  6092. with expansion:
  6093. false == false
  6094. -------------------------------------------------------------------------------
  6095. Multireporter updates ReporterPreferences properly
  6096. Adding reporters
  6097. -------------------------------------------------------------------------------
  6098. Reporters.tests.cpp:<line number>
  6099. ...............................................................................
  6100. Reporters.tests.cpp:<line number>: PASSED:
  6101. REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
  6102. with expansion:
  6103. true == true
  6104. Reporters.tests.cpp:<line number>: PASSED:
  6105. REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
  6106. with expansion:
  6107. false == false
  6108. Reporters.tests.cpp:<line number>: PASSED:
  6109. REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
  6110. with expansion:
  6111. true == true
  6112. Reporters.tests.cpp:<line number>: PASSED:
  6113. REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
  6114. with expansion:
  6115. true == true
  6116. Reporters.tests.cpp:<line number>: PASSED:
  6117. REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
  6118. with expansion:
  6119. true == true
  6120. Reporters.tests.cpp:<line number>: PASSED:
  6121. REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
  6122. with expansion:
  6123. true == true
  6124. -------------------------------------------------------------------------------
  6125. Nested generators and captured variables
  6126. -------------------------------------------------------------------------------
  6127. Generators.tests.cpp:<line number>
  6128. ...............................................................................
  6129. Generators.tests.cpp:<line number>: PASSED:
  6130. REQUIRE( values > -6 )
  6131. with expansion:
  6132. 3 > -6
  6133. -------------------------------------------------------------------------------
  6134. Nested generators and captured variables
  6135. -------------------------------------------------------------------------------
  6136. Generators.tests.cpp:<line number>
  6137. ...............................................................................
  6138. Generators.tests.cpp:<line number>: PASSED:
  6139. REQUIRE( values > -6 )
  6140. with expansion:
  6141. 4 > -6
  6142. -------------------------------------------------------------------------------
  6143. Nested generators and captured variables
  6144. -------------------------------------------------------------------------------
  6145. Generators.tests.cpp:<line number>
  6146. ...............................................................................
  6147. Generators.tests.cpp:<line number>: PASSED:
  6148. REQUIRE( values > -6 )
  6149. with expansion:
  6150. 5 > -6
  6151. -------------------------------------------------------------------------------
  6152. Nested generators and captured variables
  6153. -------------------------------------------------------------------------------
  6154. Generators.tests.cpp:<line number>
  6155. ...............................................................................
  6156. Generators.tests.cpp:<line number>: PASSED:
  6157. REQUIRE( values > -6 )
  6158. with expansion:
  6159. 6 > -6
  6160. -------------------------------------------------------------------------------
  6161. Nested generators and captured variables
  6162. -------------------------------------------------------------------------------
  6163. Generators.tests.cpp:<line number>
  6164. ...............................................................................
  6165. Generators.tests.cpp:<line number>: PASSED:
  6166. REQUIRE( values > -6 )
  6167. with expansion:
  6168. -5 > -6
  6169. -------------------------------------------------------------------------------
  6170. Nested generators and captured variables
  6171. -------------------------------------------------------------------------------
  6172. Generators.tests.cpp:<line number>
  6173. ...............................................................................
  6174. Generators.tests.cpp:<line number>: PASSED:
  6175. REQUIRE( values > -6 )
  6176. with expansion:
  6177. -4 > -6
  6178. -------------------------------------------------------------------------------
  6179. Nested generators and captured variables
  6180. -------------------------------------------------------------------------------
  6181. Generators.tests.cpp:<line number>
  6182. ...............................................................................
  6183. Generators.tests.cpp:<line number>: PASSED:
  6184. REQUIRE( values > -6 )
  6185. with expansion:
  6186. 90 > -6
  6187. -------------------------------------------------------------------------------
  6188. Nested generators and captured variables
  6189. -------------------------------------------------------------------------------
  6190. Generators.tests.cpp:<line number>
  6191. ...............................................................................
  6192. Generators.tests.cpp:<line number>: PASSED:
  6193. REQUIRE( values > -6 )
  6194. with expansion:
  6195. 91 > -6
  6196. -------------------------------------------------------------------------------
  6197. Nested generators and captured variables
  6198. -------------------------------------------------------------------------------
  6199. Generators.tests.cpp:<line number>
  6200. ...............................................................................
  6201. Generators.tests.cpp:<line number>: PASSED:
  6202. REQUIRE( values > -6 )
  6203. with expansion:
  6204. 92 > -6
  6205. -------------------------------------------------------------------------------
  6206. Nested generators and captured variables
  6207. -------------------------------------------------------------------------------
  6208. Generators.tests.cpp:<line number>
  6209. ...............................................................................
  6210. Generators.tests.cpp:<line number>: PASSED:
  6211. REQUIRE( values > -6 )
  6212. with expansion:
  6213. 93 > -6
  6214. -------------------------------------------------------------------------------
  6215. Nested generators and captured variables
  6216. -------------------------------------------------------------------------------
  6217. Generators.tests.cpp:<line number>
  6218. ...............................................................................
  6219. Generators.tests.cpp:<line number>: PASSED:
  6220. REQUIRE( values > -6 )
  6221. with expansion:
  6222. 94 > -6
  6223. -------------------------------------------------------------------------------
  6224. Nested generators and captured variables
  6225. -------------------------------------------------------------------------------
  6226. Generators.tests.cpp:<line number>
  6227. ...............................................................................
  6228. Generators.tests.cpp:<line number>: PASSED:
  6229. REQUIRE( values > -6 )
  6230. with expansion:
  6231. 95 > -6
  6232. -------------------------------------------------------------------------------
  6233. Nested generators and captured variables
  6234. -------------------------------------------------------------------------------
  6235. Generators.tests.cpp:<line number>
  6236. ...............................................................................
  6237. Generators.tests.cpp:<line number>: PASSED:
  6238. REQUIRE( values > -6 )
  6239. with expansion:
  6240. 96 > -6
  6241. -------------------------------------------------------------------------------
  6242. Nested generators and captured variables
  6243. -------------------------------------------------------------------------------
  6244. Generators.tests.cpp:<line number>
  6245. ...............................................................................
  6246. Generators.tests.cpp:<line number>: PASSED:
  6247. REQUIRE( values > -6 )
  6248. with expansion:
  6249. 97 > -6
  6250. -------------------------------------------------------------------------------
  6251. Nested generators and captured variables
  6252. -------------------------------------------------------------------------------
  6253. Generators.tests.cpp:<line number>
  6254. ...............................................................................
  6255. Generators.tests.cpp:<line number>: PASSED:
  6256. REQUIRE( values > -6 )
  6257. with expansion:
  6258. 98 > -6
  6259. -------------------------------------------------------------------------------
  6260. Nested generators and captured variables
  6261. -------------------------------------------------------------------------------
  6262. Generators.tests.cpp:<line number>
  6263. ...............................................................................
  6264. Generators.tests.cpp:<line number>: PASSED:
  6265. REQUIRE( values > -6 )
  6266. with expansion:
  6267. 99 > -6
  6268. -------------------------------------------------------------------------------
  6269. Nice descriptive name
  6270. -------------------------------------------------------------------------------
  6271. Misc.tests.cpp:<line number>
  6272. ...............................................................................
  6273. Misc.tests.cpp:<line number>: warning:
  6274. This one ran
  6275. No assertions in test case 'Nice descriptive name'
  6276. -------------------------------------------------------------------------------
  6277. Non-std exceptions can be translated
  6278. -------------------------------------------------------------------------------
  6279. Exception.tests.cpp:<line number>
  6280. ...............................................................................
  6281. Exception.tests.cpp:<line number>: FAILED:
  6282. due to unexpected exception with message:
  6283. custom exception
  6284. -------------------------------------------------------------------------------
  6285. Objects that evaluated in boolean contexts can be checked
  6286. -------------------------------------------------------------------------------
  6287. Tricky.tests.cpp:<line number>
  6288. ...............................................................................
  6289. Tricky.tests.cpp:<line number>: PASSED:
  6290. CHECK( True )
  6291. with expansion:
  6292. {?}
  6293. Tricky.tests.cpp:<line number>: PASSED:
  6294. CHECK( !False )
  6295. with expansion:
  6296. true
  6297. Tricky.tests.cpp:<line number>: PASSED:
  6298. CHECK_FALSE( False )
  6299. with expansion:
  6300. !{?}
  6301. -------------------------------------------------------------------------------
  6302. Optionally static assertions
  6303. -------------------------------------------------------------------------------
  6304. Compilation.tests.cpp:<line number>
  6305. ...............................................................................
  6306. Compilation.tests.cpp:<line number>: PASSED:
  6307. with message:
  6308. std::is_void<void>::value
  6309. Compilation.tests.cpp:<line number>: PASSED:
  6310. with message:
  6311. !(std::is_void<int>::value)
  6312. Compilation.tests.cpp:<line number>: PASSED:
  6313. with message:
  6314. std::is_void<void>::value
  6315. Compilation.tests.cpp:<line number>: PASSED:
  6316. with message:
  6317. !(std::is_void<int>::value)
  6318. -------------------------------------------------------------------------------
  6319. Ordering comparison checks that should fail
  6320. -------------------------------------------------------------------------------
  6321. Condition.tests.cpp:<line number>
  6322. ...............................................................................
  6323. Condition.tests.cpp:<line number>: FAILED:
  6324. CHECK( data.int_seven > 7 )
  6325. with expansion:
  6326. 7 > 7
  6327. Condition.tests.cpp:<line number>: FAILED:
  6328. CHECK( data.int_seven < 7 )
  6329. with expansion:
  6330. 7 < 7
  6331. Condition.tests.cpp:<line number>: FAILED:
  6332. CHECK( data.int_seven > 8 )
  6333. with expansion:
  6334. 7 > 8
  6335. Condition.tests.cpp:<line number>: FAILED:
  6336. CHECK( data.int_seven < 6 )
  6337. with expansion:
  6338. 7 < 6
  6339. Condition.tests.cpp:<line number>: FAILED:
  6340. CHECK( data.int_seven < 0 )
  6341. with expansion:
  6342. 7 < 0
  6343. Condition.tests.cpp:<line number>: FAILED:
  6344. CHECK( data.int_seven < -1 )
  6345. with expansion:
  6346. 7 < -1
  6347. Condition.tests.cpp:<line number>: FAILED:
  6348. CHECK( data.int_seven >= 8 )
  6349. with expansion:
  6350. 7 >= 8
  6351. Condition.tests.cpp:<line number>: FAILED:
  6352. CHECK( data.int_seven <= 6 )
  6353. with expansion:
  6354. 7 <= 6
  6355. Condition.tests.cpp:<line number>: FAILED:
  6356. CHECK( data.float_nine_point_one < 9 )
  6357. with expansion:
  6358. 9.1f < 9
  6359. Condition.tests.cpp:<line number>: FAILED:
  6360. CHECK( data.float_nine_point_one > 10 )
  6361. with expansion:
  6362. 9.1f > 10
  6363. Condition.tests.cpp:<line number>: FAILED:
  6364. CHECK( data.float_nine_point_one > 9.2 )
  6365. with expansion:
  6366. 9.1f > 9.2
  6367. Condition.tests.cpp:<line number>: FAILED:
  6368. CHECK( data.str_hello > "hello" )
  6369. with expansion:
  6370. "hello" > "hello"
  6371. Condition.tests.cpp:<line number>: FAILED:
  6372. CHECK( data.str_hello < "hello" )
  6373. with expansion:
  6374. "hello" < "hello"
  6375. Condition.tests.cpp:<line number>: FAILED:
  6376. CHECK( data.str_hello > "hellp" )
  6377. with expansion:
  6378. "hello" > "hellp"
  6379. Condition.tests.cpp:<line number>: FAILED:
  6380. CHECK( data.str_hello > "z" )
  6381. with expansion:
  6382. "hello" > "z"
  6383. Condition.tests.cpp:<line number>: FAILED:
  6384. CHECK( data.str_hello < "hellm" )
  6385. with expansion:
  6386. "hello" < "hellm"
  6387. Condition.tests.cpp:<line number>: FAILED:
  6388. CHECK( data.str_hello < "a" )
  6389. with expansion:
  6390. "hello" < "a"
  6391. Condition.tests.cpp:<line number>: FAILED:
  6392. CHECK( data.str_hello >= "z" )
  6393. with expansion:
  6394. "hello" >= "z"
  6395. Condition.tests.cpp:<line number>: FAILED:
  6396. CHECK( data.str_hello <= "a" )
  6397. with expansion:
  6398. "hello" <= "a"
  6399. -------------------------------------------------------------------------------
  6400. Ordering comparison checks that should succeed
  6401. -------------------------------------------------------------------------------
  6402. Condition.tests.cpp:<line number>
  6403. ...............................................................................
  6404. Condition.tests.cpp:<line number>: PASSED:
  6405. REQUIRE( data.int_seven < 8 )
  6406. with expansion:
  6407. 7 < 8
  6408. Condition.tests.cpp:<line number>: PASSED:
  6409. REQUIRE( data.int_seven > 6 )
  6410. with expansion:
  6411. 7 > 6
  6412. Condition.tests.cpp:<line number>: PASSED:
  6413. REQUIRE( data.int_seven > 0 )
  6414. with expansion:
  6415. 7 > 0
  6416. Condition.tests.cpp:<line number>: PASSED:
  6417. REQUIRE( data.int_seven > -1 )
  6418. with expansion:
  6419. 7 > -1
  6420. Condition.tests.cpp:<line number>: PASSED:
  6421. REQUIRE( data.int_seven >= 7 )
  6422. with expansion:
  6423. 7 >= 7
  6424. Condition.tests.cpp:<line number>: PASSED:
  6425. REQUIRE( data.int_seven >= 6 )
  6426. with expansion:
  6427. 7 >= 6
  6428. Condition.tests.cpp:<line number>: PASSED:
  6429. REQUIRE( data.int_seven <= 7 )
  6430. with expansion:
  6431. 7 <= 7
  6432. Condition.tests.cpp:<line number>: PASSED:
  6433. REQUIRE( data.int_seven <= 8 )
  6434. with expansion:
  6435. 7 <= 8
  6436. Condition.tests.cpp:<line number>: PASSED:
  6437. REQUIRE( data.float_nine_point_one > 9 )
  6438. with expansion:
  6439. 9.1f > 9
  6440. Condition.tests.cpp:<line number>: PASSED:
  6441. REQUIRE( data.float_nine_point_one < 10 )
  6442. with expansion:
  6443. 9.1f < 10
  6444. Condition.tests.cpp:<line number>: PASSED:
  6445. REQUIRE( data.float_nine_point_one < 9.2 )
  6446. with expansion:
  6447. 9.1f < 9.2
  6448. Condition.tests.cpp:<line number>: PASSED:
  6449. REQUIRE( data.str_hello <= "hello" )
  6450. with expansion:
  6451. "hello" <= "hello"
  6452. Condition.tests.cpp:<line number>: PASSED:
  6453. REQUIRE( data.str_hello >= "hello" )
  6454. with expansion:
  6455. "hello" >= "hello"
  6456. Condition.tests.cpp:<line number>: PASSED:
  6457. REQUIRE( data.str_hello < "hellp" )
  6458. with expansion:
  6459. "hello" < "hellp"
  6460. Condition.tests.cpp:<line number>: PASSED:
  6461. REQUIRE( data.str_hello < "zebra" )
  6462. with expansion:
  6463. "hello" < "zebra"
  6464. Condition.tests.cpp:<line number>: PASSED:
  6465. REQUIRE( data.str_hello > "hellm" )
  6466. with expansion:
  6467. "hello" > "hellm"
  6468. Condition.tests.cpp:<line number>: PASSED:
  6469. REQUIRE( data.str_hello > "a" )
  6470. with expansion:
  6471. "hello" > "a"
  6472. -------------------------------------------------------------------------------
  6473. Our PCG implementation provides expected results for known seeds
  6474. Default seeded
  6475. -------------------------------------------------------------------------------
  6476. RandomNumberGeneration.tests.cpp:<line number>
  6477. ...............................................................................
  6478. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  6479. REQUIRE( rng() == 0x<hex digits> )
  6480. with expansion:
  6481. 4242248763 (0x<hex digits>)
  6482. ==
  6483. 4242248763 (0x<hex digits>)
  6484. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  6485. REQUIRE( rng() == 0x<hex digits> )
  6486. with expansion:
  6487. 1867888929 (0x<hex digits>)
  6488. ==
  6489. 1867888929 (0x<hex digits>)
  6490. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  6491. REQUIRE( rng() == 0x<hex digits> )
  6492. with expansion:
  6493. 1276619030 (0x<hex digits>)
  6494. ==
  6495. 1276619030 (0x<hex digits>)
  6496. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  6497. REQUIRE( rng() == 0x<hex digits> )
  6498. with expansion:
  6499. 1911218783 (0x<hex digits>)
  6500. ==
  6501. 1911218783 (0x<hex digits>)
  6502. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  6503. REQUIRE( rng() == 0x<hex digits> )
  6504. with expansion:
  6505. 1827115164 (0x<hex digits>)
  6506. ==
  6507. 1827115164 (0x<hex digits>)
  6508. -------------------------------------------------------------------------------
  6509. Our PCG implementation provides expected results for known seeds
  6510. Specific seed
  6511. -------------------------------------------------------------------------------
  6512. RandomNumberGeneration.tests.cpp:<line number>
  6513. ...............................................................................
  6514. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  6515. REQUIRE( rng() == 0x<hex digits> )
  6516. with expansion:
  6517. 1472234645 (0x<hex digits>)
  6518. ==
  6519. 1472234645 (0x<hex digits>)
  6520. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  6521. REQUIRE( rng() == 0x<hex digits> )
  6522. with expansion:
  6523. 868832940 (0x<hex digits>)
  6524. ==
  6525. 868832940 (0x<hex digits>)
  6526. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  6527. REQUIRE( rng() == 0x<hex digits> )
  6528. with expansion:
  6529. 570883446 (0x<hex digits>)
  6530. ==
  6531. 570883446 (0x<hex digits>)
  6532. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  6533. REQUIRE( rng() == 0x<hex digits> )
  6534. with expansion:
  6535. 889299803 (0x<hex digits>)
  6536. ==
  6537. 889299803 (0x<hex digits>)
  6538. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  6539. REQUIRE( rng() == 0x<hex digits> )
  6540. with expansion:
  6541. 4261393167 (0x<hex digits>)
  6542. ==
  6543. 4261393167 (0x<hex digits>)
  6544. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  6545. REQUIRE( rng() == 0x<hex digits> )
  6546. with expansion:
  6547. 1472234645 (0x<hex digits>)
  6548. ==
  6549. 1472234645 (0x<hex digits>)
  6550. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  6551. REQUIRE( rng() == 0x<hex digits> )
  6552. with expansion:
  6553. 868832940 (0x<hex digits>)
  6554. ==
  6555. 868832940 (0x<hex digits>)
  6556. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  6557. REQUIRE( rng() == 0x<hex digits> )
  6558. with expansion:
  6559. 570883446 (0x<hex digits>)
  6560. ==
  6561. 570883446 (0x<hex digits>)
  6562. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  6563. REQUIRE( rng() == 0x<hex digits> )
  6564. with expansion:
  6565. 889299803 (0x<hex digits>)
  6566. ==
  6567. 889299803 (0x<hex digits>)
  6568. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  6569. REQUIRE( rng() == 0x<hex digits> )
  6570. with expansion:
  6571. 4261393167 (0x<hex digits>)
  6572. ==
  6573. 4261393167 (0x<hex digits>)
  6574. -------------------------------------------------------------------------------
  6575. Output from all sections is reported
  6576. one
  6577. -------------------------------------------------------------------------------
  6578. Message.tests.cpp:<line number>
  6579. ...............................................................................
  6580. Message.tests.cpp:<line number>: FAILED:
  6581. explicitly with message:
  6582. Message from section one
  6583. -------------------------------------------------------------------------------
  6584. Output from all sections is reported
  6585. two
  6586. -------------------------------------------------------------------------------
  6587. Message.tests.cpp:<line number>
  6588. ...............................................................................
  6589. Message.tests.cpp:<line number>: FAILED:
  6590. explicitly with message:
  6591. Message from section two
  6592. -------------------------------------------------------------------------------
  6593. Overloaded comma or address-of operators are not used
  6594. -------------------------------------------------------------------------------
  6595. Matchers.tests.cpp:<line number>
  6596. ...............................................................................
  6597. Matchers.tests.cpp:<line number>: PASSED:
  6598. REQUIRE_THROWS_AS( ( EvilMatcher(), EvilMatcher() ), EvilCommaOperatorUsed )
  6599. Matchers.tests.cpp:<line number>: PASSED:
  6600. REQUIRE_THROWS_AS( &EvilMatcher(), EvilAddressOfOperatorUsed )
  6601. Matchers.tests.cpp:<line number>: PASSED:
  6602. REQUIRE_NOTHROW( EvilMatcher() || ( EvilMatcher() && !EvilMatcher() ) )
  6603. Matchers.tests.cpp:<line number>: PASSED:
  6604. REQUIRE_NOTHROW( ( EvilMatcher() && EvilMatcher() ) || !EvilMatcher() )
  6605. -------------------------------------------------------------------------------
  6606. Parse test names and tags
  6607. Empty test spec should have no filters
  6608. -------------------------------------------------------------------------------
  6609. CmdLine.tests.cpp:<line number>
  6610. ...............................................................................
  6611. CmdLine.tests.cpp:<line number>: PASSED:
  6612. CHECK( spec.hasFilters() == false )
  6613. with expansion:
  6614. false == false
  6615. CmdLine.tests.cpp:<line number>: PASSED:
  6616. CHECK( spec.matches( *tcA ) == false )
  6617. with expansion:
  6618. false == false
  6619. CmdLine.tests.cpp:<line number>: PASSED:
  6620. CHECK( spec.matches( *tcB ) == false )
  6621. with expansion:
  6622. false == false
  6623. -------------------------------------------------------------------------------
  6624. Parse test names and tags
  6625. Test spec from empty string should have no filters
  6626. -------------------------------------------------------------------------------
  6627. CmdLine.tests.cpp:<line number>
  6628. ...............................................................................
  6629. CmdLine.tests.cpp:<line number>: PASSED:
  6630. CHECK( spec.hasFilters() == false )
  6631. with expansion:
  6632. false == false
  6633. CmdLine.tests.cpp:<line number>: PASSED:
  6634. CHECK( spec.matches( *tcA ) == false )
  6635. with expansion:
  6636. false == false
  6637. CmdLine.tests.cpp:<line number>: PASSED:
  6638. CHECK( spec.matches( *tcB ) == false )
  6639. with expansion:
  6640. false == false
  6641. -------------------------------------------------------------------------------
  6642. Parse test names and tags
  6643. Test spec from just a comma should have no filters
  6644. -------------------------------------------------------------------------------
  6645. CmdLine.tests.cpp:<line number>
  6646. ...............................................................................
  6647. CmdLine.tests.cpp:<line number>: PASSED:
  6648. CHECK( spec.hasFilters() == false )
  6649. with expansion:
  6650. false == false
  6651. CmdLine.tests.cpp:<line number>: PASSED:
  6652. CHECK( spec.matches( *tcA ) == false )
  6653. with expansion:
  6654. false == false
  6655. CmdLine.tests.cpp:<line number>: PASSED:
  6656. CHECK( spec.matches( *tcB ) == false )
  6657. with expansion:
  6658. false == false
  6659. -------------------------------------------------------------------------------
  6660. Parse test names and tags
  6661. Test spec from name should have one filter
  6662. -------------------------------------------------------------------------------
  6663. CmdLine.tests.cpp:<line number>
  6664. ...............................................................................
  6665. CmdLine.tests.cpp:<line number>: PASSED:
  6666. CHECK( spec.hasFilters() == true )
  6667. with expansion:
  6668. true == true
  6669. CmdLine.tests.cpp:<line number>: PASSED:
  6670. CHECK( spec.matches( *tcA ) == false )
  6671. with expansion:
  6672. false == false
  6673. CmdLine.tests.cpp:<line number>: PASSED:
  6674. CHECK( spec.matches( *tcB ) == true )
  6675. with expansion:
  6676. true == true
  6677. -------------------------------------------------------------------------------
  6678. Parse test names and tags
  6679. Test spec from quoted name should have one filter
  6680. -------------------------------------------------------------------------------
  6681. CmdLine.tests.cpp:<line number>
  6682. ...............................................................................
  6683. CmdLine.tests.cpp:<line number>: PASSED:
  6684. CHECK( spec.hasFilters() == true )
  6685. with expansion:
  6686. true == true
  6687. CmdLine.tests.cpp:<line number>: PASSED:
  6688. CHECK( spec.matches( *tcA ) == false )
  6689. with expansion:
  6690. false == false
  6691. CmdLine.tests.cpp:<line number>: PASSED:
  6692. CHECK( spec.matches( *tcB ) == true )
  6693. with expansion:
  6694. true == true
  6695. -------------------------------------------------------------------------------
  6696. Parse test names and tags
  6697. Test spec from name should have one filter
  6698. -------------------------------------------------------------------------------
  6699. CmdLine.tests.cpp:<line number>
  6700. ...............................................................................
  6701. CmdLine.tests.cpp:<line number>: PASSED:
  6702. CHECK( spec.hasFilters() == true )
  6703. with expansion:
  6704. true == true
  6705. CmdLine.tests.cpp:<line number>: PASSED:
  6706. CHECK( spec.matches( *tcA ) == false )
  6707. with expansion:
  6708. false == false
  6709. CmdLine.tests.cpp:<line number>: PASSED:
  6710. CHECK( spec.matches( *tcB ) == true )
  6711. with expansion:
  6712. true == true
  6713. CmdLine.tests.cpp:<line number>: PASSED:
  6714. CHECK( spec.matches( *tcC ) == false )
  6715. with expansion:
  6716. false == false
  6717. -------------------------------------------------------------------------------
  6718. Parse test names and tags
  6719. Wildcard at the start
  6720. -------------------------------------------------------------------------------
  6721. CmdLine.tests.cpp:<line number>
  6722. ...............................................................................
  6723. CmdLine.tests.cpp:<line number>: PASSED:
  6724. CHECK( spec.hasFilters() == true )
  6725. with expansion:
  6726. true == true
  6727. CmdLine.tests.cpp:<line number>: PASSED:
  6728. CHECK( spec.matches( *tcA ) == false )
  6729. with expansion:
  6730. false == false
  6731. CmdLine.tests.cpp:<line number>: PASSED:
  6732. CHECK( spec.matches( *tcB ) == false )
  6733. with expansion:
  6734. false == false
  6735. CmdLine.tests.cpp:<line number>: PASSED:
  6736. CHECK( spec.matches( *tcC ) == true )
  6737. with expansion:
  6738. true == true
  6739. CmdLine.tests.cpp:<line number>: PASSED:
  6740. CHECK( spec.matches( *tcD ) == false )
  6741. with expansion:
  6742. false == false
  6743. CmdLine.tests.cpp:<line number>: PASSED:
  6744. CHECK( parseTestSpec( "*a" ).matches( *tcA ) == true )
  6745. with expansion:
  6746. true == true
  6747. -------------------------------------------------------------------------------
  6748. Parse test names and tags
  6749. Wildcard at the end
  6750. -------------------------------------------------------------------------------
  6751. CmdLine.tests.cpp:<line number>
  6752. ...............................................................................
  6753. CmdLine.tests.cpp:<line number>: PASSED:
  6754. CHECK( spec.hasFilters() == true )
  6755. with expansion:
  6756. true == true
  6757. CmdLine.tests.cpp:<line number>: PASSED:
  6758. CHECK( spec.matches( *tcA ) == false )
  6759. with expansion:
  6760. false == false
  6761. CmdLine.tests.cpp:<line number>: PASSED:
  6762. CHECK( spec.matches( *tcB ) == false )
  6763. with expansion:
  6764. false == false
  6765. CmdLine.tests.cpp:<line number>: PASSED:
  6766. CHECK( spec.matches( *tcC ) == true )
  6767. with expansion:
  6768. true == true
  6769. CmdLine.tests.cpp:<line number>: PASSED:
  6770. CHECK( spec.matches( *tcD ) == false )
  6771. with expansion:
  6772. false == false
  6773. CmdLine.tests.cpp:<line number>: PASSED:
  6774. CHECK( parseTestSpec( "a*" ).matches( *tcA ) == true )
  6775. with expansion:
  6776. true == true
  6777. -------------------------------------------------------------------------------
  6778. Parse test names and tags
  6779. Wildcard at both ends
  6780. -------------------------------------------------------------------------------
  6781. CmdLine.tests.cpp:<line number>
  6782. ...............................................................................
  6783. CmdLine.tests.cpp:<line number>: PASSED:
  6784. CHECK( spec.hasFilters() == true )
  6785. with expansion:
  6786. true == true
  6787. CmdLine.tests.cpp:<line number>: PASSED:
  6788. CHECK( spec.matches( *tcA ) == false )
  6789. with expansion:
  6790. false == false
  6791. CmdLine.tests.cpp:<line number>: PASSED:
  6792. CHECK( spec.matches( *tcB ) == false )
  6793. with expansion:
  6794. false == false
  6795. CmdLine.tests.cpp:<line number>: PASSED:
  6796. CHECK( spec.matches( *tcC ) == true )
  6797. with expansion:
  6798. true == true
  6799. CmdLine.tests.cpp:<line number>: PASSED:
  6800. CHECK( spec.matches( *tcD ) == true )
  6801. with expansion:
  6802. true == true
  6803. CmdLine.tests.cpp:<line number>: PASSED:
  6804. CHECK( parseTestSpec( "*a*" ).matches( *tcA ) == true )
  6805. with expansion:
  6806. true == true
  6807. -------------------------------------------------------------------------------
  6808. Parse test names and tags
  6809. Redundant wildcard at the start
  6810. -------------------------------------------------------------------------------
  6811. CmdLine.tests.cpp:<line number>
  6812. ...............................................................................
  6813. CmdLine.tests.cpp:<line number>: PASSED:
  6814. CHECK( spec.hasFilters() == true )
  6815. with expansion:
  6816. true == true
  6817. CmdLine.tests.cpp:<line number>: PASSED:
  6818. CHECK( spec.matches( *tcA ) == true )
  6819. with expansion:
  6820. true == true
  6821. CmdLine.tests.cpp:<line number>: PASSED:
  6822. CHECK( spec.matches( *tcB ) == false )
  6823. with expansion:
  6824. false == false
  6825. -------------------------------------------------------------------------------
  6826. Parse test names and tags
  6827. Redundant wildcard at the end
  6828. -------------------------------------------------------------------------------
  6829. CmdLine.tests.cpp:<line number>
  6830. ...............................................................................
  6831. CmdLine.tests.cpp:<line number>: PASSED:
  6832. CHECK( spec.hasFilters() == true )
  6833. with expansion:
  6834. true == true
  6835. CmdLine.tests.cpp:<line number>: PASSED:
  6836. CHECK( spec.matches( *tcA ) == true )
  6837. with expansion:
  6838. true == true
  6839. CmdLine.tests.cpp:<line number>: PASSED:
  6840. CHECK( spec.matches( *tcB ) == false )
  6841. with expansion:
  6842. false == false
  6843. -------------------------------------------------------------------------------
  6844. Parse test names and tags
  6845. Redundant wildcard at both ends
  6846. -------------------------------------------------------------------------------
  6847. CmdLine.tests.cpp:<line number>
  6848. ...............................................................................
  6849. CmdLine.tests.cpp:<line number>: PASSED:
  6850. CHECK( spec.hasFilters() == true )
  6851. with expansion:
  6852. true == true
  6853. CmdLine.tests.cpp:<line number>: PASSED:
  6854. CHECK( spec.matches( *tcA ) == true )
  6855. with expansion:
  6856. true == true
  6857. CmdLine.tests.cpp:<line number>: PASSED:
  6858. CHECK( spec.matches( *tcB ) == false )
  6859. with expansion:
  6860. false == false
  6861. -------------------------------------------------------------------------------
  6862. Parse test names and tags
  6863. Wildcard at both ends, redundant at start
  6864. -------------------------------------------------------------------------------
  6865. CmdLine.tests.cpp:<line number>
  6866. ...............................................................................
  6867. CmdLine.tests.cpp:<line number>: PASSED:
  6868. CHECK( spec.hasFilters() == true )
  6869. with expansion:
  6870. true == true
  6871. CmdLine.tests.cpp:<line number>: PASSED:
  6872. CHECK( spec.matches( *tcA ) == false )
  6873. with expansion:
  6874. false == false
  6875. CmdLine.tests.cpp:<line number>: PASSED:
  6876. CHECK( spec.matches( *tcB ) == false )
  6877. with expansion:
  6878. false == false
  6879. CmdLine.tests.cpp:<line number>: PASSED:
  6880. CHECK( spec.matches( *tcC ) == true )
  6881. with expansion:
  6882. true == true
  6883. CmdLine.tests.cpp:<line number>: PASSED:
  6884. CHECK( spec.matches( *tcD ) == true )
  6885. with expansion:
  6886. true == true
  6887. -------------------------------------------------------------------------------
  6888. Parse test names and tags
  6889. Just wildcard
  6890. -------------------------------------------------------------------------------
  6891. CmdLine.tests.cpp:<line number>
  6892. ...............................................................................
  6893. CmdLine.tests.cpp:<line number>: PASSED:
  6894. CHECK( spec.hasFilters() == true )
  6895. with expansion:
  6896. true == true
  6897. CmdLine.tests.cpp:<line number>: PASSED:
  6898. CHECK( spec.matches( *tcA ) == true )
  6899. with expansion:
  6900. true == true
  6901. CmdLine.tests.cpp:<line number>: PASSED:
  6902. CHECK( spec.matches( *tcB ) == true )
  6903. with expansion:
  6904. true == true
  6905. CmdLine.tests.cpp:<line number>: PASSED:
  6906. CHECK( spec.matches( *tcC ) == true )
  6907. with expansion:
  6908. true == true
  6909. CmdLine.tests.cpp:<line number>: PASSED:
  6910. CHECK( spec.matches( *tcD ) == true )
  6911. with expansion:
  6912. true == true
  6913. -------------------------------------------------------------------------------
  6914. Parse test names and tags
  6915. Single tag
  6916. -------------------------------------------------------------------------------
  6917. CmdLine.tests.cpp:<line number>
  6918. ...............................................................................
  6919. CmdLine.tests.cpp:<line number>: PASSED:
  6920. CHECK( spec.hasFilters() == true )
  6921. with expansion:
  6922. true == true
  6923. CmdLine.tests.cpp:<line number>: PASSED:
  6924. CHECK( spec.matches( *tcA ) == false )
  6925. with expansion:
  6926. false == false
  6927. CmdLine.tests.cpp:<line number>: PASSED:
  6928. CHECK( spec.matches( *tcB ) == true )
  6929. with expansion:
  6930. true == true
  6931. CmdLine.tests.cpp:<line number>: PASSED:
  6932. CHECK( spec.matches( *tcC ) == false )
  6933. with expansion:
  6934. false == false
  6935. -------------------------------------------------------------------------------
  6936. Parse test names and tags
  6937. Single tag, two matches
  6938. -------------------------------------------------------------------------------
  6939. CmdLine.tests.cpp:<line number>
  6940. ...............................................................................
  6941. CmdLine.tests.cpp:<line number>: PASSED:
  6942. CHECK( spec.hasFilters() == true )
  6943. with expansion:
  6944. true == true
  6945. CmdLine.tests.cpp:<line number>: PASSED:
  6946. CHECK( spec.matches( *tcA ) == false )
  6947. with expansion:
  6948. false == false
  6949. CmdLine.tests.cpp:<line number>: PASSED:
  6950. CHECK( spec.matches( *tcB ) == true )
  6951. with expansion:
  6952. true == true
  6953. CmdLine.tests.cpp:<line number>: PASSED:
  6954. CHECK( spec.matches( *tcC ) == true )
  6955. with expansion:
  6956. true == true
  6957. -------------------------------------------------------------------------------
  6958. Parse test names and tags
  6959. Two tags
  6960. -------------------------------------------------------------------------------
  6961. CmdLine.tests.cpp:<line number>
  6962. ...............................................................................
  6963. CmdLine.tests.cpp:<line number>: PASSED:
  6964. CHECK( spec.hasFilters() == true )
  6965. with expansion:
  6966. true == true
  6967. CmdLine.tests.cpp:<line number>: PASSED:
  6968. CHECK( spec.matches( *tcA ) == false )
  6969. with expansion:
  6970. false == false
  6971. CmdLine.tests.cpp:<line number>: PASSED:
  6972. CHECK( spec.matches( *tcB ) == false )
  6973. with expansion:
  6974. false == false
  6975. CmdLine.tests.cpp:<line number>: PASSED:
  6976. CHECK( spec.matches( *tcC ) == true )
  6977. with expansion:
  6978. true == true
  6979. -------------------------------------------------------------------------------
  6980. Parse test names and tags
  6981. Two tags, spare separated
  6982. -------------------------------------------------------------------------------
  6983. CmdLine.tests.cpp:<line number>
  6984. ...............................................................................
  6985. CmdLine.tests.cpp:<line number>: PASSED:
  6986. CHECK( spec.hasFilters() == true )
  6987. with expansion:
  6988. true == true
  6989. CmdLine.tests.cpp:<line number>: PASSED:
  6990. CHECK( spec.matches( *tcA ) == false )
  6991. with expansion:
  6992. false == false
  6993. CmdLine.tests.cpp:<line number>: PASSED:
  6994. CHECK( spec.matches( *tcB ) == false )
  6995. with expansion:
  6996. false == false
  6997. CmdLine.tests.cpp:<line number>: PASSED:
  6998. CHECK( spec.matches( *tcC ) == true )
  6999. with expansion:
  7000. true == true
  7001. -------------------------------------------------------------------------------
  7002. Parse test names and tags
  7003. Wildcarded name and tag
  7004. -------------------------------------------------------------------------------
  7005. CmdLine.tests.cpp:<line number>
  7006. ...............................................................................
  7007. CmdLine.tests.cpp:<line number>: PASSED:
  7008. CHECK( spec.hasFilters() == true )
  7009. with expansion:
  7010. true == true
  7011. CmdLine.tests.cpp:<line number>: PASSED:
  7012. CHECK( spec.matches( *tcA ) == false )
  7013. with expansion:
  7014. false == false
  7015. CmdLine.tests.cpp:<line number>: PASSED:
  7016. CHECK( spec.matches( *tcB ) == false )
  7017. with expansion:
  7018. false == false
  7019. CmdLine.tests.cpp:<line number>: PASSED:
  7020. CHECK( spec.matches( *tcC ) == true )
  7021. with expansion:
  7022. true == true
  7023. CmdLine.tests.cpp:<line number>: PASSED:
  7024. CHECK( spec.matches( *tcD ) == false )
  7025. with expansion:
  7026. false == false
  7027. -------------------------------------------------------------------------------
  7028. Parse test names and tags
  7029. Single tag exclusion
  7030. -------------------------------------------------------------------------------
  7031. CmdLine.tests.cpp:<line number>
  7032. ...............................................................................
  7033. CmdLine.tests.cpp:<line number>: PASSED:
  7034. CHECK( spec.hasFilters() == true )
  7035. with expansion:
  7036. true == true
  7037. CmdLine.tests.cpp:<line number>: PASSED:
  7038. CHECK( spec.matches( *tcA ) == true )
  7039. with expansion:
  7040. true == true
  7041. CmdLine.tests.cpp:<line number>: PASSED:
  7042. CHECK( spec.matches( *tcB ) == false )
  7043. with expansion:
  7044. false == false
  7045. CmdLine.tests.cpp:<line number>: PASSED:
  7046. CHECK( spec.matches( *tcC ) == false )
  7047. with expansion:
  7048. false == false
  7049. -------------------------------------------------------------------------------
  7050. Parse test names and tags
  7051. One tag exclusion and one tag inclusion
  7052. -------------------------------------------------------------------------------
  7053. CmdLine.tests.cpp:<line number>
  7054. ...............................................................................
  7055. CmdLine.tests.cpp:<line number>: PASSED:
  7056. CHECK( spec.hasFilters() == true )
  7057. with expansion:
  7058. true == true
  7059. CmdLine.tests.cpp:<line number>: PASSED:
  7060. CHECK( spec.matches( *tcA ) == false )
  7061. with expansion:
  7062. false == false
  7063. CmdLine.tests.cpp:<line number>: PASSED:
  7064. CHECK( spec.matches( *tcB ) == true )
  7065. with expansion:
  7066. true == true
  7067. CmdLine.tests.cpp:<line number>: PASSED:
  7068. CHECK( spec.matches( *tcC ) == false )
  7069. with expansion:
  7070. false == false
  7071. -------------------------------------------------------------------------------
  7072. Parse test names and tags
  7073. One tag exclusion and one wldcarded name inclusion
  7074. -------------------------------------------------------------------------------
  7075. CmdLine.tests.cpp:<line number>
  7076. ...............................................................................
  7077. CmdLine.tests.cpp:<line number>: PASSED:
  7078. CHECK( spec.hasFilters() == true )
  7079. with expansion:
  7080. true == true
  7081. CmdLine.tests.cpp:<line number>: PASSED:
  7082. CHECK( spec.matches( *tcA ) == false )
  7083. with expansion:
  7084. false == false
  7085. CmdLine.tests.cpp:<line number>: PASSED:
  7086. CHECK( spec.matches( *tcB ) == false )
  7087. with expansion:
  7088. false == false
  7089. CmdLine.tests.cpp:<line number>: PASSED:
  7090. CHECK( spec.matches( *tcC ) == false )
  7091. with expansion:
  7092. false == false
  7093. CmdLine.tests.cpp:<line number>: PASSED:
  7094. CHECK( spec.matches( *tcD ) == true )
  7095. with expansion:
  7096. true == true
  7097. -------------------------------------------------------------------------------
  7098. Parse test names and tags
  7099. One tag exclusion, using exclude:, and one wldcarded name inclusion
  7100. -------------------------------------------------------------------------------
  7101. CmdLine.tests.cpp:<line number>
  7102. ...............................................................................
  7103. CmdLine.tests.cpp:<line number>: PASSED:
  7104. CHECK( spec.hasFilters() == true )
  7105. with expansion:
  7106. true == true
  7107. CmdLine.tests.cpp:<line number>: PASSED:
  7108. CHECK( spec.matches( *tcA ) == false )
  7109. with expansion:
  7110. false == false
  7111. CmdLine.tests.cpp:<line number>: PASSED:
  7112. CHECK( spec.matches( *tcB ) == false )
  7113. with expansion:
  7114. false == false
  7115. CmdLine.tests.cpp:<line number>: PASSED:
  7116. CHECK( spec.matches( *tcC ) == false )
  7117. with expansion:
  7118. false == false
  7119. CmdLine.tests.cpp:<line number>: PASSED:
  7120. CHECK( spec.matches( *tcD ) == true )
  7121. with expansion:
  7122. true == true
  7123. -------------------------------------------------------------------------------
  7124. Parse test names and tags
  7125. name exclusion
  7126. -------------------------------------------------------------------------------
  7127. CmdLine.tests.cpp:<line number>
  7128. ...............................................................................
  7129. CmdLine.tests.cpp:<line number>: PASSED:
  7130. CHECK( spec.hasFilters() == true )
  7131. with expansion:
  7132. true == true
  7133. CmdLine.tests.cpp:<line number>: PASSED:
  7134. CHECK( spec.matches( *tcA ) == true )
  7135. with expansion:
  7136. true == true
  7137. CmdLine.tests.cpp:<line number>: PASSED:
  7138. CHECK( spec.matches( *tcB ) == false )
  7139. with expansion:
  7140. false == false
  7141. CmdLine.tests.cpp:<line number>: PASSED:
  7142. CHECK( spec.matches( *tcC ) == false )
  7143. with expansion:
  7144. false == false
  7145. CmdLine.tests.cpp:<line number>: PASSED:
  7146. CHECK( spec.matches( *tcD ) == true )
  7147. with expansion:
  7148. true == true
  7149. -------------------------------------------------------------------------------
  7150. Parse test names and tags
  7151. wildcarded name exclusion
  7152. -------------------------------------------------------------------------------
  7153. CmdLine.tests.cpp:<line number>
  7154. ...............................................................................
  7155. CmdLine.tests.cpp:<line number>: PASSED:
  7156. CHECK( spec.hasFilters() == true )
  7157. with expansion:
  7158. true == true
  7159. CmdLine.tests.cpp:<line number>: PASSED:
  7160. CHECK( spec.matches( *tcA ) == true )
  7161. with expansion:
  7162. true == true
  7163. CmdLine.tests.cpp:<line number>: PASSED:
  7164. CHECK( spec.matches( *tcB ) == true )
  7165. with expansion:
  7166. true == true
  7167. CmdLine.tests.cpp:<line number>: PASSED:
  7168. CHECK( spec.matches( *tcC ) == false )
  7169. with expansion:
  7170. false == false
  7171. CmdLine.tests.cpp:<line number>: PASSED:
  7172. CHECK( spec.matches( *tcD ) == false )
  7173. with expansion:
  7174. false == false
  7175. -------------------------------------------------------------------------------
  7176. Parse test names and tags
  7177. wildcarded name exclusion with tag inclusion
  7178. -------------------------------------------------------------------------------
  7179. CmdLine.tests.cpp:<line number>
  7180. ...............................................................................
  7181. CmdLine.tests.cpp:<line number>: PASSED:
  7182. CHECK( spec.hasFilters() == true )
  7183. with expansion:
  7184. true == true
  7185. CmdLine.tests.cpp:<line number>: PASSED:
  7186. CHECK( spec.matches( *tcA ) == true )
  7187. with expansion:
  7188. true == true
  7189. CmdLine.tests.cpp:<line number>: PASSED:
  7190. CHECK( spec.matches( *tcB ) == true )
  7191. with expansion:
  7192. true == true
  7193. CmdLine.tests.cpp:<line number>: PASSED:
  7194. CHECK( spec.matches( *tcC ) == true )
  7195. with expansion:
  7196. true == true
  7197. CmdLine.tests.cpp:<line number>: PASSED:
  7198. CHECK( spec.matches( *tcD ) == false )
  7199. with expansion:
  7200. false == false
  7201. -------------------------------------------------------------------------------
  7202. Parse test names and tags
  7203. wildcarded name exclusion, using exclude:, with tag inclusion
  7204. -------------------------------------------------------------------------------
  7205. CmdLine.tests.cpp:<line number>
  7206. ...............................................................................
  7207. CmdLine.tests.cpp:<line number>: PASSED:
  7208. CHECK( spec.hasFilters() == true )
  7209. with expansion:
  7210. true == true
  7211. CmdLine.tests.cpp:<line number>: PASSED:
  7212. CHECK( spec.matches( *tcA ) == true )
  7213. with expansion:
  7214. true == true
  7215. CmdLine.tests.cpp:<line number>: PASSED:
  7216. CHECK( spec.matches( *tcB ) == true )
  7217. with expansion:
  7218. true == true
  7219. CmdLine.tests.cpp:<line number>: PASSED:
  7220. CHECK( spec.matches( *tcC ) == true )
  7221. with expansion:
  7222. true == true
  7223. CmdLine.tests.cpp:<line number>: PASSED:
  7224. CHECK( spec.matches( *tcD ) == false )
  7225. with expansion:
  7226. false == false
  7227. -------------------------------------------------------------------------------
  7228. Parse test names and tags
  7229. two wildcarded names
  7230. -------------------------------------------------------------------------------
  7231. CmdLine.tests.cpp:<line number>
  7232. ...............................................................................
  7233. CmdLine.tests.cpp:<line number>: PASSED:
  7234. CHECK( spec.hasFilters() == true )
  7235. with expansion:
  7236. true == true
  7237. CmdLine.tests.cpp:<line number>: PASSED:
  7238. CHECK( spec.matches( *tcA ) == false )
  7239. with expansion:
  7240. false == false
  7241. CmdLine.tests.cpp:<line number>: PASSED:
  7242. CHECK( spec.matches( *tcB ) == false )
  7243. with expansion:
  7244. false == false
  7245. CmdLine.tests.cpp:<line number>: PASSED:
  7246. CHECK( spec.matches( *tcC ) == true )
  7247. with expansion:
  7248. true == true
  7249. CmdLine.tests.cpp:<line number>: PASSED:
  7250. CHECK( spec.matches( *tcD ) == false )
  7251. with expansion:
  7252. false == false
  7253. -------------------------------------------------------------------------------
  7254. Parse test names and tags
  7255. empty tag
  7256. -------------------------------------------------------------------------------
  7257. CmdLine.tests.cpp:<line number>
  7258. ...............................................................................
  7259. CmdLine.tests.cpp:<line number>: PASSED:
  7260. CHECK( spec.hasFilters() == false )
  7261. with expansion:
  7262. false == false
  7263. CmdLine.tests.cpp:<line number>: PASSED:
  7264. CHECK( spec.matches( *tcA ) == false )
  7265. with expansion:
  7266. false == false
  7267. CmdLine.tests.cpp:<line number>: PASSED:
  7268. CHECK( spec.matches( *tcB ) == false )
  7269. with expansion:
  7270. false == false
  7271. CmdLine.tests.cpp:<line number>: PASSED:
  7272. CHECK( spec.matches( *tcC ) == false )
  7273. with expansion:
  7274. false == false
  7275. CmdLine.tests.cpp:<line number>: PASSED:
  7276. CHECK( spec.matches( *tcD ) == false )
  7277. with expansion:
  7278. false == false
  7279. -------------------------------------------------------------------------------
  7280. Parse test names and tags
  7281. empty quoted name
  7282. -------------------------------------------------------------------------------
  7283. CmdLine.tests.cpp:<line number>
  7284. ...............................................................................
  7285. CmdLine.tests.cpp:<line number>: PASSED:
  7286. CHECK( spec.hasFilters() == false )
  7287. with expansion:
  7288. false == false
  7289. CmdLine.tests.cpp:<line number>: PASSED:
  7290. CHECK( spec.matches( *tcA ) == false )
  7291. with expansion:
  7292. false == false
  7293. CmdLine.tests.cpp:<line number>: PASSED:
  7294. CHECK( spec.matches( *tcB ) == false )
  7295. with expansion:
  7296. false == false
  7297. CmdLine.tests.cpp:<line number>: PASSED:
  7298. CHECK( spec.matches( *tcC ) == false )
  7299. with expansion:
  7300. false == false
  7301. CmdLine.tests.cpp:<line number>: PASSED:
  7302. CHECK( spec.matches( *tcD ) == false )
  7303. with expansion:
  7304. false == false
  7305. -------------------------------------------------------------------------------
  7306. Parse test names and tags
  7307. quoted string followed by tag exclusion
  7308. -------------------------------------------------------------------------------
  7309. CmdLine.tests.cpp:<line number>
  7310. ...............................................................................
  7311. CmdLine.tests.cpp:<line number>: PASSED:
  7312. CHECK( spec.hasFilters() == true )
  7313. with expansion:
  7314. true == true
  7315. CmdLine.tests.cpp:<line number>: PASSED:
  7316. CHECK( spec.matches( *tcA ) == false )
  7317. with expansion:
  7318. false == false
  7319. CmdLine.tests.cpp:<line number>: PASSED:
  7320. CHECK( spec.matches( *tcB ) == false )
  7321. with expansion:
  7322. false == false
  7323. CmdLine.tests.cpp:<line number>: PASSED:
  7324. CHECK( spec.matches( *tcC ) == false )
  7325. with expansion:
  7326. false == false
  7327. CmdLine.tests.cpp:<line number>: PASSED:
  7328. CHECK( spec.matches( *tcD ) == true )
  7329. with expansion:
  7330. true == true
  7331. -------------------------------------------------------------------------------
  7332. Parse test names and tags
  7333. Leading and trailing spaces in test spec
  7334. -------------------------------------------------------------------------------
  7335. CmdLine.tests.cpp:<line number>
  7336. ...............................................................................
  7337. CmdLine.tests.cpp:<line number>: PASSED:
  7338. CHECK( spec.matches( *fakeTestCase( " aardvark " ) ) )
  7339. with expansion:
  7340. true
  7341. CmdLine.tests.cpp:<line number>: PASSED:
  7342. CHECK( spec.matches( *fakeTestCase( " aardvark" ) ) )
  7343. with expansion:
  7344. true
  7345. CmdLine.tests.cpp:<line number>: PASSED:
  7346. CHECK( spec.matches( *fakeTestCase( " aardvark " ) ) )
  7347. with expansion:
  7348. true
  7349. CmdLine.tests.cpp:<line number>: PASSED:
  7350. CHECK( spec.matches( *fakeTestCase( "aardvark " ) ) )
  7351. with expansion:
  7352. true
  7353. CmdLine.tests.cpp:<line number>: PASSED:
  7354. CHECK( spec.matches( *fakeTestCase( "aardvark" ) ) )
  7355. with expansion:
  7356. true
  7357. -------------------------------------------------------------------------------
  7358. Parse test names and tags
  7359. Leading and trailing spaces in test name
  7360. -------------------------------------------------------------------------------
  7361. CmdLine.tests.cpp:<line number>
  7362. ...............................................................................
  7363. CmdLine.tests.cpp:<line number>: PASSED:
  7364. CHECK( spec.matches( *fakeTestCase( " aardvark " ) ) )
  7365. with expansion:
  7366. true
  7367. CmdLine.tests.cpp:<line number>: PASSED:
  7368. CHECK( spec.matches( *fakeTestCase( " aardvark" ) ) )
  7369. with expansion:
  7370. true
  7371. CmdLine.tests.cpp:<line number>: PASSED:
  7372. CHECK( spec.matches( *fakeTestCase( " aardvark " ) ) )
  7373. with expansion:
  7374. true
  7375. CmdLine.tests.cpp:<line number>: PASSED:
  7376. CHECK( spec.matches( *fakeTestCase( "aardvark " ) ) )
  7377. with expansion:
  7378. true
  7379. CmdLine.tests.cpp:<line number>: PASSED:
  7380. CHECK( spec.matches( *fakeTestCase( "aardvark" ) ) )
  7381. with expansion:
  7382. true
  7383. -------------------------------------------------------------------------------
  7384. Parse test names and tags
  7385. Shortened hide tags are split apart when parsing
  7386. -------------------------------------------------------------------------------
  7387. CmdLine.tests.cpp:<line number>
  7388. ...............................................................................
  7389. CmdLine.tests.cpp:<line number>: PASSED:
  7390. CHECK( spec.matches(*fakeTestCase("hidden and foo", "[.][foo]")) )
  7391. with expansion:
  7392. true
  7393. CmdLine.tests.cpp:<line number>: PASSED:
  7394. CHECK_FALSE( spec.matches(*fakeTestCase("only foo", "[foo]")) )
  7395. with expansion:
  7396. !false
  7397. -------------------------------------------------------------------------------
  7398. Parse test names and tags
  7399. Shortened hide tags also properly handle exclusion
  7400. -------------------------------------------------------------------------------
  7401. CmdLine.tests.cpp:<line number>
  7402. ...............................................................................
  7403. CmdLine.tests.cpp:<line number>: PASSED:
  7404. CHECK_FALSE( spec.matches(*fakeTestCase("hidden and foo", "[.][foo]")) )
  7405. with expansion:
  7406. !false
  7407. CmdLine.tests.cpp:<line number>: PASSED:
  7408. CHECK_FALSE( spec.matches(*fakeTestCase("only foo", "[foo]")) )
  7409. with expansion:
  7410. !false
  7411. CmdLine.tests.cpp:<line number>: PASSED:
  7412. CHECK_FALSE( spec.matches(*fakeTestCase("only hidden", "[.]")) )
  7413. with expansion:
  7414. !false
  7415. CmdLine.tests.cpp:<line number>: PASSED:
  7416. CHECK( spec.matches(*fakeTestCase("neither foo nor hidden", "[bar]")) )
  7417. with expansion:
  7418. true
  7419. -------------------------------------------------------------------------------
  7420. Parsed tags are matched case insensitive
  7421. -------------------------------------------------------------------------------
  7422. TestSpecParser.tests.cpp:<line number>
  7423. ...............................................................................
  7424. TestSpecParser.tests.cpp:<line number>: PASSED:
  7425. REQUIRE( spec.hasFilters() )
  7426. with expansion:
  7427. true
  7428. TestSpecParser.tests.cpp:<line number>: PASSED:
  7429. REQUIRE( spec.getInvalidSpecs().empty() )
  7430. with expansion:
  7431. true
  7432. TestSpecParser.tests.cpp:<line number>: PASSED:
  7433. REQUIRE( spec.matches( testCase ) )
  7434. with expansion:
  7435. true
  7436. -------------------------------------------------------------------------------
  7437. Parsing sharding-related cli flags
  7438. shard-count
  7439. -------------------------------------------------------------------------------
  7440. CmdLine.tests.cpp:<line number>
  7441. ...............................................................................
  7442. CmdLine.tests.cpp:<line number>: PASSED:
  7443. CHECK( cli.parse({ "test", "--shard-count=8" }) )
  7444. with expansion:
  7445. {?}
  7446. CmdLine.tests.cpp:<line number>: PASSED:
  7447. REQUIRE( config.shardCount == 8 )
  7448. with expansion:
  7449. 8 == 8
  7450. -------------------------------------------------------------------------------
  7451. Parsing sharding-related cli flags
  7452. Negative shard count reports error
  7453. -------------------------------------------------------------------------------
  7454. CmdLine.tests.cpp:<line number>
  7455. ...............................................................................
  7456. CmdLine.tests.cpp:<line number>: PASSED:
  7457. CHECK_FALSE( result )
  7458. with expansion:
  7459. !{?}
  7460. CmdLine.tests.cpp:<line number>: PASSED:
  7461. REQUIRE_THAT( result.errorMessage(), ContainsSubstring("Shard count must be a positive number") )
  7462. with expansion:
  7463. "Shard count must be a positive number" contains: "Shard count must be a
  7464. positive number"
  7465. -------------------------------------------------------------------------------
  7466. Parsing sharding-related cli flags
  7467. Zero shard count reports error
  7468. -------------------------------------------------------------------------------
  7469. CmdLine.tests.cpp:<line number>
  7470. ...............................................................................
  7471. CmdLine.tests.cpp:<line number>: PASSED:
  7472. CHECK_FALSE( result )
  7473. with expansion:
  7474. !{?}
  7475. CmdLine.tests.cpp:<line number>: PASSED:
  7476. REQUIRE_THAT( result.errorMessage(), ContainsSubstring("Shard count must be a positive number") )
  7477. with expansion:
  7478. "Shard count must be a positive number" contains: "Shard count must be a
  7479. positive number"
  7480. -------------------------------------------------------------------------------
  7481. Parsing sharding-related cli flags
  7482. shard-index
  7483. -------------------------------------------------------------------------------
  7484. CmdLine.tests.cpp:<line number>
  7485. ...............................................................................
  7486. CmdLine.tests.cpp:<line number>: PASSED:
  7487. CHECK( cli.parse({ "test", "--shard-index=2" }) )
  7488. with expansion:
  7489. {?}
  7490. CmdLine.tests.cpp:<line number>: PASSED:
  7491. REQUIRE( config.shardIndex == 2 )
  7492. with expansion:
  7493. 2 == 2
  7494. -------------------------------------------------------------------------------
  7495. Parsing sharding-related cli flags
  7496. Negative shard index reports error
  7497. -------------------------------------------------------------------------------
  7498. CmdLine.tests.cpp:<line number>
  7499. ...............................................................................
  7500. CmdLine.tests.cpp:<line number>: PASSED:
  7501. CHECK_FALSE( result )
  7502. with expansion:
  7503. !{?}
  7504. CmdLine.tests.cpp:<line number>: PASSED:
  7505. REQUIRE_THAT( result.errorMessage(), ContainsSubstring("Shard index must be a non-negative number") )
  7506. with expansion:
  7507. "Shard index must be a non-negative number" contains: "Shard index must be a
  7508. non-negative number"
  7509. -------------------------------------------------------------------------------
  7510. Parsing sharding-related cli flags
  7511. Shard index 0 is accepted
  7512. -------------------------------------------------------------------------------
  7513. CmdLine.tests.cpp:<line number>
  7514. ...............................................................................
  7515. CmdLine.tests.cpp:<line number>: PASSED:
  7516. CHECK( cli.parse({ "test", "--shard-index=0" }) )
  7517. with expansion:
  7518. {?}
  7519. CmdLine.tests.cpp:<line number>: PASSED:
  7520. REQUIRE( config.shardIndex == 0 )
  7521. with expansion:
  7522. 0 == 0
  7523. -------------------------------------------------------------------------------
  7524. Parsing tags with non-alphabetical characters is pass-through
  7525. -------------------------------------------------------------------------------
  7526. TestSpecParser.tests.cpp:<line number>
  7527. ...............................................................................
  7528. TestSpecParser.tests.cpp:<line number>: PASSED:
  7529. REQUIRE( spec.hasFilters() )
  7530. with expansion:
  7531. true
  7532. with message:
  7533. tagString := "[tag with spaces]"
  7534. TestSpecParser.tests.cpp:<line number>: PASSED:
  7535. REQUIRE( spec.getInvalidSpecs().empty() )
  7536. with expansion:
  7537. true
  7538. with message:
  7539. tagString := "[tag with spaces]"
  7540. TestSpecParser.tests.cpp:<line number>: PASSED:
  7541. REQUIRE( spec.matches( testCase ) )
  7542. with expansion:
  7543. true
  7544. with message:
  7545. tagString := "[tag with spaces]"
  7546. -------------------------------------------------------------------------------
  7547. Parsing tags with non-alphabetical characters is pass-through
  7548. -------------------------------------------------------------------------------
  7549. TestSpecParser.tests.cpp:<line number>
  7550. ...............................................................................
  7551. TestSpecParser.tests.cpp:<line number>: PASSED:
  7552. REQUIRE( spec.hasFilters() )
  7553. with expansion:
  7554. true
  7555. with message:
  7556. tagString := "[I said "good day" sir!]"
  7557. TestSpecParser.tests.cpp:<line number>: PASSED:
  7558. REQUIRE( spec.getInvalidSpecs().empty() )
  7559. with expansion:
  7560. true
  7561. with message:
  7562. tagString := "[I said "good day" sir!]"
  7563. TestSpecParser.tests.cpp:<line number>: PASSED:
  7564. REQUIRE( spec.matches( testCase ) )
  7565. with expansion:
  7566. true
  7567. with message:
  7568. tagString := "[I said "good day" sir!]"
  7569. -------------------------------------------------------------------------------
  7570. Parsing warnings
  7571. NoAssertions
  7572. -------------------------------------------------------------------------------
  7573. CmdLine.tests.cpp:<line number>
  7574. ...............................................................................
  7575. CmdLine.tests.cpp:<line number>: PASSED:
  7576. REQUIRE( cli.parse( { "test", "-w", "NoAssertions" } ) )
  7577. with expansion:
  7578. {?}
  7579. CmdLine.tests.cpp:<line number>: PASSED:
  7580. REQUIRE( config.warnings == WarnAbout::NoAssertions )
  7581. with expansion:
  7582. 1 == 1
  7583. -------------------------------------------------------------------------------
  7584. Parsing warnings
  7585. NoTests is no longer supported
  7586. -------------------------------------------------------------------------------
  7587. CmdLine.tests.cpp:<line number>
  7588. ...............................................................................
  7589. CmdLine.tests.cpp:<line number>: PASSED:
  7590. REQUIRE_FALSE( cli.parse( { "test", "-w", "NoTests" } ) )
  7591. with expansion:
  7592. !{?}
  7593. -------------------------------------------------------------------------------
  7594. Parsing warnings
  7595. Combining multiple warnings
  7596. -------------------------------------------------------------------------------
  7597. CmdLine.tests.cpp:<line number>
  7598. ...............................................................................
  7599. CmdLine.tests.cpp:<line number>: PASSED:
  7600. REQUIRE( cli.parse( { "test", "--warn", "NoAssertions", "--warn", "UnmatchedTestSpec" } ) )
  7601. with expansion:
  7602. {?}
  7603. CmdLine.tests.cpp:<line number>: PASSED:
  7604. REQUIRE( config.warnings == ( WarnAbout::NoAssertions | WarnAbout::UnmatchedTestSpec ) )
  7605. with expansion:
  7606. 3 == 3
  7607. -------------------------------------------------------------------------------
  7608. Pointers can be compared to null
  7609. -------------------------------------------------------------------------------
  7610. Condition.tests.cpp:<line number>
  7611. ...............................................................................
  7612. Condition.tests.cpp:<line number>: PASSED:
  7613. REQUIRE( p == 0 )
  7614. with expansion:
  7615. 0 == 0
  7616. Condition.tests.cpp:<line number>: PASSED:
  7617. REQUIRE( p == pNULL )
  7618. with expansion:
  7619. 0 == 0
  7620. Condition.tests.cpp:<line number>: PASSED:
  7621. REQUIRE( p != 0 )
  7622. with expansion:
  7623. 0x<hex digits> != 0
  7624. Condition.tests.cpp:<line number>: PASSED:
  7625. REQUIRE( cp != 0 )
  7626. with expansion:
  7627. 0x<hex digits> != 0
  7628. Condition.tests.cpp:<line number>: PASSED:
  7629. REQUIRE( cpc != 0 )
  7630. with expansion:
  7631. 0x<hex digits> != 0
  7632. Condition.tests.cpp:<line number>: PASSED:
  7633. REQUIRE( returnsNull() == 0 )
  7634. with expansion:
  7635. {null string} == 0
  7636. Condition.tests.cpp:<line number>: PASSED:
  7637. REQUIRE( returnsConstNull() == 0 )
  7638. with expansion:
  7639. {null string} == 0
  7640. Condition.tests.cpp:<line number>: PASSED:
  7641. REQUIRE( 0 != p )
  7642. with expansion:
  7643. 0 != 0x<hex digits>
  7644. -------------------------------------------------------------------------------
  7645. Precision of floating point stringification can be set
  7646. Floats
  7647. -------------------------------------------------------------------------------
  7648. ToStringGeneral.tests.cpp:<line number>
  7649. ...............................................................................
  7650. ToStringGeneral.tests.cpp:<line number>: PASSED:
  7651. CHECK( str1.size() == 3 + 5 )
  7652. with expansion:
  7653. 8 == 8
  7654. ToStringGeneral.tests.cpp:<line number>: PASSED:
  7655. REQUIRE( str2.size() == 3 + 10 )
  7656. with expansion:
  7657. 13 == 13
  7658. -------------------------------------------------------------------------------
  7659. Precision of floating point stringification can be set
  7660. Double
  7661. -------------------------------------------------------------------------------
  7662. ToStringGeneral.tests.cpp:<line number>
  7663. ...............................................................................
  7664. ToStringGeneral.tests.cpp:<line number>: PASSED:
  7665. CHECK( str1.size() == 2 + 5 )
  7666. with expansion:
  7667. 7 == 7
  7668. ToStringGeneral.tests.cpp:<line number>: PASSED:
  7669. REQUIRE( str2.size() == 2 + 15 )
  7670. with expansion:
  7671. 17 == 17
  7672. -------------------------------------------------------------------------------
  7673. Predicate matcher can accept const char*
  7674. -------------------------------------------------------------------------------
  7675. Matchers.tests.cpp:<line number>
  7676. ...............................................................................
  7677. Matchers.tests.cpp:<line number>: PASSED:
  7678. REQUIRE_THAT( "foo", Predicate<const char*>( []( const char* const& ) { return true; } ) )
  7679. with expansion:
  7680. "foo" matches undescribed predicate
  7681. -------------------------------------------------------------------------------
  7682. Process can be configured on command line
  7683. empty args don't cause a crash
  7684. -------------------------------------------------------------------------------
  7685. CmdLine.tests.cpp:<line number>
  7686. ...............................................................................
  7687. CmdLine.tests.cpp:<line number>: PASSED:
  7688. CHECK( result )
  7689. with expansion:
  7690. {?}
  7691. CmdLine.tests.cpp:<line number>: PASSED:
  7692. CHECK( config.processName == "" )
  7693. with expansion:
  7694. "" == ""
  7695. -------------------------------------------------------------------------------
  7696. Process can be configured on command line
  7697. default - no arguments
  7698. -------------------------------------------------------------------------------
  7699. CmdLine.tests.cpp:<line number>
  7700. ...............................................................................
  7701. CmdLine.tests.cpp:<line number>: PASSED:
  7702. CHECK( result )
  7703. with expansion:
  7704. {?}
  7705. CmdLine.tests.cpp:<line number>: PASSED:
  7706. CHECK( config.processName == "test" )
  7707. with expansion:
  7708. "test" == "test"
  7709. CmdLine.tests.cpp:<line number>: PASSED:
  7710. CHECK( config.shouldDebugBreak == false )
  7711. with expansion:
  7712. false == false
  7713. CmdLine.tests.cpp:<line number>: PASSED:
  7714. CHECK( config.abortAfter == -1 )
  7715. with expansion:
  7716. -1 == -1
  7717. CmdLine.tests.cpp:<line number>: PASSED:
  7718. CHECK( config.noThrow == false )
  7719. with expansion:
  7720. false == false
  7721. CmdLine.tests.cpp:<line number>: PASSED:
  7722. CHECK( config.reporterSpecifications.empty() )
  7723. with expansion:
  7724. true
  7725. CmdLine.tests.cpp:<line number>: PASSED:
  7726. CHECK_FALSE( cfg.hasTestFilters() )
  7727. with expansion:
  7728. !false
  7729. CmdLine.tests.cpp:<line number>: PASSED:
  7730. CHECK( cfg.getReporterSpecs().size() == 1 )
  7731. with expansion:
  7732. 1 == 1
  7733. CmdLine.tests.cpp:<line number>: PASSED:
  7734. CHECK( cfg.getReporterSpecs()[0] == Catch::ReporterSpec{ expectedReporter, {}, {}, {} } )
  7735. with expansion:
  7736. {?} == {?}
  7737. CmdLine.tests.cpp:<line number>: PASSED:
  7738. CHECK( cfg.getProcessedReporterSpecs().size() == 1 )
  7739. with expansion:
  7740. 1 == 1
  7741. CmdLine.tests.cpp:<line number>: PASSED:
  7742. CHECK( cfg.getProcessedReporterSpecs()[0] == Catch::ProcessedReporterSpec{ expectedReporter, std::string{}, Catch::ColourMode::PlatformDefault, {} } )
  7743. with expansion:
  7744. {?} == {?}
  7745. -------------------------------------------------------------------------------
  7746. Process can be configured on command line
  7747. test lists
  7748. Specify one test case using
  7749. -------------------------------------------------------------------------------
  7750. CmdLine.tests.cpp:<line number>
  7751. ...............................................................................
  7752. CmdLine.tests.cpp:<line number>: PASSED:
  7753. CHECK( result )
  7754. with expansion:
  7755. {?}
  7756. CmdLine.tests.cpp:<line number>: PASSED:
  7757. REQUIRE( cfg.hasTestFilters() )
  7758. with expansion:
  7759. true
  7760. CmdLine.tests.cpp:<line number>: PASSED:
  7761. REQUIRE( cfg.testSpec().matches(*fakeTestCase("notIncluded")) == false )
  7762. with expansion:
  7763. false == false
  7764. CmdLine.tests.cpp:<line number>: PASSED:
  7765. REQUIRE( cfg.testSpec().matches(*fakeTestCase("test1")) )
  7766. with expansion:
  7767. true
  7768. -------------------------------------------------------------------------------
  7769. Process can be configured on command line
  7770. test lists
  7771. Specify one test case exclusion using exclude:
  7772. -------------------------------------------------------------------------------
  7773. CmdLine.tests.cpp:<line number>
  7774. ...............................................................................
  7775. CmdLine.tests.cpp:<line number>: PASSED:
  7776. CHECK( result )
  7777. with expansion:
  7778. {?}
  7779. CmdLine.tests.cpp:<line number>: PASSED:
  7780. REQUIRE( cfg.hasTestFilters() )
  7781. with expansion:
  7782. true
  7783. CmdLine.tests.cpp:<line number>: PASSED:
  7784. REQUIRE( cfg.testSpec().matches(*fakeTestCase("test1")) == false )
  7785. with expansion:
  7786. false == false
  7787. CmdLine.tests.cpp:<line number>: PASSED:
  7788. REQUIRE( cfg.testSpec().matches(*fakeTestCase("alwaysIncluded")) )
  7789. with expansion:
  7790. true
  7791. -------------------------------------------------------------------------------
  7792. Process can be configured on command line
  7793. test lists
  7794. Specify one test case exclusion using ~
  7795. -------------------------------------------------------------------------------
  7796. CmdLine.tests.cpp:<line number>
  7797. ...............................................................................
  7798. CmdLine.tests.cpp:<line number>: PASSED:
  7799. CHECK( result )
  7800. with expansion:
  7801. {?}
  7802. CmdLine.tests.cpp:<line number>: PASSED:
  7803. REQUIRE( cfg.hasTestFilters() )
  7804. with expansion:
  7805. true
  7806. CmdLine.tests.cpp:<line number>: PASSED:
  7807. REQUIRE( cfg.testSpec().matches(*fakeTestCase("test1")) == false )
  7808. with expansion:
  7809. false == false
  7810. CmdLine.tests.cpp:<line number>: PASSED:
  7811. REQUIRE( cfg.testSpec().matches(*fakeTestCase("alwaysIncluded")) )
  7812. with expansion:
  7813. true
  7814. -------------------------------------------------------------------------------
  7815. Process can be configured on command line
  7816. reporter
  7817. -r/console
  7818. -------------------------------------------------------------------------------
  7819. CmdLine.tests.cpp:<line number>
  7820. ...............................................................................
  7821. CmdLine.tests.cpp:<line number>: PASSED:
  7822. CHECK( result )
  7823. with expansion:
  7824. {?}
  7825. with message:
  7826. result.errorMessage() := ""
  7827. CmdLine.tests.cpp:<line number>: PASSED:
  7828. REQUIRE( config.reporterSpecifications == vec_Specs{ { "console", {}, {}, {} } } )
  7829. with expansion:
  7830. { {?} } == { {?} }
  7831. with message:
  7832. result.errorMessage() := ""
  7833. -------------------------------------------------------------------------------
  7834. Process can be configured on command line
  7835. reporter
  7836. -r/xml
  7837. -------------------------------------------------------------------------------
  7838. CmdLine.tests.cpp:<line number>
  7839. ...............................................................................
  7840. CmdLine.tests.cpp:<line number>: PASSED:
  7841. CHECK( result )
  7842. with expansion:
  7843. {?}
  7844. with message:
  7845. result.errorMessage() := ""
  7846. CmdLine.tests.cpp:<line number>: PASSED:
  7847. REQUIRE( config.reporterSpecifications == vec_Specs{ { "xml", {}, {}, {} } } )
  7848. with expansion:
  7849. { {?} } == { {?} }
  7850. with message:
  7851. result.errorMessage() := ""
  7852. -------------------------------------------------------------------------------
  7853. Process can be configured on command line
  7854. reporter
  7855. --reporter/junit
  7856. -------------------------------------------------------------------------------
  7857. CmdLine.tests.cpp:<line number>
  7858. ...............................................................................
  7859. CmdLine.tests.cpp:<line number>: PASSED:
  7860. CHECK( result )
  7861. with expansion:
  7862. {?}
  7863. with message:
  7864. result.errorMessage() := ""
  7865. CmdLine.tests.cpp:<line number>: PASSED:
  7866. REQUIRE( config.reporterSpecifications == vec_Specs{ { "junit", {}, {}, {} } } )
  7867. with expansion:
  7868. { {?} } == { {?} }
  7869. with message:
  7870. result.errorMessage() := ""
  7871. -------------------------------------------------------------------------------
  7872. Process can be configured on command line
  7873. reporter
  7874. must match one of the available ones
  7875. -------------------------------------------------------------------------------
  7876. CmdLine.tests.cpp:<line number>
  7877. ...............................................................................
  7878. CmdLine.tests.cpp:<line number>: PASSED:
  7879. CHECK( !result )
  7880. with expansion:
  7881. true
  7882. CmdLine.tests.cpp:<line number>: PASSED:
  7883. REQUIRE_THAT( result.errorMessage(), ContainsSubstring("Unrecognized reporter") )
  7884. with expansion:
  7885. "Unrecognized reporter, 'unsupported'. Check available with --list-reporters"
  7886. contains: "Unrecognized reporter"
  7887. -------------------------------------------------------------------------------
  7888. Process can be configured on command line
  7889. reporter
  7890. With output file
  7891. -------------------------------------------------------------------------------
  7892. CmdLine.tests.cpp:<line number>
  7893. ...............................................................................
  7894. CmdLine.tests.cpp:<line number>: PASSED:
  7895. CHECK( result )
  7896. with expansion:
  7897. {?}
  7898. with message:
  7899. result.errorMessage() := ""
  7900. CmdLine.tests.cpp:<line number>: PASSED:
  7901. REQUIRE( config.reporterSpecifications == vec_Specs{ { "console", "out.txt"s, {}, {} } } )
  7902. with expansion:
  7903. { {?} } == { {?} }
  7904. with message:
  7905. result.errorMessage() := ""
  7906. -------------------------------------------------------------------------------
  7907. Process can be configured on command line
  7908. reporter
  7909. With Windows-like absolute path as output file
  7910. -------------------------------------------------------------------------------
  7911. CmdLine.tests.cpp:<line number>
  7912. ...............................................................................
  7913. CmdLine.tests.cpp:<line number>: PASSED:
  7914. CHECK( result )
  7915. with expansion:
  7916. {?}
  7917. with message:
  7918. result.errorMessage() := ""
  7919. CmdLine.tests.cpp:<line number>: PASSED:
  7920. REQUIRE( config.reporterSpecifications == vec_Specs{ { "console", "C:\\Temp\\out.txt"s, {}, {} } } )
  7921. with expansion:
  7922. { {?} } == { {?} }
  7923. with message:
  7924. result.errorMessage() := ""
  7925. -------------------------------------------------------------------------------
  7926. Process can be configured on command line
  7927. reporter
  7928. Multiple reporters
  7929. All with output files
  7930. -------------------------------------------------------------------------------
  7931. CmdLine.tests.cpp:<line number>
  7932. ...............................................................................
  7933. CmdLine.tests.cpp:<line number>: PASSED:
  7934. CHECK( cli.parse({ "test", "-r", "xml::out=output.xml", "-r", "junit::out=output-junit.xml" }) )
  7935. with expansion:
  7936. {?}
  7937. CmdLine.tests.cpp:<line number>: PASSED:
  7938. REQUIRE( config.reporterSpecifications == vec_Specs{ { "xml", "output.xml"s, {}, {} }, { "junit", "output-junit.xml"s, {}, {} } } )
  7939. with expansion:
  7940. { {?}, {?} } == { {?}, {?} }
  7941. -------------------------------------------------------------------------------
  7942. Process can be configured on command line
  7943. reporter
  7944. Multiple reporters
  7945. Mixed output files and default output
  7946. -------------------------------------------------------------------------------
  7947. CmdLine.tests.cpp:<line number>
  7948. ...............................................................................
  7949. CmdLine.tests.cpp:<line number>: PASSED:
  7950. CHECK( cli.parse({ "test", "-r", "xml::out=output.xml", "-r", "console" }) )
  7951. with expansion:
  7952. {?}
  7953. CmdLine.tests.cpp:<line number>: PASSED:
  7954. REQUIRE( config.reporterSpecifications == vec_Specs{ { "xml", "output.xml"s, {}, {} }, { "console", {}, {}, {} } } )
  7955. with expansion:
  7956. { {?}, {?} } == { {?}, {?} }
  7957. -------------------------------------------------------------------------------
  7958. Process can be configured on command line
  7959. reporter
  7960. Multiple reporters
  7961. cannot have multiple reporters with default output
  7962. -------------------------------------------------------------------------------
  7963. CmdLine.tests.cpp:<line number>
  7964. ...............................................................................
  7965. CmdLine.tests.cpp:<line number>: PASSED:
  7966. CHECK( !result )
  7967. with expansion:
  7968. true
  7969. CmdLine.tests.cpp:<line number>: PASSED:
  7970. REQUIRE_THAT( result.errorMessage(), ContainsSubstring("Only one reporter may have unspecified output file.") )
  7971. with expansion:
  7972. "Only one reporter may have unspecified output file." contains: "Only one
  7973. reporter may have unspecified output file."
  7974. -------------------------------------------------------------------------------
  7975. Process can be configured on command line
  7976. debugger
  7977. -b
  7978. -------------------------------------------------------------------------------
  7979. CmdLine.tests.cpp:<line number>
  7980. ...............................................................................
  7981. CmdLine.tests.cpp:<line number>: PASSED:
  7982. CHECK( cli.parse({"test", "-b"}) )
  7983. with expansion:
  7984. {?}
  7985. CmdLine.tests.cpp:<line number>: PASSED:
  7986. REQUIRE( config.shouldDebugBreak == true )
  7987. with expansion:
  7988. true == true
  7989. -------------------------------------------------------------------------------
  7990. Process can be configured on command line
  7991. debugger
  7992. --break
  7993. -------------------------------------------------------------------------------
  7994. CmdLine.tests.cpp:<line number>
  7995. ...............................................................................
  7996. CmdLine.tests.cpp:<line number>: PASSED:
  7997. CHECK( cli.parse({"test", "--break"}) )
  7998. with expansion:
  7999. {?}
  8000. CmdLine.tests.cpp:<line number>: PASSED:
  8001. REQUIRE( config.shouldDebugBreak )
  8002. with expansion:
  8003. true
  8004. -------------------------------------------------------------------------------
  8005. Process can be configured on command line
  8006. abort
  8007. -a aborts after first failure
  8008. -------------------------------------------------------------------------------
  8009. CmdLine.tests.cpp:<line number>
  8010. ...............................................................................
  8011. CmdLine.tests.cpp:<line number>: PASSED:
  8012. CHECK( cli.parse({"test", "-a"}) )
  8013. with expansion:
  8014. {?}
  8015. CmdLine.tests.cpp:<line number>: PASSED:
  8016. REQUIRE( config.abortAfter == 1 )
  8017. with expansion:
  8018. 1 == 1
  8019. -------------------------------------------------------------------------------
  8020. Process can be configured on command line
  8021. abort
  8022. -x 2 aborts after two failures
  8023. -------------------------------------------------------------------------------
  8024. CmdLine.tests.cpp:<line number>
  8025. ...............................................................................
  8026. CmdLine.tests.cpp:<line number>: PASSED:
  8027. CHECK( cli.parse({"test", "-x", "2"}) )
  8028. with expansion:
  8029. {?}
  8030. CmdLine.tests.cpp:<line number>: PASSED:
  8031. REQUIRE( config.abortAfter == 2 )
  8032. with expansion:
  8033. 2 == 2
  8034. -------------------------------------------------------------------------------
  8035. Process can be configured on command line
  8036. abort
  8037. -x must be numeric
  8038. -------------------------------------------------------------------------------
  8039. CmdLine.tests.cpp:<line number>
  8040. ...............................................................................
  8041. CmdLine.tests.cpp:<line number>: PASSED:
  8042. CHECK( !result )
  8043. with expansion:
  8044. true
  8045. CmdLine.tests.cpp:<line number>: PASSED:
  8046. REQUIRE_THAT( result.errorMessage(), ContainsSubstring("convert") && ContainsSubstring("oops") )
  8047. with expansion:
  8048. "Unable to convert 'oops' to destination type" ( contains: "convert" and
  8049. contains: "oops" )
  8050. -------------------------------------------------------------------------------
  8051. Process can be configured on command line
  8052. abort
  8053. wait-for-keypress
  8054. Accepted options
  8055. -------------------------------------------------------------------------------
  8056. CmdLine.tests.cpp:<line number>
  8057. ...............................................................................
  8058. CmdLine.tests.cpp:<line number>: PASSED:
  8059. CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
  8060. with expansion:
  8061. {?}
  8062. CmdLine.tests.cpp:<line number>: PASSED:
  8063. REQUIRE( config.waitForKeypress == std::get<1>(input) )
  8064. with expansion:
  8065. 0 == 0
  8066. -------------------------------------------------------------------------------
  8067. Process can be configured on command line
  8068. abort
  8069. wait-for-keypress
  8070. Accepted options
  8071. -------------------------------------------------------------------------------
  8072. CmdLine.tests.cpp:<line number>
  8073. ...............................................................................
  8074. CmdLine.tests.cpp:<line number>: PASSED:
  8075. CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
  8076. with expansion:
  8077. {?}
  8078. CmdLine.tests.cpp:<line number>: PASSED:
  8079. REQUIRE( config.waitForKeypress == std::get<1>(input) )
  8080. with expansion:
  8081. 1 == 1
  8082. -------------------------------------------------------------------------------
  8083. Process can be configured on command line
  8084. abort
  8085. wait-for-keypress
  8086. Accepted options
  8087. -------------------------------------------------------------------------------
  8088. CmdLine.tests.cpp:<line number>
  8089. ...............................................................................
  8090. CmdLine.tests.cpp:<line number>: PASSED:
  8091. CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
  8092. with expansion:
  8093. {?}
  8094. CmdLine.tests.cpp:<line number>: PASSED:
  8095. REQUIRE( config.waitForKeypress == std::get<1>(input) )
  8096. with expansion:
  8097. 2 == 2
  8098. -------------------------------------------------------------------------------
  8099. Process can be configured on command line
  8100. abort
  8101. wait-for-keypress
  8102. Accepted options
  8103. -------------------------------------------------------------------------------
  8104. CmdLine.tests.cpp:<line number>
  8105. ...............................................................................
  8106. CmdLine.tests.cpp:<line number>: PASSED:
  8107. CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
  8108. with expansion:
  8109. {?}
  8110. CmdLine.tests.cpp:<line number>: PASSED:
  8111. REQUIRE( config.waitForKeypress == std::get<1>(input) )
  8112. with expansion:
  8113. 3 == 3
  8114. -------------------------------------------------------------------------------
  8115. Process can be configured on command line
  8116. abort
  8117. wait-for-keypress
  8118. invalid options are reported
  8119. -------------------------------------------------------------------------------
  8120. CmdLine.tests.cpp:<line number>
  8121. ...............................................................................
  8122. CmdLine.tests.cpp:<line number>: PASSED:
  8123. CHECK( !result )
  8124. with expansion:
  8125. true
  8126. CmdLine.tests.cpp:<line number>: PASSED:
  8127. REQUIRE_THAT( result.errorMessage(), ContainsSubstring("never") && ContainsSubstring("both") )
  8128. with expansion:
  8129. "keypress argument must be one of: never, start, exit or both. 'sometimes'
  8130. not recognised" ( contains: "never" and contains: "both" )
  8131. -------------------------------------------------------------------------------
  8132. Process can be configured on command line
  8133. nothrow
  8134. -e
  8135. -------------------------------------------------------------------------------
  8136. CmdLine.tests.cpp:<line number>
  8137. ...............................................................................
  8138. CmdLine.tests.cpp:<line number>: PASSED:
  8139. CHECK( cli.parse({"test", "-e"}) )
  8140. with expansion:
  8141. {?}
  8142. CmdLine.tests.cpp:<line number>: PASSED:
  8143. REQUIRE( config.noThrow )
  8144. with expansion:
  8145. true
  8146. -------------------------------------------------------------------------------
  8147. Process can be configured on command line
  8148. nothrow
  8149. --nothrow
  8150. -------------------------------------------------------------------------------
  8151. CmdLine.tests.cpp:<line number>
  8152. ...............................................................................
  8153. CmdLine.tests.cpp:<line number>: PASSED:
  8154. CHECK( cli.parse({"test", "--nothrow"}) )
  8155. with expansion:
  8156. {?}
  8157. CmdLine.tests.cpp:<line number>: PASSED:
  8158. REQUIRE( config.noThrow )
  8159. with expansion:
  8160. true
  8161. -------------------------------------------------------------------------------
  8162. Process can be configured on command line
  8163. output filename
  8164. -o filename
  8165. -------------------------------------------------------------------------------
  8166. CmdLine.tests.cpp:<line number>
  8167. ...............................................................................
  8168. CmdLine.tests.cpp:<line number>: PASSED:
  8169. CHECK( cli.parse({"test", "-o", "filename.ext"}) )
  8170. with expansion:
  8171. {?}
  8172. CmdLine.tests.cpp:<line number>: PASSED:
  8173. REQUIRE( config.defaultOutputFilename == "filename.ext" )
  8174. with expansion:
  8175. "filename.ext" == "filename.ext"
  8176. -------------------------------------------------------------------------------
  8177. Process can be configured on command line
  8178. output filename
  8179. --out
  8180. -------------------------------------------------------------------------------
  8181. CmdLine.tests.cpp:<line number>
  8182. ...............................................................................
  8183. CmdLine.tests.cpp:<line number>: PASSED:
  8184. CHECK( cli.parse({"test", "--out", "filename.ext"}) )
  8185. with expansion:
  8186. {?}
  8187. CmdLine.tests.cpp:<line number>: PASSED:
  8188. REQUIRE( config.defaultOutputFilename == "filename.ext" )
  8189. with expansion:
  8190. "filename.ext" == "filename.ext"
  8191. -------------------------------------------------------------------------------
  8192. Process can be configured on command line
  8193. combinations
  8194. Single character flags can be combined
  8195. -------------------------------------------------------------------------------
  8196. CmdLine.tests.cpp:<line number>
  8197. ...............................................................................
  8198. CmdLine.tests.cpp:<line number>: PASSED:
  8199. CHECK( cli.parse({"test", "-abe"}) )
  8200. with expansion:
  8201. {?}
  8202. CmdLine.tests.cpp:<line number>: PASSED:
  8203. CHECK( config.abortAfter == 1 )
  8204. with expansion:
  8205. 1 == 1
  8206. CmdLine.tests.cpp:<line number>: PASSED:
  8207. CHECK( config.shouldDebugBreak )
  8208. with expansion:
  8209. true
  8210. CmdLine.tests.cpp:<line number>: PASSED:
  8211. CHECK( config.noThrow == true )
  8212. with expansion:
  8213. true == true
  8214. -------------------------------------------------------------------------------
  8215. Process can be configured on command line
  8216. use-colour
  8217. without option
  8218. -------------------------------------------------------------------------------
  8219. CmdLine.tests.cpp:<line number>
  8220. ...............................................................................
  8221. CmdLine.tests.cpp:<line number>: PASSED:
  8222. CHECK( cli.parse({"test"}) )
  8223. with expansion:
  8224. {?}
  8225. CmdLine.tests.cpp:<line number>: PASSED:
  8226. REQUIRE( config.defaultColourMode == ColourMode::PlatformDefault )
  8227. with expansion:
  8228. 0 == 0
  8229. -------------------------------------------------------------------------------
  8230. Process can be configured on command line
  8231. use-colour
  8232. auto
  8233. -------------------------------------------------------------------------------
  8234. CmdLine.tests.cpp:<line number>
  8235. ...............................................................................
  8236. CmdLine.tests.cpp:<line number>: PASSED:
  8237. CHECK( cli.parse( { "test", "--colour-mode", "default" } ) )
  8238. with expansion:
  8239. {?}
  8240. CmdLine.tests.cpp:<line number>: PASSED:
  8241. REQUIRE( config.defaultColourMode == ColourMode::PlatformDefault )
  8242. with expansion:
  8243. 0 == 0
  8244. -------------------------------------------------------------------------------
  8245. Process can be configured on command line
  8246. use-colour
  8247. yes
  8248. -------------------------------------------------------------------------------
  8249. CmdLine.tests.cpp:<line number>
  8250. ...............................................................................
  8251. CmdLine.tests.cpp:<line number>: PASSED:
  8252. CHECK( cli.parse({"test", "--colour-mode", "ansi"}) )
  8253. with expansion:
  8254. {?}
  8255. CmdLine.tests.cpp:<line number>: PASSED:
  8256. REQUIRE( config.defaultColourMode == ColourMode::ANSI )
  8257. with expansion:
  8258. 1 == 1
  8259. -------------------------------------------------------------------------------
  8260. Process can be configured on command line
  8261. use-colour
  8262. no
  8263. -------------------------------------------------------------------------------
  8264. CmdLine.tests.cpp:<line number>
  8265. ...............................................................................
  8266. CmdLine.tests.cpp:<line number>: PASSED:
  8267. CHECK( cli.parse({"test", "--colour-mode", "none"}) )
  8268. with expansion:
  8269. {?}
  8270. CmdLine.tests.cpp:<line number>: PASSED:
  8271. REQUIRE( config.defaultColourMode == ColourMode::None )
  8272. with expansion:
  8273. 3 == 3
  8274. -------------------------------------------------------------------------------
  8275. Process can be configured on command line
  8276. use-colour
  8277. error
  8278. -------------------------------------------------------------------------------
  8279. CmdLine.tests.cpp:<line number>
  8280. ...............................................................................
  8281. CmdLine.tests.cpp:<line number>: PASSED:
  8282. CHECK( !result )
  8283. with expansion:
  8284. true
  8285. CmdLine.tests.cpp:<line number>: PASSED:
  8286. CHECK_THAT( result.errorMessage(), ContainsSubstring( "colour mode must be one of" ) )
  8287. with expansion:
  8288. "colour mode must be one of: default, ansi, win32, or none. 'wrong' is not
  8289. recognised" contains: "colour mode must be one of"
  8290. -------------------------------------------------------------------------------
  8291. Process can be configured on command line
  8292. Benchmark options
  8293. samples
  8294. -------------------------------------------------------------------------------
  8295. CmdLine.tests.cpp:<line number>
  8296. ...............................................................................
  8297. CmdLine.tests.cpp:<line number>: PASSED:
  8298. CHECK( cli.parse({ "test", "--benchmark-samples=200" }) )
  8299. with expansion:
  8300. {?}
  8301. CmdLine.tests.cpp:<line number>: PASSED:
  8302. REQUIRE( config.benchmarkSamples == 200 )
  8303. with expansion:
  8304. 200 == 200
  8305. -------------------------------------------------------------------------------
  8306. Process can be configured on command line
  8307. Benchmark options
  8308. resamples
  8309. -------------------------------------------------------------------------------
  8310. CmdLine.tests.cpp:<line number>
  8311. ...............................................................................
  8312. CmdLine.tests.cpp:<line number>: PASSED:
  8313. CHECK( cli.parse({ "test", "--benchmark-resamples=20000" }) )
  8314. with expansion:
  8315. {?}
  8316. CmdLine.tests.cpp:<line number>: PASSED:
  8317. REQUIRE( config.benchmarkResamples == 20000 )
  8318. with expansion:
  8319. 20000 (0x<hex digits>) == 20000 (0x<hex digits>)
  8320. -------------------------------------------------------------------------------
  8321. Process can be configured on command line
  8322. Benchmark options
  8323. confidence-interval
  8324. -------------------------------------------------------------------------------
  8325. CmdLine.tests.cpp:<line number>
  8326. ...............................................................................
  8327. CmdLine.tests.cpp:<line number>: PASSED:
  8328. CHECK( cli.parse({ "test", "--benchmark-confidence-interval=0.99" }) )
  8329. with expansion:
  8330. {?}
  8331. CmdLine.tests.cpp:<line number>: PASSED:
  8332. REQUIRE( config.benchmarkConfidenceInterval == Catch::Approx(0.99) )
  8333. with expansion:
  8334. 0.99 == Approx( 0.99 )
  8335. -------------------------------------------------------------------------------
  8336. Process can be configured on command line
  8337. Benchmark options
  8338. no-analysis
  8339. -------------------------------------------------------------------------------
  8340. CmdLine.tests.cpp:<line number>
  8341. ...............................................................................
  8342. CmdLine.tests.cpp:<line number>: PASSED:
  8343. CHECK( cli.parse({ "test", "--benchmark-no-analysis" }) )
  8344. with expansion:
  8345. {?}
  8346. CmdLine.tests.cpp:<line number>: PASSED:
  8347. REQUIRE( config.benchmarkNoAnalysis )
  8348. with expansion:
  8349. true
  8350. -------------------------------------------------------------------------------
  8351. Process can be configured on command line
  8352. Benchmark options
  8353. warmup-time
  8354. -------------------------------------------------------------------------------
  8355. CmdLine.tests.cpp:<line number>
  8356. ...............................................................................
  8357. CmdLine.tests.cpp:<line number>: PASSED:
  8358. CHECK( cli.parse({ "test", "--benchmark-warmup-time=10" }) )
  8359. with expansion:
  8360. {?}
  8361. CmdLine.tests.cpp:<line number>: PASSED:
  8362. REQUIRE( config.benchmarkWarmupTime == 10 )
  8363. with expansion:
  8364. 10 == 10
  8365. -------------------------------------------------------------------------------
  8366. Product with differing arities - std::tuple<int, double, float>
  8367. -------------------------------------------------------------------------------
  8368. Misc.tests.cpp:<line number>
  8369. ...............................................................................
  8370. Misc.tests.cpp:<line number>: PASSED:
  8371. REQUIRE( std::tuple_size<TestType>::value >= 1 )
  8372. with expansion:
  8373. 3 >= 1
  8374. -------------------------------------------------------------------------------
  8375. Product with differing arities - std::tuple<int, double>
  8376. -------------------------------------------------------------------------------
  8377. Misc.tests.cpp:<line number>
  8378. ...............................................................................
  8379. Misc.tests.cpp:<line number>: PASSED:
  8380. REQUIRE( std::tuple_size<TestType>::value >= 1 )
  8381. with expansion:
  8382. 2 >= 1
  8383. -------------------------------------------------------------------------------
  8384. Product with differing arities - std::tuple<int>
  8385. -------------------------------------------------------------------------------
  8386. Misc.tests.cpp:<line number>
  8387. ...............................................................................
  8388. Misc.tests.cpp:<line number>: PASSED:
  8389. REQUIRE( std::tuple_size<TestType>::value >= 1 )
  8390. with expansion:
  8391. 1 >= 1
  8392. -------------------------------------------------------------------------------
  8393. Random seed generation accepts known methods
  8394. -------------------------------------------------------------------------------
  8395. RandomNumberGeneration.tests.cpp:<line number>
  8396. ...............................................................................
  8397. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  8398. REQUIRE_NOTHROW( Catch::generateRandomSeed(method) )
  8399. -------------------------------------------------------------------------------
  8400. Random seed generation accepts known methods
  8401. -------------------------------------------------------------------------------
  8402. RandomNumberGeneration.tests.cpp:<line number>
  8403. ...............................................................................
  8404. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  8405. REQUIRE_NOTHROW( Catch::generateRandomSeed(method) )
  8406. -------------------------------------------------------------------------------
  8407. Random seed generation accepts known methods
  8408. -------------------------------------------------------------------------------
  8409. RandomNumberGeneration.tests.cpp:<line number>
  8410. ...............................................................................
  8411. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  8412. REQUIRE_NOTHROW( Catch::generateRandomSeed(method) )
  8413. -------------------------------------------------------------------------------
  8414. Random seed generation reports unknown methods
  8415. -------------------------------------------------------------------------------
  8416. RandomNumberGeneration.tests.cpp:<line number>
  8417. ...............................................................................
  8418. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  8419. REQUIRE_THROWS( Catch::generateRandomSeed(static_cast<Catch::GenerateFrom>(77)) )
  8420. -------------------------------------------------------------------------------
  8421. Range type with sentinel
  8422. -------------------------------------------------------------------------------
  8423. ToString.tests.cpp:<line number>
  8424. ...............................................................................
  8425. ToString.tests.cpp:<line number>: PASSED:
  8426. CHECK( Catch::Detail::stringify(UsesSentinel{}) == "{ }" )
  8427. with expansion:
  8428. "{ }" == "{ }"
  8429. -------------------------------------------------------------------------------
  8430. Reconstruction should be based on stringification: #914
  8431. -------------------------------------------------------------------------------
  8432. Decomposition.tests.cpp:<line number>
  8433. ...............................................................................
  8434. Decomposition.tests.cpp:<line number>: FAILED:
  8435. CHECK( truthy(false) )
  8436. with expansion:
  8437. Hey, its truthy!
  8438. -------------------------------------------------------------------------------
  8439. Regex string matcher
  8440. -------------------------------------------------------------------------------
  8441. Matchers.tests.cpp:<line number>
  8442. ...............................................................................
  8443. Matchers.tests.cpp:<line number>: FAILED:
  8444. CHECK_THAT( testStringForMatching(), Matches( "this STRING contains 'abc' as a substring" ) )
  8445. with expansion:
  8446. "this string contains 'abc' as a substring" matches "this STRING contains
  8447. 'abc' as a substring" case sensitively
  8448. Matchers.tests.cpp:<line number>: FAILED:
  8449. CHECK_THAT( testStringForMatching(), Matches( "contains 'abc' as a substring" ) )
  8450. with expansion:
  8451. "this string contains 'abc' as a substring" matches "contains 'abc' as a
  8452. substring" case sensitively
  8453. Matchers.tests.cpp:<line number>: FAILED:
  8454. CHECK_THAT( testStringForMatching(), Matches( "this string contains 'abc' as a" ) )
  8455. with expansion:
  8456. "this string contains 'abc' as a substring" matches "this string contains
  8457. 'abc' as a" case sensitively
  8458. -------------------------------------------------------------------------------
  8459. Registering reporter with '::' in name fails
  8460. -------------------------------------------------------------------------------
  8461. Reporters.tests.cpp:<line number>
  8462. ...............................................................................
  8463. Reporters.tests.cpp:<line number>: PASSED:
  8464. REQUIRE_THROWS_WITH( registry.registerReporter( "with::doublecolons", Catch::Detail::make_unique<TestReporterFactory>() ), "'::' is not allowed in reporter name: 'with::doublecolons'" )
  8465. with expansion:
  8466. "'::' is not allowed in reporter name: 'with::doublecolons'" equals: "'::' is
  8467. not allowed in reporter name: 'with::doublecolons'"
  8468. -------------------------------------------------------------------------------
  8469. Regression test #1
  8470. -------------------------------------------------------------------------------
  8471. Matchers.tests.cpp:<line number>
  8472. ...............................................................................
  8473. Matchers.tests.cpp:<line number>: PASSED:
  8474. CHECK_THAT( actual, !UnorderedEquals( expected ) )
  8475. with expansion:
  8476. { 'a', 'b' } not UnorderedEquals: { 'c', 'b' }
  8477. -------------------------------------------------------------------------------
  8478. Reporter's write listings to provided stream
  8479. -------------------------------------------------------------------------------
  8480. Reporters.tests.cpp:<line number>
  8481. ...............................................................................
  8482. Reporters.tests.cpp:<line number>: PASSED:
  8483. REQUIRE_FALSE( factories.empty() )
  8484. with expansion:
  8485. !false
  8486. -------------------------------------------------------------------------------
  8487. Reporter's write listings to provided stream
  8488. Automake reporter lists tags
  8489. -------------------------------------------------------------------------------
  8490. Reporters.tests.cpp:<line number>
  8491. ...............................................................................
  8492. Reporters.tests.cpp:<line number>: PASSED:
  8493. REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
  8494. with expansion:
  8495. "All available tags:
  8496. 1 [fakeTag]
  8497. 1 tag
  8498. " contains: "fakeTag"
  8499. with message:
  8500. Tested reporter: Automake
  8501. -------------------------------------------------------------------------------
  8502. Reporter's write listings to provided stream
  8503. -------------------------------------------------------------------------------
  8504. Reporters.tests.cpp:<line number>
  8505. ...............................................................................
  8506. Reporters.tests.cpp:<line number>: PASSED:
  8507. REQUIRE_FALSE( factories.empty() )
  8508. with expansion:
  8509. !false
  8510. -------------------------------------------------------------------------------
  8511. Reporter's write listings to provided stream
  8512. Automake reporter lists reporters
  8513. -------------------------------------------------------------------------------
  8514. Reporters.tests.cpp:<line number>
  8515. ...............................................................................
  8516. Reporters.tests.cpp:<line number>: PASSED:
  8517. REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
  8518. with expansion:
  8519. "Available reporters:
  8520. fake reporter: fake description
  8521. " contains: "fake reporter"
  8522. with message:
  8523. Tested reporter: Automake
  8524. -------------------------------------------------------------------------------
  8525. Reporter's write listings to provided stream
  8526. -------------------------------------------------------------------------------
  8527. Reporters.tests.cpp:<line number>
  8528. ...............................................................................
  8529. Reporters.tests.cpp:<line number>: PASSED:
  8530. REQUIRE_FALSE( factories.empty() )
  8531. with expansion:
  8532. !false
  8533. -------------------------------------------------------------------------------
  8534. Reporter's write listings to provided stream
  8535. Automake reporter lists tests
  8536. -------------------------------------------------------------------------------
  8537. Reporters.tests.cpp:<line number>
  8538. ...............................................................................
  8539. Reporters.tests.cpp:<line number>: PASSED:
  8540. REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
  8541. with expansion:
  8542. "All available test cases:
  8543. fake test name
  8544. [fakeTestTag]
  8545. 1 test case
  8546. " ( contains: "fake test name" and contains: "fakeTestTag" )
  8547. with message:
  8548. Tested reporter: Automake
  8549. -------------------------------------------------------------------------------
  8550. Reporter's write listings to provided stream
  8551. -------------------------------------------------------------------------------
  8552. Reporters.tests.cpp:<line number>
  8553. ...............................................................................
  8554. Reporters.tests.cpp:<line number>: PASSED:
  8555. REQUIRE_FALSE( factories.empty() )
  8556. with expansion:
  8557. !false
  8558. -------------------------------------------------------------------------------
  8559. Reporter's write listings to provided stream
  8560. compact reporter lists tags
  8561. -------------------------------------------------------------------------------
  8562. Reporters.tests.cpp:<line number>
  8563. ...............................................................................
  8564. Reporters.tests.cpp:<line number>: PASSED:
  8565. REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
  8566. with expansion:
  8567. "All available tags:
  8568. 1 [fakeTag]
  8569. 1 tag
  8570. " contains: "fakeTag"
  8571. with message:
  8572. Tested reporter: compact
  8573. -------------------------------------------------------------------------------
  8574. Reporter's write listings to provided stream
  8575. -------------------------------------------------------------------------------
  8576. Reporters.tests.cpp:<line number>
  8577. ...............................................................................
  8578. Reporters.tests.cpp:<line number>: PASSED:
  8579. REQUIRE_FALSE( factories.empty() )
  8580. with expansion:
  8581. !false
  8582. -------------------------------------------------------------------------------
  8583. Reporter's write listings to provided stream
  8584. compact reporter lists reporters
  8585. -------------------------------------------------------------------------------
  8586. Reporters.tests.cpp:<line number>
  8587. ...............................................................................
  8588. Reporters.tests.cpp:<line number>: PASSED:
  8589. REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
  8590. with expansion:
  8591. "Available reporters:
  8592. fake reporter: fake description
  8593. " contains: "fake reporter"
  8594. with message:
  8595. Tested reporter: compact
  8596. -------------------------------------------------------------------------------
  8597. Reporter's write listings to provided stream
  8598. -------------------------------------------------------------------------------
  8599. Reporters.tests.cpp:<line number>
  8600. ...............................................................................
  8601. Reporters.tests.cpp:<line number>: PASSED:
  8602. REQUIRE_FALSE( factories.empty() )
  8603. with expansion:
  8604. !false
  8605. -------------------------------------------------------------------------------
  8606. Reporter's write listings to provided stream
  8607. compact reporter lists tests
  8608. -------------------------------------------------------------------------------
  8609. Reporters.tests.cpp:<line number>
  8610. ...............................................................................
  8611. Reporters.tests.cpp:<line number>: PASSED:
  8612. REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
  8613. with expansion:
  8614. "All available test cases:
  8615. fake test name
  8616. [fakeTestTag]
  8617. 1 test case
  8618. " ( contains: "fake test name" and contains: "fakeTestTag" )
  8619. with message:
  8620. Tested reporter: compact
  8621. -------------------------------------------------------------------------------
  8622. Reporter's write listings to provided stream
  8623. -------------------------------------------------------------------------------
  8624. Reporters.tests.cpp:<line number>
  8625. ...............................................................................
  8626. Reporters.tests.cpp:<line number>: PASSED:
  8627. REQUIRE_FALSE( factories.empty() )
  8628. with expansion:
  8629. !false
  8630. -------------------------------------------------------------------------------
  8631. Reporter's write listings to provided stream
  8632. console reporter lists tags
  8633. -------------------------------------------------------------------------------
  8634. Reporters.tests.cpp:<line number>
  8635. ...............................................................................
  8636. Reporters.tests.cpp:<line number>: PASSED:
  8637. REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
  8638. with expansion:
  8639. "All available tags:
  8640. 1 [fakeTag]
  8641. 1 tag
  8642. " contains: "fakeTag"
  8643. with message:
  8644. Tested reporter: console
  8645. -------------------------------------------------------------------------------
  8646. Reporter's write listings to provided stream
  8647. -------------------------------------------------------------------------------
  8648. Reporters.tests.cpp:<line number>
  8649. ...............................................................................
  8650. Reporters.tests.cpp:<line number>: PASSED:
  8651. REQUIRE_FALSE( factories.empty() )
  8652. with expansion:
  8653. !false
  8654. -------------------------------------------------------------------------------
  8655. Reporter's write listings to provided stream
  8656. console reporter lists reporters
  8657. -------------------------------------------------------------------------------
  8658. Reporters.tests.cpp:<line number>
  8659. ...............................................................................
  8660. Reporters.tests.cpp:<line number>: PASSED:
  8661. REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
  8662. with expansion:
  8663. "Available reporters:
  8664. fake reporter: fake description
  8665. " contains: "fake reporter"
  8666. with message:
  8667. Tested reporter: console
  8668. -------------------------------------------------------------------------------
  8669. Reporter's write listings to provided stream
  8670. -------------------------------------------------------------------------------
  8671. Reporters.tests.cpp:<line number>
  8672. ...............................................................................
  8673. Reporters.tests.cpp:<line number>: PASSED:
  8674. REQUIRE_FALSE( factories.empty() )
  8675. with expansion:
  8676. !false
  8677. -------------------------------------------------------------------------------
  8678. Reporter's write listings to provided stream
  8679. console reporter lists tests
  8680. -------------------------------------------------------------------------------
  8681. Reporters.tests.cpp:<line number>
  8682. ...............................................................................
  8683. Reporters.tests.cpp:<line number>: PASSED:
  8684. REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
  8685. with expansion:
  8686. "All available test cases:
  8687. fake test name
  8688. [fakeTestTag]
  8689. 1 test case
  8690. " ( contains: "fake test name" and contains: "fakeTestTag" )
  8691. with message:
  8692. Tested reporter: console
  8693. -------------------------------------------------------------------------------
  8694. Reporter's write listings to provided stream
  8695. -------------------------------------------------------------------------------
  8696. Reporters.tests.cpp:<line number>
  8697. ...............................................................................
  8698. Reporters.tests.cpp:<line number>: PASSED:
  8699. REQUIRE_FALSE( factories.empty() )
  8700. with expansion:
  8701. !false
  8702. -------------------------------------------------------------------------------
  8703. Reporter's write listings to provided stream
  8704. JUnit reporter lists tags
  8705. -------------------------------------------------------------------------------
  8706. Reporters.tests.cpp:<line number>
  8707. ...............................................................................
  8708. Reporters.tests.cpp:<line number>: PASSED:
  8709. REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
  8710. with expansion:
  8711. "<?xml version="1.0" encoding="UTF-8"?>
  8712. All available tags:
  8713. 1 [fakeTag]
  8714. 1 tag
  8715. " contains: "fakeTag"
  8716. with message:
  8717. Tested reporter: JUnit
  8718. -------------------------------------------------------------------------------
  8719. Reporter's write listings to provided stream
  8720. -------------------------------------------------------------------------------
  8721. Reporters.tests.cpp:<line number>
  8722. ...............................................................................
  8723. Reporters.tests.cpp:<line number>: PASSED:
  8724. REQUIRE_FALSE( factories.empty() )
  8725. with expansion:
  8726. !false
  8727. -------------------------------------------------------------------------------
  8728. Reporter's write listings to provided stream
  8729. JUnit reporter lists reporters
  8730. -------------------------------------------------------------------------------
  8731. Reporters.tests.cpp:<line number>
  8732. ...............................................................................
  8733. Reporters.tests.cpp:<line number>: PASSED:
  8734. REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
  8735. with expansion:
  8736. "<?xml version="1.0" encoding="UTF-8"?>
  8737. Available reporters:
  8738. fake reporter: fake description
  8739. " contains: "fake reporter"
  8740. with message:
  8741. Tested reporter: JUnit
  8742. -------------------------------------------------------------------------------
  8743. Reporter's write listings to provided stream
  8744. -------------------------------------------------------------------------------
  8745. Reporters.tests.cpp:<line number>
  8746. ...............................................................................
  8747. Reporters.tests.cpp:<line number>: PASSED:
  8748. REQUIRE_FALSE( factories.empty() )
  8749. with expansion:
  8750. !false
  8751. -------------------------------------------------------------------------------
  8752. Reporter's write listings to provided stream
  8753. JUnit reporter lists tests
  8754. -------------------------------------------------------------------------------
  8755. Reporters.tests.cpp:<line number>
  8756. ...............................................................................
  8757. Reporters.tests.cpp:<line number>: PASSED:
  8758. REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
  8759. with expansion:
  8760. "<?xml version="1.0" encoding="UTF-8"?>
  8761. All available test cases:
  8762. fake test name
  8763. [fakeTestTag]
  8764. 1 test case
  8765. " ( contains: "fake test name" and contains: "fakeTestTag" )
  8766. with message:
  8767. Tested reporter: JUnit
  8768. -------------------------------------------------------------------------------
  8769. Reporter's write listings to provided stream
  8770. -------------------------------------------------------------------------------
  8771. Reporters.tests.cpp:<line number>
  8772. ...............................................................................
  8773. Reporters.tests.cpp:<line number>: PASSED:
  8774. REQUIRE_FALSE( factories.empty() )
  8775. with expansion:
  8776. !false
  8777. -------------------------------------------------------------------------------
  8778. Reporter's write listings to provided stream
  8779. SonarQube reporter lists tags
  8780. -------------------------------------------------------------------------------
  8781. Reporters.tests.cpp:<line number>
  8782. ...............................................................................
  8783. Reporters.tests.cpp:<line number>: PASSED:
  8784. REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
  8785. with expansion:
  8786. "<?xml version="1.0" encoding="UTF-8"?>
  8787. All available tags:
  8788. 1 [fakeTag]
  8789. 1 tag
  8790. " contains: "fakeTag"
  8791. with message:
  8792. Tested reporter: SonarQube
  8793. -------------------------------------------------------------------------------
  8794. Reporter's write listings to provided stream
  8795. -------------------------------------------------------------------------------
  8796. Reporters.tests.cpp:<line number>
  8797. ...............................................................................
  8798. Reporters.tests.cpp:<line number>: PASSED:
  8799. REQUIRE_FALSE( factories.empty() )
  8800. with expansion:
  8801. !false
  8802. -------------------------------------------------------------------------------
  8803. Reporter's write listings to provided stream
  8804. SonarQube reporter lists reporters
  8805. -------------------------------------------------------------------------------
  8806. Reporters.tests.cpp:<line number>
  8807. ...............................................................................
  8808. Reporters.tests.cpp:<line number>: PASSED:
  8809. REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
  8810. with expansion:
  8811. "<?xml version="1.0" encoding="UTF-8"?>
  8812. Available reporters:
  8813. fake reporter: fake description
  8814. " contains: "fake reporter"
  8815. with message:
  8816. Tested reporter: SonarQube
  8817. -------------------------------------------------------------------------------
  8818. Reporter's write listings to provided stream
  8819. -------------------------------------------------------------------------------
  8820. Reporters.tests.cpp:<line number>
  8821. ...............................................................................
  8822. Reporters.tests.cpp:<line number>: PASSED:
  8823. REQUIRE_FALSE( factories.empty() )
  8824. with expansion:
  8825. !false
  8826. -------------------------------------------------------------------------------
  8827. Reporter's write listings to provided stream
  8828. SonarQube reporter lists tests
  8829. -------------------------------------------------------------------------------
  8830. Reporters.tests.cpp:<line number>
  8831. ...............................................................................
  8832. Reporters.tests.cpp:<line number>: PASSED:
  8833. REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
  8834. with expansion:
  8835. "<?xml version="1.0" encoding="UTF-8"?>
  8836. All available test cases:
  8837. fake test name
  8838. [fakeTestTag]
  8839. 1 test case
  8840. " ( contains: "fake test name" and contains: "fakeTestTag" )
  8841. with message:
  8842. Tested reporter: SonarQube
  8843. -------------------------------------------------------------------------------
  8844. Reporter's write listings to provided stream
  8845. -------------------------------------------------------------------------------
  8846. Reporters.tests.cpp:<line number>
  8847. ...............................................................................
  8848. Reporters.tests.cpp:<line number>: PASSED:
  8849. REQUIRE_FALSE( factories.empty() )
  8850. with expansion:
  8851. !false
  8852. -------------------------------------------------------------------------------
  8853. Reporter's write listings to provided stream
  8854. TAP reporter lists tags
  8855. -------------------------------------------------------------------------------
  8856. Reporters.tests.cpp:<line number>
  8857. ...............................................................................
  8858. Reporters.tests.cpp:<line number>: PASSED:
  8859. REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
  8860. with expansion:
  8861. "All available tags:
  8862. 1 [fakeTag]
  8863. 1 tag
  8864. " contains: "fakeTag"
  8865. with message:
  8866. Tested reporter: TAP
  8867. -------------------------------------------------------------------------------
  8868. Reporter's write listings to provided stream
  8869. -------------------------------------------------------------------------------
  8870. Reporters.tests.cpp:<line number>
  8871. ...............................................................................
  8872. Reporters.tests.cpp:<line number>: PASSED:
  8873. REQUIRE_FALSE( factories.empty() )
  8874. with expansion:
  8875. !false
  8876. -------------------------------------------------------------------------------
  8877. Reporter's write listings to provided stream
  8878. TAP reporter lists reporters
  8879. -------------------------------------------------------------------------------
  8880. Reporters.tests.cpp:<line number>
  8881. ...............................................................................
  8882. Reporters.tests.cpp:<line number>: PASSED:
  8883. REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
  8884. with expansion:
  8885. "Available reporters:
  8886. fake reporter: fake description
  8887. " contains: "fake reporter"
  8888. with message:
  8889. Tested reporter: TAP
  8890. -------------------------------------------------------------------------------
  8891. Reporter's write listings to provided stream
  8892. -------------------------------------------------------------------------------
  8893. Reporters.tests.cpp:<line number>
  8894. ...............................................................................
  8895. Reporters.tests.cpp:<line number>: PASSED:
  8896. REQUIRE_FALSE( factories.empty() )
  8897. with expansion:
  8898. !false
  8899. -------------------------------------------------------------------------------
  8900. Reporter's write listings to provided stream
  8901. TAP reporter lists tests
  8902. -------------------------------------------------------------------------------
  8903. Reporters.tests.cpp:<line number>
  8904. ...............................................................................
  8905. Reporters.tests.cpp:<line number>: PASSED:
  8906. REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
  8907. with expansion:
  8908. "All available test cases:
  8909. fake test name
  8910. [fakeTestTag]
  8911. 1 test case
  8912. " ( contains: "fake test name" and contains: "fakeTestTag" )
  8913. with message:
  8914. Tested reporter: TAP
  8915. -------------------------------------------------------------------------------
  8916. Reporter's write listings to provided stream
  8917. -------------------------------------------------------------------------------
  8918. Reporters.tests.cpp:<line number>
  8919. ...............................................................................
  8920. Reporters.tests.cpp:<line number>: PASSED:
  8921. REQUIRE_FALSE( factories.empty() )
  8922. with expansion:
  8923. !false
  8924. -------------------------------------------------------------------------------
  8925. Reporter's write listings to provided stream
  8926. TeamCity reporter lists tags
  8927. -------------------------------------------------------------------------------
  8928. Reporters.tests.cpp:<line number>
  8929. ...............................................................................
  8930. Reporters.tests.cpp:<line number>: PASSED:
  8931. REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
  8932. with expansion:
  8933. "All available tags:
  8934. 1 [fakeTag]
  8935. 1 tag
  8936. " contains: "fakeTag"
  8937. with message:
  8938. Tested reporter: TeamCity
  8939. -------------------------------------------------------------------------------
  8940. Reporter's write listings to provided stream
  8941. -------------------------------------------------------------------------------
  8942. Reporters.tests.cpp:<line number>
  8943. ...............................................................................
  8944. Reporters.tests.cpp:<line number>: PASSED:
  8945. REQUIRE_FALSE( factories.empty() )
  8946. with expansion:
  8947. !false
  8948. -------------------------------------------------------------------------------
  8949. Reporter's write listings to provided stream
  8950. TeamCity reporter lists reporters
  8951. -------------------------------------------------------------------------------
  8952. Reporters.tests.cpp:<line number>
  8953. ...............................................................................
  8954. Reporters.tests.cpp:<line number>: PASSED:
  8955. REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
  8956. with expansion:
  8957. "Available reporters:
  8958. fake reporter: fake description
  8959. " contains: "fake reporter"
  8960. with message:
  8961. Tested reporter: TeamCity
  8962. -------------------------------------------------------------------------------
  8963. Reporter's write listings to provided stream
  8964. -------------------------------------------------------------------------------
  8965. Reporters.tests.cpp:<line number>
  8966. ...............................................................................
  8967. Reporters.tests.cpp:<line number>: PASSED:
  8968. REQUIRE_FALSE( factories.empty() )
  8969. with expansion:
  8970. !false
  8971. -------------------------------------------------------------------------------
  8972. Reporter's write listings to provided stream
  8973. TeamCity reporter lists tests
  8974. -------------------------------------------------------------------------------
  8975. Reporters.tests.cpp:<line number>
  8976. ...............................................................................
  8977. Reporters.tests.cpp:<line number>: PASSED:
  8978. REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
  8979. with expansion:
  8980. "All available test cases:
  8981. fake test name
  8982. [fakeTestTag]
  8983. 1 test case
  8984. " ( contains: "fake test name" and contains: "fakeTestTag" )
  8985. with message:
  8986. Tested reporter: TeamCity
  8987. -------------------------------------------------------------------------------
  8988. Reporter's write listings to provided stream
  8989. -------------------------------------------------------------------------------
  8990. Reporters.tests.cpp:<line number>
  8991. ...............................................................................
  8992. Reporters.tests.cpp:<line number>: PASSED:
  8993. REQUIRE_FALSE( factories.empty() )
  8994. with expansion:
  8995. !false
  8996. -------------------------------------------------------------------------------
  8997. Reporter's write listings to provided stream
  8998. XML reporter lists tags
  8999. -------------------------------------------------------------------------------
  9000. Reporters.tests.cpp:<line number>
  9001. ...............................................................................
  9002. Reporters.tests.cpp:<line number>: PASSED:
  9003. REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
  9004. with expansion:
  9005. "<?xml version="1.0" encoding="UTF-8"?>
  9006. <TagsFromMatchingTests>
  9007. <Tag>
  9008. <Count>1</Count>
  9009. <Aliases>
  9010. <Alias>fakeTag</Alias>
  9011. </Aliases>
  9012. </Tag>
  9013. </TagsFromMatchingTests>" contains: "fakeTag"
  9014. with message:
  9015. Tested reporter: XML
  9016. -------------------------------------------------------------------------------
  9017. Reporter's write listings to provided stream
  9018. -------------------------------------------------------------------------------
  9019. Reporters.tests.cpp:<line number>
  9020. ...............................................................................
  9021. Reporters.tests.cpp:<line number>: PASSED:
  9022. REQUIRE_FALSE( factories.empty() )
  9023. with expansion:
  9024. !false
  9025. -------------------------------------------------------------------------------
  9026. Reporter's write listings to provided stream
  9027. XML reporter lists reporters
  9028. -------------------------------------------------------------------------------
  9029. Reporters.tests.cpp:<line number>
  9030. ...............................................................................
  9031. Reporters.tests.cpp:<line number>: PASSED:
  9032. REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
  9033. with expansion:
  9034. "<?xml version="1.0" encoding="UTF-8"?>
  9035. <AvailableReporters>
  9036. <Reporter>
  9037. <Name>fake reporter</Name>
  9038. <Description>fake description</Description>
  9039. </Reporter>
  9040. </AvailableReporters>" contains: "fake reporter"
  9041. with message:
  9042. Tested reporter: XML
  9043. -------------------------------------------------------------------------------
  9044. Reporter's write listings to provided stream
  9045. -------------------------------------------------------------------------------
  9046. Reporters.tests.cpp:<line number>
  9047. ...............................................................................
  9048. Reporters.tests.cpp:<line number>: PASSED:
  9049. REQUIRE_FALSE( factories.empty() )
  9050. with expansion:
  9051. !false
  9052. -------------------------------------------------------------------------------
  9053. Reporter's write listings to provided stream
  9054. XML reporter lists tests
  9055. -------------------------------------------------------------------------------
  9056. Reporters.tests.cpp:<line number>
  9057. ...............................................................................
  9058. Reporters.tests.cpp:<line number>: PASSED:
  9059. REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
  9060. with expansion:
  9061. "<?xml version="1.0" encoding="UTF-8"?>
  9062. <MatchingTests>
  9063. <TestCase>
  9064. <Name>fake test name</Name>
  9065. <ClassName/>
  9066. <Tags>[fakeTestTag]</Tags>
  9067. <SourceInfo>
  9068. <File>fake-file.cpp</File>
  9069. <Line>123456789</Line>
  9070. </SourceInfo>
  9071. </TestCase>
  9072. </MatchingTests>" ( contains: "fake test name" and contains: "fakeTestTag" )
  9073. with message:
  9074. Tested reporter: XML
  9075. -------------------------------------------------------------------------------
  9076. Reproducer for #2309 - a very long description past 80 chars (default console
  9077. width) with a late colon : blablabla
  9078. -------------------------------------------------------------------------------
  9079. Reporters.tests.cpp:<line number>
  9080. ...............................................................................
  9081. Reporters.tests.cpp:<line number>: PASSED:
  9082. -------------------------------------------------------------------------------
  9083. SUCCEED counts as a test pass
  9084. -------------------------------------------------------------------------------
  9085. Message.tests.cpp:<line number>
  9086. ...............................................................................
  9087. Message.tests.cpp:<line number>: PASSED:
  9088. with message:
  9089. this is a success
  9090. -------------------------------------------------------------------------------
  9091. SUCCEED does not require an argument
  9092. -------------------------------------------------------------------------------
  9093. Message.tests.cpp:<line number>
  9094. ...............................................................................
  9095. Message.tests.cpp:<line number>: PASSED:
  9096. -------------------------------------------------------------------------------
  9097. Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or
  9098. methods
  9099. Given: No operations precede me
  9100. -------------------------------------------------------------------------------
  9101. BDD.tests.cpp:<line number>
  9102. ...............................................................................
  9103. BDD.tests.cpp:<line number>: PASSED:
  9104. REQUIRE( before == 0 )
  9105. with expansion:
  9106. 0 == 0
  9107. -------------------------------------------------------------------------------
  9108. Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or
  9109. methods
  9110. Given: No operations precede me
  9111. When: We get the count
  9112. Then: Subsequently values are higher
  9113. -------------------------------------------------------------------------------
  9114. BDD.tests.cpp:<line number>
  9115. ...............................................................................
  9116. BDD.tests.cpp:<line number>: PASSED:
  9117. REQUIRE( after > before )
  9118. with expansion:
  9119. 1 > 0
  9120. -------------------------------------------------------------------------------
  9121. Scenario: Do that thing with the thing
  9122. Given: This stuff exists
  9123. And given: And some assumption
  9124. When: I do this
  9125. Then: it should do this
  9126. -------------------------------------------------------------------------------
  9127. BDD.tests.cpp:<line number>
  9128. ...............................................................................
  9129. BDD.tests.cpp:<line number>: PASSED:
  9130. REQUIRE( itDoesThis() )
  9131. with expansion:
  9132. true
  9133. -------------------------------------------------------------------------------
  9134. Scenario: Do that thing with the thing
  9135. Given: This stuff exists
  9136. And given: And some assumption
  9137. When: I do this
  9138. Then: it should do this
  9139. And: do that
  9140. -------------------------------------------------------------------------------
  9141. BDD.tests.cpp:<line number>
  9142. ...............................................................................
  9143. BDD.tests.cpp:<line number>: PASSED:
  9144. REQUIRE( itDoesThat() )
  9145. with expansion:
  9146. true
  9147. -------------------------------------------------------------------------------
  9148. Scenario: This is a really long scenario name to see how the list command deals
  9149. with wrapping
  9150. Given: A section name that is so long that it cannot fit in a single
  9151. console width
  9152. When: The test headers are printed as part of the normal running of the
  9153. scenario
  9154. Then: The, deliberately very long and overly verbose (you see what I did
  9155. there?) section names must wrap, along with an indent
  9156. -------------------------------------------------------------------------------
  9157. BDD.tests.cpp:<line number>
  9158. ...............................................................................
  9159. BDD.tests.cpp:<line number>: PASSED:
  9160. with message:
  9161. boo!
  9162. -------------------------------------------------------------------------------
  9163. Scenario: Vector resizing affects size and capacity
  9164. Given: an empty vector
  9165. -------------------------------------------------------------------------------
  9166. BDD.tests.cpp:<line number>
  9167. ...............................................................................
  9168. BDD.tests.cpp:<line number>: PASSED:
  9169. REQUIRE( v.size() == 0 )
  9170. with expansion:
  9171. 0 == 0
  9172. -------------------------------------------------------------------------------
  9173. Scenario: Vector resizing affects size and capacity
  9174. Given: an empty vector
  9175. When: it is made larger
  9176. Then: the size and capacity go up
  9177. -------------------------------------------------------------------------------
  9178. BDD.tests.cpp:<line number>
  9179. ...............................................................................
  9180. BDD.tests.cpp:<line number>: PASSED:
  9181. REQUIRE( v.size() == 10 )
  9182. with expansion:
  9183. 10 == 10
  9184. BDD.tests.cpp:<line number>: PASSED:
  9185. REQUIRE( v.capacity() >= 10 )
  9186. with expansion:
  9187. 10 >= 10
  9188. -------------------------------------------------------------------------------
  9189. Scenario: Vector resizing affects size and capacity
  9190. Given: an empty vector
  9191. When: it is made larger
  9192. Then: the size and capacity go up
  9193. And when: it is made smaller again
  9194. Then: the size goes down but the capacity stays the same
  9195. -------------------------------------------------------------------------------
  9196. BDD.tests.cpp:<line number>
  9197. ...............................................................................
  9198. BDD.tests.cpp:<line number>: PASSED:
  9199. REQUIRE( v.size() == 5 )
  9200. with expansion:
  9201. 5 == 5
  9202. BDD.tests.cpp:<line number>: PASSED:
  9203. REQUIRE( v.capacity() >= 10 )
  9204. with expansion:
  9205. 10 >= 10
  9206. -------------------------------------------------------------------------------
  9207. Scenario: Vector resizing affects size and capacity
  9208. Given: an empty vector
  9209. -------------------------------------------------------------------------------
  9210. BDD.tests.cpp:<line number>
  9211. ...............................................................................
  9212. BDD.tests.cpp:<line number>: PASSED:
  9213. REQUIRE( v.size() == 0 )
  9214. with expansion:
  9215. 0 == 0
  9216. -------------------------------------------------------------------------------
  9217. Scenario: Vector resizing affects size and capacity
  9218. Given: an empty vector
  9219. When: we reserve more space
  9220. Then: The capacity is increased but the size remains the same
  9221. -------------------------------------------------------------------------------
  9222. BDD.tests.cpp:<line number>
  9223. ...............................................................................
  9224. BDD.tests.cpp:<line number>: PASSED:
  9225. REQUIRE( v.capacity() >= 10 )
  9226. with expansion:
  9227. 10 >= 10
  9228. BDD.tests.cpp:<line number>: PASSED:
  9229. REQUIRE( v.size() == 0 )
  9230. with expansion:
  9231. 0 == 0
  9232. A string sent directly to stdout
  9233. A string sent directly to stderr
  9234. A string sent to stderr via clog
  9235. -------------------------------------------------------------------------------
  9236. Sends stuff to stdout and stderr
  9237. -------------------------------------------------------------------------------
  9238. Misc.tests.cpp:<line number>
  9239. ...............................................................................
  9240. No assertions in test case 'Sends stuff to stdout and stderr'
  9241. -------------------------------------------------------------------------------
  9242. Some simple comparisons between doubles
  9243. -------------------------------------------------------------------------------
  9244. Approx.tests.cpp:<line number>
  9245. ...............................................................................
  9246. Approx.tests.cpp:<line number>: PASSED:
  9247. REQUIRE( d == Approx( 1.23 ) )
  9248. with expansion:
  9249. 1.23 == Approx( 1.23 )
  9250. Approx.tests.cpp:<line number>: PASSED:
  9251. REQUIRE( d != Approx( 1.22 ) )
  9252. with expansion:
  9253. 1.23 != Approx( 1.22 )
  9254. Approx.tests.cpp:<line number>: PASSED:
  9255. REQUIRE( d != Approx( 1.24 ) )
  9256. with expansion:
  9257. 1.23 != Approx( 1.24 )
  9258. Approx.tests.cpp:<line number>: PASSED:
  9259. REQUIRE( d == 1.23_a )
  9260. with expansion:
  9261. 1.23 == Approx( 1.23 )
  9262. Approx.tests.cpp:<line number>: PASSED:
  9263. REQUIRE( d != 1.22_a )
  9264. with expansion:
  9265. 1.23 != Approx( 1.22 )
  9266. Approx.tests.cpp:<line number>: PASSED:
  9267. REQUIRE( Approx( d ) == 1.23 )
  9268. with expansion:
  9269. Approx( 1.23 ) == 1.23
  9270. Approx.tests.cpp:<line number>: PASSED:
  9271. REQUIRE( Approx( d ) != 1.22 )
  9272. with expansion:
  9273. Approx( 1.23 ) != 1.22
  9274. Approx.tests.cpp:<line number>: PASSED:
  9275. REQUIRE( Approx( d ) != 1.24 )
  9276. with expansion:
  9277. Approx( 1.23 ) != 1.24
  9278. Message from section one
  9279. -------------------------------------------------------------------------------
  9280. Standard output from all sections is reported
  9281. one
  9282. -------------------------------------------------------------------------------
  9283. Message.tests.cpp:<line number>
  9284. ...............................................................................
  9285. No assertions in section 'one'
  9286. Message from section two
  9287. -------------------------------------------------------------------------------
  9288. Standard output from all sections is reported
  9289. two
  9290. -------------------------------------------------------------------------------
  9291. Message.tests.cpp:<line number>
  9292. ...............................................................................
  9293. No assertions in section 'two'
  9294. -------------------------------------------------------------------------------
  9295. StartsWith string matcher
  9296. -------------------------------------------------------------------------------
  9297. Matchers.tests.cpp:<line number>
  9298. ...............................................................................
  9299. Matchers.tests.cpp:<line number>: FAILED:
  9300. CHECK_THAT( testStringForMatching(), StartsWith( "This String" ) )
  9301. with expansion:
  9302. "this string contains 'abc' as a substring" starts with: "This String"
  9303. Matchers.tests.cpp:<line number>: FAILED:
  9304. CHECK_THAT( testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) )
  9305. with expansion:
  9306. "this string contains 'abc' as a substring" starts with: "string" (case
  9307. insensitive)
  9308. -------------------------------------------------------------------------------
  9309. Static arrays are convertible to string
  9310. Single item
  9311. -------------------------------------------------------------------------------
  9312. ToStringGeneral.tests.cpp:<line number>
  9313. ...............................................................................
  9314. ToStringGeneral.tests.cpp:<line number>: PASSED:
  9315. REQUIRE( Catch::Detail::stringify(singular) == "{ 1 }" )
  9316. with expansion:
  9317. "{ 1 }" == "{ 1 }"
  9318. -------------------------------------------------------------------------------
  9319. Static arrays are convertible to string
  9320. Multiple
  9321. -------------------------------------------------------------------------------
  9322. ToStringGeneral.tests.cpp:<line number>
  9323. ...............................................................................
  9324. ToStringGeneral.tests.cpp:<line number>: PASSED:
  9325. REQUIRE( Catch::Detail::stringify(arr) == "{ 3, 2, 1 }" )
  9326. with expansion:
  9327. "{ 3, 2, 1 }" == "{ 3, 2, 1 }"
  9328. -------------------------------------------------------------------------------
  9329. Static arrays are convertible to string
  9330. Non-trivial inner items
  9331. -------------------------------------------------------------------------------
  9332. ToStringGeneral.tests.cpp:<line number>
  9333. ...............................................................................
  9334. ToStringGeneral.tests.cpp:<line number>: PASSED:
  9335. REQUIRE( Catch::Detail::stringify(arr) == R"({ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } })" )
  9336. with expansion:
  9337. "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
  9338. ==
  9339. "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
  9340. -------------------------------------------------------------------------------
  9341. String matchers
  9342. -------------------------------------------------------------------------------
  9343. Matchers.tests.cpp:<line number>
  9344. ...............................................................................
  9345. Matchers.tests.cpp:<line number>: PASSED:
  9346. REQUIRE_THAT( testStringForMatching(), ContainsSubstring( "string" ) )
  9347. with expansion:
  9348. "this string contains 'abc' as a substring" contains: "string"
  9349. Matchers.tests.cpp:<line number>: PASSED:
  9350. REQUIRE_THAT( testStringForMatching(), ContainsSubstring( "string", Catch::CaseSensitive::No ) )
  9351. with expansion:
  9352. "this string contains 'abc' as a substring" contains: "string" (case
  9353. insensitive)
  9354. Matchers.tests.cpp:<line number>: PASSED:
  9355. CHECK_THAT( testStringForMatching(), ContainsSubstring( "abc" ) )
  9356. with expansion:
  9357. "this string contains 'abc' as a substring" contains: "abc"
  9358. Matchers.tests.cpp:<line number>: PASSED:
  9359. CHECK_THAT( testStringForMatching(), ContainsSubstring( "aBC", Catch::CaseSensitive::No ) )
  9360. with expansion:
  9361. "this string contains 'abc' as a substring" contains: "abc" (case
  9362. insensitive)
  9363. Matchers.tests.cpp:<line number>: PASSED:
  9364. CHECK_THAT( testStringForMatching(), StartsWith( "this" ) )
  9365. with expansion:
  9366. "this string contains 'abc' as a substring" starts with: "this"
  9367. Matchers.tests.cpp:<line number>: PASSED:
  9368. CHECK_THAT( testStringForMatching(), StartsWith( "THIS", Catch::CaseSensitive::No ) )
  9369. with expansion:
  9370. "this string contains 'abc' as a substring" starts with: "this" (case
  9371. insensitive)
  9372. Matchers.tests.cpp:<line number>: PASSED:
  9373. CHECK_THAT( testStringForMatching(), EndsWith( "substring" ) )
  9374. with expansion:
  9375. "this string contains 'abc' as a substring" ends with: "substring"
  9376. Matchers.tests.cpp:<line number>: PASSED:
  9377. CHECK_THAT( testStringForMatching(), EndsWith( " SuBsTrInG", Catch::CaseSensitive::No ) )
  9378. with expansion:
  9379. "this string contains 'abc' as a substring" ends with: " substring" (case
  9380. insensitive)
  9381. -------------------------------------------------------------------------------
  9382. StringRef
  9383. Empty string
  9384. -------------------------------------------------------------------------------
  9385. String.tests.cpp:<line number>
  9386. ...............................................................................
  9387. String.tests.cpp:<line number>: PASSED:
  9388. REQUIRE( empty.empty() )
  9389. with expansion:
  9390. true
  9391. String.tests.cpp:<line number>: PASSED:
  9392. REQUIRE( empty.size() == 0 )
  9393. with expansion:
  9394. 0 == 0
  9395. String.tests.cpp:<line number>: PASSED:
  9396. REQUIRE( std::strcmp( empty.data(), "" ) == 0 )
  9397. with expansion:
  9398. 0 == 0
  9399. -------------------------------------------------------------------------------
  9400. StringRef
  9401. From string literal
  9402. -------------------------------------------------------------------------------
  9403. String.tests.cpp:<line number>
  9404. ...............................................................................
  9405. String.tests.cpp:<line number>: PASSED:
  9406. REQUIRE( s.empty() == false )
  9407. with expansion:
  9408. false == false
  9409. String.tests.cpp:<line number>: PASSED:
  9410. REQUIRE( s.size() == 5 )
  9411. with expansion:
  9412. 5 == 5
  9413. String.tests.cpp:<line number>: PASSED:
  9414. REQUIRE( std::strcmp( rawChars, "hello" ) == 0 )
  9415. with expansion:
  9416. 0 == 0
  9417. String.tests.cpp:<line number>: PASSED:
  9418. REQUIRE( s.data() == rawChars )
  9419. with expansion:
  9420. "hello" == "hello"
  9421. -------------------------------------------------------------------------------
  9422. StringRef
  9423. From sub-string
  9424. -------------------------------------------------------------------------------
  9425. String.tests.cpp:<line number>
  9426. ...............................................................................
  9427. String.tests.cpp:<line number>: PASSED:
  9428. REQUIRE( original == "original" )
  9429. String.tests.cpp:<line number>: PASSED:
  9430. REQUIRE_NOTHROW( original.data() )
  9431. -------------------------------------------------------------------------------
  9432. StringRef
  9433. Copy construction is shallow
  9434. -------------------------------------------------------------------------------
  9435. String.tests.cpp:<line number>
  9436. ...............................................................................
  9437. String.tests.cpp:<line number>: PASSED:
  9438. REQUIRE( original.begin() == copy.begin() )
  9439. with expansion:
  9440. "original string" == "original string"
  9441. -------------------------------------------------------------------------------
  9442. StringRef
  9443. Copy assignment is shallow
  9444. -------------------------------------------------------------------------------
  9445. String.tests.cpp:<line number>
  9446. ...............................................................................
  9447. String.tests.cpp:<line number>: PASSED:
  9448. REQUIRE( original.begin() == copy.begin() )
  9449. with expansion:
  9450. "original string" == "original string"
  9451. -------------------------------------------------------------------------------
  9452. StringRef
  9453. Substrings
  9454. zero-based substring
  9455. -------------------------------------------------------------------------------
  9456. String.tests.cpp:<line number>
  9457. ...............................................................................
  9458. String.tests.cpp:<line number>: PASSED:
  9459. REQUIRE( ss.empty() == false )
  9460. with expansion:
  9461. false == false
  9462. String.tests.cpp:<line number>: PASSED:
  9463. REQUIRE( ss.size() == 5 )
  9464. with expansion:
  9465. 5 == 5
  9466. String.tests.cpp:<line number>: PASSED:
  9467. REQUIRE( std::strncmp( ss.data(), "hello", 5 ) == 0 )
  9468. with expansion:
  9469. 0 == 0
  9470. String.tests.cpp:<line number>: PASSED:
  9471. REQUIRE( ss == "hello" )
  9472. with expansion:
  9473. hello == "hello"
  9474. -------------------------------------------------------------------------------
  9475. StringRef
  9476. Substrings
  9477. non-zero-based substring
  9478. -------------------------------------------------------------------------------
  9479. String.tests.cpp:<line number>
  9480. ...............................................................................
  9481. String.tests.cpp:<line number>: PASSED:
  9482. REQUIRE( ss.size() == 6 )
  9483. with expansion:
  9484. 6 == 6
  9485. String.tests.cpp:<line number>: PASSED:
  9486. REQUIRE( std::strcmp( ss.data(), "world!" ) == 0 )
  9487. with expansion:
  9488. 0 == 0
  9489. -------------------------------------------------------------------------------
  9490. StringRef
  9491. Substrings
  9492. Pointer values of full refs should match
  9493. -------------------------------------------------------------------------------
  9494. String.tests.cpp:<line number>
  9495. ...............................................................................
  9496. String.tests.cpp:<line number>: PASSED:
  9497. REQUIRE( s.data() == s2.data() )
  9498. with expansion:
  9499. "hello world!" == "hello world!"
  9500. -------------------------------------------------------------------------------
  9501. StringRef
  9502. Substrings
  9503. Pointer values of substring refs should also match
  9504. -------------------------------------------------------------------------------
  9505. String.tests.cpp:<line number>
  9506. ...............................................................................
  9507. String.tests.cpp:<line number>: PASSED:
  9508. REQUIRE( s.data() == ss.data() )
  9509. with expansion:
  9510. "hello world!" == "hello world!"
  9511. -------------------------------------------------------------------------------
  9512. StringRef
  9513. Substrings
  9514. Past the end substring
  9515. -------------------------------------------------------------------------------
  9516. String.tests.cpp:<line number>
  9517. ...............................................................................
  9518. String.tests.cpp:<line number>: PASSED:
  9519. REQUIRE( s.substr(s.size() + 1, 123).empty() )
  9520. with expansion:
  9521. true
  9522. -------------------------------------------------------------------------------
  9523. StringRef
  9524. Substrings
  9525. Substring off the end are trimmed
  9526. -------------------------------------------------------------------------------
  9527. String.tests.cpp:<line number>
  9528. ...............................................................................
  9529. String.tests.cpp:<line number>: PASSED:
  9530. REQUIRE( std::strcmp(ss.data(), "world!") == 0 )
  9531. with expansion:
  9532. 0 == 0
  9533. -------------------------------------------------------------------------------
  9534. StringRef
  9535. Substrings
  9536. substring start after the end is empty
  9537. -------------------------------------------------------------------------------
  9538. String.tests.cpp:<line number>
  9539. ...............................................................................
  9540. String.tests.cpp:<line number>: PASSED:
  9541. REQUIRE( s.substr(1'000'000, 1).empty() )
  9542. with expansion:
  9543. true
  9544. -------------------------------------------------------------------------------
  9545. StringRef
  9546. Comparisons are deep
  9547. -------------------------------------------------------------------------------
  9548. String.tests.cpp:<line number>
  9549. ...............................................................................
  9550. String.tests.cpp:<line number>: PASSED:
  9551. CHECK( reinterpret_cast<char*>(buffer1) != reinterpret_cast<char*>(buffer2) )
  9552. with expansion:
  9553. "Hello" != "Hello"
  9554. String.tests.cpp:<line number>: PASSED:
  9555. REQUIRE( left == right )
  9556. with expansion:
  9557. Hello == Hello
  9558. String.tests.cpp:<line number>: PASSED:
  9559. REQUIRE( left != left.substr(0, 3) )
  9560. with expansion:
  9561. Hello != Hel
  9562. -------------------------------------------------------------------------------
  9563. StringRef
  9564. from std::string
  9565. implicitly constructed
  9566. -------------------------------------------------------------------------------
  9567. String.tests.cpp:<line number>
  9568. ...............................................................................
  9569. String.tests.cpp:<line number>: PASSED:
  9570. REQUIRE( sr == "a standard string" )
  9571. with expansion:
  9572. a standard string == "a standard string"
  9573. String.tests.cpp:<line number>: PASSED:
  9574. REQUIRE( sr.size() == stdStr.size() )
  9575. with expansion:
  9576. 17 == 17
  9577. -------------------------------------------------------------------------------
  9578. StringRef
  9579. from std::string
  9580. explicitly constructed
  9581. -------------------------------------------------------------------------------
  9582. String.tests.cpp:<line number>
  9583. ...............................................................................
  9584. String.tests.cpp:<line number>: PASSED:
  9585. REQUIRE( sr == "a standard string" )
  9586. with expansion:
  9587. a standard string == "a standard string"
  9588. String.tests.cpp:<line number>: PASSED:
  9589. REQUIRE( sr.size() == stdStr.size() )
  9590. with expansion:
  9591. 17 == 17
  9592. -------------------------------------------------------------------------------
  9593. StringRef
  9594. from std::string
  9595. assigned
  9596. -------------------------------------------------------------------------------
  9597. String.tests.cpp:<line number>
  9598. ...............................................................................
  9599. String.tests.cpp:<line number>: PASSED:
  9600. REQUIRE( sr == "a standard string" )
  9601. with expansion:
  9602. a standard string == "a standard string"
  9603. String.tests.cpp:<line number>: PASSED:
  9604. REQUIRE( sr.size() == stdStr.size() )
  9605. with expansion:
  9606. 17 == 17
  9607. -------------------------------------------------------------------------------
  9608. StringRef
  9609. to std::string
  9610. explicitly constructed
  9611. -------------------------------------------------------------------------------
  9612. String.tests.cpp:<line number>
  9613. ...............................................................................
  9614. String.tests.cpp:<line number>: PASSED:
  9615. REQUIRE( stdStr == "a stringref" )
  9616. with expansion:
  9617. "a stringref" == "a stringref"
  9618. String.tests.cpp:<line number>: PASSED:
  9619. REQUIRE( stdStr.size() == sr.size() )
  9620. with expansion:
  9621. 11 == 11
  9622. -------------------------------------------------------------------------------
  9623. StringRef
  9624. to std::string
  9625. assigned
  9626. -------------------------------------------------------------------------------
  9627. String.tests.cpp:<line number>
  9628. ...............................................................................
  9629. String.tests.cpp:<line number>: PASSED:
  9630. REQUIRE( stdStr == "a stringref" )
  9631. with expansion:
  9632. "a stringref" == "a stringref"
  9633. String.tests.cpp:<line number>: PASSED:
  9634. REQUIRE( stdStr.size() == sr.size() )
  9635. with expansion:
  9636. 11 == 11
  9637. -------------------------------------------------------------------------------
  9638. StringRef
  9639. std::string += StringRef
  9640. -------------------------------------------------------------------------------
  9641. String.tests.cpp:<line number>
  9642. ...............................................................................
  9643. String.tests.cpp:<line number>: PASSED:
  9644. REQUIRE( lhs == "some string += the stringref contents" )
  9645. with expansion:
  9646. "some string += the stringref contents"
  9647. ==
  9648. "some string += the stringref contents"
  9649. -------------------------------------------------------------------------------
  9650. StringRef
  9651. StringRef + StringRef
  9652. -------------------------------------------------------------------------------
  9653. String.tests.cpp:<line number>
  9654. ...............................................................................
  9655. String.tests.cpp:<line number>: PASSED:
  9656. REQUIRE( together == "abrakadabra" )
  9657. with expansion:
  9658. "abrakadabra" == "abrakadabra"
  9659. -------------------------------------------------------------------------------
  9660. StringRef at compilation time
  9661. Simple constructors
  9662. -------------------------------------------------------------------------------
  9663. String.tests.cpp:<line number>
  9664. ...............................................................................
  9665. String.tests.cpp:<line number>: PASSED:
  9666. with message:
  9667. empty.size() == 0
  9668. String.tests.cpp:<line number>: PASSED:
  9669. with message:
  9670. empty.begin() == empty.end()
  9671. String.tests.cpp:<line number>: PASSED:
  9672. with message:
  9673. stringref.size() == 3
  9674. String.tests.cpp:<line number>: PASSED:
  9675. with message:
  9676. stringref.data() == abc
  9677. String.tests.cpp:<line number>: PASSED:
  9678. with message:
  9679. stringref.begin() == abc
  9680. String.tests.cpp:<line number>: PASSED:
  9681. with message:
  9682. stringref.begin() != stringref.end()
  9683. String.tests.cpp:<line number>: PASSED:
  9684. with message:
  9685. stringref.substr(10, 0).empty()
  9686. String.tests.cpp:<line number>: PASSED:
  9687. with message:
  9688. stringref.substr(2, 1).data() == abc + 2
  9689. String.tests.cpp:<line number>: PASSED:
  9690. with message:
  9691. stringref[1] == 'b'
  9692. String.tests.cpp:<line number>: PASSED:
  9693. with message:
  9694. shortened.size() == 2
  9695. String.tests.cpp:<line number>: PASSED:
  9696. with message:
  9697. shortened.data() == abc
  9698. String.tests.cpp:<line number>: PASSED:
  9699. with message:
  9700. shortened.begin() != shortened.end()
  9701. -------------------------------------------------------------------------------
  9702. StringRef at compilation time
  9703. UDL construction
  9704. -------------------------------------------------------------------------------
  9705. String.tests.cpp:<line number>
  9706. ...............................................................................
  9707. String.tests.cpp:<line number>: PASSED:
  9708. with message:
  9709. !(sr1.empty())
  9710. String.tests.cpp:<line number>: PASSED:
  9711. with message:
  9712. sr1.size() == 3
  9713. String.tests.cpp:<line number>: PASSED:
  9714. with message:
  9715. sr2.empty()
  9716. String.tests.cpp:<line number>: PASSED:
  9717. with message:
  9718. sr2.size() == 0
  9719. -------------------------------------------------------------------------------
  9720. Stringifying char arrays with statically known sizes - char
  9721. -------------------------------------------------------------------------------
  9722. ToString.tests.cpp:<line number>
  9723. ...............................................................................
  9724. ToString.tests.cpp:<line number>: PASSED:
  9725. CHECK( ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s )
  9726. with expansion:
  9727. ""abc"" == ""abc""
  9728. ToString.tests.cpp:<line number>: PASSED:
  9729. CHECK( ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s )
  9730. with expansion:
  9731. ""abc"" == ""abc""
  9732. -------------------------------------------------------------------------------
  9733. Stringifying char arrays with statically known sizes - signed char
  9734. -------------------------------------------------------------------------------
  9735. ToString.tests.cpp:<line number>
  9736. ...............................................................................
  9737. ToString.tests.cpp:<line number>: PASSED:
  9738. CHECK( ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s )
  9739. with expansion:
  9740. ""abc"" == ""abc""
  9741. ToString.tests.cpp:<line number>: PASSED:
  9742. CHECK( ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s )
  9743. with expansion:
  9744. ""abc"" == ""abc""
  9745. -------------------------------------------------------------------------------
  9746. Stringifying char arrays with statically known sizes - unsigned char
  9747. -------------------------------------------------------------------------------
  9748. ToString.tests.cpp:<line number>
  9749. ...............................................................................
  9750. ToString.tests.cpp:<line number>: PASSED:
  9751. CHECK( ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s )
  9752. with expansion:
  9753. ""abc"" == ""abc""
  9754. ToString.tests.cpp:<line number>: PASSED:
  9755. CHECK( ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s )
  9756. with expansion:
  9757. ""abc"" == ""abc""
  9758. -------------------------------------------------------------------------------
  9759. Stringifying std::chrono::duration helpers
  9760. -------------------------------------------------------------------------------
  9761. ToStringChrono.tests.cpp:<line number>
  9762. ...............................................................................
  9763. ToStringChrono.tests.cpp:<line number>: PASSED:
  9764. REQUIRE( minute == seconds )
  9765. with expansion:
  9766. 1 m == 60 s
  9767. ToStringChrono.tests.cpp:<line number>: PASSED:
  9768. REQUIRE( hour != seconds )
  9769. with expansion:
  9770. 1 h != 60 s
  9771. ToStringChrono.tests.cpp:<line number>: PASSED:
  9772. REQUIRE( micro != milli )
  9773. with expansion:
  9774. 1 us != 1 ms
  9775. ToStringChrono.tests.cpp:<line number>: PASSED:
  9776. REQUIRE( nano != micro )
  9777. with expansion:
  9778. 1 ns != 1 us
  9779. -------------------------------------------------------------------------------
  9780. Stringifying std::chrono::duration with weird ratios
  9781. -------------------------------------------------------------------------------
  9782. ToStringChrono.tests.cpp:<line number>
  9783. ...............................................................................
  9784. ToStringChrono.tests.cpp:<line number>: PASSED:
  9785. REQUIRE( half_minute != femto_second )
  9786. with expansion:
  9787. 1 [30/1]s != 1 fs
  9788. ToStringChrono.tests.cpp:<line number>: PASSED:
  9789. REQUIRE( pico_second != atto_second )
  9790. with expansion:
  9791. 1 ps != 1 as
  9792. -------------------------------------------------------------------------------
  9793. Stringifying std::chrono::time_point<system_clock>
  9794. -------------------------------------------------------------------------------
  9795. ToStringChrono.tests.cpp:<line number>
  9796. ...............................................................................
  9797. ToStringChrono.tests.cpp:<line number>: PASSED:
  9798. REQUIRE( now != later )
  9799. with expansion:
  9800. {iso8601-timestamp}
  9801. !=
  9802. {iso8601-timestamp}
  9803. -------------------------------------------------------------------------------
  9804. Tabs and newlines show in output
  9805. -------------------------------------------------------------------------------
  9806. Misc.tests.cpp:<line number>
  9807. ...............................................................................
  9808. Misc.tests.cpp:<line number>: FAILED:
  9809. CHECK( s1 == s2 )
  9810. with expansion:
  9811. "if ($b == 10) {
  9812. $a = 20;
  9813. }"
  9814. ==
  9815. "if ($b == 10) {
  9816. $a = 20;
  9817. }
  9818. "
  9819. -------------------------------------------------------------------------------
  9820. Tag alias can be registered against tag patterns
  9821. The same tag alias can only be registered once
  9822. -------------------------------------------------------------------------------
  9823. Tag.tests.cpp:<line number>
  9824. ...............................................................................
  9825. Tag.tests.cpp:<line number>: PASSED:
  9826. CHECK_THAT( what, ContainsSubstring( "[@zzz]" ) )
  9827. with expansion:
  9828. "error: tag alias, '[@zzz]' already registered.
  9829. First seen at: file:2
  9830. Redefined at: file:10" contains: "[@zzz]"
  9831. Tag.tests.cpp:<line number>: PASSED:
  9832. CHECK_THAT( what, ContainsSubstring( "file" ) )
  9833. with expansion:
  9834. "error: tag alias, '[@zzz]' already registered.
  9835. First seen at: file:2
  9836. Redefined at: file:10" contains: "file"
  9837. Tag.tests.cpp:<line number>: PASSED:
  9838. CHECK_THAT( what, ContainsSubstring( "2" ) )
  9839. with expansion:
  9840. "error: tag alias, '[@zzz]' already registered.
  9841. First seen at: file:2
  9842. Redefined at: file:10" contains: "2"
  9843. Tag.tests.cpp:<line number>: PASSED:
  9844. CHECK_THAT( what, ContainsSubstring( "10" ) )
  9845. with expansion:
  9846. "error: tag alias, '[@zzz]' already registered.
  9847. First seen at: file:2
  9848. Redefined at: file:10" contains: "10"
  9849. -------------------------------------------------------------------------------
  9850. Tag alias can be registered against tag patterns
  9851. Tag aliases must be of the form [@name]
  9852. -------------------------------------------------------------------------------
  9853. Tag.tests.cpp:<line number>
  9854. ...............................................................................
  9855. Tag.tests.cpp:<line number>: PASSED:
  9856. CHECK_THROWS( registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) )
  9857. Tag.tests.cpp:<line number>: PASSED:
  9858. CHECK_THROWS( registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) )
  9859. Tag.tests.cpp:<line number>: PASSED:
  9860. CHECK_THROWS( registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) )
  9861. Tag.tests.cpp:<line number>: PASSED:
  9862. CHECK_THROWS( registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) )
  9863. -------------------------------------------------------------------------------
  9864. Tags with spaces and non-alphanumerical characters are accepted
  9865. -------------------------------------------------------------------------------
  9866. Tag.tests.cpp:<line number>
  9867. ...............................................................................
  9868. Tag.tests.cpp:<line number>: PASSED:
  9869. REQUIRE( testCase.tags.size() == 2 )
  9870. with expansion:
  9871. 2 == 2
  9872. Tag.tests.cpp:<line number>: PASSED:
  9873. REQUIRE_THAT( testCase.tags, VectorContains( Tag( "tag with spaces" ) ) && VectorContains( Tag( "I said \"good day\" sir!"_catch_sr ) ) )
  9874. with expansion:
  9875. { {?}, {?} } ( Contains: {?} and Contains: {?} )
  9876. -------------------------------------------------------------------------------
  9877. Template test case method with test types specified inside std::tuple - MyTypes
  9878. - 0
  9879. -------------------------------------------------------------------------------
  9880. Class.tests.cpp:<line number>
  9881. ...............................................................................
  9882. Class.tests.cpp:<line number>: PASSED:
  9883. REQUIRE( Template_Fixture<TestType>::m_a == 1 )
  9884. with expansion:
  9885. 1 == 1
  9886. -------------------------------------------------------------------------------
  9887. Template test case method with test types specified inside std::tuple - MyTypes
  9888. - 1
  9889. -------------------------------------------------------------------------------
  9890. Class.tests.cpp:<line number>
  9891. ...............................................................................
  9892. Class.tests.cpp:<line number>: PASSED:
  9893. REQUIRE( Template_Fixture<TestType>::m_a == 1 )
  9894. with expansion:
  9895. 1 == 1
  9896. -------------------------------------------------------------------------------
  9897. Template test case method with test types specified inside std::tuple - MyTypes
  9898. - 2
  9899. -------------------------------------------------------------------------------
  9900. Class.tests.cpp:<line number>
  9901. ...............................................................................
  9902. Class.tests.cpp:<line number>: PASSED:
  9903. REQUIRE( Template_Fixture<TestType>::m_a == 1 )
  9904. with expansion:
  9905. 1.0 == 1
  9906. -------------------------------------------------------------------------------
  9907. Template test case with test types specified inside non-copyable and non-
  9908. movable std::tuple - NonCopyableAndNonMovableTypes - 0
  9909. -------------------------------------------------------------------------------
  9910. Misc.tests.cpp:<line number>
  9911. ...............................................................................
  9912. Misc.tests.cpp:<line number>: PASSED:
  9913. REQUIRE( sizeof(TestType) > 0 )
  9914. with expansion:
  9915. 1 > 0
  9916. -------------------------------------------------------------------------------
  9917. Template test case with test types specified inside non-copyable and non-
  9918. movable std::tuple - NonCopyableAndNonMovableTypes - 1
  9919. -------------------------------------------------------------------------------
  9920. Misc.tests.cpp:<line number>
  9921. ...............................................................................
  9922. Misc.tests.cpp:<line number>: PASSED:
  9923. REQUIRE( sizeof(TestType) > 0 )
  9924. with expansion:
  9925. 4 > 0
  9926. -------------------------------------------------------------------------------
  9927. Template test case with test types specified inside non-default-constructible
  9928. std::tuple - MyNonDefaultConstructibleTypes - 0
  9929. -------------------------------------------------------------------------------
  9930. Misc.tests.cpp:<line number>
  9931. ...............................................................................
  9932. Misc.tests.cpp:<line number>: PASSED:
  9933. REQUIRE( sizeof(TestType) > 0 )
  9934. with expansion:
  9935. 1 > 0
  9936. -------------------------------------------------------------------------------
  9937. Template test case with test types specified inside non-default-constructible
  9938. std::tuple - MyNonDefaultConstructibleTypes - 1
  9939. -------------------------------------------------------------------------------
  9940. Misc.tests.cpp:<line number>
  9941. ...............................................................................
  9942. Misc.tests.cpp:<line number>: PASSED:
  9943. REQUIRE( sizeof(TestType) > 0 )
  9944. with expansion:
  9945. 4 > 0
  9946. -------------------------------------------------------------------------------
  9947. Template test case with test types specified inside std::tuple - MyTypes - 0
  9948. -------------------------------------------------------------------------------
  9949. Misc.tests.cpp:<line number>
  9950. ...............................................................................
  9951. Misc.tests.cpp:<line number>: PASSED:
  9952. REQUIRE( sizeof(TestType) > 0 )
  9953. with expansion:
  9954. 4 > 0
  9955. -------------------------------------------------------------------------------
  9956. Template test case with test types specified inside std::tuple - MyTypes - 1
  9957. -------------------------------------------------------------------------------
  9958. Misc.tests.cpp:<line number>
  9959. ...............................................................................
  9960. Misc.tests.cpp:<line number>: PASSED:
  9961. REQUIRE( sizeof(TestType) > 0 )
  9962. with expansion:
  9963. 1 > 0
  9964. -------------------------------------------------------------------------------
  9965. Template test case with test types specified inside std::tuple - MyTypes - 2
  9966. -------------------------------------------------------------------------------
  9967. Misc.tests.cpp:<line number>
  9968. ...............................................................................
  9969. Misc.tests.cpp:<line number>: PASSED:
  9970. REQUIRE( sizeof(TestType) > 0 )
  9971. with expansion:
  9972. 4 > 0
  9973. -------------------------------------------------------------------------------
  9974. TemplateTest: vectors can be sized and resized - float
  9975. -------------------------------------------------------------------------------
  9976. Misc.tests.cpp:<line number>
  9977. ...............................................................................
  9978. Misc.tests.cpp:<line number>: PASSED:
  9979. REQUIRE( v.size() == 5 )
  9980. with expansion:
  9981. 5 == 5
  9982. Misc.tests.cpp:<line number>: PASSED:
  9983. REQUIRE( v.capacity() >= 5 )
  9984. with expansion:
  9985. 5 >= 5
  9986. -------------------------------------------------------------------------------
  9987. TemplateTest: vectors can be sized and resized - float
  9988. resizing bigger changes size and capacity
  9989. -------------------------------------------------------------------------------
  9990. Misc.tests.cpp:<line number>
  9991. ...............................................................................
  9992. Misc.tests.cpp:<line number>: PASSED:
  9993. REQUIRE( v.size() == 10 )
  9994. with expansion:
  9995. 10 == 10
  9996. Misc.tests.cpp:<line number>: PASSED:
  9997. REQUIRE( v.capacity() >= 10 )
  9998. with expansion:
  9999. 10 >= 10
  10000. -------------------------------------------------------------------------------
  10001. TemplateTest: vectors can be sized and resized - float
  10002. -------------------------------------------------------------------------------
  10003. Misc.tests.cpp:<line number>
  10004. ...............................................................................
  10005. Misc.tests.cpp:<line number>: PASSED:
  10006. REQUIRE( v.size() == 5 )
  10007. with expansion:
  10008. 5 == 5
  10009. Misc.tests.cpp:<line number>: PASSED:
  10010. REQUIRE( v.capacity() >= 5 )
  10011. with expansion:
  10012. 5 >= 5
  10013. -------------------------------------------------------------------------------
  10014. TemplateTest: vectors can be sized and resized - float
  10015. resizing smaller changes size but not capacity
  10016. -------------------------------------------------------------------------------
  10017. Misc.tests.cpp:<line number>
  10018. ...............................................................................
  10019. Misc.tests.cpp:<line number>: PASSED:
  10020. REQUIRE( v.size() == 0 )
  10021. with expansion:
  10022. 0 == 0
  10023. Misc.tests.cpp:<line number>: PASSED:
  10024. REQUIRE( v.capacity() >= 5 )
  10025. with expansion:
  10026. 5 >= 5
  10027. -------------------------------------------------------------------------------
  10028. TemplateTest: vectors can be sized and resized - float
  10029. resizing smaller changes size but not capacity
  10030. We can use the 'swap trick' to reset the capacity
  10031. -------------------------------------------------------------------------------
  10032. Misc.tests.cpp:<line number>
  10033. ...............................................................................
  10034. Misc.tests.cpp:<line number>: PASSED:
  10035. REQUIRE( v.capacity() == 0 )
  10036. with expansion:
  10037. 0 == 0
  10038. -------------------------------------------------------------------------------
  10039. TemplateTest: vectors can be sized and resized - float
  10040. -------------------------------------------------------------------------------
  10041. Misc.tests.cpp:<line number>
  10042. ...............................................................................
  10043. Misc.tests.cpp:<line number>: PASSED:
  10044. REQUIRE( v.size() == 5 )
  10045. with expansion:
  10046. 5 == 5
  10047. Misc.tests.cpp:<line number>: PASSED:
  10048. REQUIRE( v.capacity() >= 5 )
  10049. with expansion:
  10050. 5 >= 5
  10051. -------------------------------------------------------------------------------
  10052. TemplateTest: vectors can be sized and resized - float
  10053. reserving bigger changes capacity but not size
  10054. -------------------------------------------------------------------------------
  10055. Misc.tests.cpp:<line number>
  10056. ...............................................................................
  10057. Misc.tests.cpp:<line number>: PASSED:
  10058. REQUIRE( v.size() == 5 )
  10059. with expansion:
  10060. 5 == 5
  10061. Misc.tests.cpp:<line number>: PASSED:
  10062. REQUIRE( v.capacity() >= 10 )
  10063. with expansion:
  10064. 10 >= 10
  10065. -------------------------------------------------------------------------------
  10066. TemplateTest: vectors can be sized and resized - float
  10067. -------------------------------------------------------------------------------
  10068. Misc.tests.cpp:<line number>
  10069. ...............................................................................
  10070. Misc.tests.cpp:<line number>: PASSED:
  10071. REQUIRE( v.size() == 5 )
  10072. with expansion:
  10073. 5 == 5
  10074. Misc.tests.cpp:<line number>: PASSED:
  10075. REQUIRE( v.capacity() >= 5 )
  10076. with expansion:
  10077. 5 >= 5
  10078. -------------------------------------------------------------------------------
  10079. TemplateTest: vectors can be sized and resized - float
  10080. reserving smaller does not change size or capacity
  10081. -------------------------------------------------------------------------------
  10082. Misc.tests.cpp:<line number>
  10083. ...............................................................................
  10084. Misc.tests.cpp:<line number>: PASSED:
  10085. REQUIRE( v.size() == 5 )
  10086. with expansion:
  10087. 5 == 5
  10088. Misc.tests.cpp:<line number>: PASSED:
  10089. REQUIRE( v.capacity() >= 5 )
  10090. with expansion:
  10091. 5 >= 5
  10092. -------------------------------------------------------------------------------
  10093. TemplateTest: vectors can be sized and resized - int
  10094. -------------------------------------------------------------------------------
  10095. Misc.tests.cpp:<line number>
  10096. ...............................................................................
  10097. Misc.tests.cpp:<line number>: PASSED:
  10098. REQUIRE( v.size() == 5 )
  10099. with expansion:
  10100. 5 == 5
  10101. Misc.tests.cpp:<line number>: PASSED:
  10102. REQUIRE( v.capacity() >= 5 )
  10103. with expansion:
  10104. 5 >= 5
  10105. -------------------------------------------------------------------------------
  10106. TemplateTest: vectors can be sized and resized - int
  10107. resizing bigger changes size and capacity
  10108. -------------------------------------------------------------------------------
  10109. Misc.tests.cpp:<line number>
  10110. ...............................................................................
  10111. Misc.tests.cpp:<line number>: PASSED:
  10112. REQUIRE( v.size() == 10 )
  10113. with expansion:
  10114. 10 == 10
  10115. Misc.tests.cpp:<line number>: PASSED:
  10116. REQUIRE( v.capacity() >= 10 )
  10117. with expansion:
  10118. 10 >= 10
  10119. -------------------------------------------------------------------------------
  10120. TemplateTest: vectors can be sized and resized - int
  10121. -------------------------------------------------------------------------------
  10122. Misc.tests.cpp:<line number>
  10123. ...............................................................................
  10124. Misc.tests.cpp:<line number>: PASSED:
  10125. REQUIRE( v.size() == 5 )
  10126. with expansion:
  10127. 5 == 5
  10128. Misc.tests.cpp:<line number>: PASSED:
  10129. REQUIRE( v.capacity() >= 5 )
  10130. with expansion:
  10131. 5 >= 5
  10132. -------------------------------------------------------------------------------
  10133. TemplateTest: vectors can be sized and resized - int
  10134. resizing smaller changes size but not capacity
  10135. -------------------------------------------------------------------------------
  10136. Misc.tests.cpp:<line number>
  10137. ...............................................................................
  10138. Misc.tests.cpp:<line number>: PASSED:
  10139. REQUIRE( v.size() == 0 )
  10140. with expansion:
  10141. 0 == 0
  10142. Misc.tests.cpp:<line number>: PASSED:
  10143. REQUIRE( v.capacity() >= 5 )
  10144. with expansion:
  10145. 5 >= 5
  10146. -------------------------------------------------------------------------------
  10147. TemplateTest: vectors can be sized and resized - int
  10148. resizing smaller changes size but not capacity
  10149. We can use the 'swap trick' to reset the capacity
  10150. -------------------------------------------------------------------------------
  10151. Misc.tests.cpp:<line number>
  10152. ...............................................................................
  10153. Misc.tests.cpp:<line number>: PASSED:
  10154. REQUIRE( v.capacity() == 0 )
  10155. with expansion:
  10156. 0 == 0
  10157. -------------------------------------------------------------------------------
  10158. TemplateTest: vectors can be sized and resized - int
  10159. -------------------------------------------------------------------------------
  10160. Misc.tests.cpp:<line number>
  10161. ...............................................................................
  10162. Misc.tests.cpp:<line number>: PASSED:
  10163. REQUIRE( v.size() == 5 )
  10164. with expansion:
  10165. 5 == 5
  10166. Misc.tests.cpp:<line number>: PASSED:
  10167. REQUIRE( v.capacity() >= 5 )
  10168. with expansion:
  10169. 5 >= 5
  10170. -------------------------------------------------------------------------------
  10171. TemplateTest: vectors can be sized and resized - int
  10172. reserving bigger changes capacity but not size
  10173. -------------------------------------------------------------------------------
  10174. Misc.tests.cpp:<line number>
  10175. ...............................................................................
  10176. Misc.tests.cpp:<line number>: PASSED:
  10177. REQUIRE( v.size() == 5 )
  10178. with expansion:
  10179. 5 == 5
  10180. Misc.tests.cpp:<line number>: PASSED:
  10181. REQUIRE( v.capacity() >= 10 )
  10182. with expansion:
  10183. 10 >= 10
  10184. -------------------------------------------------------------------------------
  10185. TemplateTest: vectors can be sized and resized - int
  10186. -------------------------------------------------------------------------------
  10187. Misc.tests.cpp:<line number>
  10188. ...............................................................................
  10189. Misc.tests.cpp:<line number>: PASSED:
  10190. REQUIRE( v.size() == 5 )
  10191. with expansion:
  10192. 5 == 5
  10193. Misc.tests.cpp:<line number>: PASSED:
  10194. REQUIRE( v.capacity() >= 5 )
  10195. with expansion:
  10196. 5 >= 5
  10197. -------------------------------------------------------------------------------
  10198. TemplateTest: vectors can be sized and resized - int
  10199. reserving smaller does not change size or capacity
  10200. -------------------------------------------------------------------------------
  10201. Misc.tests.cpp:<line number>
  10202. ...............................................................................
  10203. Misc.tests.cpp:<line number>: PASSED:
  10204. REQUIRE( v.size() == 5 )
  10205. with expansion:
  10206. 5 == 5
  10207. Misc.tests.cpp:<line number>: PASSED:
  10208. REQUIRE( v.capacity() >= 5 )
  10209. with expansion:
  10210. 5 >= 5
  10211. -------------------------------------------------------------------------------
  10212. TemplateTest: vectors can be sized and resized - std::string
  10213. -------------------------------------------------------------------------------
  10214. Misc.tests.cpp:<line number>
  10215. ...............................................................................
  10216. Misc.tests.cpp:<line number>: PASSED:
  10217. REQUIRE( v.size() == 5 )
  10218. with expansion:
  10219. 5 == 5
  10220. Misc.tests.cpp:<line number>: PASSED:
  10221. REQUIRE( v.capacity() >= 5 )
  10222. with expansion:
  10223. 5 >= 5
  10224. -------------------------------------------------------------------------------
  10225. TemplateTest: vectors can be sized and resized - std::string
  10226. resizing bigger changes size and capacity
  10227. -------------------------------------------------------------------------------
  10228. Misc.tests.cpp:<line number>
  10229. ...............................................................................
  10230. Misc.tests.cpp:<line number>: PASSED:
  10231. REQUIRE( v.size() == 10 )
  10232. with expansion:
  10233. 10 == 10
  10234. Misc.tests.cpp:<line number>: PASSED:
  10235. REQUIRE( v.capacity() >= 10 )
  10236. with expansion:
  10237. 10 >= 10
  10238. -------------------------------------------------------------------------------
  10239. TemplateTest: vectors can be sized and resized - std::string
  10240. -------------------------------------------------------------------------------
  10241. Misc.tests.cpp:<line number>
  10242. ...............................................................................
  10243. Misc.tests.cpp:<line number>: PASSED:
  10244. REQUIRE( v.size() == 5 )
  10245. with expansion:
  10246. 5 == 5
  10247. Misc.tests.cpp:<line number>: PASSED:
  10248. REQUIRE( v.capacity() >= 5 )
  10249. with expansion:
  10250. 5 >= 5
  10251. -------------------------------------------------------------------------------
  10252. TemplateTest: vectors can be sized and resized - std::string
  10253. resizing smaller changes size but not capacity
  10254. -------------------------------------------------------------------------------
  10255. Misc.tests.cpp:<line number>
  10256. ...............................................................................
  10257. Misc.tests.cpp:<line number>: PASSED:
  10258. REQUIRE( v.size() == 0 )
  10259. with expansion:
  10260. 0 == 0
  10261. Misc.tests.cpp:<line number>: PASSED:
  10262. REQUIRE( v.capacity() >= 5 )
  10263. with expansion:
  10264. 5 >= 5
  10265. -------------------------------------------------------------------------------
  10266. TemplateTest: vectors can be sized and resized - std::string
  10267. resizing smaller changes size but not capacity
  10268. We can use the 'swap trick' to reset the capacity
  10269. -------------------------------------------------------------------------------
  10270. Misc.tests.cpp:<line number>
  10271. ...............................................................................
  10272. Misc.tests.cpp:<line number>: PASSED:
  10273. REQUIRE( v.capacity() == 0 )
  10274. with expansion:
  10275. 0 == 0
  10276. -------------------------------------------------------------------------------
  10277. TemplateTest: vectors can be sized and resized - std::string
  10278. -------------------------------------------------------------------------------
  10279. Misc.tests.cpp:<line number>
  10280. ...............................................................................
  10281. Misc.tests.cpp:<line number>: PASSED:
  10282. REQUIRE( v.size() == 5 )
  10283. with expansion:
  10284. 5 == 5
  10285. Misc.tests.cpp:<line number>: PASSED:
  10286. REQUIRE( v.capacity() >= 5 )
  10287. with expansion:
  10288. 5 >= 5
  10289. -------------------------------------------------------------------------------
  10290. TemplateTest: vectors can be sized and resized - std::string
  10291. reserving bigger changes capacity but not size
  10292. -------------------------------------------------------------------------------
  10293. Misc.tests.cpp:<line number>
  10294. ...............................................................................
  10295. Misc.tests.cpp:<line number>: PASSED:
  10296. REQUIRE( v.size() == 5 )
  10297. with expansion:
  10298. 5 == 5
  10299. Misc.tests.cpp:<line number>: PASSED:
  10300. REQUIRE( v.capacity() >= 10 )
  10301. with expansion:
  10302. 10 >= 10
  10303. -------------------------------------------------------------------------------
  10304. TemplateTest: vectors can be sized and resized - std::string
  10305. -------------------------------------------------------------------------------
  10306. Misc.tests.cpp:<line number>
  10307. ...............................................................................
  10308. Misc.tests.cpp:<line number>: PASSED:
  10309. REQUIRE( v.size() == 5 )
  10310. with expansion:
  10311. 5 == 5
  10312. Misc.tests.cpp:<line number>: PASSED:
  10313. REQUIRE( v.capacity() >= 5 )
  10314. with expansion:
  10315. 5 >= 5
  10316. -------------------------------------------------------------------------------
  10317. TemplateTest: vectors can be sized and resized - std::string
  10318. reserving smaller does not change size or capacity
  10319. -------------------------------------------------------------------------------
  10320. Misc.tests.cpp:<line number>
  10321. ...............................................................................
  10322. Misc.tests.cpp:<line number>: PASSED:
  10323. REQUIRE( v.size() == 5 )
  10324. with expansion:
  10325. 5 == 5
  10326. Misc.tests.cpp:<line number>: PASSED:
  10327. REQUIRE( v.capacity() >= 5 )
  10328. with expansion:
  10329. 5 >= 5
  10330. -------------------------------------------------------------------------------
  10331. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  10332. -------------------------------------------------------------------------------
  10333. Misc.tests.cpp:<line number>
  10334. ...............................................................................
  10335. Misc.tests.cpp:<line number>: PASSED:
  10336. REQUIRE( v.size() == 5 )
  10337. with expansion:
  10338. 5 == 5
  10339. Misc.tests.cpp:<line number>: PASSED:
  10340. REQUIRE( v.capacity() >= 5 )
  10341. with expansion:
  10342. 5 >= 5
  10343. -------------------------------------------------------------------------------
  10344. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  10345. resizing bigger changes size and capacity
  10346. -------------------------------------------------------------------------------
  10347. Misc.tests.cpp:<line number>
  10348. ...............................................................................
  10349. Misc.tests.cpp:<line number>: PASSED:
  10350. REQUIRE( v.size() == 10 )
  10351. with expansion:
  10352. 10 == 10
  10353. Misc.tests.cpp:<line number>: PASSED:
  10354. REQUIRE( v.capacity() >= 10 )
  10355. with expansion:
  10356. 10 >= 10
  10357. -------------------------------------------------------------------------------
  10358. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  10359. -------------------------------------------------------------------------------
  10360. Misc.tests.cpp:<line number>
  10361. ...............................................................................
  10362. Misc.tests.cpp:<line number>: PASSED:
  10363. REQUIRE( v.size() == 5 )
  10364. with expansion:
  10365. 5 == 5
  10366. Misc.tests.cpp:<line number>: PASSED:
  10367. REQUIRE( v.capacity() >= 5 )
  10368. with expansion:
  10369. 5 >= 5
  10370. -------------------------------------------------------------------------------
  10371. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  10372. resizing smaller changes size but not capacity
  10373. -------------------------------------------------------------------------------
  10374. Misc.tests.cpp:<line number>
  10375. ...............................................................................
  10376. Misc.tests.cpp:<line number>: PASSED:
  10377. REQUIRE( v.size() == 0 )
  10378. with expansion:
  10379. 0 == 0
  10380. Misc.tests.cpp:<line number>: PASSED:
  10381. REQUIRE( v.capacity() >= 5 )
  10382. with expansion:
  10383. 5 >= 5
  10384. -------------------------------------------------------------------------------
  10385. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  10386. resizing smaller changes size but not capacity
  10387. We can use the 'swap trick' to reset the capacity
  10388. -------------------------------------------------------------------------------
  10389. Misc.tests.cpp:<line number>
  10390. ...............................................................................
  10391. Misc.tests.cpp:<line number>: PASSED:
  10392. REQUIRE( v.capacity() == 0 )
  10393. with expansion:
  10394. 0 == 0
  10395. -------------------------------------------------------------------------------
  10396. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  10397. -------------------------------------------------------------------------------
  10398. Misc.tests.cpp:<line number>
  10399. ...............................................................................
  10400. Misc.tests.cpp:<line number>: PASSED:
  10401. REQUIRE( v.size() == 5 )
  10402. with expansion:
  10403. 5 == 5
  10404. Misc.tests.cpp:<line number>: PASSED:
  10405. REQUIRE( v.capacity() >= 5 )
  10406. with expansion:
  10407. 5 >= 5
  10408. -------------------------------------------------------------------------------
  10409. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  10410. reserving bigger changes capacity but not size
  10411. -------------------------------------------------------------------------------
  10412. Misc.tests.cpp:<line number>
  10413. ...............................................................................
  10414. Misc.tests.cpp:<line number>: PASSED:
  10415. REQUIRE( v.size() == 5 )
  10416. with expansion:
  10417. 5 == 5
  10418. Misc.tests.cpp:<line number>: PASSED:
  10419. REQUIRE( v.capacity() >= 10 )
  10420. with expansion:
  10421. 10 >= 10
  10422. -------------------------------------------------------------------------------
  10423. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  10424. -------------------------------------------------------------------------------
  10425. Misc.tests.cpp:<line number>
  10426. ...............................................................................
  10427. Misc.tests.cpp:<line number>: PASSED:
  10428. REQUIRE( v.size() == 5 )
  10429. with expansion:
  10430. 5 == 5
  10431. Misc.tests.cpp:<line number>: PASSED:
  10432. REQUIRE( v.capacity() >= 5 )
  10433. with expansion:
  10434. 5 >= 5
  10435. -------------------------------------------------------------------------------
  10436. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  10437. reserving smaller does not change size or capacity
  10438. -------------------------------------------------------------------------------
  10439. Misc.tests.cpp:<line number>
  10440. ...............................................................................
  10441. Misc.tests.cpp:<line number>: PASSED:
  10442. REQUIRE( v.size() == 5 )
  10443. with expansion:
  10444. 5 == 5
  10445. Misc.tests.cpp:<line number>: PASSED:
  10446. REQUIRE( v.capacity() >= 5 )
  10447. with expansion:
  10448. 5 >= 5
  10449. -------------------------------------------------------------------------------
  10450. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  10451. -------------------------------------------------------------------------------
  10452. Misc.tests.cpp:<line number>
  10453. ...............................................................................
  10454. Misc.tests.cpp:<line number>: PASSED:
  10455. REQUIRE( v.size() == V )
  10456. with expansion:
  10457. 6 == 6
  10458. Misc.tests.cpp:<line number>: PASSED:
  10459. REQUIRE( v.capacity() >= V )
  10460. with expansion:
  10461. 6 >= 6
  10462. -------------------------------------------------------------------------------
  10463. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  10464. resizing bigger changes size and capacity
  10465. -------------------------------------------------------------------------------
  10466. Misc.tests.cpp:<line number>
  10467. ...............................................................................
  10468. Misc.tests.cpp:<line number>: PASSED:
  10469. REQUIRE( v.size() == 2 * V )
  10470. with expansion:
  10471. 12 == 12
  10472. Misc.tests.cpp:<line number>: PASSED:
  10473. REQUIRE( v.capacity() >= 2 * V )
  10474. with expansion:
  10475. 12 >= 12
  10476. -------------------------------------------------------------------------------
  10477. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  10478. -------------------------------------------------------------------------------
  10479. Misc.tests.cpp:<line number>
  10480. ...............................................................................
  10481. Misc.tests.cpp:<line number>: PASSED:
  10482. REQUIRE( v.size() == V )
  10483. with expansion:
  10484. 6 == 6
  10485. Misc.tests.cpp:<line number>: PASSED:
  10486. REQUIRE( v.capacity() >= V )
  10487. with expansion:
  10488. 6 >= 6
  10489. -------------------------------------------------------------------------------
  10490. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  10491. resizing smaller changes size but not capacity
  10492. -------------------------------------------------------------------------------
  10493. Misc.tests.cpp:<line number>
  10494. ...............................................................................
  10495. Misc.tests.cpp:<line number>: PASSED:
  10496. REQUIRE( v.size() == 0 )
  10497. with expansion:
  10498. 0 == 0
  10499. Misc.tests.cpp:<line number>: PASSED:
  10500. REQUIRE( v.capacity() >= V )
  10501. with expansion:
  10502. 6 >= 6
  10503. -------------------------------------------------------------------------------
  10504. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  10505. resizing smaller changes size but not capacity
  10506. We can use the 'swap trick' to reset the capacity
  10507. -------------------------------------------------------------------------------
  10508. Misc.tests.cpp:<line number>
  10509. ...............................................................................
  10510. Misc.tests.cpp:<line number>: PASSED:
  10511. REQUIRE( v.capacity() == 0 )
  10512. with expansion:
  10513. 0 == 0
  10514. -------------------------------------------------------------------------------
  10515. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  10516. -------------------------------------------------------------------------------
  10517. Misc.tests.cpp:<line number>
  10518. ...............................................................................
  10519. Misc.tests.cpp:<line number>: PASSED:
  10520. REQUIRE( v.size() == V )
  10521. with expansion:
  10522. 6 == 6
  10523. Misc.tests.cpp:<line number>: PASSED:
  10524. REQUIRE( v.capacity() >= V )
  10525. with expansion:
  10526. 6 >= 6
  10527. -------------------------------------------------------------------------------
  10528. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  10529. reserving bigger changes capacity but not size
  10530. -------------------------------------------------------------------------------
  10531. Misc.tests.cpp:<line number>
  10532. ...............................................................................
  10533. Misc.tests.cpp:<line number>: PASSED:
  10534. REQUIRE( v.size() == V )
  10535. with expansion:
  10536. 6 == 6
  10537. Misc.tests.cpp:<line number>: PASSED:
  10538. REQUIRE( v.capacity() >= 2 * V )
  10539. with expansion:
  10540. 12 >= 12
  10541. -------------------------------------------------------------------------------
  10542. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  10543. -------------------------------------------------------------------------------
  10544. Misc.tests.cpp:<line number>
  10545. ...............................................................................
  10546. Misc.tests.cpp:<line number>: PASSED:
  10547. REQUIRE( v.size() == V )
  10548. with expansion:
  10549. 6 == 6
  10550. Misc.tests.cpp:<line number>: PASSED:
  10551. REQUIRE( v.capacity() >= V )
  10552. with expansion:
  10553. 6 >= 6
  10554. -------------------------------------------------------------------------------
  10555. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  10556. reserving smaller does not change size or capacity
  10557. -------------------------------------------------------------------------------
  10558. Misc.tests.cpp:<line number>
  10559. ...............................................................................
  10560. Misc.tests.cpp:<line number>: PASSED:
  10561. REQUIRE( v.size() == V )
  10562. with expansion:
  10563. 6 == 6
  10564. Misc.tests.cpp:<line number>: PASSED:
  10565. REQUIRE( v.capacity() >= V )
  10566. with expansion:
  10567. 6 >= 6
  10568. -------------------------------------------------------------------------------
  10569. TemplateTestSig: vectors can be sized and resized - float,4
  10570. -------------------------------------------------------------------------------
  10571. Misc.tests.cpp:<line number>
  10572. ...............................................................................
  10573. Misc.tests.cpp:<line number>: PASSED:
  10574. REQUIRE( v.size() == V )
  10575. with expansion:
  10576. 4 == 4
  10577. Misc.tests.cpp:<line number>: PASSED:
  10578. REQUIRE( v.capacity() >= V )
  10579. with expansion:
  10580. 4 >= 4
  10581. -------------------------------------------------------------------------------
  10582. TemplateTestSig: vectors can be sized and resized - float,4
  10583. resizing bigger changes size and capacity
  10584. -------------------------------------------------------------------------------
  10585. Misc.tests.cpp:<line number>
  10586. ...............................................................................
  10587. Misc.tests.cpp:<line number>: PASSED:
  10588. REQUIRE( v.size() == 2 * V )
  10589. with expansion:
  10590. 8 == 8
  10591. Misc.tests.cpp:<line number>: PASSED:
  10592. REQUIRE( v.capacity() >= 2 * V )
  10593. with expansion:
  10594. 8 >= 8
  10595. -------------------------------------------------------------------------------
  10596. TemplateTestSig: vectors can be sized and resized - float,4
  10597. -------------------------------------------------------------------------------
  10598. Misc.tests.cpp:<line number>
  10599. ...............................................................................
  10600. Misc.tests.cpp:<line number>: PASSED:
  10601. REQUIRE( v.size() == V )
  10602. with expansion:
  10603. 4 == 4
  10604. Misc.tests.cpp:<line number>: PASSED:
  10605. REQUIRE( v.capacity() >= V )
  10606. with expansion:
  10607. 4 >= 4
  10608. -------------------------------------------------------------------------------
  10609. TemplateTestSig: vectors can be sized and resized - float,4
  10610. resizing smaller changes size but not capacity
  10611. -------------------------------------------------------------------------------
  10612. Misc.tests.cpp:<line number>
  10613. ...............................................................................
  10614. Misc.tests.cpp:<line number>: PASSED:
  10615. REQUIRE( v.size() == 0 )
  10616. with expansion:
  10617. 0 == 0
  10618. Misc.tests.cpp:<line number>: PASSED:
  10619. REQUIRE( v.capacity() >= V )
  10620. with expansion:
  10621. 4 >= 4
  10622. -------------------------------------------------------------------------------
  10623. TemplateTestSig: vectors can be sized and resized - float,4
  10624. resizing smaller changes size but not capacity
  10625. We can use the 'swap trick' to reset the capacity
  10626. -------------------------------------------------------------------------------
  10627. Misc.tests.cpp:<line number>
  10628. ...............................................................................
  10629. Misc.tests.cpp:<line number>: PASSED:
  10630. REQUIRE( v.capacity() == 0 )
  10631. with expansion:
  10632. 0 == 0
  10633. -------------------------------------------------------------------------------
  10634. TemplateTestSig: vectors can be sized and resized - float,4
  10635. -------------------------------------------------------------------------------
  10636. Misc.tests.cpp:<line number>
  10637. ...............................................................................
  10638. Misc.tests.cpp:<line number>: PASSED:
  10639. REQUIRE( v.size() == V )
  10640. with expansion:
  10641. 4 == 4
  10642. Misc.tests.cpp:<line number>: PASSED:
  10643. REQUIRE( v.capacity() >= V )
  10644. with expansion:
  10645. 4 >= 4
  10646. -------------------------------------------------------------------------------
  10647. TemplateTestSig: vectors can be sized and resized - float,4
  10648. reserving bigger changes capacity but not size
  10649. -------------------------------------------------------------------------------
  10650. Misc.tests.cpp:<line number>
  10651. ...............................................................................
  10652. Misc.tests.cpp:<line number>: PASSED:
  10653. REQUIRE( v.size() == V )
  10654. with expansion:
  10655. 4 == 4
  10656. Misc.tests.cpp:<line number>: PASSED:
  10657. REQUIRE( v.capacity() >= 2 * V )
  10658. with expansion:
  10659. 8 >= 8
  10660. -------------------------------------------------------------------------------
  10661. TemplateTestSig: vectors can be sized and resized - float,4
  10662. -------------------------------------------------------------------------------
  10663. Misc.tests.cpp:<line number>
  10664. ...............................................................................
  10665. Misc.tests.cpp:<line number>: PASSED:
  10666. REQUIRE( v.size() == V )
  10667. with expansion:
  10668. 4 == 4
  10669. Misc.tests.cpp:<line number>: PASSED:
  10670. REQUIRE( v.capacity() >= V )
  10671. with expansion:
  10672. 4 >= 4
  10673. -------------------------------------------------------------------------------
  10674. TemplateTestSig: vectors can be sized and resized - float,4
  10675. reserving smaller does not change size or capacity
  10676. -------------------------------------------------------------------------------
  10677. Misc.tests.cpp:<line number>
  10678. ...............................................................................
  10679. Misc.tests.cpp:<line number>: PASSED:
  10680. REQUIRE( v.size() == V )
  10681. with expansion:
  10682. 4 == 4
  10683. Misc.tests.cpp:<line number>: PASSED:
  10684. REQUIRE( v.capacity() >= V )
  10685. with expansion:
  10686. 4 >= 4
  10687. -------------------------------------------------------------------------------
  10688. TemplateTestSig: vectors can be sized and resized - int,5
  10689. -------------------------------------------------------------------------------
  10690. Misc.tests.cpp:<line number>
  10691. ...............................................................................
  10692. Misc.tests.cpp:<line number>: PASSED:
  10693. REQUIRE( v.size() == V )
  10694. with expansion:
  10695. 5 == 5
  10696. Misc.tests.cpp:<line number>: PASSED:
  10697. REQUIRE( v.capacity() >= V )
  10698. with expansion:
  10699. 5 >= 5
  10700. -------------------------------------------------------------------------------
  10701. TemplateTestSig: vectors can be sized and resized - int,5
  10702. resizing bigger changes size and capacity
  10703. -------------------------------------------------------------------------------
  10704. Misc.tests.cpp:<line number>
  10705. ...............................................................................
  10706. Misc.tests.cpp:<line number>: PASSED:
  10707. REQUIRE( v.size() == 2 * V )
  10708. with expansion:
  10709. 10 == 10
  10710. Misc.tests.cpp:<line number>: PASSED:
  10711. REQUIRE( v.capacity() >= 2 * V )
  10712. with expansion:
  10713. 10 >= 10
  10714. -------------------------------------------------------------------------------
  10715. TemplateTestSig: vectors can be sized and resized - int,5
  10716. -------------------------------------------------------------------------------
  10717. Misc.tests.cpp:<line number>
  10718. ...............................................................................
  10719. Misc.tests.cpp:<line number>: PASSED:
  10720. REQUIRE( v.size() == V )
  10721. with expansion:
  10722. 5 == 5
  10723. Misc.tests.cpp:<line number>: PASSED:
  10724. REQUIRE( v.capacity() >= V )
  10725. with expansion:
  10726. 5 >= 5
  10727. -------------------------------------------------------------------------------
  10728. TemplateTestSig: vectors can be sized and resized - int,5
  10729. resizing smaller changes size but not capacity
  10730. -------------------------------------------------------------------------------
  10731. Misc.tests.cpp:<line number>
  10732. ...............................................................................
  10733. Misc.tests.cpp:<line number>: PASSED:
  10734. REQUIRE( v.size() == 0 )
  10735. with expansion:
  10736. 0 == 0
  10737. Misc.tests.cpp:<line number>: PASSED:
  10738. REQUIRE( v.capacity() >= V )
  10739. with expansion:
  10740. 5 >= 5
  10741. -------------------------------------------------------------------------------
  10742. TemplateTestSig: vectors can be sized and resized - int,5
  10743. resizing smaller changes size but not capacity
  10744. We can use the 'swap trick' to reset the capacity
  10745. -------------------------------------------------------------------------------
  10746. Misc.tests.cpp:<line number>
  10747. ...............................................................................
  10748. Misc.tests.cpp:<line number>: PASSED:
  10749. REQUIRE( v.capacity() == 0 )
  10750. with expansion:
  10751. 0 == 0
  10752. -------------------------------------------------------------------------------
  10753. TemplateTestSig: vectors can be sized and resized - int,5
  10754. -------------------------------------------------------------------------------
  10755. Misc.tests.cpp:<line number>
  10756. ...............................................................................
  10757. Misc.tests.cpp:<line number>: PASSED:
  10758. REQUIRE( v.size() == V )
  10759. with expansion:
  10760. 5 == 5
  10761. Misc.tests.cpp:<line number>: PASSED:
  10762. REQUIRE( v.capacity() >= V )
  10763. with expansion:
  10764. 5 >= 5
  10765. -------------------------------------------------------------------------------
  10766. TemplateTestSig: vectors can be sized and resized - int,5
  10767. reserving bigger changes capacity but not size
  10768. -------------------------------------------------------------------------------
  10769. Misc.tests.cpp:<line number>
  10770. ...............................................................................
  10771. Misc.tests.cpp:<line number>: PASSED:
  10772. REQUIRE( v.size() == V )
  10773. with expansion:
  10774. 5 == 5
  10775. Misc.tests.cpp:<line number>: PASSED:
  10776. REQUIRE( v.capacity() >= 2 * V )
  10777. with expansion:
  10778. 10 >= 10
  10779. -------------------------------------------------------------------------------
  10780. TemplateTestSig: vectors can be sized and resized - int,5
  10781. -------------------------------------------------------------------------------
  10782. Misc.tests.cpp:<line number>
  10783. ...............................................................................
  10784. Misc.tests.cpp:<line number>: PASSED:
  10785. REQUIRE( v.size() == V )
  10786. with expansion:
  10787. 5 == 5
  10788. Misc.tests.cpp:<line number>: PASSED:
  10789. REQUIRE( v.capacity() >= V )
  10790. with expansion:
  10791. 5 >= 5
  10792. -------------------------------------------------------------------------------
  10793. TemplateTestSig: vectors can be sized and resized - int,5
  10794. reserving smaller does not change size or capacity
  10795. -------------------------------------------------------------------------------
  10796. Misc.tests.cpp:<line number>
  10797. ...............................................................................
  10798. Misc.tests.cpp:<line number>: PASSED:
  10799. REQUIRE( v.size() == V )
  10800. with expansion:
  10801. 5 == 5
  10802. Misc.tests.cpp:<line number>: PASSED:
  10803. REQUIRE( v.capacity() >= V )
  10804. with expansion:
  10805. 5 >= 5
  10806. -------------------------------------------------------------------------------
  10807. TemplateTestSig: vectors can be sized and resized - std::string,15
  10808. -------------------------------------------------------------------------------
  10809. Misc.tests.cpp:<line number>
  10810. ...............................................................................
  10811. Misc.tests.cpp:<line number>: PASSED:
  10812. REQUIRE( v.size() == V )
  10813. with expansion:
  10814. 15 == 15
  10815. Misc.tests.cpp:<line number>: PASSED:
  10816. REQUIRE( v.capacity() >= V )
  10817. with expansion:
  10818. 15 >= 15
  10819. -------------------------------------------------------------------------------
  10820. TemplateTestSig: vectors can be sized and resized - std::string,15
  10821. resizing bigger changes size and capacity
  10822. -------------------------------------------------------------------------------
  10823. Misc.tests.cpp:<line number>
  10824. ...............................................................................
  10825. Misc.tests.cpp:<line number>: PASSED:
  10826. REQUIRE( v.size() == 2 * V )
  10827. with expansion:
  10828. 30 == 30
  10829. Misc.tests.cpp:<line number>: PASSED:
  10830. REQUIRE( v.capacity() >= 2 * V )
  10831. with expansion:
  10832. 30 >= 30
  10833. -------------------------------------------------------------------------------
  10834. TemplateTestSig: vectors can be sized and resized - std::string,15
  10835. -------------------------------------------------------------------------------
  10836. Misc.tests.cpp:<line number>
  10837. ...............................................................................
  10838. Misc.tests.cpp:<line number>: PASSED:
  10839. REQUIRE( v.size() == V )
  10840. with expansion:
  10841. 15 == 15
  10842. Misc.tests.cpp:<line number>: PASSED:
  10843. REQUIRE( v.capacity() >= V )
  10844. with expansion:
  10845. 15 >= 15
  10846. -------------------------------------------------------------------------------
  10847. TemplateTestSig: vectors can be sized and resized - std::string,15
  10848. resizing smaller changes size but not capacity
  10849. -------------------------------------------------------------------------------
  10850. Misc.tests.cpp:<line number>
  10851. ...............................................................................
  10852. Misc.tests.cpp:<line number>: PASSED:
  10853. REQUIRE( v.size() == 0 )
  10854. with expansion:
  10855. 0 == 0
  10856. Misc.tests.cpp:<line number>: PASSED:
  10857. REQUIRE( v.capacity() >= V )
  10858. with expansion:
  10859. 15 >= 15
  10860. -------------------------------------------------------------------------------
  10861. TemplateTestSig: vectors can be sized and resized - std::string,15
  10862. resizing smaller changes size but not capacity
  10863. We can use the 'swap trick' to reset the capacity
  10864. -------------------------------------------------------------------------------
  10865. Misc.tests.cpp:<line number>
  10866. ...............................................................................
  10867. Misc.tests.cpp:<line number>: PASSED:
  10868. REQUIRE( v.capacity() == 0 )
  10869. with expansion:
  10870. 0 == 0
  10871. -------------------------------------------------------------------------------
  10872. TemplateTestSig: vectors can be sized and resized - std::string,15
  10873. -------------------------------------------------------------------------------
  10874. Misc.tests.cpp:<line number>
  10875. ...............................................................................
  10876. Misc.tests.cpp:<line number>: PASSED:
  10877. REQUIRE( v.size() == V )
  10878. with expansion:
  10879. 15 == 15
  10880. Misc.tests.cpp:<line number>: PASSED:
  10881. REQUIRE( v.capacity() >= V )
  10882. with expansion:
  10883. 15 >= 15
  10884. -------------------------------------------------------------------------------
  10885. TemplateTestSig: vectors can be sized and resized - std::string,15
  10886. reserving bigger changes capacity but not size
  10887. -------------------------------------------------------------------------------
  10888. Misc.tests.cpp:<line number>
  10889. ...............................................................................
  10890. Misc.tests.cpp:<line number>: PASSED:
  10891. REQUIRE( v.size() == V )
  10892. with expansion:
  10893. 15 == 15
  10894. Misc.tests.cpp:<line number>: PASSED:
  10895. REQUIRE( v.capacity() >= 2 * V )
  10896. with expansion:
  10897. 30 >= 30
  10898. -------------------------------------------------------------------------------
  10899. TemplateTestSig: vectors can be sized and resized - std::string,15
  10900. -------------------------------------------------------------------------------
  10901. Misc.tests.cpp:<line number>
  10902. ...............................................................................
  10903. Misc.tests.cpp:<line number>: PASSED:
  10904. REQUIRE( v.size() == V )
  10905. with expansion:
  10906. 15 == 15
  10907. Misc.tests.cpp:<line number>: PASSED:
  10908. REQUIRE( v.capacity() >= V )
  10909. with expansion:
  10910. 15 >= 15
  10911. -------------------------------------------------------------------------------
  10912. TemplateTestSig: vectors can be sized and resized - std::string,15
  10913. reserving smaller does not change size or capacity
  10914. -------------------------------------------------------------------------------
  10915. Misc.tests.cpp:<line number>
  10916. ...............................................................................
  10917. Misc.tests.cpp:<line number>: PASSED:
  10918. REQUIRE( v.size() == V )
  10919. with expansion:
  10920. 15 == 15
  10921. Misc.tests.cpp:<line number>: PASSED:
  10922. REQUIRE( v.capacity() >= V )
  10923. with expansion:
  10924. 15 >= 15
  10925. -------------------------------------------------------------------------------
  10926. Test case with identical tags keeps just one
  10927. -------------------------------------------------------------------------------
  10928. Tag.tests.cpp:<line number>
  10929. ...............................................................................
  10930. Tag.tests.cpp:<line number>: PASSED:
  10931. REQUIRE( testCase.tags.size() == 1 )
  10932. with expansion:
  10933. 1 == 1
  10934. Tag.tests.cpp:<line number>: PASSED:
  10935. REQUIRE( testCase.tags[0] == Tag( "tag1" ) )
  10936. with expansion:
  10937. {?} == {?}
  10938. -------------------------------------------------------------------------------
  10939. Test case with one argument
  10940. -------------------------------------------------------------------------------
  10941. VariadicMacros.tests.cpp:<line number>
  10942. ...............................................................................
  10943. VariadicMacros.tests.cpp:<line number>: PASSED:
  10944. with message:
  10945. no assertions
  10946. -------------------------------------------------------------------------------
  10947. Test enum bit values
  10948. -------------------------------------------------------------------------------
  10949. Tricky.tests.cpp:<line number>
  10950. ...............................................................................
  10951. Tricky.tests.cpp:<line number>: PASSED:
  10952. REQUIRE( 0x<hex digits> == bit30and31 )
  10953. with expansion:
  10954. 3221225472 (0x<hex digits>) == 3221225472
  10955. -------------------------------------------------------------------------------
  10956. Test with special, characters "in name
  10957. -------------------------------------------------------------------------------
  10958. CmdLine.tests.cpp:<line number>
  10959. ...............................................................................
  10960. CmdLine.tests.cpp:<line number>: PASSED:
  10961. -------------------------------------------------------------------------------
  10962. Testing checked-if
  10963. -------------------------------------------------------------------------------
  10964. Misc.tests.cpp:<line number>
  10965. ...............................................................................
  10966. Misc.tests.cpp:<line number>: PASSED:
  10967. CHECKED_IF( true )
  10968. Misc.tests.cpp:<line number>: PASSED:
  10969. Misc.tests.cpp:<line number>: FAILED - but was ok:
  10970. CHECKED_IF( false )
  10971. Misc.tests.cpp:<line number>: PASSED:
  10972. CHECKED_ELSE( true )
  10973. Misc.tests.cpp:<line number>: FAILED - but was ok:
  10974. CHECKED_ELSE( false )
  10975. Misc.tests.cpp:<line number>: PASSED:
  10976. -------------------------------------------------------------------------------
  10977. Testing checked-if 2
  10978. -------------------------------------------------------------------------------
  10979. Misc.tests.cpp:<line number>
  10980. ...............................................................................
  10981. Misc.tests.cpp:<line number>: PASSED:
  10982. CHECKED_IF( true )
  10983. Misc.tests.cpp:<line number>: FAILED:
  10984. -------------------------------------------------------------------------------
  10985. Testing checked-if 3
  10986. -------------------------------------------------------------------------------
  10987. Misc.tests.cpp:<line number>
  10988. ...............................................................................
  10989. Misc.tests.cpp:<line number>: FAILED - but was ok:
  10990. CHECKED_ELSE( false )
  10991. Misc.tests.cpp:<line number>: FAILED:
  10992. -------------------------------------------------------------------------------
  10993. The NO_FAIL macro reports a failure but does not fail the test
  10994. -------------------------------------------------------------------------------
  10995. Message.tests.cpp:<line number>
  10996. ...............................................................................
  10997. Message.tests.cpp:<line number>: FAILED - but was ok:
  10998. CHECK_NOFAIL( 1 == 2 )
  10999. No assertions in test case 'The NO_FAIL macro reports a failure but does not fail the test'
  11000. -------------------------------------------------------------------------------
  11001. The default listing implementation write to provided stream
  11002. Listing tags
  11003. -------------------------------------------------------------------------------
  11004. Reporters.tests.cpp:<line number>
  11005. ...............................................................................
  11006. Reporters.tests.cpp:<line number>: PASSED:
  11007. REQUIRE_THAT( listingString, ContainsSubstring("[fakeTag]"s) )
  11008. with expansion:
  11009. "All available tags:
  11010. 1 [fakeTag]
  11011. 1 tag
  11012. " contains: "[fakeTag]"
  11013. -------------------------------------------------------------------------------
  11014. The default listing implementation write to provided stream
  11015. Listing reporters
  11016. -------------------------------------------------------------------------------
  11017. Reporters.tests.cpp:<line number>
  11018. ...............................................................................
  11019. Reporters.tests.cpp:<line number>: PASSED:
  11020. REQUIRE_THAT( listingString, ContainsSubstring( "fake reporter"s ) && ContainsSubstring( "fake description"s ) )
  11021. with expansion:
  11022. "Available reporters:
  11023. fake reporter: fake description
  11024. " ( contains: "fake reporter" and contains: "fake description" )
  11025. -------------------------------------------------------------------------------
  11026. The default listing implementation write to provided stream
  11027. Listing tests
  11028. -------------------------------------------------------------------------------
  11029. Reporters.tests.cpp:<line number>
  11030. ...............................................................................
  11031. Reporters.tests.cpp:<line number>: PASSED:
  11032. REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
  11033. with expansion:
  11034. "All available test cases:
  11035. fake test name
  11036. [fakeTestTag]
  11037. 1 test case
  11038. " ( contains: "fake test name" and contains: "fakeTestTag" )
  11039. -------------------------------------------------------------------------------
  11040. The default listing implementation write to provided stream
  11041. Listing listeners
  11042. -------------------------------------------------------------------------------
  11043. Reporters.tests.cpp:<line number>
  11044. ...............................................................................
  11045. Reporters.tests.cpp:<line number>: PASSED:
  11046. REQUIRE_THAT( listingString, ContainsSubstring( "fakeListener"s ) && ContainsSubstring( "fake description"s ) )
  11047. with expansion:
  11048. "Registered listeners:
  11049. fakeListener: fake description
  11050. " ( contains: "fakeListener" and contains: "fake description" )
  11051. -------------------------------------------------------------------------------
  11052. This test 'should' fail but doesn't
  11053. -------------------------------------------------------------------------------
  11054. Misc.tests.cpp:<line number>
  11055. ...............................................................................
  11056. Misc.tests.cpp:<line number>: PASSED:
  11057. with message:
  11058. oops!
  11059. -------------------------------------------------------------------------------
  11060. Thrown string literals are translated
  11061. -------------------------------------------------------------------------------
  11062. Exception.tests.cpp:<line number>
  11063. ...............................................................................
  11064. Exception.tests.cpp:<line number>: FAILED:
  11065. due to unexpected exception with message:
  11066. For some reason someone is throwing a string literal!
  11067. -------------------------------------------------------------------------------
  11068. Tracker
  11069. -------------------------------------------------------------------------------
  11070. PartTracker.tests.cpp:<line number>
  11071. ...............................................................................
  11072. PartTracker.tests.cpp:<line number>: PASSED:
  11073. REQUIRE( testCase.isOpen() )
  11074. with expansion:
  11075. true
  11076. PartTracker.tests.cpp:<line number>: PASSED:
  11077. REQUIRE( s1.isOpen() )
  11078. with expansion:
  11079. true
  11080. -------------------------------------------------------------------------------
  11081. Tracker
  11082. successfully close one section
  11083. -------------------------------------------------------------------------------
  11084. PartTracker.tests.cpp:<line number>
  11085. ...............................................................................
  11086. PartTracker.tests.cpp:<line number>: PASSED:
  11087. REQUIRE( s1.isSuccessfullyCompleted() )
  11088. with expansion:
  11089. true
  11090. PartTracker.tests.cpp:<line number>: PASSED:
  11091. REQUIRE( testCase.isComplete() == false )
  11092. with expansion:
  11093. false == false
  11094. PartTracker.tests.cpp:<line number>: PASSED:
  11095. REQUIRE( ctx.completedCycle() )
  11096. with expansion:
  11097. true
  11098. PartTracker.tests.cpp:<line number>: PASSED:
  11099. REQUIRE( testCase.isSuccessfullyCompleted() )
  11100. with expansion:
  11101. true
  11102. -------------------------------------------------------------------------------
  11103. Tracker
  11104. -------------------------------------------------------------------------------
  11105. PartTracker.tests.cpp:<line number>
  11106. ...............................................................................
  11107. PartTracker.tests.cpp:<line number>: PASSED:
  11108. REQUIRE( testCase.isOpen() )
  11109. with expansion:
  11110. true
  11111. PartTracker.tests.cpp:<line number>: PASSED:
  11112. REQUIRE( s1.isOpen() )
  11113. with expansion:
  11114. true
  11115. -------------------------------------------------------------------------------
  11116. Tracker
  11117. fail one section
  11118. -------------------------------------------------------------------------------
  11119. PartTracker.tests.cpp:<line number>
  11120. ...............................................................................
  11121. PartTracker.tests.cpp:<line number>: PASSED:
  11122. REQUIRE( s1.isComplete() )
  11123. with expansion:
  11124. true
  11125. PartTracker.tests.cpp:<line number>: PASSED:
  11126. REQUIRE( s1.isSuccessfullyCompleted() == false )
  11127. with expansion:
  11128. false == false
  11129. PartTracker.tests.cpp:<line number>: PASSED:
  11130. REQUIRE( testCase.isComplete() == false )
  11131. with expansion:
  11132. false == false
  11133. PartTracker.tests.cpp:<line number>: PASSED:
  11134. REQUIRE( ctx.completedCycle() )
  11135. with expansion:
  11136. true
  11137. PartTracker.tests.cpp:<line number>: PASSED:
  11138. REQUIRE( testCase.isSuccessfullyCompleted() == false )
  11139. with expansion:
  11140. false == false
  11141. -------------------------------------------------------------------------------
  11142. Tracker
  11143. fail one section
  11144. re-enter after failed section
  11145. -------------------------------------------------------------------------------
  11146. PartTracker.tests.cpp:<line number>
  11147. ...............................................................................
  11148. PartTracker.tests.cpp:<line number>: PASSED:
  11149. REQUIRE( testCase2.isOpen() )
  11150. with expansion:
  11151. true
  11152. PartTracker.tests.cpp:<line number>: PASSED:
  11153. REQUIRE( s1b.isOpen() == false )
  11154. with expansion:
  11155. false == false
  11156. PartTracker.tests.cpp:<line number>: PASSED:
  11157. REQUIRE( ctx.completedCycle() )
  11158. with expansion:
  11159. true
  11160. PartTracker.tests.cpp:<line number>: PASSED:
  11161. REQUIRE( testCase.isComplete() )
  11162. with expansion:
  11163. true
  11164. PartTracker.tests.cpp:<line number>: PASSED:
  11165. REQUIRE( testCase.isSuccessfullyCompleted() )
  11166. with expansion:
  11167. true
  11168. -------------------------------------------------------------------------------
  11169. Tracker
  11170. -------------------------------------------------------------------------------
  11171. PartTracker.tests.cpp:<line number>
  11172. ...............................................................................
  11173. PartTracker.tests.cpp:<line number>: PASSED:
  11174. REQUIRE( testCase.isOpen() )
  11175. with expansion:
  11176. true
  11177. PartTracker.tests.cpp:<line number>: PASSED:
  11178. REQUIRE( s1.isOpen() )
  11179. with expansion:
  11180. true
  11181. -------------------------------------------------------------------------------
  11182. Tracker
  11183. fail one section
  11184. -------------------------------------------------------------------------------
  11185. PartTracker.tests.cpp:<line number>
  11186. ...............................................................................
  11187. PartTracker.tests.cpp:<line number>: PASSED:
  11188. REQUIRE( s1.isComplete() )
  11189. with expansion:
  11190. true
  11191. PartTracker.tests.cpp:<line number>: PASSED:
  11192. REQUIRE( s1.isSuccessfullyCompleted() == false )
  11193. with expansion:
  11194. false == false
  11195. PartTracker.tests.cpp:<line number>: PASSED:
  11196. REQUIRE( testCase.isComplete() == false )
  11197. with expansion:
  11198. false == false
  11199. PartTracker.tests.cpp:<line number>: PASSED:
  11200. REQUIRE( ctx.completedCycle() )
  11201. with expansion:
  11202. true
  11203. PartTracker.tests.cpp:<line number>: PASSED:
  11204. REQUIRE( testCase.isSuccessfullyCompleted() == false )
  11205. with expansion:
  11206. false == false
  11207. -------------------------------------------------------------------------------
  11208. Tracker
  11209. fail one section
  11210. re-enter after failed section and find next section
  11211. -------------------------------------------------------------------------------
  11212. PartTracker.tests.cpp:<line number>
  11213. ...............................................................................
  11214. PartTracker.tests.cpp:<line number>: PASSED:
  11215. REQUIRE( testCase2.isOpen() )
  11216. with expansion:
  11217. true
  11218. PartTracker.tests.cpp:<line number>: PASSED:
  11219. REQUIRE( s1b.isOpen() == false )
  11220. with expansion:
  11221. false == false
  11222. PartTracker.tests.cpp:<line number>: PASSED:
  11223. REQUIRE( s2.isOpen() )
  11224. with expansion:
  11225. true
  11226. PartTracker.tests.cpp:<line number>: PASSED:
  11227. REQUIRE( ctx.completedCycle() )
  11228. with expansion:
  11229. true
  11230. PartTracker.tests.cpp:<line number>: PASSED:
  11231. REQUIRE( testCase.isComplete() )
  11232. with expansion:
  11233. true
  11234. PartTracker.tests.cpp:<line number>: PASSED:
  11235. REQUIRE( testCase.isSuccessfullyCompleted() )
  11236. with expansion:
  11237. true
  11238. -------------------------------------------------------------------------------
  11239. Tracker
  11240. -------------------------------------------------------------------------------
  11241. PartTracker.tests.cpp:<line number>
  11242. ...............................................................................
  11243. PartTracker.tests.cpp:<line number>: PASSED:
  11244. REQUIRE( testCase.isOpen() )
  11245. with expansion:
  11246. true
  11247. PartTracker.tests.cpp:<line number>: PASSED:
  11248. REQUIRE( s1.isOpen() )
  11249. with expansion:
  11250. true
  11251. -------------------------------------------------------------------------------
  11252. Tracker
  11253. successfully close one section, then find another
  11254. -------------------------------------------------------------------------------
  11255. PartTracker.tests.cpp:<line number>
  11256. ...............................................................................
  11257. PartTracker.tests.cpp:<line number>: PASSED:
  11258. REQUIRE( s2.isOpen() == false )
  11259. with expansion:
  11260. false == false
  11261. PartTracker.tests.cpp:<line number>: PASSED:
  11262. REQUIRE( testCase.isComplete() == false )
  11263. with expansion:
  11264. false == false
  11265. -------------------------------------------------------------------------------
  11266. Tracker
  11267. successfully close one section, then find another
  11268. Re-enter - skips S1 and enters S2
  11269. -------------------------------------------------------------------------------
  11270. PartTracker.tests.cpp:<line number>
  11271. ...............................................................................
  11272. PartTracker.tests.cpp:<line number>: PASSED:
  11273. REQUIRE( testCase2.isOpen() )
  11274. with expansion:
  11275. true
  11276. PartTracker.tests.cpp:<line number>: PASSED:
  11277. REQUIRE( s1b.isOpen() == false )
  11278. with expansion:
  11279. false == false
  11280. PartTracker.tests.cpp:<line number>: PASSED:
  11281. REQUIRE( s2b.isOpen() )
  11282. with expansion:
  11283. true
  11284. PartTracker.tests.cpp:<line number>: PASSED:
  11285. REQUIRE( ctx.completedCycle() == false )
  11286. with expansion:
  11287. false == false
  11288. -------------------------------------------------------------------------------
  11289. Tracker
  11290. successfully close one section, then find another
  11291. Re-enter - skips S1 and enters S2
  11292. Successfully close S2
  11293. -------------------------------------------------------------------------------
  11294. PartTracker.tests.cpp:<line number>
  11295. ...............................................................................
  11296. PartTracker.tests.cpp:<line number>: PASSED:
  11297. REQUIRE( ctx.completedCycle() )
  11298. with expansion:
  11299. true
  11300. PartTracker.tests.cpp:<line number>: PASSED:
  11301. REQUIRE( s2b.isSuccessfullyCompleted() )
  11302. with expansion:
  11303. true
  11304. PartTracker.tests.cpp:<line number>: PASSED:
  11305. REQUIRE( testCase2.isComplete() == false )
  11306. with expansion:
  11307. false == false
  11308. PartTracker.tests.cpp:<line number>: PASSED:
  11309. REQUIRE( testCase2.isSuccessfullyCompleted() )
  11310. with expansion:
  11311. true
  11312. -------------------------------------------------------------------------------
  11313. Tracker
  11314. -------------------------------------------------------------------------------
  11315. PartTracker.tests.cpp:<line number>
  11316. ...............................................................................
  11317. PartTracker.tests.cpp:<line number>: PASSED:
  11318. REQUIRE( testCase.isOpen() )
  11319. with expansion:
  11320. true
  11321. PartTracker.tests.cpp:<line number>: PASSED:
  11322. REQUIRE( s1.isOpen() )
  11323. with expansion:
  11324. true
  11325. -------------------------------------------------------------------------------
  11326. Tracker
  11327. successfully close one section, then find another
  11328. -------------------------------------------------------------------------------
  11329. PartTracker.tests.cpp:<line number>
  11330. ...............................................................................
  11331. PartTracker.tests.cpp:<line number>: PASSED:
  11332. REQUIRE( s2.isOpen() == false )
  11333. with expansion:
  11334. false == false
  11335. PartTracker.tests.cpp:<line number>: PASSED:
  11336. REQUIRE( testCase.isComplete() == false )
  11337. with expansion:
  11338. false == false
  11339. -------------------------------------------------------------------------------
  11340. Tracker
  11341. successfully close one section, then find another
  11342. Re-enter - skips S1 and enters S2
  11343. -------------------------------------------------------------------------------
  11344. PartTracker.tests.cpp:<line number>
  11345. ...............................................................................
  11346. PartTracker.tests.cpp:<line number>: PASSED:
  11347. REQUIRE( testCase2.isOpen() )
  11348. with expansion:
  11349. true
  11350. PartTracker.tests.cpp:<line number>: PASSED:
  11351. REQUIRE( s1b.isOpen() == false )
  11352. with expansion:
  11353. false == false
  11354. PartTracker.tests.cpp:<line number>: PASSED:
  11355. REQUIRE( s2b.isOpen() )
  11356. with expansion:
  11357. true
  11358. PartTracker.tests.cpp:<line number>: PASSED:
  11359. REQUIRE( ctx.completedCycle() == false )
  11360. with expansion:
  11361. false == false
  11362. -------------------------------------------------------------------------------
  11363. Tracker
  11364. successfully close one section, then find another
  11365. Re-enter - skips S1 and enters S2
  11366. fail S2
  11367. -------------------------------------------------------------------------------
  11368. PartTracker.tests.cpp:<line number>
  11369. ...............................................................................
  11370. PartTracker.tests.cpp:<line number>: PASSED:
  11371. REQUIRE( ctx.completedCycle() )
  11372. with expansion:
  11373. true
  11374. PartTracker.tests.cpp:<line number>: PASSED:
  11375. REQUIRE( s2b.isComplete() )
  11376. with expansion:
  11377. true
  11378. PartTracker.tests.cpp:<line number>: PASSED:
  11379. REQUIRE( s2b.isSuccessfullyCompleted() == false )
  11380. with expansion:
  11381. false == false
  11382. PartTracker.tests.cpp:<line number>: PASSED:
  11383. REQUIRE( testCase2.isSuccessfullyCompleted() == false )
  11384. with expansion:
  11385. false == false
  11386. PartTracker.tests.cpp:<line number>: PASSED:
  11387. REQUIRE( testCase3.isOpen() )
  11388. with expansion:
  11389. true
  11390. PartTracker.tests.cpp:<line number>: PASSED:
  11391. REQUIRE( s1c.isOpen() == false )
  11392. with expansion:
  11393. false == false
  11394. PartTracker.tests.cpp:<line number>: PASSED:
  11395. REQUIRE( s2c.isOpen() == false )
  11396. with expansion:
  11397. false == false
  11398. PartTracker.tests.cpp:<line number>: PASSED:
  11399. REQUIRE( testCase3.isSuccessfullyCompleted() )
  11400. with expansion:
  11401. true
  11402. -------------------------------------------------------------------------------
  11403. Tracker
  11404. -------------------------------------------------------------------------------
  11405. PartTracker.tests.cpp:<line number>
  11406. ...............................................................................
  11407. PartTracker.tests.cpp:<line number>: PASSED:
  11408. REQUIRE( testCase.isOpen() )
  11409. with expansion:
  11410. true
  11411. PartTracker.tests.cpp:<line number>: PASSED:
  11412. REQUIRE( s1.isOpen() )
  11413. with expansion:
  11414. true
  11415. -------------------------------------------------------------------------------
  11416. Tracker
  11417. open a nested section
  11418. -------------------------------------------------------------------------------
  11419. PartTracker.tests.cpp:<line number>
  11420. ...............................................................................
  11421. PartTracker.tests.cpp:<line number>: PASSED:
  11422. REQUIRE( s2.isOpen() )
  11423. with expansion:
  11424. true
  11425. PartTracker.tests.cpp:<line number>: PASSED:
  11426. REQUIRE( s2.isComplete() )
  11427. with expansion:
  11428. true
  11429. PartTracker.tests.cpp:<line number>: PASSED:
  11430. REQUIRE( s1.isComplete() == false )
  11431. with expansion:
  11432. false == false
  11433. PartTracker.tests.cpp:<line number>: PASSED:
  11434. REQUIRE( s1.isComplete() )
  11435. with expansion:
  11436. true
  11437. PartTracker.tests.cpp:<line number>: PASSED:
  11438. REQUIRE( testCase.isComplete() == false )
  11439. with expansion:
  11440. false == false
  11441. PartTracker.tests.cpp:<line number>: PASSED:
  11442. REQUIRE( testCase.isComplete() )
  11443. with expansion:
  11444. true
  11445. -------------------------------------------------------------------------------
  11446. Trim strings
  11447. -------------------------------------------------------------------------------
  11448. StringManip.tests.cpp:<line number>
  11449. ...............................................................................
  11450. StringManip.tests.cpp:<line number>: PASSED:
  11451. REQUIRE( trim(std::string(no_whitespace)) == no_whitespace )
  11452. with expansion:
  11453. "There is no extra whitespace here"
  11454. ==
  11455. "There is no extra whitespace here"
  11456. StringManip.tests.cpp:<line number>: PASSED:
  11457. REQUIRE( trim(std::string(leading_whitespace)) == no_whitespace )
  11458. with expansion:
  11459. "There is no extra whitespace here"
  11460. ==
  11461. "There is no extra whitespace here"
  11462. StringManip.tests.cpp:<line number>: PASSED:
  11463. REQUIRE( trim(std::string(trailing_whitespace)) == no_whitespace )
  11464. with expansion:
  11465. "There is no extra whitespace here"
  11466. ==
  11467. "There is no extra whitespace here"
  11468. StringManip.tests.cpp:<line number>: PASSED:
  11469. REQUIRE( trim(std::string(whitespace_at_both_ends)) == no_whitespace )
  11470. with expansion:
  11471. "There is no extra whitespace here"
  11472. ==
  11473. "There is no extra whitespace here"
  11474. StringManip.tests.cpp:<line number>: PASSED:
  11475. REQUIRE( trim(StringRef(no_whitespace)) == StringRef(no_whitespace) )
  11476. with expansion:
  11477. There is no extra whitespace here
  11478. ==
  11479. There is no extra whitespace here
  11480. StringManip.tests.cpp:<line number>: PASSED:
  11481. REQUIRE( trim(StringRef(leading_whitespace)) == StringRef(no_whitespace) )
  11482. with expansion:
  11483. There is no extra whitespace here
  11484. ==
  11485. There is no extra whitespace here
  11486. StringManip.tests.cpp:<line number>: PASSED:
  11487. REQUIRE( trim(StringRef(trailing_whitespace)) == StringRef(no_whitespace) )
  11488. with expansion:
  11489. There is no extra whitespace here
  11490. ==
  11491. There is no extra whitespace here
  11492. StringManip.tests.cpp:<line number>: PASSED:
  11493. REQUIRE( trim(StringRef(whitespace_at_both_ends)) == StringRef(no_whitespace) )
  11494. with expansion:
  11495. There is no extra whitespace here
  11496. ==
  11497. There is no extra whitespace here
  11498. -------------------------------------------------------------------------------
  11499. Unexpected exceptions can be translated
  11500. -------------------------------------------------------------------------------
  11501. Exception.tests.cpp:<line number>
  11502. ...............................................................................
  11503. Exception.tests.cpp:<line number>: FAILED:
  11504. due to unexpected exception with message:
  11505. 3.14
  11506. -------------------------------------------------------------------------------
  11507. Upcasting special member functions
  11508. Move constructor
  11509. -------------------------------------------------------------------------------
  11510. UniquePtr.tests.cpp:<line number>
  11511. ...............................................................................
  11512. UniquePtr.tests.cpp:<line number>: PASSED:
  11513. REQUIRE( bptr->i == 3 )
  11514. with expansion:
  11515. 3 == 3
  11516. -------------------------------------------------------------------------------
  11517. Upcasting special member functions
  11518. move assignment
  11519. -------------------------------------------------------------------------------
  11520. UniquePtr.tests.cpp:<line number>
  11521. ...............................................................................
  11522. UniquePtr.tests.cpp:<line number>: PASSED:
  11523. REQUIRE( bptr->i == 3 )
  11524. with expansion:
  11525. 3 == 3
  11526. -------------------------------------------------------------------------------
  11527. Usage of AllMatch range matcher
  11528. Basic usage
  11529. -------------------------------------------------------------------------------
  11530. MatchersRanges.tests.cpp:<line number>
  11531. ...............................................................................
  11532. MatchersRanges.tests.cpp:<line number>: PASSED:
  11533. REQUIRE_THAT( data, AllMatch(SizeIs(5)) )
  11534. with expansion:
  11535. { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
  11536. }, { 1, 0, 0, -1, 5 } } all match has size == 5
  11537. MatchersRanges.tests.cpp:<line number>: PASSED:
  11538. REQUIRE_THAT( data, !AllMatch(Contains(0) && Contains(1)) )
  11539. with expansion:
  11540. { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
  11541. }, { 1, 0, 0, -1, 5 } } not all match ( contains element 0 and contains
  11542. element 1 )
  11543. -------------------------------------------------------------------------------
  11544. Usage of AllMatch range matcher
  11545. Type requires ADL found begin and end
  11546. -------------------------------------------------------------------------------
  11547. MatchersRanges.tests.cpp:<line number>
  11548. ...............................................................................
  11549. MatchersRanges.tests.cpp:<line number>: PASSED:
  11550. REQUIRE_THAT( needs_adl, AllMatch( Predicate<int>( []( int elem ) { return elem < 6; } ) ) )
  11551. with expansion:
  11552. { 1, 2, 3, 4, 5 } all match matches undescribed predicate
  11553. -------------------------------------------------------------------------------
  11554. Usage of AllMatch range matcher
  11555. Shortcircuiting
  11556. All are read
  11557. -------------------------------------------------------------------------------
  11558. MatchersRanges.tests.cpp:<line number>
  11559. ...............................................................................
  11560. MatchersRanges.tests.cpp:<line number>: PASSED:
  11561. REQUIRE_THAT( mocked, allMatch )
  11562. with expansion:
  11563. { 1, 2, 3, 4, 5 } all match matches undescribed predicate
  11564. MatchersRanges.tests.cpp:<line number>: PASSED:
  11565. REQUIRE( mocked.m_derefed[0] )
  11566. with expansion:
  11567. true
  11568. MatchersRanges.tests.cpp:<line number>: PASSED:
  11569. REQUIRE( mocked.m_derefed[1] )
  11570. with expansion:
  11571. true
  11572. MatchersRanges.tests.cpp:<line number>: PASSED:
  11573. REQUIRE( mocked.m_derefed[2] )
  11574. with expansion:
  11575. true
  11576. MatchersRanges.tests.cpp:<line number>: PASSED:
  11577. REQUIRE( mocked.m_derefed[3] )
  11578. with expansion:
  11579. true
  11580. MatchersRanges.tests.cpp:<line number>: PASSED:
  11581. REQUIRE( mocked.m_derefed[4] )
  11582. with expansion:
  11583. true
  11584. -------------------------------------------------------------------------------
  11585. Usage of AllMatch range matcher
  11586. Shortcircuiting
  11587. Short-circuited
  11588. -------------------------------------------------------------------------------
  11589. MatchersRanges.tests.cpp:<line number>
  11590. ...............................................................................
  11591. MatchersRanges.tests.cpp:<line number>: PASSED:
  11592. REQUIRE_THAT( mocked, !allMatch )
  11593. with expansion:
  11594. { 1, 2, 3, 4, 5 } not all match matches undescribed predicate
  11595. MatchersRanges.tests.cpp:<line number>: PASSED:
  11596. REQUIRE( mocked.m_derefed[0] )
  11597. with expansion:
  11598. true
  11599. MatchersRanges.tests.cpp:<line number>: PASSED:
  11600. REQUIRE( mocked.m_derefed[1] )
  11601. with expansion:
  11602. true
  11603. MatchersRanges.tests.cpp:<line number>: PASSED:
  11604. REQUIRE( mocked.m_derefed[2] )
  11605. with expansion:
  11606. true
  11607. MatchersRanges.tests.cpp:<line number>: PASSED:
  11608. REQUIRE_FALSE( mocked.m_derefed[3] )
  11609. with expansion:
  11610. !false
  11611. MatchersRanges.tests.cpp:<line number>: PASSED:
  11612. REQUIRE_FALSE( mocked.m_derefed[4] )
  11613. with expansion:
  11614. !false
  11615. -------------------------------------------------------------------------------
  11616. Usage of AllTrue range matcher
  11617. Basic usage
  11618. All true evaluates to true
  11619. -------------------------------------------------------------------------------
  11620. MatchersRanges.tests.cpp:<line number>
  11621. ...............................................................................
  11622. MatchersRanges.tests.cpp:<line number>: PASSED:
  11623. REQUIRE_THAT( data, AllTrue() )
  11624. with expansion:
  11625. { true, true, true, true, true } contains only true
  11626. -------------------------------------------------------------------------------
  11627. Usage of AllTrue range matcher
  11628. Basic usage
  11629. Empty evaluates to true
  11630. -------------------------------------------------------------------------------
  11631. MatchersRanges.tests.cpp:<line number>
  11632. ...............................................................................
  11633. MatchersRanges.tests.cpp:<line number>: PASSED:
  11634. REQUIRE_THAT( data, AllTrue() )
  11635. with expansion:
  11636. { } contains only true
  11637. -------------------------------------------------------------------------------
  11638. Usage of AllTrue range matcher
  11639. Basic usage
  11640. One false evalutes to false
  11641. -------------------------------------------------------------------------------
  11642. MatchersRanges.tests.cpp:<line number>
  11643. ...............................................................................
  11644. MatchersRanges.tests.cpp:<line number>: PASSED:
  11645. REQUIRE_THAT( data, !AllTrue() )
  11646. with expansion:
  11647. { true, true, false, true, true } not contains only true
  11648. -------------------------------------------------------------------------------
  11649. Usage of AllTrue range matcher
  11650. Basic usage
  11651. All false evaluates to false
  11652. -------------------------------------------------------------------------------
  11653. MatchersRanges.tests.cpp:<line number>
  11654. ...............................................................................
  11655. MatchersRanges.tests.cpp:<line number>: PASSED:
  11656. REQUIRE_THAT( data, !AllTrue() )
  11657. with expansion:
  11658. { false, false, false, false, false } not contains only true
  11659. -------------------------------------------------------------------------------
  11660. Usage of AllTrue range matcher
  11661. Contained type is convertible to bool
  11662. All true evaluates to true
  11663. -------------------------------------------------------------------------------
  11664. MatchersRanges.tests.cpp:<line number>
  11665. ...............................................................................
  11666. MatchersRanges.tests.cpp:<line number>: PASSED:
  11667. REQUIRE_THAT( data, AllTrue() )
  11668. with expansion:
  11669. { true, true, true, true, true } contains only true
  11670. -------------------------------------------------------------------------------
  11671. Usage of AllTrue range matcher
  11672. Contained type is convertible to bool
  11673. One false evalutes to false
  11674. -------------------------------------------------------------------------------
  11675. MatchersRanges.tests.cpp:<line number>
  11676. ...............................................................................
  11677. MatchersRanges.tests.cpp:<line number>: PASSED:
  11678. REQUIRE_THAT( data, !AllTrue() )
  11679. with expansion:
  11680. { true, true, false, true, true } not contains only true
  11681. -------------------------------------------------------------------------------
  11682. Usage of AllTrue range matcher
  11683. Contained type is convertible to bool
  11684. All false evaluates to false
  11685. -------------------------------------------------------------------------------
  11686. MatchersRanges.tests.cpp:<line number>
  11687. ...............................................................................
  11688. MatchersRanges.tests.cpp:<line number>: PASSED:
  11689. REQUIRE_THAT( data, !AllTrue() )
  11690. with expansion:
  11691. { false, false, false, false, false } not contains only true
  11692. -------------------------------------------------------------------------------
  11693. Usage of AllTrue range matcher
  11694. Shortcircuiting
  11695. All are read
  11696. -------------------------------------------------------------------------------
  11697. MatchersRanges.tests.cpp:<line number>
  11698. ...............................................................................
  11699. MatchersRanges.tests.cpp:<line number>: PASSED:
  11700. REQUIRE_THAT( mocked, AllTrue() )
  11701. with expansion:
  11702. { true, true, true, true, true } contains only true
  11703. MatchersRanges.tests.cpp:<line number>: PASSED:
  11704. REQUIRE( mocked.m_derefed[0] )
  11705. with expansion:
  11706. true
  11707. MatchersRanges.tests.cpp:<line number>: PASSED:
  11708. REQUIRE( mocked.m_derefed[1] )
  11709. with expansion:
  11710. true
  11711. MatchersRanges.tests.cpp:<line number>: PASSED:
  11712. REQUIRE( mocked.m_derefed[2] )
  11713. with expansion:
  11714. true
  11715. MatchersRanges.tests.cpp:<line number>: PASSED:
  11716. REQUIRE( mocked.m_derefed[3] )
  11717. with expansion:
  11718. true
  11719. MatchersRanges.tests.cpp:<line number>: PASSED:
  11720. REQUIRE( mocked.m_derefed[4] )
  11721. with expansion:
  11722. true
  11723. -------------------------------------------------------------------------------
  11724. Usage of AllTrue range matcher
  11725. Shortcircuiting
  11726. Short-circuited
  11727. -------------------------------------------------------------------------------
  11728. MatchersRanges.tests.cpp:<line number>
  11729. ...............................................................................
  11730. MatchersRanges.tests.cpp:<line number>: PASSED:
  11731. REQUIRE_THAT( mocked, !AllTrue() )
  11732. with expansion:
  11733. { true, true, false, true, true } not contains only true
  11734. MatchersRanges.tests.cpp:<line number>: PASSED:
  11735. REQUIRE( mocked.m_derefed[0] )
  11736. with expansion:
  11737. true
  11738. MatchersRanges.tests.cpp:<line number>: PASSED:
  11739. REQUIRE( mocked.m_derefed[1] )
  11740. with expansion:
  11741. true
  11742. MatchersRanges.tests.cpp:<line number>: PASSED:
  11743. REQUIRE( mocked.m_derefed[2] )
  11744. with expansion:
  11745. true
  11746. MatchersRanges.tests.cpp:<line number>: PASSED:
  11747. REQUIRE_FALSE( mocked.m_derefed[3] )
  11748. with expansion:
  11749. !false
  11750. MatchersRanges.tests.cpp:<line number>: PASSED:
  11751. REQUIRE_FALSE( mocked.m_derefed[4] )
  11752. with expansion:
  11753. !false
  11754. -------------------------------------------------------------------------------
  11755. Usage of AnyMatch range matcher
  11756. Basic usage
  11757. -------------------------------------------------------------------------------
  11758. MatchersRanges.tests.cpp:<line number>
  11759. ...............................................................................
  11760. MatchersRanges.tests.cpp:<line number>: PASSED:
  11761. REQUIRE_THAT( data, AnyMatch(SizeIs(5)) )
  11762. with expansion:
  11763. { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
  11764. }, { 1, 0, 0, -1, 5 } } any match has size == 5
  11765. MatchersRanges.tests.cpp:<line number>: PASSED:
  11766. REQUIRE_THAT( data, !AnyMatch(Contains(0) && Contains(10)) )
  11767. with expansion:
  11768. { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
  11769. }, { 1, 0, 0, -1, 5 } } not any match ( contains element 0 and contains
  11770. element 10 )
  11771. -------------------------------------------------------------------------------
  11772. Usage of AnyMatch range matcher
  11773. Type requires ADL found begin and end
  11774. -------------------------------------------------------------------------------
  11775. MatchersRanges.tests.cpp:<line number>
  11776. ...............................................................................
  11777. MatchersRanges.tests.cpp:<line number>: PASSED:
  11778. REQUIRE_THAT( needs_adl, AnyMatch( Predicate<int>( []( int elem ) { return elem < 3; } ) ) )
  11779. with expansion:
  11780. { 1, 2, 3, 4, 5 } any match matches undescribed predicate
  11781. -------------------------------------------------------------------------------
  11782. Usage of AnyMatch range matcher
  11783. Shortcircuiting
  11784. All are read
  11785. -------------------------------------------------------------------------------
  11786. MatchersRanges.tests.cpp:<line number>
  11787. ...............................................................................
  11788. MatchersRanges.tests.cpp:<line number>: PASSED:
  11789. REQUIRE_THAT( mocked, !anyMatch )
  11790. with expansion:
  11791. { 1, 2, 3, 4, 5 } not any match matches undescribed predicate
  11792. MatchersRanges.tests.cpp:<line number>: PASSED:
  11793. REQUIRE( mocked.m_derefed[0] )
  11794. with expansion:
  11795. true
  11796. MatchersRanges.tests.cpp:<line number>: PASSED:
  11797. REQUIRE( mocked.m_derefed[1] )
  11798. with expansion:
  11799. true
  11800. MatchersRanges.tests.cpp:<line number>: PASSED:
  11801. REQUIRE( mocked.m_derefed[2] )
  11802. with expansion:
  11803. true
  11804. MatchersRanges.tests.cpp:<line number>: PASSED:
  11805. REQUIRE( mocked.m_derefed[3] )
  11806. with expansion:
  11807. true
  11808. MatchersRanges.tests.cpp:<line number>: PASSED:
  11809. REQUIRE( mocked.m_derefed[4] )
  11810. with expansion:
  11811. true
  11812. -------------------------------------------------------------------------------
  11813. Usage of AnyMatch range matcher
  11814. Shortcircuiting
  11815. Short-circuited
  11816. -------------------------------------------------------------------------------
  11817. MatchersRanges.tests.cpp:<line number>
  11818. ...............................................................................
  11819. MatchersRanges.tests.cpp:<line number>: PASSED:
  11820. REQUIRE_THAT( mocked, anyMatch )
  11821. with expansion:
  11822. { 1, 2, 3, 4, 5 } any match matches undescribed predicate
  11823. MatchersRanges.tests.cpp:<line number>: PASSED:
  11824. REQUIRE( mocked.m_derefed[0] )
  11825. with expansion:
  11826. true
  11827. MatchersRanges.tests.cpp:<line number>: PASSED:
  11828. REQUIRE_FALSE( mocked.m_derefed[1] )
  11829. with expansion:
  11830. !false
  11831. MatchersRanges.tests.cpp:<line number>: PASSED:
  11832. REQUIRE_FALSE( mocked.m_derefed[2] )
  11833. with expansion:
  11834. !false
  11835. MatchersRanges.tests.cpp:<line number>: PASSED:
  11836. REQUIRE_FALSE( mocked.m_derefed[3] )
  11837. with expansion:
  11838. !false
  11839. MatchersRanges.tests.cpp:<line number>: PASSED:
  11840. REQUIRE_FALSE( mocked.m_derefed[4] )
  11841. with expansion:
  11842. !false
  11843. -------------------------------------------------------------------------------
  11844. Usage of AnyTrue range matcher
  11845. Basic usage
  11846. All true evaluates to true
  11847. -------------------------------------------------------------------------------
  11848. MatchersRanges.tests.cpp:<line number>
  11849. ...............................................................................
  11850. MatchersRanges.tests.cpp:<line number>: PASSED:
  11851. REQUIRE_THAT( data, AnyTrue() )
  11852. with expansion:
  11853. { true, true, true, true, true } contains at least one true
  11854. -------------------------------------------------------------------------------
  11855. Usage of AnyTrue range matcher
  11856. Basic usage
  11857. Empty evaluates to false
  11858. -------------------------------------------------------------------------------
  11859. MatchersRanges.tests.cpp:<line number>
  11860. ...............................................................................
  11861. MatchersRanges.tests.cpp:<line number>: PASSED:
  11862. REQUIRE_THAT( data, !AnyTrue() )
  11863. with expansion:
  11864. { } not contains at least one true
  11865. -------------------------------------------------------------------------------
  11866. Usage of AnyTrue range matcher
  11867. Basic usage
  11868. One true evalutes to true
  11869. -------------------------------------------------------------------------------
  11870. MatchersRanges.tests.cpp:<line number>
  11871. ...............................................................................
  11872. MatchersRanges.tests.cpp:<line number>: PASSED:
  11873. REQUIRE_THAT( data, AnyTrue() )
  11874. with expansion:
  11875. { false, false, true, false, false } contains at least one true
  11876. -------------------------------------------------------------------------------
  11877. Usage of AnyTrue range matcher
  11878. Basic usage
  11879. All false evaluates to false
  11880. -------------------------------------------------------------------------------
  11881. MatchersRanges.tests.cpp:<line number>
  11882. ...............................................................................
  11883. MatchersRanges.tests.cpp:<line number>: PASSED:
  11884. REQUIRE_THAT( data, !AnyTrue() )
  11885. with expansion:
  11886. { false, false, false, false, false } not contains at least one true
  11887. -------------------------------------------------------------------------------
  11888. Usage of AnyTrue range matcher
  11889. Contained type is convertible to bool
  11890. All true evaluates to true
  11891. -------------------------------------------------------------------------------
  11892. MatchersRanges.tests.cpp:<line number>
  11893. ...............................................................................
  11894. MatchersRanges.tests.cpp:<line number>: PASSED:
  11895. REQUIRE_THAT( data, AnyTrue() )
  11896. with expansion:
  11897. { true, true, true, true, true } contains at least one true
  11898. -------------------------------------------------------------------------------
  11899. Usage of AnyTrue range matcher
  11900. Contained type is convertible to bool
  11901. One true evalutes to true
  11902. -------------------------------------------------------------------------------
  11903. MatchersRanges.tests.cpp:<line number>
  11904. ...............................................................................
  11905. MatchersRanges.tests.cpp:<line number>: PASSED:
  11906. REQUIRE_THAT( data, AnyTrue() )
  11907. with expansion:
  11908. { false, false, true, false, false } contains at least one true
  11909. -------------------------------------------------------------------------------
  11910. Usage of AnyTrue range matcher
  11911. Contained type is convertible to bool
  11912. All false evaluates to false
  11913. -------------------------------------------------------------------------------
  11914. MatchersRanges.tests.cpp:<line number>
  11915. ...............................................................................
  11916. MatchersRanges.tests.cpp:<line number>: PASSED:
  11917. REQUIRE_THAT( data, !AnyTrue() )
  11918. with expansion:
  11919. { false, false, false, false, false } not contains at least one true
  11920. -------------------------------------------------------------------------------
  11921. Usage of AnyTrue range matcher
  11922. Shortcircuiting
  11923. All are read
  11924. -------------------------------------------------------------------------------
  11925. MatchersRanges.tests.cpp:<line number>
  11926. ...............................................................................
  11927. MatchersRanges.tests.cpp:<line number>: PASSED:
  11928. REQUIRE_THAT( mocked, AnyTrue() )
  11929. with expansion:
  11930. { false, false, false, false, true } contains at least one true
  11931. MatchersRanges.tests.cpp:<line number>: PASSED:
  11932. REQUIRE( mocked.m_derefed[0] )
  11933. with expansion:
  11934. true
  11935. MatchersRanges.tests.cpp:<line number>: PASSED:
  11936. REQUIRE( mocked.m_derefed[1] )
  11937. with expansion:
  11938. true
  11939. MatchersRanges.tests.cpp:<line number>: PASSED:
  11940. REQUIRE( mocked.m_derefed[2] )
  11941. with expansion:
  11942. true
  11943. MatchersRanges.tests.cpp:<line number>: PASSED:
  11944. REQUIRE( mocked.m_derefed[3] )
  11945. with expansion:
  11946. true
  11947. MatchersRanges.tests.cpp:<line number>: PASSED:
  11948. REQUIRE( mocked.m_derefed[4] )
  11949. with expansion:
  11950. true
  11951. -------------------------------------------------------------------------------
  11952. Usage of AnyTrue range matcher
  11953. Shortcircuiting
  11954. Short-circuited
  11955. -------------------------------------------------------------------------------
  11956. MatchersRanges.tests.cpp:<line number>
  11957. ...............................................................................
  11958. MatchersRanges.tests.cpp:<line number>: PASSED:
  11959. REQUIRE_THAT( mocked, AnyTrue() )
  11960. with expansion:
  11961. { false, false, true, true, true } contains at least one true
  11962. MatchersRanges.tests.cpp:<line number>: PASSED:
  11963. REQUIRE( mocked.m_derefed[0] )
  11964. with expansion:
  11965. true
  11966. MatchersRanges.tests.cpp:<line number>: PASSED:
  11967. REQUIRE( mocked.m_derefed[1] )
  11968. with expansion:
  11969. true
  11970. MatchersRanges.tests.cpp:<line number>: PASSED:
  11971. REQUIRE( mocked.m_derefed[2] )
  11972. with expansion:
  11973. true
  11974. MatchersRanges.tests.cpp:<line number>: PASSED:
  11975. REQUIRE_FALSE( mocked.m_derefed[3] )
  11976. with expansion:
  11977. !false
  11978. MatchersRanges.tests.cpp:<line number>: PASSED:
  11979. REQUIRE_FALSE( mocked.m_derefed[4] )
  11980. with expansion:
  11981. !false
  11982. -------------------------------------------------------------------------------
  11983. Usage of NoneMatch range matcher
  11984. Basic usage
  11985. -------------------------------------------------------------------------------
  11986. MatchersRanges.tests.cpp:<line number>
  11987. ...............................................................................
  11988. MatchersRanges.tests.cpp:<line number>: PASSED:
  11989. REQUIRE_THAT( data, NoneMatch(SizeIs(6)) )
  11990. with expansion:
  11991. { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
  11992. }, { 1, 0, 0, -1, 5 } } none match has size == 6
  11993. MatchersRanges.tests.cpp:<line number>: PASSED:
  11994. REQUIRE_THAT( data, !NoneMatch(Contains(0) && Contains(1)) )
  11995. with expansion:
  11996. { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
  11997. }, { 1, 0, 0, -1, 5 } } not none match ( contains element 0 and contains
  11998. element 1 )
  11999. -------------------------------------------------------------------------------
  12000. Usage of NoneMatch range matcher
  12001. Type requires ADL found begin and end
  12002. -------------------------------------------------------------------------------
  12003. MatchersRanges.tests.cpp:<line number>
  12004. ...............................................................................
  12005. MatchersRanges.tests.cpp:<line number>: PASSED:
  12006. REQUIRE_THAT( needs_adl, NoneMatch( Predicate<int>( []( int elem ) { return elem > 6; } ) ) )
  12007. with expansion:
  12008. { 1, 2, 3, 4, 5 } none match matches undescribed predicate
  12009. -------------------------------------------------------------------------------
  12010. Usage of NoneMatch range matcher
  12011. Shortcircuiting
  12012. All are read
  12013. -------------------------------------------------------------------------------
  12014. MatchersRanges.tests.cpp:<line number>
  12015. ...............................................................................
  12016. MatchersRanges.tests.cpp:<line number>: PASSED:
  12017. REQUIRE_THAT( mocked, noneMatch )
  12018. with expansion:
  12019. { 1, 2, 3, 4, 5 } none match matches undescribed predicate
  12020. MatchersRanges.tests.cpp:<line number>: PASSED:
  12021. REQUIRE( mocked.m_derefed[0] )
  12022. with expansion:
  12023. true
  12024. MatchersRanges.tests.cpp:<line number>: PASSED:
  12025. REQUIRE( mocked.m_derefed[1] )
  12026. with expansion:
  12027. true
  12028. MatchersRanges.tests.cpp:<line number>: PASSED:
  12029. REQUIRE( mocked.m_derefed[2] )
  12030. with expansion:
  12031. true
  12032. MatchersRanges.tests.cpp:<line number>: PASSED:
  12033. REQUIRE( mocked.m_derefed[3] )
  12034. with expansion:
  12035. true
  12036. MatchersRanges.tests.cpp:<line number>: PASSED:
  12037. REQUIRE( mocked.m_derefed[4] )
  12038. with expansion:
  12039. true
  12040. -------------------------------------------------------------------------------
  12041. Usage of NoneMatch range matcher
  12042. Shortcircuiting
  12043. Short-circuited
  12044. -------------------------------------------------------------------------------
  12045. MatchersRanges.tests.cpp:<line number>
  12046. ...............................................................................
  12047. MatchersRanges.tests.cpp:<line number>: PASSED:
  12048. REQUIRE_THAT( mocked, !noneMatch )
  12049. with expansion:
  12050. { 1, 2, 3, 4, 5 } not none match matches undescribed predicate
  12051. MatchersRanges.tests.cpp:<line number>: PASSED:
  12052. REQUIRE( mocked.m_derefed[0] )
  12053. with expansion:
  12054. true
  12055. MatchersRanges.tests.cpp:<line number>: PASSED:
  12056. REQUIRE_FALSE( mocked.m_derefed[1] )
  12057. with expansion:
  12058. !false
  12059. MatchersRanges.tests.cpp:<line number>: PASSED:
  12060. REQUIRE_FALSE( mocked.m_derefed[2] )
  12061. with expansion:
  12062. !false
  12063. MatchersRanges.tests.cpp:<line number>: PASSED:
  12064. REQUIRE_FALSE( mocked.m_derefed[3] )
  12065. with expansion:
  12066. !false
  12067. MatchersRanges.tests.cpp:<line number>: PASSED:
  12068. REQUIRE_FALSE( mocked.m_derefed[4] )
  12069. with expansion:
  12070. !false
  12071. -------------------------------------------------------------------------------
  12072. Usage of NoneTrue range matcher
  12073. Basic usage
  12074. All true evaluates to false
  12075. -------------------------------------------------------------------------------
  12076. MatchersRanges.tests.cpp:<line number>
  12077. ...............................................................................
  12078. MatchersRanges.tests.cpp:<line number>: PASSED:
  12079. REQUIRE_THAT( data, !NoneTrue() )
  12080. with expansion:
  12081. { true, true, true, true, true } not contains no true
  12082. -------------------------------------------------------------------------------
  12083. Usage of NoneTrue range matcher
  12084. Basic usage
  12085. Empty evaluates to true
  12086. -------------------------------------------------------------------------------
  12087. MatchersRanges.tests.cpp:<line number>
  12088. ...............................................................................
  12089. MatchersRanges.tests.cpp:<line number>: PASSED:
  12090. REQUIRE_THAT( data, NoneTrue() )
  12091. with expansion:
  12092. { } contains no true
  12093. -------------------------------------------------------------------------------
  12094. Usage of NoneTrue range matcher
  12095. Basic usage
  12096. One true evalutes to false
  12097. -------------------------------------------------------------------------------
  12098. MatchersRanges.tests.cpp:<line number>
  12099. ...............................................................................
  12100. MatchersRanges.tests.cpp:<line number>: PASSED:
  12101. REQUIRE_THAT( data, !NoneTrue() )
  12102. with expansion:
  12103. { false, false, true, false, false } not contains no true
  12104. -------------------------------------------------------------------------------
  12105. Usage of NoneTrue range matcher
  12106. Basic usage
  12107. All false evaluates to true
  12108. -------------------------------------------------------------------------------
  12109. MatchersRanges.tests.cpp:<line number>
  12110. ...............................................................................
  12111. MatchersRanges.tests.cpp:<line number>: PASSED:
  12112. REQUIRE_THAT( data, NoneTrue() )
  12113. with expansion:
  12114. { false, false, false, false, false } contains no true
  12115. -------------------------------------------------------------------------------
  12116. Usage of NoneTrue range matcher
  12117. Contained type is convertible to bool
  12118. All true evaluates to false
  12119. -------------------------------------------------------------------------------
  12120. MatchersRanges.tests.cpp:<line number>
  12121. ...............................................................................
  12122. MatchersRanges.tests.cpp:<line number>: PASSED:
  12123. REQUIRE_THAT( data, !NoneTrue() )
  12124. with expansion:
  12125. { true, true, true, true, true } not contains no true
  12126. -------------------------------------------------------------------------------
  12127. Usage of NoneTrue range matcher
  12128. Contained type is convertible to bool
  12129. One true evalutes to false
  12130. -------------------------------------------------------------------------------
  12131. MatchersRanges.tests.cpp:<line number>
  12132. ...............................................................................
  12133. MatchersRanges.tests.cpp:<line number>: PASSED:
  12134. REQUIRE_THAT( data, !NoneTrue() )
  12135. with expansion:
  12136. { false, false, true, false, false } not contains no true
  12137. -------------------------------------------------------------------------------
  12138. Usage of NoneTrue range matcher
  12139. Contained type is convertible to bool
  12140. All false evaluates to true
  12141. -------------------------------------------------------------------------------
  12142. MatchersRanges.tests.cpp:<line number>
  12143. ...............................................................................
  12144. MatchersRanges.tests.cpp:<line number>: PASSED:
  12145. REQUIRE_THAT( data, NoneTrue() )
  12146. with expansion:
  12147. { false, false, false, false, false } contains no true
  12148. -------------------------------------------------------------------------------
  12149. Usage of NoneTrue range matcher
  12150. Shortcircuiting
  12151. All are read
  12152. -------------------------------------------------------------------------------
  12153. MatchersRanges.tests.cpp:<line number>
  12154. ...............................................................................
  12155. MatchersRanges.tests.cpp:<line number>: PASSED:
  12156. REQUIRE_THAT( mocked, NoneTrue() )
  12157. with expansion:
  12158. { false, false, false, false, false } contains no true
  12159. MatchersRanges.tests.cpp:<line number>: PASSED:
  12160. REQUIRE( mocked.m_derefed[0] )
  12161. with expansion:
  12162. true
  12163. MatchersRanges.tests.cpp:<line number>: PASSED:
  12164. REQUIRE( mocked.m_derefed[1] )
  12165. with expansion:
  12166. true
  12167. MatchersRanges.tests.cpp:<line number>: PASSED:
  12168. REQUIRE( mocked.m_derefed[2] )
  12169. with expansion:
  12170. true
  12171. MatchersRanges.tests.cpp:<line number>: PASSED:
  12172. REQUIRE( mocked.m_derefed[3] )
  12173. with expansion:
  12174. true
  12175. MatchersRanges.tests.cpp:<line number>: PASSED:
  12176. REQUIRE( mocked.m_derefed[4] )
  12177. with expansion:
  12178. true
  12179. -------------------------------------------------------------------------------
  12180. Usage of NoneTrue range matcher
  12181. Shortcircuiting
  12182. Short-circuited
  12183. -------------------------------------------------------------------------------
  12184. MatchersRanges.tests.cpp:<line number>
  12185. ...............................................................................
  12186. MatchersRanges.tests.cpp:<line number>: PASSED:
  12187. REQUIRE_THAT( mocked, !NoneTrue() )
  12188. with expansion:
  12189. { false, false, true, true, true } not contains no true
  12190. MatchersRanges.tests.cpp:<line number>: PASSED:
  12191. REQUIRE( mocked.m_derefed[0] )
  12192. with expansion:
  12193. true
  12194. MatchersRanges.tests.cpp:<line number>: PASSED:
  12195. REQUIRE( mocked.m_derefed[1] )
  12196. with expansion:
  12197. true
  12198. MatchersRanges.tests.cpp:<line number>: PASSED:
  12199. REQUIRE( mocked.m_derefed[2] )
  12200. with expansion:
  12201. true
  12202. MatchersRanges.tests.cpp:<line number>: PASSED:
  12203. REQUIRE_FALSE( mocked.m_derefed[3] )
  12204. with expansion:
  12205. !false
  12206. MatchersRanges.tests.cpp:<line number>: PASSED:
  12207. REQUIRE_FALSE( mocked.m_derefed[4] )
  12208. with expansion:
  12209. !false
  12210. -------------------------------------------------------------------------------
  12211. Usage of the SizeIs range matcher
  12212. Some with stdlib containers
  12213. -------------------------------------------------------------------------------
  12214. MatchersRanges.tests.cpp:<line number>
  12215. ...............................................................................
  12216. MatchersRanges.tests.cpp:<line number>: PASSED:
  12217. REQUIRE_THAT( empty_vec, SizeIs(0) )
  12218. with expansion:
  12219. { } has size == 0
  12220. MatchersRanges.tests.cpp:<line number>: PASSED:
  12221. REQUIRE_THAT( empty_vec, !SizeIs(2) )
  12222. with expansion:
  12223. { } not has size == 2
  12224. MatchersRanges.tests.cpp:<line number>: PASSED:
  12225. REQUIRE_THAT( empty_vec, SizeIs(Lt(2)) )
  12226. with expansion:
  12227. { } size matches is less than 2
  12228. MatchersRanges.tests.cpp:<line number>: PASSED:
  12229. REQUIRE_THAT( arr, SizeIs(2) )
  12230. with expansion:
  12231. { 0, 0 } has size == 2
  12232. MatchersRanges.tests.cpp:<line number>: PASSED:
  12233. REQUIRE_THAT( arr, SizeIs( Lt(3)) )
  12234. with expansion:
  12235. { 0, 0 } size matches is less than 3
  12236. MatchersRanges.tests.cpp:<line number>: PASSED:
  12237. REQUIRE_THAT( arr, !SizeIs(!Lt(3)) )
  12238. with expansion:
  12239. { 0, 0 } not size matches not is less than 3
  12240. MatchersRanges.tests.cpp:<line number>: PASSED:
  12241. REQUIRE_THAT( map, SizeIs(3) )
  12242. with expansion:
  12243. { {?}, {?}, {?} } has size == 3
  12244. -------------------------------------------------------------------------------
  12245. Usage of the SizeIs range matcher
  12246. Type requires ADL found size free function
  12247. -------------------------------------------------------------------------------
  12248. MatchersRanges.tests.cpp:<line number>
  12249. ...............................................................................
  12250. MatchersRanges.tests.cpp:<line number>: PASSED:
  12251. REQUIRE_THAT( unrelated::ADL_size{}, SizeIs(12) )
  12252. with expansion:
  12253. {?} has size == 12
  12254. -------------------------------------------------------------------------------
  12255. Usage of the SizeIs range matcher
  12256. Type has size member
  12257. -------------------------------------------------------------------------------
  12258. MatchersRanges.tests.cpp:<line number>
  12259. ...............................................................................
  12260. MatchersRanges.tests.cpp:<line number>: PASSED:
  12261. REQUIRE_THAT( has_size{}, SizeIs(13) )
  12262. with expansion:
  12263. {?} has size == 13
  12264. -------------------------------------------------------------------------------
  12265. Use a custom approx
  12266. -------------------------------------------------------------------------------
  12267. Approx.tests.cpp:<line number>
  12268. ...............................................................................
  12269. Approx.tests.cpp:<line number>: PASSED:
  12270. REQUIRE( d == approx( 1.23 ) )
  12271. with expansion:
  12272. 1.23 == Approx( 1.23 )
  12273. Approx.tests.cpp:<line number>: PASSED:
  12274. REQUIRE( d == approx( 1.22 ) )
  12275. with expansion:
  12276. 1.23 == Approx( 1.22 )
  12277. Approx.tests.cpp:<line number>: PASSED:
  12278. REQUIRE( d == approx( 1.24 ) )
  12279. with expansion:
  12280. 1.23 == Approx( 1.24 )
  12281. Approx.tests.cpp:<line number>: PASSED:
  12282. REQUIRE( d != approx( 1.25 ) )
  12283. with expansion:
  12284. 1.23 != Approx( 1.25 )
  12285. Approx.tests.cpp:<line number>: PASSED:
  12286. REQUIRE( approx( d ) == 1.23 )
  12287. with expansion:
  12288. Approx( 1.23 ) == 1.23
  12289. Approx.tests.cpp:<line number>: PASSED:
  12290. REQUIRE( approx( d ) == 1.22 )
  12291. with expansion:
  12292. Approx( 1.23 ) == 1.22
  12293. Approx.tests.cpp:<line number>: PASSED:
  12294. REQUIRE( approx( d ) == 1.24 )
  12295. with expansion:
  12296. Approx( 1.23 ) == 1.24
  12297. Approx.tests.cpp:<line number>: PASSED:
  12298. REQUIRE( approx( d ) != 1.25 )
  12299. with expansion:
  12300. Approx( 1.23 ) != 1.25
  12301. -------------------------------------------------------------------------------
  12302. Variadic macros
  12303. Section with one argument
  12304. -------------------------------------------------------------------------------
  12305. VariadicMacros.tests.cpp:<line number>
  12306. ...............................................................................
  12307. VariadicMacros.tests.cpp:<line number>: PASSED:
  12308. with message:
  12309. no assertions
  12310. -------------------------------------------------------------------------------
  12311. Vector Approx matcher
  12312. Empty vector is roughly equal to an empty vector
  12313. -------------------------------------------------------------------------------
  12314. Matchers.tests.cpp:<line number>
  12315. ...............................................................................
  12316. Matchers.tests.cpp:<line number>: PASSED:
  12317. REQUIRE_THAT( empty, Approx( empty ) )
  12318. with expansion:
  12319. { } is approx: { }
  12320. -------------------------------------------------------------------------------
  12321. Vector Approx matcher
  12322. Vectors with elements
  12323. A vector is approx equal to itself
  12324. -------------------------------------------------------------------------------
  12325. Matchers.tests.cpp:<line number>
  12326. ...............................................................................
  12327. Matchers.tests.cpp:<line number>: PASSED:
  12328. REQUIRE_THAT( v1, Approx( v1 ) )
  12329. with expansion:
  12330. { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
  12331. Matchers.tests.cpp:<line number>: PASSED:
  12332. REQUIRE_THAT( v1, Approx<double>( { 1., 2., 3. } ) )
  12333. with expansion:
  12334. { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
  12335. -------------------------------------------------------------------------------
  12336. Vector Approx matcher
  12337. Vectors with elements
  12338. Different length
  12339. -------------------------------------------------------------------------------
  12340. Matchers.tests.cpp:<line number>
  12341. ...............................................................................
  12342. Matchers.tests.cpp:<line number>: PASSED:
  12343. REQUIRE_THAT( v1, !Approx( temp ) )
  12344. with expansion:
  12345. { 1.0, 2.0, 3.0 } not is approx: { 1.0, 2.0, 3.0, 4.0 }
  12346. -------------------------------------------------------------------------------
  12347. Vector Approx matcher
  12348. Vectors with elements
  12349. Same length, different elements
  12350. -------------------------------------------------------------------------------
  12351. Matchers.tests.cpp:<line number>
  12352. ...............................................................................
  12353. Matchers.tests.cpp:<line number>: PASSED:
  12354. REQUIRE_THAT( v1, !Approx( v2 ) )
  12355. with expansion:
  12356. { 1.0, 2.0, 3.0 } not is approx: { 1.5, 2.5, 3.5 }
  12357. Matchers.tests.cpp:<line number>: PASSED:
  12358. REQUIRE_THAT( v1, Approx( v2 ).margin( 0.5 ) )
  12359. with expansion:
  12360. { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
  12361. Matchers.tests.cpp:<line number>: PASSED:
  12362. REQUIRE_THAT( v1, Approx( v2 ).epsilon( 0.5 ) )
  12363. with expansion:
  12364. { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
  12365. Matchers.tests.cpp:<line number>: PASSED:
  12366. REQUIRE_THAT( v1, Approx( v2 ).epsilon( 0.1 ).scale( 500 ) )
  12367. with expansion:
  12368. { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
  12369. -------------------------------------------------------------------------------
  12370. Vector Approx matcher -- failing
  12371. Empty and non empty vectors are not approx equal
  12372. -------------------------------------------------------------------------------
  12373. Matchers.tests.cpp:<line number>
  12374. ...............................................................................
  12375. Matchers.tests.cpp:<line number>: FAILED:
  12376. CHECK_THAT( empty, Approx( t1 ) )
  12377. with expansion:
  12378. { } is approx: { 1.0, 2.0 }
  12379. -------------------------------------------------------------------------------
  12380. Vector Approx matcher -- failing
  12381. Just different vectors
  12382. -------------------------------------------------------------------------------
  12383. Matchers.tests.cpp:<line number>
  12384. ...............................................................................
  12385. Matchers.tests.cpp:<line number>: FAILED:
  12386. CHECK_THAT( v1, Approx( v2 ) )
  12387. with expansion:
  12388. { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 }
  12389. -------------------------------------------------------------------------------
  12390. Vector matchers
  12391. Contains (element)
  12392. -------------------------------------------------------------------------------
  12393. Matchers.tests.cpp:<line number>
  12394. ...............................................................................
  12395. Matchers.tests.cpp:<line number>: PASSED:
  12396. CHECK_THAT( v, VectorContains( 1 ) )
  12397. with expansion:
  12398. { 1, 2, 3 } Contains: 1
  12399. Matchers.tests.cpp:<line number>: PASSED:
  12400. CHECK_THAT( v, VectorContains( 2 ) )
  12401. with expansion:
  12402. { 1, 2, 3 } Contains: 2
  12403. Matchers.tests.cpp:<line number>: PASSED:
  12404. CHECK_THAT( v5, ( VectorContains<int, CustomAllocator<int>>( 2 ) ) )
  12405. with expansion:
  12406. { 1, 2, 3 } Contains: 2
  12407. -------------------------------------------------------------------------------
  12408. Vector matchers
  12409. Contains (vector)
  12410. -------------------------------------------------------------------------------
  12411. Matchers.tests.cpp:<line number>
  12412. ...............................................................................
  12413. Matchers.tests.cpp:<line number>: PASSED:
  12414. CHECK_THAT( v, Contains( v2 ) )
  12415. with expansion:
  12416. { 1, 2, 3 } Contains: { 1, 2 }
  12417. Matchers.tests.cpp:<line number>: PASSED:
  12418. CHECK_THAT( v, Contains<int>( { 1, 2 } ) )
  12419. with expansion:
  12420. { 1, 2, 3 } Contains: { 1, 2 }
  12421. Matchers.tests.cpp:<line number>: PASSED:
  12422. CHECK_THAT( v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) )
  12423. with expansion:
  12424. { 1, 2, 3 } Contains: { 1, 2 }
  12425. Matchers.tests.cpp:<line number>: PASSED:
  12426. CHECK_THAT( v, Contains( v2 ) )
  12427. with expansion:
  12428. { 1, 2, 3 } Contains: { 1, 2, 3 }
  12429. Matchers.tests.cpp:<line number>: PASSED:
  12430. CHECK_THAT( v, Contains( empty ) )
  12431. with expansion:
  12432. { 1, 2, 3 } Contains: { }
  12433. Matchers.tests.cpp:<line number>: PASSED:
  12434. CHECK_THAT( empty, Contains( empty ) )
  12435. with expansion:
  12436. { } Contains: { }
  12437. Matchers.tests.cpp:<line number>: PASSED:
  12438. CHECK_THAT( v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) )
  12439. with expansion:
  12440. { 1, 2, 3 } Contains: { 1, 2, 3 }
  12441. Matchers.tests.cpp:<line number>: PASSED:
  12442. CHECK_THAT( v5, Contains( v6 ) )
  12443. with expansion:
  12444. { 1, 2, 3 } Contains: { 1, 2 }
  12445. -------------------------------------------------------------------------------
  12446. Vector matchers
  12447. Contains (element), composed
  12448. -------------------------------------------------------------------------------
  12449. Matchers.tests.cpp:<line number>
  12450. ...............................................................................
  12451. Matchers.tests.cpp:<line number>: PASSED:
  12452. CHECK_THAT( v, VectorContains( 1 ) && VectorContains( 2 ) )
  12453. with expansion:
  12454. { 1, 2, 3 } ( Contains: 1 and Contains: 2 )
  12455. -------------------------------------------------------------------------------
  12456. Vector matchers
  12457. Equals
  12458. -------------------------------------------------------------------------------
  12459. Matchers.tests.cpp:<line number>
  12460. ...............................................................................
  12461. Matchers.tests.cpp:<line number>: PASSED:
  12462. CHECK_THAT( v, Equals( v ) )
  12463. with expansion:
  12464. { 1, 2, 3 } Equals: { 1, 2, 3 }
  12465. Matchers.tests.cpp:<line number>: PASSED:
  12466. CHECK_THAT( empty, Equals( empty ) )
  12467. with expansion:
  12468. { } Equals: { }
  12469. Matchers.tests.cpp:<line number>: PASSED:
  12470. CHECK_THAT( v, Equals<int>( { 1, 2, 3 } ) )
  12471. with expansion:
  12472. { 1, 2, 3 } Equals: { 1, 2, 3 }
  12473. Matchers.tests.cpp:<line number>: PASSED:
  12474. CHECK_THAT( v, Equals( v2 ) )
  12475. with expansion:
  12476. { 1, 2, 3 } Equals: { 1, 2, 3 }
  12477. Matchers.tests.cpp:<line number>: PASSED:
  12478. CHECK_THAT( v5, ( Equals<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) )
  12479. with expansion:
  12480. { 1, 2, 3 } Equals: { 1, 2, 3 }
  12481. Matchers.tests.cpp:<line number>: PASSED:
  12482. CHECK_THAT( v5, Equals( v6 ) )
  12483. with expansion:
  12484. { 1, 2, 3 } Equals: { 1, 2, 3 }
  12485. -------------------------------------------------------------------------------
  12486. Vector matchers
  12487. UnorderedEquals
  12488. -------------------------------------------------------------------------------
  12489. Matchers.tests.cpp:<line number>
  12490. ...............................................................................
  12491. Matchers.tests.cpp:<line number>: PASSED:
  12492. CHECK_THAT( v, UnorderedEquals( v ) )
  12493. with expansion:
  12494. { 1, 2, 3 } UnorderedEquals: { 1, 2, 3 }
  12495. Matchers.tests.cpp:<line number>: PASSED:
  12496. CHECK_THAT( v, UnorderedEquals<int>( { 3, 2, 1 } ) )
  12497. with expansion:
  12498. { 1, 2, 3 } UnorderedEquals: { 3, 2, 1 }
  12499. Matchers.tests.cpp:<line number>: PASSED:
  12500. CHECK_THAT( empty, UnorderedEquals( empty ) )
  12501. with expansion:
  12502. { } UnorderedEquals: { }
  12503. Matchers.tests.cpp:<line number>: PASSED:
  12504. REQUIRE_THAT( permuted, UnorderedEquals( v ) )
  12505. with expansion:
  12506. { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
  12507. Matchers.tests.cpp:<line number>: PASSED:
  12508. REQUIRE_THAT( permuted, UnorderedEquals( v ) )
  12509. with expansion:
  12510. { 2, 3, 1 } UnorderedEquals: { 1, 2, 3 }
  12511. Matchers.tests.cpp:<line number>: PASSED:
  12512. CHECK_THAT( v5, ( UnorderedEquals<int, std::allocator<int>, CustomAllocator<int>>( permuted ) ) )
  12513. with expansion:
  12514. { 1, 2, 3 } UnorderedEquals: { 2, 3, 1 }
  12515. Matchers.tests.cpp:<line number>: PASSED:
  12516. CHECK_THAT( v5_permuted, UnorderedEquals( v5 ) )
  12517. with expansion:
  12518. { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
  12519. -------------------------------------------------------------------------------
  12520. Vector matchers that fail
  12521. Contains (element)
  12522. -------------------------------------------------------------------------------
  12523. Matchers.tests.cpp:<line number>
  12524. ...............................................................................
  12525. Matchers.tests.cpp:<line number>: FAILED:
  12526. CHECK_THAT( v, VectorContains( -1 ) )
  12527. with expansion:
  12528. { 1, 2, 3 } Contains: -1
  12529. Matchers.tests.cpp:<line number>: FAILED:
  12530. CHECK_THAT( empty, VectorContains( 1 ) )
  12531. with expansion:
  12532. { } Contains: 1
  12533. -------------------------------------------------------------------------------
  12534. Vector matchers that fail
  12535. Contains (vector)
  12536. -------------------------------------------------------------------------------
  12537. Matchers.tests.cpp:<line number>
  12538. ...............................................................................
  12539. Matchers.tests.cpp:<line number>: FAILED:
  12540. CHECK_THAT( empty, Contains( v ) )
  12541. with expansion:
  12542. { } Contains: { 1, 2, 3 }
  12543. Matchers.tests.cpp:<line number>: FAILED:
  12544. CHECK_THAT( v, Contains( v2 ) )
  12545. with expansion:
  12546. { 1, 2, 3 } Contains: { 1, 2, 4 }
  12547. -------------------------------------------------------------------------------
  12548. Vector matchers that fail
  12549. Equals
  12550. -------------------------------------------------------------------------------
  12551. Matchers.tests.cpp:<line number>
  12552. ...............................................................................
  12553. Matchers.tests.cpp:<line number>: FAILED:
  12554. CHECK_THAT( v, Equals( v2 ) )
  12555. with expansion:
  12556. { 1, 2, 3 } Equals: { 1, 2 }
  12557. Matchers.tests.cpp:<line number>: FAILED:
  12558. CHECK_THAT( v2, Equals( v ) )
  12559. with expansion:
  12560. { 1, 2 } Equals: { 1, 2, 3 }
  12561. Matchers.tests.cpp:<line number>: FAILED:
  12562. CHECK_THAT( empty, Equals( v ) )
  12563. with expansion:
  12564. { } Equals: { 1, 2, 3 }
  12565. Matchers.tests.cpp:<line number>: FAILED:
  12566. CHECK_THAT( v, Equals( empty ) )
  12567. with expansion:
  12568. { 1, 2, 3 } Equals: { }
  12569. -------------------------------------------------------------------------------
  12570. Vector matchers that fail
  12571. UnorderedEquals
  12572. -------------------------------------------------------------------------------
  12573. Matchers.tests.cpp:<line number>
  12574. ...............................................................................
  12575. Matchers.tests.cpp:<line number>: FAILED:
  12576. CHECK_THAT( v, UnorderedEquals( empty ) )
  12577. with expansion:
  12578. { 1, 2, 3 } UnorderedEquals: { }
  12579. Matchers.tests.cpp:<line number>: FAILED:
  12580. CHECK_THAT( empty, UnorderedEquals( v ) )
  12581. with expansion:
  12582. { } UnorderedEquals: { 1, 2, 3 }
  12583. Matchers.tests.cpp:<line number>: FAILED:
  12584. CHECK_THAT( permuted, UnorderedEquals( v ) )
  12585. with expansion:
  12586. { 1, 3 } UnorderedEquals: { 1, 2, 3 }
  12587. Matchers.tests.cpp:<line number>: FAILED:
  12588. CHECK_THAT( permuted, UnorderedEquals( v ) )
  12589. with expansion:
  12590. { 3, 1 } UnorderedEquals: { 1, 2, 3 }
  12591. -------------------------------------------------------------------------------
  12592. When checked exceptions are thrown they can be expected or unexpected
  12593. -------------------------------------------------------------------------------
  12594. Exception.tests.cpp:<line number>
  12595. ...............................................................................
  12596. Exception.tests.cpp:<line number>: PASSED:
  12597. REQUIRE_THROWS_AS( thisThrows(), std::domain_error )
  12598. Exception.tests.cpp:<line number>: PASSED:
  12599. REQUIRE_NOTHROW( thisDoesntThrow() )
  12600. Exception.tests.cpp:<line number>: PASSED:
  12601. REQUIRE_THROWS( thisThrows() )
  12602. -------------------------------------------------------------------------------
  12603. When unchecked exceptions are thrown directly they are always failures
  12604. -------------------------------------------------------------------------------
  12605. Exception.tests.cpp:<line number>
  12606. ...............................................................................
  12607. Exception.tests.cpp:<line number>: FAILED:
  12608. due to unexpected exception with message:
  12609. unexpected exception
  12610. -------------------------------------------------------------------------------
  12611. When unchecked exceptions are thrown during a CHECK the test should continue
  12612. -------------------------------------------------------------------------------
  12613. Exception.tests.cpp:<line number>
  12614. ...............................................................................
  12615. Exception.tests.cpp:<line number>: FAILED:
  12616. CHECK( thisThrows() == 0 )
  12617. due to unexpected exception with message:
  12618. expected exception
  12619. -------------------------------------------------------------------------------
  12620. When unchecked exceptions are thrown during a REQUIRE the test should abort
  12621. fail
  12622. -------------------------------------------------------------------------------
  12623. Exception.tests.cpp:<line number>
  12624. ...............................................................................
  12625. Exception.tests.cpp:<line number>: FAILED:
  12626. REQUIRE( thisThrows() == 0 )
  12627. due to unexpected exception with message:
  12628. expected exception
  12629. -------------------------------------------------------------------------------
  12630. When unchecked exceptions are thrown from functions they are always failures
  12631. -------------------------------------------------------------------------------
  12632. Exception.tests.cpp:<line number>
  12633. ...............................................................................
  12634. Exception.tests.cpp:<line number>: FAILED:
  12635. CHECK( thisThrows() == 0 )
  12636. due to unexpected exception with message:
  12637. expected exception
  12638. -------------------------------------------------------------------------------
  12639. When unchecked exceptions are thrown from sections they are always failures
  12640. section name
  12641. -------------------------------------------------------------------------------
  12642. Exception.tests.cpp:<line number>
  12643. ...............................................................................
  12644. Exception.tests.cpp:<line number>: FAILED:
  12645. due to unexpected exception with message:
  12646. unexpected exception
  12647. -------------------------------------------------------------------------------
  12648. When unchecked exceptions are thrown, but caught, they do not affect the test
  12649. -------------------------------------------------------------------------------
  12650. Exception.tests.cpp:<line number>
  12651. ...............................................................................
  12652. No assertions in test case 'When unchecked exceptions are thrown, but caught, they do not affect the test'
  12653. -------------------------------------------------------------------------------
  12654. X/level/0/a
  12655. -------------------------------------------------------------------------------
  12656. Tricky.tests.cpp:<line number>
  12657. ...............................................................................
  12658. Tricky.tests.cpp:<line number>: PASSED:
  12659. -------------------------------------------------------------------------------
  12660. X/level/0/b
  12661. -------------------------------------------------------------------------------
  12662. Tricky.tests.cpp:<line number>
  12663. ...............................................................................
  12664. Tricky.tests.cpp:<line number>: PASSED:
  12665. -------------------------------------------------------------------------------
  12666. X/level/1/a
  12667. -------------------------------------------------------------------------------
  12668. Tricky.tests.cpp:<line number>
  12669. ...............................................................................
  12670. Tricky.tests.cpp:<line number>: PASSED:
  12671. -------------------------------------------------------------------------------
  12672. X/level/1/b
  12673. -------------------------------------------------------------------------------
  12674. Tricky.tests.cpp:<line number>
  12675. ...............................................................................
  12676. Tricky.tests.cpp:<line number>: PASSED:
  12677. -------------------------------------------------------------------------------
  12678. XmlEncode
  12679. normal string
  12680. -------------------------------------------------------------------------------
  12681. Xml.tests.cpp:<line number>
  12682. ...............................................................................
  12683. Xml.tests.cpp:<line number>: PASSED:
  12684. REQUIRE( encode( "normal string" ) == "normal string" )
  12685. with expansion:
  12686. "normal string" == "normal string"
  12687. -------------------------------------------------------------------------------
  12688. XmlEncode
  12689. empty string
  12690. -------------------------------------------------------------------------------
  12691. Xml.tests.cpp:<line number>
  12692. ...............................................................................
  12693. Xml.tests.cpp:<line number>: PASSED:
  12694. REQUIRE( encode( "" ) == "" )
  12695. with expansion:
  12696. "" == ""
  12697. -------------------------------------------------------------------------------
  12698. XmlEncode
  12699. string with ampersand
  12700. -------------------------------------------------------------------------------
  12701. Xml.tests.cpp:<line number>
  12702. ...............................................................................
  12703. Xml.tests.cpp:<line number>: PASSED:
  12704. REQUIRE( encode( "smith & jones" ) == "smith &amp; jones" )
  12705. with expansion:
  12706. "smith &amp; jones" == "smith &amp; jones"
  12707. -------------------------------------------------------------------------------
  12708. XmlEncode
  12709. string with less-than
  12710. -------------------------------------------------------------------------------
  12711. Xml.tests.cpp:<line number>
  12712. ...............................................................................
  12713. Xml.tests.cpp:<line number>: PASSED:
  12714. REQUIRE( encode( "smith < jones" ) == "smith &lt; jones" )
  12715. with expansion:
  12716. "smith &lt; jones" == "smith &lt; jones"
  12717. -------------------------------------------------------------------------------
  12718. XmlEncode
  12719. string with greater-than
  12720. -------------------------------------------------------------------------------
  12721. Xml.tests.cpp:<line number>
  12722. ...............................................................................
  12723. Xml.tests.cpp:<line number>: PASSED:
  12724. REQUIRE( encode( "smith > jones" ) == "smith > jones" )
  12725. with expansion:
  12726. "smith > jones" == "smith > jones"
  12727. Xml.tests.cpp:<line number>: PASSED:
  12728. REQUIRE( encode( "smith ]]> jones" ) == "smith ]]&gt; jones" )
  12729. with expansion:
  12730. "smith ]]&gt; jones"
  12731. ==
  12732. "smith ]]&gt; jones"
  12733. -------------------------------------------------------------------------------
  12734. XmlEncode
  12735. string with quotes
  12736. -------------------------------------------------------------------------------
  12737. Xml.tests.cpp:<line number>
  12738. ...............................................................................
  12739. Xml.tests.cpp:<line number>: PASSED:
  12740. REQUIRE( encode( stringWithQuotes ) == stringWithQuotes )
  12741. with expansion:
  12742. "don't "quote" me on that"
  12743. ==
  12744. "don't "quote" me on that"
  12745. Xml.tests.cpp:<line number>: PASSED:
  12746. REQUIRE( encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't &quot;quote&quot; me on that" )
  12747. with expansion:
  12748. "don't &quot;quote&quot; me on that"
  12749. ==
  12750. "don't &quot;quote&quot; me on that"
  12751. -------------------------------------------------------------------------------
  12752. XmlEncode
  12753. string with control char (1)
  12754. -------------------------------------------------------------------------------
  12755. Xml.tests.cpp:<line number>
  12756. ...............................................................................
  12757. Xml.tests.cpp:<line number>: PASSED:
  12758. REQUIRE( encode( "[\x01]" ) == "[\\x01]" )
  12759. with expansion:
  12760. "[\x01]" == "[\x01]"
  12761. -------------------------------------------------------------------------------
  12762. XmlEncode
  12763. string with control char (x7F)
  12764. -------------------------------------------------------------------------------
  12765. Xml.tests.cpp:<line number>
  12766. ...............................................................................
  12767. Xml.tests.cpp:<line number>: PASSED:
  12768. REQUIRE( encode( "[\x7F]" ) == "[\\x7F]" )
  12769. with expansion:
  12770. "[\x7F]" == "[\x7F]"
  12771. -------------------------------------------------------------------------------
  12772. XmlWriter writes boolean attributes as true/false
  12773. -------------------------------------------------------------------------------
  12774. Xml.tests.cpp:<line number>
  12775. ...............................................................................
  12776. Xml.tests.cpp:<line number>: PASSED:
  12777. REQUIRE_THAT( stream.str(), ContainsSubstring(R"(attr1="true")") && ContainsSubstring(R"(attr2="false")") )
  12778. with expansion:
  12779. "<?xml version="1.0" encoding="UTF-8"?>
  12780. <Element1 attr1="true" attr2="false"/>
  12781. " ( contains: "attr1="true"" and contains: "attr2="false"" )
  12782. -------------------------------------------------------------------------------
  12783. analyse no analysis
  12784. -------------------------------------------------------------------------------
  12785. InternalBenchmark.tests.cpp:<line number>
  12786. ...............................................................................
  12787. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12788. CHECK( analysis.mean.point.count() == 23 )
  12789. with expansion:
  12790. 23.0 == 23
  12791. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12792. CHECK( analysis.mean.lower_bound.count() == 23 )
  12793. with expansion:
  12794. 23.0 == 23
  12795. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12796. CHECK( analysis.mean.upper_bound.count() == 23 )
  12797. with expansion:
  12798. 23.0 == 23
  12799. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12800. CHECK( analysis.standard_deviation.point.count() == 0 )
  12801. with expansion:
  12802. 0.0 == 0
  12803. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12804. CHECK( analysis.standard_deviation.lower_bound.count() == 0 )
  12805. with expansion:
  12806. 0.0 == 0
  12807. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12808. CHECK( analysis.standard_deviation.upper_bound.count() == 0 )
  12809. with expansion:
  12810. 0.0 == 0
  12811. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12812. CHECK( analysis.outliers.total() == 0 )
  12813. with expansion:
  12814. 0 == 0
  12815. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12816. CHECK( analysis.outliers.low_mild == 0 )
  12817. with expansion:
  12818. 0 == 0
  12819. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12820. CHECK( analysis.outliers.low_severe == 0 )
  12821. with expansion:
  12822. 0 == 0
  12823. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12824. CHECK( analysis.outliers.high_mild == 0 )
  12825. with expansion:
  12826. 0 == 0
  12827. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12828. CHECK( analysis.outliers.high_severe == 0 )
  12829. with expansion:
  12830. 0 == 0
  12831. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12832. CHECK( analysis.outliers.samples_seen == 0 )
  12833. with expansion:
  12834. 0 == 0
  12835. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12836. CHECK( analysis.outlier_variance == 0 )
  12837. with expansion:
  12838. 0.0 == 0
  12839. -------------------------------------------------------------------------------
  12840. array<int, N> -> toString
  12841. -------------------------------------------------------------------------------
  12842. ToStringVector.tests.cpp:<line number>
  12843. ...............................................................................
  12844. ToStringVector.tests.cpp:<line number>: PASSED:
  12845. REQUIRE( Catch::Detail::stringify( empty ) == "{ }" )
  12846. with expansion:
  12847. "{ }" == "{ }"
  12848. ToStringVector.tests.cpp:<line number>: PASSED:
  12849. REQUIRE( Catch::Detail::stringify( oneValue ) == "{ 42 }" )
  12850. with expansion:
  12851. "{ 42 }" == "{ 42 }"
  12852. ToStringVector.tests.cpp:<line number>: PASSED:
  12853. REQUIRE( Catch::Detail::stringify( twoValues ) == "{ 42, 250 }" )
  12854. with expansion:
  12855. "{ 42, 250 }" == "{ 42, 250 }"
  12856. -------------------------------------------------------------------------------
  12857. benchmark function call
  12858. without chronometer
  12859. -------------------------------------------------------------------------------
  12860. InternalBenchmark.tests.cpp:<line number>
  12861. ...............................................................................
  12862. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12863. CHECK( model.started == 1 )
  12864. with expansion:
  12865. 1 == 1
  12866. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12867. CHECK( model.finished == 0 )
  12868. with expansion:
  12869. 0 == 0
  12870. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12871. CHECK( model.started == 1 )
  12872. with expansion:
  12873. 1 == 1
  12874. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12875. CHECK( model.finished == 1 )
  12876. with expansion:
  12877. 1 == 1
  12878. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12879. CHECK( called == 1 )
  12880. with expansion:
  12881. 1 == 1
  12882. -------------------------------------------------------------------------------
  12883. benchmark function call
  12884. with chronometer
  12885. -------------------------------------------------------------------------------
  12886. InternalBenchmark.tests.cpp:<line number>
  12887. ...............................................................................
  12888. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12889. CHECK( model.started == 0 )
  12890. with expansion:
  12891. 0 == 0
  12892. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12893. CHECK( model.finished == 0 )
  12894. with expansion:
  12895. 0 == 0
  12896. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12897. CHECK( model.started == 0 )
  12898. with expansion:
  12899. 0 == 0
  12900. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12901. CHECK( model.finished == 0 )
  12902. with expansion:
  12903. 0 == 0
  12904. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12905. CHECK( called == 1 )
  12906. with expansion:
  12907. 1 == 1
  12908. -------------------------------------------------------------------------------
  12909. boolean member
  12910. -------------------------------------------------------------------------------
  12911. Tricky.tests.cpp:<line number>
  12912. ...............................................................................
  12913. Tricky.tests.cpp:<line number>: PASSED:
  12914. REQUIRE( obj.prop != 0 )
  12915. with expansion:
  12916. 0x<hex digits> != 0
  12917. -------------------------------------------------------------------------------
  12918. checkedElse
  12919. -------------------------------------------------------------------------------
  12920. Misc.tests.cpp:<line number>
  12921. ...............................................................................
  12922. Misc.tests.cpp:<line number>: PASSED:
  12923. CHECKED_ELSE( flag )
  12924. with expansion:
  12925. true
  12926. Misc.tests.cpp:<line number>: PASSED:
  12927. REQUIRE( testCheckedElse( true ) )
  12928. with expansion:
  12929. true
  12930. -------------------------------------------------------------------------------
  12931. checkedElse, failing
  12932. -------------------------------------------------------------------------------
  12933. Misc.tests.cpp:<line number>
  12934. ...............................................................................
  12935. Misc.tests.cpp:<line number>: FAILED - but was ok:
  12936. CHECKED_ELSE( flag )
  12937. with expansion:
  12938. false
  12939. Misc.tests.cpp:<line number>: FAILED:
  12940. REQUIRE( testCheckedElse( false ) )
  12941. with expansion:
  12942. false
  12943. -------------------------------------------------------------------------------
  12944. checkedIf
  12945. -------------------------------------------------------------------------------
  12946. Misc.tests.cpp:<line number>
  12947. ...............................................................................
  12948. Misc.tests.cpp:<line number>: PASSED:
  12949. CHECKED_IF( flag )
  12950. with expansion:
  12951. true
  12952. Misc.tests.cpp:<line number>: PASSED:
  12953. REQUIRE( testCheckedIf( true ) )
  12954. with expansion:
  12955. true
  12956. -------------------------------------------------------------------------------
  12957. checkedIf, failing
  12958. -------------------------------------------------------------------------------
  12959. Misc.tests.cpp:<line number>
  12960. ...............................................................................
  12961. Misc.tests.cpp:<line number>: FAILED - but was ok:
  12962. CHECKED_IF( flag )
  12963. with expansion:
  12964. false
  12965. Misc.tests.cpp:<line number>: FAILED:
  12966. REQUIRE( testCheckedIf( false ) )
  12967. with expansion:
  12968. false
  12969. -------------------------------------------------------------------------------
  12970. classify_outliers
  12971. none
  12972. -------------------------------------------------------------------------------
  12973. InternalBenchmark.tests.cpp:<line number>
  12974. ...............................................................................
  12975. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12976. REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
  12977. with expansion:
  12978. 6 == 6
  12979. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12980. REQUIRE( o.low_severe == los )
  12981. with expansion:
  12982. 0 == 0
  12983. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12984. REQUIRE( o.low_mild == lom )
  12985. with expansion:
  12986. 0 == 0
  12987. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12988. REQUIRE( o.high_mild == him )
  12989. with expansion:
  12990. 0 == 0
  12991. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12992. REQUIRE( o.high_severe == his )
  12993. with expansion:
  12994. 0 == 0
  12995. InternalBenchmark.tests.cpp:<line number>: PASSED:
  12996. REQUIRE( o.total() == los + lom + him + his )
  12997. with expansion:
  12998. 0 == 0
  12999. -------------------------------------------------------------------------------
  13000. classify_outliers
  13001. low severe
  13002. -------------------------------------------------------------------------------
  13003. InternalBenchmark.tests.cpp:<line number>
  13004. ...............................................................................
  13005. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13006. REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
  13007. with expansion:
  13008. 6 == 6
  13009. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13010. REQUIRE( o.low_severe == los )
  13011. with expansion:
  13012. 1 == 1
  13013. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13014. REQUIRE( o.low_mild == lom )
  13015. with expansion:
  13016. 0 == 0
  13017. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13018. REQUIRE( o.high_mild == him )
  13019. with expansion:
  13020. 0 == 0
  13021. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13022. REQUIRE( o.high_severe == his )
  13023. with expansion:
  13024. 0 == 0
  13025. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13026. REQUIRE( o.total() == los + lom + him + his )
  13027. with expansion:
  13028. 1 == 1
  13029. -------------------------------------------------------------------------------
  13030. classify_outliers
  13031. low mild
  13032. -------------------------------------------------------------------------------
  13033. InternalBenchmark.tests.cpp:<line number>
  13034. ...............................................................................
  13035. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13036. REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
  13037. with expansion:
  13038. 6 == 6
  13039. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13040. REQUIRE( o.low_severe == los )
  13041. with expansion:
  13042. 0 == 0
  13043. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13044. REQUIRE( o.low_mild == lom )
  13045. with expansion:
  13046. 1 == 1
  13047. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13048. REQUIRE( o.high_mild == him )
  13049. with expansion:
  13050. 0 == 0
  13051. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13052. REQUIRE( o.high_severe == his )
  13053. with expansion:
  13054. 0 == 0
  13055. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13056. REQUIRE( o.total() == los + lom + him + his )
  13057. with expansion:
  13058. 1 == 1
  13059. -------------------------------------------------------------------------------
  13060. classify_outliers
  13061. high mild
  13062. -------------------------------------------------------------------------------
  13063. InternalBenchmark.tests.cpp:<line number>
  13064. ...............................................................................
  13065. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13066. REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
  13067. with expansion:
  13068. 6 == 6
  13069. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13070. REQUIRE( o.low_severe == los )
  13071. with expansion:
  13072. 0 == 0
  13073. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13074. REQUIRE( o.low_mild == lom )
  13075. with expansion:
  13076. 0 == 0
  13077. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13078. REQUIRE( o.high_mild == him )
  13079. with expansion:
  13080. 1 == 1
  13081. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13082. REQUIRE( o.high_severe == his )
  13083. with expansion:
  13084. 0 == 0
  13085. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13086. REQUIRE( o.total() == los + lom + him + his )
  13087. with expansion:
  13088. 1 == 1
  13089. -------------------------------------------------------------------------------
  13090. classify_outliers
  13091. high severe
  13092. -------------------------------------------------------------------------------
  13093. InternalBenchmark.tests.cpp:<line number>
  13094. ...............................................................................
  13095. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13096. REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
  13097. with expansion:
  13098. 6 == 6
  13099. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13100. REQUIRE( o.low_severe == los )
  13101. with expansion:
  13102. 0 == 0
  13103. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13104. REQUIRE( o.low_mild == lom )
  13105. with expansion:
  13106. 0 == 0
  13107. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13108. REQUIRE( o.high_mild == him )
  13109. with expansion:
  13110. 0 == 0
  13111. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13112. REQUIRE( o.high_severe == his )
  13113. with expansion:
  13114. 1 == 1
  13115. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13116. REQUIRE( o.total() == los + lom + him + his )
  13117. with expansion:
  13118. 1 == 1
  13119. -------------------------------------------------------------------------------
  13120. classify_outliers
  13121. mixed
  13122. -------------------------------------------------------------------------------
  13123. InternalBenchmark.tests.cpp:<line number>
  13124. ...............................................................................
  13125. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13126. REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
  13127. with expansion:
  13128. 6 == 6
  13129. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13130. REQUIRE( o.low_severe == los )
  13131. with expansion:
  13132. 1 == 1
  13133. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13134. REQUIRE( o.low_mild == lom )
  13135. with expansion:
  13136. 0 == 0
  13137. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13138. REQUIRE( o.high_mild == him )
  13139. with expansion:
  13140. 1 == 1
  13141. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13142. REQUIRE( o.high_severe == his )
  13143. with expansion:
  13144. 0 == 0
  13145. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13146. REQUIRE( o.total() == los + lom + him + his )
  13147. with expansion:
  13148. 2 == 2
  13149. -------------------------------------------------------------------------------
  13150. comparisons between const int variables
  13151. -------------------------------------------------------------------------------
  13152. Condition.tests.cpp:<line number>
  13153. ...............................................................................
  13154. Condition.tests.cpp:<line number>: PASSED:
  13155. REQUIRE( unsigned_char_var == 1 )
  13156. with expansion:
  13157. 1 == 1
  13158. Condition.tests.cpp:<line number>: PASSED:
  13159. REQUIRE( unsigned_short_var == 1 )
  13160. with expansion:
  13161. 1 == 1
  13162. Condition.tests.cpp:<line number>: PASSED:
  13163. REQUIRE( unsigned_int_var == 1 )
  13164. with expansion:
  13165. 1 == 1
  13166. Condition.tests.cpp:<line number>: PASSED:
  13167. REQUIRE( unsigned_long_var == 1 )
  13168. with expansion:
  13169. 1 == 1
  13170. -------------------------------------------------------------------------------
  13171. comparisons between int variables
  13172. -------------------------------------------------------------------------------
  13173. Condition.tests.cpp:<line number>
  13174. ...............................................................................
  13175. Condition.tests.cpp:<line number>: PASSED:
  13176. REQUIRE( long_var == unsigned_char_var )
  13177. with expansion:
  13178. 1 == 1
  13179. Condition.tests.cpp:<line number>: PASSED:
  13180. REQUIRE( long_var == unsigned_short_var )
  13181. with expansion:
  13182. 1 == 1
  13183. Condition.tests.cpp:<line number>: PASSED:
  13184. REQUIRE( long_var == unsigned_int_var )
  13185. with expansion:
  13186. 1 == 1
  13187. Condition.tests.cpp:<line number>: PASSED:
  13188. REQUIRE( long_var == unsigned_long_var )
  13189. with expansion:
  13190. 1 == 1
  13191. -------------------------------------------------------------------------------
  13192. convertToBits
  13193. -------------------------------------------------------------------------------
  13194. FloatingPoint.tests.cpp:<line number>
  13195. ...............................................................................
  13196. FloatingPoint.tests.cpp:<line number>: PASSED:
  13197. CHECK( convertToBits( 0.f ) == 0 )
  13198. with expansion:
  13199. 0 == 0
  13200. FloatingPoint.tests.cpp:<line number>: PASSED:
  13201. CHECK( convertToBits( -0.f ) == ( 1ULL << 31 ) )
  13202. with expansion:
  13203. 2147483648 (0x<hex digits>)
  13204. ==
  13205. 2147483648 (0x<hex digits>)
  13206. FloatingPoint.tests.cpp:<line number>: PASSED:
  13207. CHECK( convertToBits( 0. ) == 0 )
  13208. with expansion:
  13209. 0 == 0
  13210. FloatingPoint.tests.cpp:<line number>: PASSED:
  13211. CHECK( convertToBits( -0. ) == ( 1ULL << 63 ) )
  13212. with expansion:
  13213. 9223372036854775808 (0x<hex digits>)
  13214. ==
  13215. 9223372036854775808 (0x<hex digits>)
  13216. FloatingPoint.tests.cpp:<line number>: PASSED:
  13217. CHECK( convertToBits( std::numeric_limits<float>::denorm_min() ) == 1 )
  13218. with expansion:
  13219. 1 == 1
  13220. FloatingPoint.tests.cpp:<line number>: PASSED:
  13221. CHECK( convertToBits( std::numeric_limits<double>::denorm_min() ) == 1 )
  13222. with expansion:
  13223. 1 == 1
  13224. -------------------------------------------------------------------------------
  13225. empty tags are not allowed
  13226. -------------------------------------------------------------------------------
  13227. Tag.tests.cpp:<line number>
  13228. ...............................................................................
  13229. Tag.tests.cpp:<line number>: PASSED:
  13230. REQUIRE_THROWS( Catch::TestCaseInfo("", { "test with an empty tag", "[]" }, dummySourceLineInfo) )
  13231. -------------------------------------------------------------------------------
  13232. erfc_inv
  13233. -------------------------------------------------------------------------------
  13234. InternalBenchmark.tests.cpp:<line number>
  13235. ...............................................................................
  13236. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13237. CHECK( erfc_inv(1.103560) == Approx(-0.09203687623843015) )
  13238. with expansion:
  13239. -0.0920368762 == Approx( -0.0920368762 )
  13240. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13241. CHECK( erfc_inv(1.067400) == Approx(-0.05980291115763361) )
  13242. with expansion:
  13243. -0.0598029112 == Approx( -0.0598029112 )
  13244. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13245. CHECK( erfc_inv(0.050000) == Approx(1.38590382434967796) )
  13246. with expansion:
  13247. 1.3859038243 == Approx( 1.3859038243 )
  13248. -------------------------------------------------------------------------------
  13249. estimate_clock_resolution
  13250. -------------------------------------------------------------------------------
  13251. InternalBenchmark.tests.cpp:<line number>
  13252. ...............................................................................
  13253. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13254. REQUIRE( res.mean.count() == rate )
  13255. with expansion:
  13256. 2000.0 == 2000 (0x<hex digits>)
  13257. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13258. REQUIRE( res.outliers.total() == 0 )
  13259. with expansion:
  13260. 0 == 0
  13261. -------------------------------------------------------------------------------
  13262. even more nested SECTION tests
  13263. c
  13264. d (leaf)
  13265. -------------------------------------------------------------------------------
  13266. Misc.tests.cpp:<line number>
  13267. ...............................................................................
  13268. Misc.tests.cpp:<line number>: PASSED:
  13269. -------------------------------------------------------------------------------
  13270. even more nested SECTION tests
  13271. c
  13272. e (leaf)
  13273. -------------------------------------------------------------------------------
  13274. Misc.tests.cpp:<line number>
  13275. ...............................................................................
  13276. Misc.tests.cpp:<line number>: PASSED:
  13277. -------------------------------------------------------------------------------
  13278. even more nested SECTION tests
  13279. f (leaf)
  13280. -------------------------------------------------------------------------------
  13281. Misc.tests.cpp:<line number>
  13282. ...............................................................................
  13283. Misc.tests.cpp:<line number>: PASSED:
  13284. -------------------------------------------------------------------------------
  13285. first tag
  13286. -------------------------------------------------------------------------------
  13287. Misc.tests.cpp:<line number>
  13288. ...............................................................................
  13289. No assertions in test case 'first tag'
  13290. loose text artifact
  13291. -------------------------------------------------------------------------------
  13292. has printf
  13293. -------------------------------------------------------------------------------
  13294. Tricky.tests.cpp:<line number>
  13295. ...............................................................................
  13296. No assertions in test case 'has printf'
  13297. -------------------------------------------------------------------------------
  13298. is_unary_function
  13299. -------------------------------------------------------------------------------
  13300. Clara.tests.cpp:<line number>
  13301. ...............................................................................
  13302. Clara.tests.cpp:<line number>: PASSED:
  13303. with message:
  13304. Catch::Clara::Detail::is_unary_function<decltype(unary1)>::value
  13305. Clara.tests.cpp:<line number>: PASSED:
  13306. with message:
  13307. Catch::Clara::Detail::is_unary_function<decltype(unary2)>::value
  13308. Clara.tests.cpp:<line number>: PASSED:
  13309. with message:
  13310. Catch::Clara::Detail::is_unary_function<decltype(unary3)>::value
  13311. Clara.tests.cpp:<line number>: PASSED:
  13312. with message:
  13313. Catch::Clara::Detail::is_unary_function<decltype(unary4)>::value
  13314. Clara.tests.cpp:<line number>: PASSED:
  13315. with message:
  13316. Catch::Clara::Detail::is_unary_function<decltype(unary5)>::value
  13317. Clara.tests.cpp:<line number>: PASSED:
  13318. with message:
  13319. Catch::Clara::Detail::is_unary_function<decltype(unary6)>::value
  13320. Clara.tests.cpp:<line number>: PASSED:
  13321. with message:
  13322. !(Catch::Clara::Detail::is_unary_function<decltype(binary1)>::value)
  13323. Clara.tests.cpp:<line number>: PASSED:
  13324. with message:
  13325. !(Catch::Clara::Detail::is_unary_function<decltype(binary2)>::value)
  13326. Clara.tests.cpp:<line number>: PASSED:
  13327. with message:
  13328. !(Catch::Clara::Detail::is_unary_function<decltype(nullary1)>::value)
  13329. Clara.tests.cpp:<line number>: PASSED:
  13330. with message:
  13331. !(Catch::Clara::Detail::is_unary_function<decltype(nullary2)>::value)
  13332. Clara.tests.cpp:<line number>: PASSED:
  13333. with message:
  13334. !(Catch::Clara::Detail::is_unary_function<int>::value)
  13335. Clara.tests.cpp:<line number>: PASSED:
  13336. with message:
  13337. !(Catch::Clara::Detail::is_unary_function<std::string const&>::value)
  13338. -------------------------------------------------------------------------------
  13339. just failure
  13340. -------------------------------------------------------------------------------
  13341. Message.tests.cpp:<line number>
  13342. ...............................................................................
  13343. Message.tests.cpp:<line number>: FAILED:
  13344. explicitly with message:
  13345. Previous info should not be seen
  13346. -------------------------------------------------------------------------------
  13347. just failure after unscoped info
  13348. -------------------------------------------------------------------------------
  13349. Message.tests.cpp:<line number>
  13350. ...............................................................................
  13351. Message.tests.cpp:<line number>: FAILED:
  13352. explicitly with message:
  13353. previous unscoped info SHOULD not be seen
  13354. -------------------------------------------------------------------------------
  13355. just info
  13356. -------------------------------------------------------------------------------
  13357. Message.tests.cpp:<line number>
  13358. ...............................................................................
  13359. No assertions in test case 'just info'
  13360. -------------------------------------------------------------------------------
  13361. just unscoped info
  13362. -------------------------------------------------------------------------------
  13363. Message.tests.cpp:<line number>
  13364. ...............................................................................
  13365. No assertions in test case 'just unscoped info'
  13366. -------------------------------------------------------------------------------
  13367. long long
  13368. -------------------------------------------------------------------------------
  13369. Misc.tests.cpp:<line number>
  13370. ...............................................................................
  13371. Misc.tests.cpp:<line number>: PASSED:
  13372. REQUIRE( l == std::numeric_limits<long long>::max() )
  13373. with expansion:
  13374. 9223372036854775807 (0x<hex digits>)
  13375. ==
  13376. 9223372036854775807 (0x<hex digits>)
  13377. -------------------------------------------------------------------------------
  13378. looped SECTION tests
  13379. b is currently: 0
  13380. -------------------------------------------------------------------------------
  13381. Misc.tests.cpp:<line number>
  13382. ...............................................................................
  13383. Misc.tests.cpp:<line number>: FAILED:
  13384. CHECK( b > a )
  13385. with expansion:
  13386. 0 > 1
  13387. -------------------------------------------------------------------------------
  13388. looped SECTION tests
  13389. b is currently: 1
  13390. -------------------------------------------------------------------------------
  13391. Misc.tests.cpp:<line number>
  13392. ...............................................................................
  13393. Misc.tests.cpp:<line number>: FAILED:
  13394. CHECK( b > a )
  13395. with expansion:
  13396. 1 > 1
  13397. -------------------------------------------------------------------------------
  13398. looped SECTION tests
  13399. b is currently: 2
  13400. -------------------------------------------------------------------------------
  13401. Misc.tests.cpp:<line number>
  13402. ...............................................................................
  13403. Misc.tests.cpp:<line number>: PASSED:
  13404. CHECK( b > a )
  13405. with expansion:
  13406. 2 > 1
  13407. -------------------------------------------------------------------------------
  13408. looped SECTION tests
  13409. b is currently: 3
  13410. -------------------------------------------------------------------------------
  13411. Misc.tests.cpp:<line number>
  13412. ...............................................................................
  13413. Misc.tests.cpp:<line number>: PASSED:
  13414. CHECK( b > a )
  13415. with expansion:
  13416. 3 > 1
  13417. -------------------------------------------------------------------------------
  13418. looped SECTION tests
  13419. b is currently: 4
  13420. -------------------------------------------------------------------------------
  13421. Misc.tests.cpp:<line number>
  13422. ...............................................................................
  13423. Misc.tests.cpp:<line number>: PASSED:
  13424. CHECK( b > a )
  13425. with expansion:
  13426. 4 > 1
  13427. -------------------------------------------------------------------------------
  13428. looped SECTION tests
  13429. b is currently: 5
  13430. -------------------------------------------------------------------------------
  13431. Misc.tests.cpp:<line number>
  13432. ...............................................................................
  13433. Misc.tests.cpp:<line number>: PASSED:
  13434. CHECK( b > a )
  13435. with expansion:
  13436. 5 > 1
  13437. -------------------------------------------------------------------------------
  13438. looped SECTION tests
  13439. b is currently: 6
  13440. -------------------------------------------------------------------------------
  13441. Misc.tests.cpp:<line number>
  13442. ...............................................................................
  13443. Misc.tests.cpp:<line number>: PASSED:
  13444. CHECK( b > a )
  13445. with expansion:
  13446. 6 > 1
  13447. -------------------------------------------------------------------------------
  13448. looped SECTION tests
  13449. b is currently: 7
  13450. -------------------------------------------------------------------------------
  13451. Misc.tests.cpp:<line number>
  13452. ...............................................................................
  13453. Misc.tests.cpp:<line number>: PASSED:
  13454. CHECK( b > a )
  13455. with expansion:
  13456. 7 > 1
  13457. -------------------------------------------------------------------------------
  13458. looped SECTION tests
  13459. b is currently: 8
  13460. -------------------------------------------------------------------------------
  13461. Misc.tests.cpp:<line number>
  13462. ...............................................................................
  13463. Misc.tests.cpp:<line number>: PASSED:
  13464. CHECK( b > a )
  13465. with expansion:
  13466. 8 > 1
  13467. -------------------------------------------------------------------------------
  13468. looped SECTION tests
  13469. b is currently: 9
  13470. -------------------------------------------------------------------------------
  13471. Misc.tests.cpp:<line number>
  13472. ...............................................................................
  13473. Misc.tests.cpp:<line number>: PASSED:
  13474. CHECK( b > a )
  13475. with expansion:
  13476. 9 > 1
  13477. -------------------------------------------------------------------------------
  13478. looped tests
  13479. -------------------------------------------------------------------------------
  13480. Misc.tests.cpp:<line number>
  13481. ...............................................................................
  13482. Misc.tests.cpp:<line number>: FAILED:
  13483. CHECK( ( fib[i] % 2 ) == 0 )
  13484. with expansion:
  13485. 1 == 0
  13486. with message:
  13487. Testing if fib[0] (1) is even
  13488. Misc.tests.cpp:<line number>: FAILED:
  13489. CHECK( ( fib[i] % 2 ) == 0 )
  13490. with expansion:
  13491. 1 == 0
  13492. with message:
  13493. Testing if fib[1] (1) is even
  13494. Misc.tests.cpp:<line number>: PASSED:
  13495. CHECK( ( fib[i] % 2 ) == 0 )
  13496. with expansion:
  13497. 0 == 0
  13498. with message:
  13499. Testing if fib[2] (2) is even
  13500. Misc.tests.cpp:<line number>: FAILED:
  13501. CHECK( ( fib[i] % 2 ) == 0 )
  13502. with expansion:
  13503. 1 == 0
  13504. with message:
  13505. Testing if fib[3] (3) is even
  13506. Misc.tests.cpp:<line number>: FAILED:
  13507. CHECK( ( fib[i] % 2 ) == 0 )
  13508. with expansion:
  13509. 1 == 0
  13510. with message:
  13511. Testing if fib[4] (5) is even
  13512. Misc.tests.cpp:<line number>: PASSED:
  13513. CHECK( ( fib[i] % 2 ) == 0 )
  13514. with expansion:
  13515. 0 == 0
  13516. with message:
  13517. Testing if fib[5] (8) is even
  13518. Misc.tests.cpp:<line number>: FAILED:
  13519. CHECK( ( fib[i] % 2 ) == 0 )
  13520. with expansion:
  13521. 1 == 0
  13522. with message:
  13523. Testing if fib[6] (13) is even
  13524. Misc.tests.cpp:<line number>: FAILED:
  13525. CHECK( ( fib[i] % 2 ) == 0 )
  13526. with expansion:
  13527. 1 == 0
  13528. with message:
  13529. Testing if fib[7] (21) is even
  13530. -------------------------------------------------------------------------------
  13531. makeStream recognizes %debug stream name
  13532. -------------------------------------------------------------------------------
  13533. Stream.tests.cpp:<line number>
  13534. ...............................................................................
  13535. Stream.tests.cpp:<line number>: PASSED:
  13536. REQUIRE_NOTHROW( Catch::makeStream( "%debug" ) )
  13537. -------------------------------------------------------------------------------
  13538. make_unique reimplementation
  13539. From lvalue copies
  13540. -------------------------------------------------------------------------------
  13541. UniquePtr.tests.cpp:<line number>
  13542. ...............................................................................
  13543. UniquePtr.tests.cpp:<line number>: PASSED:
  13544. REQUIRE_FALSE( lval.has_moved )
  13545. with expansion:
  13546. !false
  13547. -------------------------------------------------------------------------------
  13548. make_unique reimplementation
  13549. From rvalue moves
  13550. -------------------------------------------------------------------------------
  13551. UniquePtr.tests.cpp:<line number>
  13552. ...............................................................................
  13553. UniquePtr.tests.cpp:<line number>: PASSED:
  13554. REQUIRE( rval.has_moved )
  13555. with expansion:
  13556. true
  13557. -------------------------------------------------------------------------------
  13558. make_unique reimplementation
  13559. Variadic constructor
  13560. -------------------------------------------------------------------------------
  13561. UniquePtr.tests.cpp:<line number>
  13562. ...............................................................................
  13563. UniquePtr.tests.cpp:<line number>: PASSED:
  13564. REQUIRE( *ptr == std::tuple<int, double, int>{1, 2., 3} )
  13565. with expansion:
  13566. {?} == {?}
  13567. -------------------------------------------------------------------------------
  13568. mean
  13569. -------------------------------------------------------------------------------
  13570. InternalBenchmark.tests.cpp:<line number>
  13571. ...............................................................................
  13572. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13573. REQUIRE( m == 19. )
  13574. with expansion:
  13575. 19.0 == 19.0
  13576. -------------------------------------------------------------------------------
  13577. measure
  13578. -------------------------------------------------------------------------------
  13579. InternalBenchmark.tests.cpp:<line number>
  13580. ...............................................................................
  13581. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13582. CHECK( x == 17 )
  13583. with expansion:
  13584. 17 == 17
  13585. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13586. CHECK( x == 23 )
  13587. with expansion:
  13588. 23 == 23
  13589. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13590. CHECK( r.elapsed.count() == 42 )
  13591. with expansion:
  13592. 42 == 42
  13593. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13594. CHECK( r.result == 23 )
  13595. with expansion:
  13596. 23 == 23
  13597. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13598. CHECK( r.iterations == 1 )
  13599. with expansion:
  13600. 1 == 1
  13601. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13602. CHECK( s.elapsed.count() == 69 )
  13603. with expansion:
  13604. 69 == 69
  13605. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13606. CHECK( s.result == 17 )
  13607. with expansion:
  13608. 17 == 17
  13609. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13610. CHECK( s.iterations == 1 )
  13611. with expansion:
  13612. 1 == 1
  13613. -------------------------------------------------------------------------------
  13614. mix info, unscoped info and warning
  13615. -------------------------------------------------------------------------------
  13616. Message.tests.cpp:<line number>
  13617. ...............................................................................
  13618. Message.tests.cpp:<line number>: warning:
  13619. info
  13620. unscoped info
  13621. and warn may mix
  13622. Message.tests.cpp:<line number>: warning:
  13623. info
  13624. unscoped info
  13625. they are not cleared after warnings
  13626. No assertions in test case 'mix info, unscoped info and warning'
  13627. -------------------------------------------------------------------------------
  13628. more nested SECTION tests
  13629. doesn't equal
  13630. equal
  13631. -------------------------------------------------------------------------------
  13632. Misc.tests.cpp:<line number>
  13633. ...............................................................................
  13634. Misc.tests.cpp:<line number>: FAILED:
  13635. REQUIRE( a == b )
  13636. with expansion:
  13637. 1 == 2
  13638. -------------------------------------------------------------------------------
  13639. more nested SECTION tests
  13640. doesn't equal
  13641. not equal
  13642. -------------------------------------------------------------------------------
  13643. Misc.tests.cpp:<line number>
  13644. ...............................................................................
  13645. Misc.tests.cpp:<line number>: PASSED:
  13646. REQUIRE( a != b )
  13647. with expansion:
  13648. 1 != 2
  13649. -------------------------------------------------------------------------------
  13650. more nested SECTION tests
  13651. doesn't equal
  13652. less than
  13653. -------------------------------------------------------------------------------
  13654. Misc.tests.cpp:<line number>
  13655. ...............................................................................
  13656. Misc.tests.cpp:<line number>: PASSED:
  13657. REQUIRE( a < b )
  13658. with expansion:
  13659. 1 < 2
  13660. -------------------------------------------------------------------------------
  13661. nested SECTION tests
  13662. doesn't equal
  13663. -------------------------------------------------------------------------------
  13664. Misc.tests.cpp:<line number>
  13665. ...............................................................................
  13666. Misc.tests.cpp:<line number>: PASSED:
  13667. REQUIRE( a != b )
  13668. with expansion:
  13669. 1 != 2
  13670. Misc.tests.cpp:<line number>: PASSED:
  13671. REQUIRE( b != a )
  13672. with expansion:
  13673. 2 != 1
  13674. -------------------------------------------------------------------------------
  13675. nested SECTION tests
  13676. doesn't equal
  13677. not equal
  13678. -------------------------------------------------------------------------------
  13679. Misc.tests.cpp:<line number>
  13680. ...............................................................................
  13681. Misc.tests.cpp:<line number>: PASSED:
  13682. REQUIRE( a != b )
  13683. with expansion:
  13684. 1 != 2
  13685. -------------------------------------------------------------------------------
  13686. non streamable - with conv. op
  13687. -------------------------------------------------------------------------------
  13688. Tricky.tests.cpp:<line number>
  13689. ...............................................................................
  13690. Tricky.tests.cpp:<line number>: PASSED:
  13691. REQUIRE( s == "7" )
  13692. with expansion:
  13693. "7" == "7"
  13694. -------------------------------------------------------------------------------
  13695. non-copyable objects
  13696. -------------------------------------------------------------------------------
  13697. Tricky.tests.cpp:<line number>
  13698. ...............................................................................
  13699. Tricky.tests.cpp:<line number>: PASSED:
  13700. CHECK( ti == typeid(int) )
  13701. with expansion:
  13702. {?} == {?}
  13703. -------------------------------------------------------------------------------
  13704. normal_cdf
  13705. -------------------------------------------------------------------------------
  13706. InternalBenchmark.tests.cpp:<line number>
  13707. ...............................................................................
  13708. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13709. CHECK( normal_cdf(0.000000) == Approx(0.50000000000000000) )
  13710. with expansion:
  13711. 0.5 == Approx( 0.5 )
  13712. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13713. CHECK( normal_cdf(1.000000) == Approx(0.84134474606854293) )
  13714. with expansion:
  13715. 0.8413447461 == Approx( 0.8413447461 )
  13716. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13717. CHECK( normal_cdf(-1.000000) == Approx(0.15865525393145705) )
  13718. with expansion:
  13719. 0.1586552539 == Approx( 0.1586552539 )
  13720. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13721. CHECK( normal_cdf(2.809729) == Approx(0.99752083845315409) )
  13722. with expansion:
  13723. 0.9975208385 == Approx( 0.9975208385 )
  13724. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13725. CHECK( normal_cdf(-1.352570) == Approx(0.08809652095066035) )
  13726. with expansion:
  13727. 0.088096521 == Approx( 0.088096521 )
  13728. -------------------------------------------------------------------------------
  13729. normal_quantile
  13730. -------------------------------------------------------------------------------
  13731. InternalBenchmark.tests.cpp:<line number>
  13732. ...............................................................................
  13733. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13734. CHECK( normal_quantile(0.551780) == Approx(0.13015979861484198) )
  13735. with expansion:
  13736. 0.1301597986 == Approx( 0.1301597986 )
  13737. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13738. CHECK( normal_quantile(0.533700) == Approx(0.08457408802851875) )
  13739. with expansion:
  13740. 0.084574088 == Approx( 0.084574088 )
  13741. InternalBenchmark.tests.cpp:<line number>: PASSED:
  13742. CHECK( normal_quantile(0.025000) == Approx(-1.95996398454005449) )
  13743. with expansion:
  13744. -1.9599639845 == Approx( -1.9599639845 )
  13745. -------------------------------------------------------------------------------
  13746. not allowed
  13747. -------------------------------------------------------------------------------
  13748. Misc.tests.cpp:<line number>
  13749. ...............................................................................
  13750. Misc.tests.cpp:<line number>: PASSED:
  13751. -------------------------------------------------------------------------------
  13752. not prints unscoped info from previous failures
  13753. -------------------------------------------------------------------------------
  13754. Message.tests.cpp:<line number>
  13755. ...............................................................................
  13756. Message.tests.cpp:<line number>: PASSED:
  13757. REQUIRE( true )
  13758. with message:
  13759. this MAY be seen only for the FIRST assertion IF info is printed for passing
  13760. assertions
  13761. Message.tests.cpp:<line number>: PASSED:
  13762. REQUIRE( true )
  13763. with message:
  13764. this MAY be seen only for the SECOND assertion IF info is printed for passing
  13765. assertions
  13766. Message.tests.cpp:<line number>: FAILED:
  13767. REQUIRE( false )
  13768. with message:
  13769. this SHOULD be seen
  13770. -------------------------------------------------------------------------------
  13771. null strings
  13772. -------------------------------------------------------------------------------
  13773. Misc.tests.cpp:<line number>
  13774. ...............................................................................
  13775. Misc.tests.cpp:<line number>: PASSED:
  13776. REQUIRE( makeString( false ) != static_cast<char*>(0) )
  13777. with expansion:
  13778. "valid string" != {null string}
  13779. Misc.tests.cpp:<line number>: PASSED:
  13780. REQUIRE( makeString( true ) == static_cast<char*>(0) )
  13781. with expansion:
  13782. {null string} == {null string}
  13783. -------------------------------------------------------------------------------
  13784. null_ptr
  13785. -------------------------------------------------------------------------------
  13786. Tricky.tests.cpp:<line number>
  13787. ...............................................................................
  13788. Tricky.tests.cpp:<line number>: PASSED:
  13789. REQUIRE( ptr.get() == 0 )
  13790. with expansion:
  13791. 0 == 0
  13792. -------------------------------------------------------------------------------
  13793. pair<pair<int,const char *,pair<std::string,int> > -> toString
  13794. -------------------------------------------------------------------------------
  13795. ToStringPair.tests.cpp:<line number>
  13796. ...............................................................................
  13797. ToStringPair.tests.cpp:<line number>: PASSED:
  13798. REQUIRE( ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" )
  13799. with expansion:
  13800. "{ { 42, "Arthur" }, { "Ford", 24 } }"
  13801. ==
  13802. "{ { 42, "Arthur" }, { "Ford", 24 } }"
  13803. -------------------------------------------------------------------------------
  13804. parseEnums
  13805. No enums
  13806. -------------------------------------------------------------------------------
  13807. ToString.tests.cpp:<line number>
  13808. ...............................................................................
  13809. ToString.tests.cpp:<line number>: PASSED:
  13810. CHECK_THAT( parseEnums( "" ), Equals( std::vector<Catch::StringRef>{} ) )
  13811. with expansion:
  13812. { } Equals: { }
  13813. -------------------------------------------------------------------------------
  13814. parseEnums
  13815. One enum value
  13816. -------------------------------------------------------------------------------
  13817. ToString.tests.cpp:<line number>
  13818. ...............................................................................
  13819. ToString.tests.cpp:<line number>: PASSED:
  13820. CHECK_THAT( parseEnums( "ClassName::EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) )
  13821. with expansion:
  13822. { Value1 } Equals: { Value1 }
  13823. ToString.tests.cpp:<line number>: PASSED:
  13824. CHECK_THAT( parseEnums( "Value1" ), Equals( std::vector<Catch::StringRef>{"Value1"} ) )
  13825. with expansion:
  13826. { Value1 } Equals: { Value1 }
  13827. ToString.tests.cpp:<line number>: PASSED:
  13828. CHECK_THAT( parseEnums( "EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) )
  13829. with expansion:
  13830. { Value1 } Equals: { Value1 }
  13831. -------------------------------------------------------------------------------
  13832. parseEnums
  13833. Multiple enum values
  13834. -------------------------------------------------------------------------------
  13835. ToString.tests.cpp:<line number>
  13836. ...............................................................................
  13837. ToString.tests.cpp:<line number>: PASSED:
  13838. CHECK_THAT( parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2"} ) )
  13839. with expansion:
  13840. { Value1, Value2 } Equals: { Value1, Value2 }
  13841. ToString.tests.cpp:<line number>: PASSED:
  13842. CHECK_THAT( parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2, ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) )
  13843. with expansion:
  13844. { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
  13845. ToString.tests.cpp:<line number>: PASSED:
  13846. CHECK_THAT( parseEnums( "ClassName::EnumName::Value1,ClassName::EnumName::Value2 , ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) )
  13847. with expansion:
  13848. { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
  13849. -------------------------------------------------------------------------------
  13850. pointer to class
  13851. -------------------------------------------------------------------------------
  13852. Tricky.tests.cpp:<line number>
  13853. ...............................................................................
  13854. Tricky.tests.cpp:<line number>: PASSED:
  13855. REQUIRE( p == 0 )
  13856. with expansion:
  13857. 0 == 0
  13858. -------------------------------------------------------------------------------
  13859. print unscoped info if passing unscoped info is printed
  13860. -------------------------------------------------------------------------------
  13861. Message.tests.cpp:<line number>
  13862. ...............................................................................
  13863. Message.tests.cpp:<line number>: PASSED:
  13864. REQUIRE( true )
  13865. with message:
  13866. this MAY be seen IF info is printed for passing assertions
  13867. -------------------------------------------------------------------------------
  13868. prints unscoped info on failure
  13869. -------------------------------------------------------------------------------
  13870. Message.tests.cpp:<line number>
  13871. ...............................................................................
  13872. Message.tests.cpp:<line number>: FAILED:
  13873. REQUIRE( false )
  13874. with messages:
  13875. this SHOULD be seen
  13876. this SHOULD also be seen
  13877. -------------------------------------------------------------------------------
  13878. prints unscoped info only for the first assertion
  13879. -------------------------------------------------------------------------------
  13880. Message.tests.cpp:<line number>
  13881. ...............................................................................
  13882. Message.tests.cpp:<line number>: FAILED:
  13883. CHECK( false )
  13884. with message:
  13885. this SHOULD be seen only ONCE
  13886. Message.tests.cpp:<line number>: PASSED:
  13887. CHECK( true )
  13888. Message.tests.cpp:<line number>: PASSED:
  13889. CHECK( true )
  13890. with message:
  13891. this MAY also be seen only ONCE IF info is printed for passing assertions
  13892. Message.tests.cpp:<line number>: PASSED:
  13893. CHECK( true )
  13894. -------------------------------------------------------------------------------
  13895. random SECTION tests
  13896. doesn't equal
  13897. -------------------------------------------------------------------------------
  13898. Misc.tests.cpp:<line number>
  13899. ...............................................................................
  13900. Misc.tests.cpp:<line number>: PASSED:
  13901. REQUIRE( a != b )
  13902. with expansion:
  13903. 1 != 2
  13904. Misc.tests.cpp:<line number>: PASSED:
  13905. REQUIRE( b != a )
  13906. with expansion:
  13907. 2 != 1
  13908. -------------------------------------------------------------------------------
  13909. random SECTION tests
  13910. not equal
  13911. -------------------------------------------------------------------------------
  13912. Misc.tests.cpp:<line number>
  13913. ...............................................................................
  13914. Misc.tests.cpp:<line number>: PASSED:
  13915. REQUIRE( a != b )
  13916. with expansion:
  13917. 1 != 2
  13918. -------------------------------------------------------------------------------
  13919. replaceInPlace
  13920. replace single char
  13921. -------------------------------------------------------------------------------
  13922. StringManip.tests.cpp:<line number>
  13923. ...............................................................................
  13924. StringManip.tests.cpp:<line number>: PASSED:
  13925. CHECK( Catch::replaceInPlace(letters, "b", "z") )
  13926. with expansion:
  13927. true
  13928. StringManip.tests.cpp:<line number>: PASSED:
  13929. CHECK( letters == "azcdefcg" )
  13930. with expansion:
  13931. "azcdefcg" == "azcdefcg"
  13932. -------------------------------------------------------------------------------
  13933. replaceInPlace
  13934. replace two chars
  13935. -------------------------------------------------------------------------------
  13936. StringManip.tests.cpp:<line number>
  13937. ...............................................................................
  13938. StringManip.tests.cpp:<line number>: PASSED:
  13939. CHECK( Catch::replaceInPlace(letters, "c", "z") )
  13940. with expansion:
  13941. true
  13942. StringManip.tests.cpp:<line number>: PASSED:
  13943. CHECK( letters == "abzdefzg" )
  13944. with expansion:
  13945. "abzdefzg" == "abzdefzg"
  13946. -------------------------------------------------------------------------------
  13947. replaceInPlace
  13948. replace first char
  13949. -------------------------------------------------------------------------------
  13950. StringManip.tests.cpp:<line number>
  13951. ...............................................................................
  13952. StringManip.tests.cpp:<line number>: PASSED:
  13953. CHECK( Catch::replaceInPlace(letters, "a", "z") )
  13954. with expansion:
  13955. true
  13956. StringManip.tests.cpp:<line number>: PASSED:
  13957. CHECK( letters == "zbcdefcg" )
  13958. with expansion:
  13959. "zbcdefcg" == "zbcdefcg"
  13960. -------------------------------------------------------------------------------
  13961. replaceInPlace
  13962. replace last char
  13963. -------------------------------------------------------------------------------
  13964. StringManip.tests.cpp:<line number>
  13965. ...............................................................................
  13966. StringManip.tests.cpp:<line number>: PASSED:
  13967. CHECK( Catch::replaceInPlace(letters, "g", "z") )
  13968. with expansion:
  13969. true
  13970. StringManip.tests.cpp:<line number>: PASSED:
  13971. CHECK( letters == "abcdefcz" )
  13972. with expansion:
  13973. "abcdefcz" == "abcdefcz"
  13974. -------------------------------------------------------------------------------
  13975. replaceInPlace
  13976. replace all chars
  13977. -------------------------------------------------------------------------------
  13978. StringManip.tests.cpp:<line number>
  13979. ...............................................................................
  13980. StringManip.tests.cpp:<line number>: PASSED:
  13981. CHECK( Catch::replaceInPlace(letters, letters, "replaced") )
  13982. with expansion:
  13983. true
  13984. StringManip.tests.cpp:<line number>: PASSED:
  13985. CHECK( letters == "replaced" )
  13986. with expansion:
  13987. "replaced" == "replaced"
  13988. -------------------------------------------------------------------------------
  13989. replaceInPlace
  13990. replace no chars
  13991. -------------------------------------------------------------------------------
  13992. StringManip.tests.cpp:<line number>
  13993. ...............................................................................
  13994. StringManip.tests.cpp:<line number>: PASSED:
  13995. CHECK_FALSE( Catch::replaceInPlace(letters, "x", "z") )
  13996. with expansion:
  13997. !false
  13998. StringManip.tests.cpp:<line number>: PASSED:
  13999. CHECK( letters == letters )
  14000. with expansion:
  14001. "abcdefcg" == "abcdefcg"
  14002. -------------------------------------------------------------------------------
  14003. replaceInPlace
  14004. escape '
  14005. -------------------------------------------------------------------------------
  14006. StringManip.tests.cpp:<line number>
  14007. ...............................................................................
  14008. StringManip.tests.cpp:<line number>: PASSED:
  14009. CHECK( Catch::replaceInPlace(s, "'", "|'") )
  14010. with expansion:
  14011. true
  14012. StringManip.tests.cpp:<line number>: PASSED:
  14013. CHECK( s == "didn|'t" )
  14014. with expansion:
  14015. "didn|'t" == "didn|'t"
  14016. -------------------------------------------------------------------------------
  14017. request an unknown %-starting stream fails
  14018. -------------------------------------------------------------------------------
  14019. Stream.tests.cpp:<line number>
  14020. ...............................................................................
  14021. Stream.tests.cpp:<line number>: PASSED:
  14022. REQUIRE_THROWS( Catch::makeStream( "%somestream" ) )
  14023. -------------------------------------------------------------------------------
  14024. resolution
  14025. -------------------------------------------------------------------------------
  14026. InternalBenchmark.tests.cpp:<line number>
  14027. ...............................................................................
  14028. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14029. REQUIRE( res.size() == count )
  14030. with expansion:
  14031. 10 == 10
  14032. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14033. REQUIRE( res[i] == rate )
  14034. with expansion:
  14035. 1000.0 == 1000 (0x<hex digits>)
  14036. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14037. REQUIRE( res[i] == rate )
  14038. with expansion:
  14039. 1000.0 == 1000 (0x<hex digits>)
  14040. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14041. REQUIRE( res[i] == rate )
  14042. with expansion:
  14043. 1000.0 == 1000 (0x<hex digits>)
  14044. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14045. REQUIRE( res[i] == rate )
  14046. with expansion:
  14047. 1000.0 == 1000 (0x<hex digits>)
  14048. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14049. REQUIRE( res[i] == rate )
  14050. with expansion:
  14051. 1000.0 == 1000 (0x<hex digits>)
  14052. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14053. REQUIRE( res[i] == rate )
  14054. with expansion:
  14055. 1000.0 == 1000 (0x<hex digits>)
  14056. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14057. REQUIRE( res[i] == rate )
  14058. with expansion:
  14059. 1000.0 == 1000 (0x<hex digits>)
  14060. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14061. REQUIRE( res[i] == rate )
  14062. with expansion:
  14063. 1000.0 == 1000 (0x<hex digits>)
  14064. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14065. REQUIRE( res[i] == rate )
  14066. with expansion:
  14067. 1000.0 == 1000 (0x<hex digits>)
  14068. -------------------------------------------------------------------------------
  14069. run_for_at_least, chronometer
  14070. -------------------------------------------------------------------------------
  14071. InternalBenchmark.tests.cpp:<line number>
  14072. ...............................................................................
  14073. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14074. CHECK( meter.runs() >= old_runs )
  14075. with expansion:
  14076. 1 >= 1
  14077. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14078. CHECK( meter.runs() >= old_runs )
  14079. with expansion:
  14080. 2 >= 1
  14081. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14082. CHECK( meter.runs() >= old_runs )
  14083. with expansion:
  14084. 4 >= 2
  14085. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14086. CHECK( meter.runs() >= old_runs )
  14087. with expansion:
  14088. 8 >= 4
  14089. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14090. CHECK( meter.runs() >= old_runs )
  14091. with expansion:
  14092. 16 >= 8
  14093. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14094. CHECK( meter.runs() >= old_runs )
  14095. with expansion:
  14096. 32 >= 16
  14097. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14098. CHECK( meter.runs() >= old_runs )
  14099. with expansion:
  14100. 64 >= 32
  14101. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14102. CHECK( meter.runs() >= old_runs )
  14103. with expansion:
  14104. 128 >= 64
  14105. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14106. REQUIRE( Timing.elapsed >= time )
  14107. with expansion:
  14108. 128 ns >= 100 ns
  14109. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14110. REQUIRE( Timing.result == Timing.iterations + 17 )
  14111. with expansion:
  14112. 145 == 145
  14113. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14114. REQUIRE( Timing.iterations >= time.count() )
  14115. with expansion:
  14116. 128 >= 100
  14117. -------------------------------------------------------------------------------
  14118. run_for_at_least, int
  14119. -------------------------------------------------------------------------------
  14120. InternalBenchmark.tests.cpp:<line number>
  14121. ...............................................................................
  14122. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14123. CHECK( x >= old_x )
  14124. with expansion:
  14125. 1 >= 1
  14126. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14127. CHECK( x >= old_x )
  14128. with expansion:
  14129. 2 >= 1
  14130. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14131. CHECK( x >= old_x )
  14132. with expansion:
  14133. 4 >= 2
  14134. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14135. CHECK( x >= old_x )
  14136. with expansion:
  14137. 8 >= 4
  14138. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14139. CHECK( x >= old_x )
  14140. with expansion:
  14141. 16 >= 8
  14142. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14143. CHECK( x >= old_x )
  14144. with expansion:
  14145. 32 >= 16
  14146. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14147. CHECK( x >= old_x )
  14148. with expansion:
  14149. 64 >= 32
  14150. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14151. CHECK( x >= old_x )
  14152. with expansion:
  14153. 128 >= 64
  14154. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14155. REQUIRE( Timing.elapsed >= time )
  14156. with expansion:
  14157. 128 ns >= 100 ns
  14158. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14159. REQUIRE( Timing.result == Timing.iterations + 17 )
  14160. with expansion:
  14161. 145 == 145
  14162. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14163. REQUIRE( Timing.iterations >= time.count() )
  14164. with expansion:
  14165. 128 >= 100
  14166. -------------------------------------------------------------------------------
  14167. second tag
  14168. -------------------------------------------------------------------------------
  14169. Misc.tests.cpp:<line number>
  14170. ...............................................................................
  14171. No assertions in test case 'second tag'
  14172. -------------------------------------------------------------------------------
  14173. send a single char to INFO
  14174. -------------------------------------------------------------------------------
  14175. Misc.tests.cpp:<line number>
  14176. ...............................................................................
  14177. Misc.tests.cpp:<line number>: FAILED:
  14178. REQUIRE( false )
  14179. with message:
  14180. 3
  14181. -------------------------------------------------------------------------------
  14182. sends information to INFO
  14183. -------------------------------------------------------------------------------
  14184. Message.tests.cpp:<line number>
  14185. ...............................................................................
  14186. Message.tests.cpp:<line number>: FAILED:
  14187. REQUIRE( false )
  14188. with messages:
  14189. hi
  14190. i := 7
  14191. -------------------------------------------------------------------------------
  14192. shortened hide tags are split apart
  14193. -------------------------------------------------------------------------------
  14194. Tag.tests.cpp:<line number>
  14195. ...............................................................................
  14196. Tag.tests.cpp:<line number>: PASSED:
  14197. REQUIRE_THAT( testcase.tags, VectorContains( Tag( "magic-tag" ) ) && VectorContains( Tag( "."_catch_sr ) ) )
  14198. with expansion:
  14199. { {?}, {?} } ( Contains: {?} and Contains: {?} )
  14200. -------------------------------------------------------------------------------
  14201. splitString
  14202. -------------------------------------------------------------------------------
  14203. StringManip.tests.cpp:<line number>
  14204. ...............................................................................
  14205. StringManip.tests.cpp:<line number>: PASSED:
  14206. CHECK_THAT( splitStringRef("", ','), Equals(std::vector<StringRef>()) )
  14207. with expansion:
  14208. { } Equals: { }
  14209. StringManip.tests.cpp:<line number>: PASSED:
  14210. CHECK_THAT( splitStringRef("abc", ','), Equals(std::vector<StringRef>{"abc"}) )
  14211. with expansion:
  14212. { abc } Equals: { abc }
  14213. StringManip.tests.cpp:<line number>: PASSED:
  14214. CHECK_THAT( splitStringRef("abc,def", ','), Equals(std::vector<StringRef>{"abc", "def"}) )
  14215. with expansion:
  14216. { abc, def } Equals: { abc, def }
  14217. -------------------------------------------------------------------------------
  14218. stacks unscoped info in loops
  14219. -------------------------------------------------------------------------------
  14220. Message.tests.cpp:<line number>
  14221. ...............................................................................
  14222. Message.tests.cpp:<line number>: FAILED:
  14223. CHECK( false )
  14224. with messages:
  14225. Count 1 to 3...
  14226. 1
  14227. 2
  14228. 3
  14229. Message.tests.cpp:<line number>: FAILED:
  14230. CHECK( false )
  14231. with messages:
  14232. Count 4 to 6...
  14233. 4
  14234. 5
  14235. 6
  14236. -------------------------------------------------------------------------------
  14237. startsWith
  14238. -------------------------------------------------------------------------------
  14239. StringManip.tests.cpp:<line number>
  14240. ...............................................................................
  14241. StringManip.tests.cpp:<line number>: PASSED:
  14242. CHECK_FALSE( startsWith("", 'c') )
  14243. with expansion:
  14244. !false
  14245. StringManip.tests.cpp:<line number>: PASSED:
  14246. CHECK( startsWith(std::string("abc"), 'a') )
  14247. with expansion:
  14248. true
  14249. StringManip.tests.cpp:<line number>: PASSED:
  14250. CHECK( startsWith("def"_catch_sr, 'd') )
  14251. with expansion:
  14252. true
  14253. -------------------------------------------------------------------------------
  14254. std::map is convertible string
  14255. empty
  14256. -------------------------------------------------------------------------------
  14257. ToStringGeneral.tests.cpp:<line number>
  14258. ...............................................................................
  14259. ToStringGeneral.tests.cpp:<line number>: PASSED:
  14260. REQUIRE( Catch::Detail::stringify( emptyMap ) == "{ }" )
  14261. with expansion:
  14262. "{ }" == "{ }"
  14263. -------------------------------------------------------------------------------
  14264. std::map is convertible string
  14265. single item
  14266. -------------------------------------------------------------------------------
  14267. ToStringGeneral.tests.cpp:<line number>
  14268. ...............................................................................
  14269. ToStringGeneral.tests.cpp:<line number>: PASSED:
  14270. REQUIRE( Catch::Detail::stringify( map ) == "{ { \"one\", 1 } }" )
  14271. with expansion:
  14272. "{ { "one", 1 } }" == "{ { "one", 1 } }"
  14273. -------------------------------------------------------------------------------
  14274. std::map is convertible string
  14275. several items
  14276. -------------------------------------------------------------------------------
  14277. ToStringGeneral.tests.cpp:<line number>
  14278. ...............................................................................
  14279. ToStringGeneral.tests.cpp:<line number>: PASSED:
  14280. REQUIRE( Catch::Detail::stringify( map ) == "{ { \"abc\", 1 }, { \"def\", 2 }, { \"ghi\", 3 } }" )
  14281. with expansion:
  14282. "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
  14283. ==
  14284. "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
  14285. -------------------------------------------------------------------------------
  14286. std::pair<int,const std::string> -> toString
  14287. -------------------------------------------------------------------------------
  14288. ToStringPair.tests.cpp:<line number>
  14289. ...............................................................................
  14290. ToStringPair.tests.cpp:<line number>: PASSED:
  14291. REQUIRE( ::Catch::Detail::stringify(value) == "{ 34, \"xyzzy\" }" )
  14292. with expansion:
  14293. "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
  14294. -------------------------------------------------------------------------------
  14295. std::pair<int,std::string> -> toString
  14296. -------------------------------------------------------------------------------
  14297. ToStringPair.tests.cpp:<line number>
  14298. ...............................................................................
  14299. ToStringPair.tests.cpp:<line number>: PASSED:
  14300. REQUIRE( ::Catch::Detail::stringify( value ) == "{ 34, \"xyzzy\" }" )
  14301. with expansion:
  14302. "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
  14303. -------------------------------------------------------------------------------
  14304. std::set is convertible string
  14305. empty
  14306. -------------------------------------------------------------------------------
  14307. ToStringGeneral.tests.cpp:<line number>
  14308. ...............................................................................
  14309. ToStringGeneral.tests.cpp:<line number>: PASSED:
  14310. REQUIRE( Catch::Detail::stringify( emptySet ) == "{ }" )
  14311. with expansion:
  14312. "{ }" == "{ }"
  14313. -------------------------------------------------------------------------------
  14314. std::set is convertible string
  14315. single item
  14316. -------------------------------------------------------------------------------
  14317. ToStringGeneral.tests.cpp:<line number>
  14318. ...............................................................................
  14319. ToStringGeneral.tests.cpp:<line number>: PASSED:
  14320. REQUIRE( Catch::Detail::stringify( set ) == "{ \"one\" }" )
  14321. with expansion:
  14322. "{ "one" }" == "{ "one" }"
  14323. -------------------------------------------------------------------------------
  14324. std::set is convertible string
  14325. several items
  14326. -------------------------------------------------------------------------------
  14327. ToStringGeneral.tests.cpp:<line number>
  14328. ...............................................................................
  14329. ToStringGeneral.tests.cpp:<line number>: PASSED:
  14330. REQUIRE( Catch::Detail::stringify( set ) == "{ \"abc\", \"def\", \"ghi\" }" )
  14331. with expansion:
  14332. "{ "abc", "def", "ghi" }"
  14333. ==
  14334. "{ "abc", "def", "ghi" }"
  14335. -------------------------------------------------------------------------------
  14336. std::vector<std::pair<std::string,int> > -> toString
  14337. -------------------------------------------------------------------------------
  14338. ToStringPair.tests.cpp:<line number>
  14339. ...............................................................................
  14340. ToStringPair.tests.cpp:<line number>: PASSED:
  14341. REQUIRE( ::Catch::Detail::stringify( pr ) == "{ { \"green\", 55 } }" )
  14342. with expansion:
  14343. "{ { "green", 55 } }"
  14344. ==
  14345. "{ { "green", 55 } }"
  14346. -------------------------------------------------------------------------------
  14347. stdout and stderr streams have %-starting name
  14348. -------------------------------------------------------------------------------
  14349. Stream.tests.cpp:<line number>
  14350. ...............................................................................
  14351. Stream.tests.cpp:<line number>: PASSED:
  14352. REQUIRE( Catch::makeStream( "%stderr" )->isConsole() )
  14353. with expansion:
  14354. true
  14355. Stream.tests.cpp:<line number>: PASSED:
  14356. REQUIRE( Catch::makeStream( "%stdout" )->isConsole() )
  14357. with expansion:
  14358. true
  14359. -------------------------------------------------------------------------------
  14360. stringify ranges
  14361. -------------------------------------------------------------------------------
  14362. ToStringWhich.tests.cpp:<line number>
  14363. ...............................................................................
  14364. ToStringWhich.tests.cpp:<line number>: PASSED:
  14365. REQUIRE( ::Catch::Detail::stringify(streamable_range{}) == "op<<(streamable_range)" )
  14366. with expansion:
  14367. "op<<(streamable_range)"
  14368. ==
  14369. "op<<(streamable_range)"
  14370. ToStringWhich.tests.cpp:<line number>: PASSED:
  14371. REQUIRE( ::Catch::Detail::stringify(stringmaker_range{}) == "stringmaker(streamable_range)" )
  14372. with expansion:
  14373. "stringmaker(streamable_range)"
  14374. ==
  14375. "stringmaker(streamable_range)"
  14376. ToStringWhich.tests.cpp:<line number>: PASSED:
  14377. REQUIRE( ::Catch::Detail::stringify(just_range{}) == "{ 1, 2, 3, 4 }" )
  14378. with expansion:
  14379. "{ 1, 2, 3, 4 }" == "{ 1, 2, 3, 4 }"
  14380. ToStringWhich.tests.cpp:<line number>: PASSED:
  14381. REQUIRE( ::Catch::Detail::stringify(disabled_range{}) == "{?}" )
  14382. with expansion:
  14383. "{?}" == "{?}"
  14384. -------------------------------------------------------------------------------
  14385. stringify( has_maker )
  14386. -------------------------------------------------------------------------------
  14387. ToStringWhich.tests.cpp:<line number>
  14388. ...............................................................................
  14389. ToStringWhich.tests.cpp:<line number>: PASSED:
  14390. REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker>" )
  14391. with expansion:
  14392. "StringMaker<has_maker>"
  14393. ==
  14394. "StringMaker<has_maker>"
  14395. -------------------------------------------------------------------------------
  14396. stringify( has_maker_and_operator )
  14397. -------------------------------------------------------------------------------
  14398. ToStringWhich.tests.cpp:<line number>
  14399. ...............................................................................
  14400. ToStringWhich.tests.cpp:<line number>: PASSED:
  14401. REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker_and_operator>" )
  14402. with expansion:
  14403. "StringMaker<has_maker_and_operator>"
  14404. ==
  14405. "StringMaker<has_maker_and_operator>"
  14406. -------------------------------------------------------------------------------
  14407. stringify( has_neither )
  14408. -------------------------------------------------------------------------------
  14409. ToStringWhich.tests.cpp:<line number>
  14410. ...............................................................................
  14411. ToStringWhich.tests.cpp:<line number>: PASSED:
  14412. REQUIRE( ::Catch::Detail::stringify(item) == "{?}" )
  14413. with expansion:
  14414. "{?}" == "{?}"
  14415. -------------------------------------------------------------------------------
  14416. stringify( has_operator )
  14417. -------------------------------------------------------------------------------
  14418. ToStringWhich.tests.cpp:<line number>
  14419. ...............................................................................
  14420. ToStringWhich.tests.cpp:<line number>: PASSED:
  14421. REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_operator )" )
  14422. with expansion:
  14423. "operator<<( has_operator )"
  14424. ==
  14425. "operator<<( has_operator )"
  14426. -------------------------------------------------------------------------------
  14427. stringify( has_template_operator )
  14428. -------------------------------------------------------------------------------
  14429. ToStringWhich.tests.cpp:<line number>
  14430. ...............................................................................
  14431. ToStringWhich.tests.cpp:<line number>: PASSED:
  14432. REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_template_operator )" )
  14433. with expansion:
  14434. "operator<<( has_template_operator )"
  14435. ==
  14436. "operator<<( has_template_operator )"
  14437. -------------------------------------------------------------------------------
  14438. stringify( vectors<has_maker> )
  14439. -------------------------------------------------------------------------------
  14440. ToStringWhich.tests.cpp:<line number>
  14441. ...............................................................................
  14442. ToStringWhich.tests.cpp:<line number>: PASSED:
  14443. REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker> }" )
  14444. with expansion:
  14445. "{ StringMaker<has_maker> }"
  14446. ==
  14447. "{ StringMaker<has_maker> }"
  14448. -------------------------------------------------------------------------------
  14449. stringify( vectors<has_maker_and_operator> )
  14450. -------------------------------------------------------------------------------
  14451. ToStringWhich.tests.cpp:<line number>
  14452. ...............................................................................
  14453. ToStringWhich.tests.cpp:<line number>: PASSED:
  14454. REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker_and_operator> }" )
  14455. with expansion:
  14456. "{ StringMaker<has_maker_and_operator> }"
  14457. ==
  14458. "{ StringMaker<has_maker_and_operator> }"
  14459. -------------------------------------------------------------------------------
  14460. stringify( vectors<has_operator> )
  14461. -------------------------------------------------------------------------------
  14462. ToStringWhich.tests.cpp:<line number>
  14463. ...............................................................................
  14464. ToStringWhich.tests.cpp:<line number>: PASSED:
  14465. REQUIRE( ::Catch::Detail::stringify( v ) == "{ operator<<( has_operator ) }" )
  14466. with expansion:
  14467. "{ operator<<( has_operator ) }"
  14468. ==
  14469. "{ operator<<( has_operator ) }"
  14470. -------------------------------------------------------------------------------
  14471. strlen3
  14472. -------------------------------------------------------------------------------
  14473. Generators.tests.cpp:<line number>
  14474. ...............................................................................
  14475. Generators.tests.cpp:<line number>: PASSED:
  14476. REQUIRE( data.str.size() == data.len )
  14477. with expansion:
  14478. 3 == 3
  14479. -------------------------------------------------------------------------------
  14480. strlen3
  14481. -------------------------------------------------------------------------------
  14482. Generators.tests.cpp:<line number>
  14483. ...............................................................................
  14484. Generators.tests.cpp:<line number>: PASSED:
  14485. REQUIRE( data.str.size() == data.len )
  14486. with expansion:
  14487. 3 == 3
  14488. -------------------------------------------------------------------------------
  14489. strlen3
  14490. -------------------------------------------------------------------------------
  14491. Generators.tests.cpp:<line number>
  14492. ...............................................................................
  14493. Generators.tests.cpp:<line number>: PASSED:
  14494. REQUIRE( data.str.size() == data.len )
  14495. with expansion:
  14496. 5 == 5
  14497. -------------------------------------------------------------------------------
  14498. strlen3
  14499. -------------------------------------------------------------------------------
  14500. Generators.tests.cpp:<line number>
  14501. ...............................................................................
  14502. Generators.tests.cpp:<line number>: PASSED:
  14503. REQUIRE( data.str.size() == data.len )
  14504. with expansion:
  14505. 4 == 4
  14506. -------------------------------------------------------------------------------
  14507. tables
  14508. -------------------------------------------------------------------------------
  14509. Generators.tests.cpp:<line number>
  14510. ...............................................................................
  14511. Generators.tests.cpp:<line number>: PASSED:
  14512. REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
  14513. with expansion:
  14514. 5 == 5
  14515. -------------------------------------------------------------------------------
  14516. tables
  14517. -------------------------------------------------------------------------------
  14518. Generators.tests.cpp:<line number>
  14519. ...............................................................................
  14520. Generators.tests.cpp:<line number>: PASSED:
  14521. REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
  14522. with expansion:
  14523. 6 == 6
  14524. -------------------------------------------------------------------------------
  14525. tables
  14526. -------------------------------------------------------------------------------
  14527. Generators.tests.cpp:<line number>
  14528. ...............................................................................
  14529. Generators.tests.cpp:<line number>: PASSED:
  14530. REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
  14531. with expansion:
  14532. 5 == 5
  14533. -------------------------------------------------------------------------------
  14534. tables
  14535. -------------------------------------------------------------------------------
  14536. Generators.tests.cpp:<line number>
  14537. ...............................................................................
  14538. Generators.tests.cpp:<line number>: PASSED:
  14539. REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
  14540. with expansion:
  14541. 6 == 6
  14542. -------------------------------------------------------------------------------
  14543. tags with dots in later positions are not parsed as hidden
  14544. -------------------------------------------------------------------------------
  14545. Tag.tests.cpp:<line number>
  14546. ...............................................................................
  14547. Tag.tests.cpp:<line number>: PASSED:
  14548. REQUIRE( testcase.tags.size() == 1 )
  14549. with expansion:
  14550. 1 == 1
  14551. Tag.tests.cpp:<line number>: PASSED:
  14552. REQUIRE( testcase.tags[0].original == "magic.tag"_catch_sr )
  14553. with expansion:
  14554. magic.tag == magic.tag
  14555. -------------------------------------------------------------------------------
  14556. thrown std::strings are translated
  14557. -------------------------------------------------------------------------------
  14558. Exception.tests.cpp:<line number>
  14559. ...............................................................................
  14560. Exception.tests.cpp:<line number>: FAILED:
  14561. due to unexpected exception with message:
  14562. Why would you throw a std::string?
  14563. -------------------------------------------------------------------------------
  14564. toString on const wchar_t const pointer returns the string contents
  14565. -------------------------------------------------------------------------------
  14566. Misc.tests.cpp:<line number>
  14567. ...............................................................................
  14568. Misc.tests.cpp:<line number>: PASSED:
  14569. CHECK( result == "\"wide load\"" )
  14570. with expansion:
  14571. ""wide load"" == ""wide load""
  14572. -------------------------------------------------------------------------------
  14573. toString on const wchar_t pointer returns the string contents
  14574. -------------------------------------------------------------------------------
  14575. Misc.tests.cpp:<line number>
  14576. ...............................................................................
  14577. Misc.tests.cpp:<line number>: PASSED:
  14578. CHECK( result == "\"wide load\"" )
  14579. with expansion:
  14580. ""wide load"" == ""wide load""
  14581. -------------------------------------------------------------------------------
  14582. toString on wchar_t const pointer returns the string contents
  14583. -------------------------------------------------------------------------------
  14584. Misc.tests.cpp:<line number>
  14585. ...............................................................................
  14586. Misc.tests.cpp:<line number>: PASSED:
  14587. CHECK( result == "\"wide load\"" )
  14588. with expansion:
  14589. ""wide load"" == ""wide load""
  14590. -------------------------------------------------------------------------------
  14591. toString on wchar_t returns the string contents
  14592. -------------------------------------------------------------------------------
  14593. Misc.tests.cpp:<line number>
  14594. ...............................................................................
  14595. Misc.tests.cpp:<line number>: PASSED:
  14596. CHECK( result == "\"wide load\"" )
  14597. with expansion:
  14598. ""wide load"" == ""wide load""
  14599. -------------------------------------------------------------------------------
  14600. toString(enum class w/operator<<)
  14601. -------------------------------------------------------------------------------
  14602. EnumToString.tests.cpp:<line number>
  14603. ...............................................................................
  14604. EnumToString.tests.cpp:<line number>: PASSED:
  14605. CHECK( ::Catch::Detail::stringify(e0) == "E2/V0" )
  14606. with expansion:
  14607. "E2/V0" == "E2/V0"
  14608. EnumToString.tests.cpp:<line number>: PASSED:
  14609. CHECK( ::Catch::Detail::stringify(e1) == "E2/V1" )
  14610. with expansion:
  14611. "E2/V1" == "E2/V1"
  14612. EnumToString.tests.cpp:<line number>: PASSED:
  14613. CHECK( ::Catch::Detail::stringify(e3) == "Unknown enum value 10" )
  14614. with expansion:
  14615. "Unknown enum value 10"
  14616. ==
  14617. "Unknown enum value 10"
  14618. -------------------------------------------------------------------------------
  14619. toString(enum class)
  14620. -------------------------------------------------------------------------------
  14621. EnumToString.tests.cpp:<line number>
  14622. ...............................................................................
  14623. EnumToString.tests.cpp:<line number>: PASSED:
  14624. CHECK( ::Catch::Detail::stringify(e0) == "0" )
  14625. with expansion:
  14626. "0" == "0"
  14627. EnumToString.tests.cpp:<line number>: PASSED:
  14628. CHECK( ::Catch::Detail::stringify(e1) == "1" )
  14629. with expansion:
  14630. "1" == "1"
  14631. -------------------------------------------------------------------------------
  14632. toString(enum w/operator<<)
  14633. -------------------------------------------------------------------------------
  14634. EnumToString.tests.cpp:<line number>
  14635. ...............................................................................
  14636. EnumToString.tests.cpp:<line number>: PASSED:
  14637. CHECK( ::Catch::Detail::stringify(e0) == "E2{0}" )
  14638. with expansion:
  14639. "E2{0}" == "E2{0}"
  14640. EnumToString.tests.cpp:<line number>: PASSED:
  14641. CHECK( ::Catch::Detail::stringify(e1) == "E2{1}" )
  14642. with expansion:
  14643. "E2{1}" == "E2{1}"
  14644. -------------------------------------------------------------------------------
  14645. toString(enum)
  14646. -------------------------------------------------------------------------------
  14647. EnumToString.tests.cpp:<line number>
  14648. ...............................................................................
  14649. EnumToString.tests.cpp:<line number>: PASSED:
  14650. CHECK( ::Catch::Detail::stringify(e0) == "0" )
  14651. with expansion:
  14652. "0" == "0"
  14653. EnumToString.tests.cpp:<line number>: PASSED:
  14654. CHECK( ::Catch::Detail::stringify(e1) == "1" )
  14655. with expansion:
  14656. "1" == "1"
  14657. -------------------------------------------------------------------------------
  14658. tuple<>
  14659. -------------------------------------------------------------------------------
  14660. ToStringTuple.tests.cpp:<line number>
  14661. ...............................................................................
  14662. ToStringTuple.tests.cpp:<line number>: PASSED:
  14663. CHECK( "{ }" == ::Catch::Detail::stringify(type{}) )
  14664. with expansion:
  14665. "{ }" == "{ }"
  14666. ToStringTuple.tests.cpp:<line number>: PASSED:
  14667. CHECK( "{ }" == ::Catch::Detail::stringify(value) )
  14668. with expansion:
  14669. "{ }" == "{ }"
  14670. -------------------------------------------------------------------------------
  14671. tuple<float,int>
  14672. -------------------------------------------------------------------------------
  14673. ToStringTuple.tests.cpp:<line number>
  14674. ...............................................................................
  14675. ToStringTuple.tests.cpp:<line number>: PASSED:
  14676. CHECK( "1.2f" == ::Catch::Detail::stringify(float(1.2)) )
  14677. with expansion:
  14678. "1.2f" == "1.2f"
  14679. ToStringTuple.tests.cpp:<line number>: PASSED:
  14680. CHECK( "{ 1.2f, 0 }" == ::Catch::Detail::stringify(type{1.2f,0}) )
  14681. with expansion:
  14682. "{ 1.2f, 0 }" == "{ 1.2f, 0 }"
  14683. -------------------------------------------------------------------------------
  14684. tuple<int>
  14685. -------------------------------------------------------------------------------
  14686. ToStringTuple.tests.cpp:<line number>
  14687. ...............................................................................
  14688. ToStringTuple.tests.cpp:<line number>: PASSED:
  14689. CHECK( "{ 0 }" == ::Catch::Detail::stringify(type{0}) )
  14690. with expansion:
  14691. "{ 0 }" == "{ 0 }"
  14692. -------------------------------------------------------------------------------
  14693. tuple<string,string>
  14694. -------------------------------------------------------------------------------
  14695. ToStringTuple.tests.cpp:<line number>
  14696. ...............................................................................
  14697. ToStringTuple.tests.cpp:<line number>: PASSED:
  14698. CHECK( "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"}) )
  14699. with expansion:
  14700. "{ "hello", "world" }"
  14701. ==
  14702. "{ "hello", "world" }"
  14703. -------------------------------------------------------------------------------
  14704. tuple<tuple<int>,tuple<>,float>
  14705. -------------------------------------------------------------------------------
  14706. ToStringTuple.tests.cpp:<line number>
  14707. ...............................................................................
  14708. ToStringTuple.tests.cpp:<line number>: PASSED:
  14709. CHECK( "{ { 42 }, { }, 1.2f }" == ::Catch::Detail::stringify(value) )
  14710. with expansion:
  14711. "{ { 42 }, { }, 1.2f }"
  14712. ==
  14713. "{ { 42 }, { }, 1.2f }"
  14714. -------------------------------------------------------------------------------
  14715. uniform samples
  14716. -------------------------------------------------------------------------------
  14717. InternalBenchmark.tests.cpp:<line number>
  14718. ...............................................................................
  14719. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14720. CHECK( e.point == 23 )
  14721. with expansion:
  14722. 23.0 == 23
  14723. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14724. CHECK( e.upper_bound == 23 )
  14725. with expansion:
  14726. 23.0 == 23
  14727. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14728. CHECK( e.lower_bound == 23 )
  14729. with expansion:
  14730. 23.0 == 23
  14731. InternalBenchmark.tests.cpp:<line number>: PASSED:
  14732. CHECK( e.confidence_interval == 0.95 )
  14733. with expansion:
  14734. 0.95 == 0.95
  14735. -------------------------------------------------------------------------------
  14736. unique_ptr reimplementation: basic functionality
  14737. Default constructed unique_ptr is empty
  14738. -------------------------------------------------------------------------------
  14739. UniquePtr.tests.cpp:<line number>
  14740. ...............................................................................
  14741. UniquePtr.tests.cpp:<line number>: PASSED:
  14742. REQUIRE_FALSE( ptr )
  14743. with expansion:
  14744. !{?}
  14745. UniquePtr.tests.cpp:<line number>: PASSED:
  14746. REQUIRE( ptr.get() == 0 )
  14747. with expansion:
  14748. 0 == 0
  14749. -------------------------------------------------------------------------------
  14750. unique_ptr reimplementation: basic functionality
  14751. Take ownership of allocation
  14752. -------------------------------------------------------------------------------
  14753. UniquePtr.tests.cpp:<line number>
  14754. ...............................................................................
  14755. UniquePtr.tests.cpp:<line number>: PASSED:
  14756. REQUIRE( ptr )
  14757. with expansion:
  14758. {?}
  14759. UniquePtr.tests.cpp:<line number>: PASSED:
  14760. REQUIRE( *ptr == 0 )
  14761. with expansion:
  14762. 0 == 0
  14763. UniquePtr.tests.cpp:<line number>: PASSED:
  14764. REQUIRE( ptr.get() == naked_ptr )
  14765. with expansion:
  14766. 0x<hex digits> == 0x<hex digits>
  14767. -------------------------------------------------------------------------------
  14768. unique_ptr reimplementation: basic functionality
  14769. Take ownership of allocation
  14770. Plain reset deallocates
  14771. -------------------------------------------------------------------------------
  14772. UniquePtr.tests.cpp:<line number>
  14773. ...............................................................................
  14774. UniquePtr.tests.cpp:<line number>: PASSED:
  14775. REQUIRE_FALSE( ptr )
  14776. with expansion:
  14777. !{?}
  14778. UniquePtr.tests.cpp:<line number>: PASSED:
  14779. REQUIRE( ptr.get() == 0 )
  14780. with expansion:
  14781. 0 == 0
  14782. -------------------------------------------------------------------------------
  14783. unique_ptr reimplementation: basic functionality
  14784. Take ownership of allocation
  14785. -------------------------------------------------------------------------------
  14786. UniquePtr.tests.cpp:<line number>
  14787. ...............................................................................
  14788. UniquePtr.tests.cpp:<line number>: PASSED:
  14789. REQUIRE( ptr )
  14790. with expansion:
  14791. {?}
  14792. UniquePtr.tests.cpp:<line number>: PASSED:
  14793. REQUIRE( *ptr == 0 )
  14794. with expansion:
  14795. 0 == 0
  14796. UniquePtr.tests.cpp:<line number>: PASSED:
  14797. REQUIRE( ptr.get() == naked_ptr )
  14798. with expansion:
  14799. 0x<hex digits> == 0x<hex digits>
  14800. -------------------------------------------------------------------------------
  14801. unique_ptr reimplementation: basic functionality
  14802. Take ownership of allocation
  14803. Reset replaces ownership
  14804. -------------------------------------------------------------------------------
  14805. UniquePtr.tests.cpp:<line number>
  14806. ...............................................................................
  14807. UniquePtr.tests.cpp:<line number>: PASSED:
  14808. REQUIRE( ptr )
  14809. with expansion:
  14810. {?}
  14811. UniquePtr.tests.cpp:<line number>: PASSED:
  14812. REQUIRE( ptr.get() != 0 )
  14813. with expansion:
  14814. 0x<hex digits> != 0
  14815. UniquePtr.tests.cpp:<line number>: PASSED:
  14816. REQUIRE( *ptr == 2 )
  14817. with expansion:
  14818. 2 == 2
  14819. -------------------------------------------------------------------------------
  14820. unique_ptr reimplementation: basic functionality
  14821. Release releases ownership
  14822. -------------------------------------------------------------------------------
  14823. UniquePtr.tests.cpp:<line number>
  14824. ...............................................................................
  14825. UniquePtr.tests.cpp:<line number>: PASSED:
  14826. CHECK_FALSE( ptr )
  14827. with expansion:
  14828. !{?}
  14829. UniquePtr.tests.cpp:<line number>: PASSED:
  14830. CHECK( ptr.get() == 0 )
  14831. with expansion:
  14832. 0 == 0
  14833. -------------------------------------------------------------------------------
  14834. unique_ptr reimplementation: basic functionality
  14835. Move constructor
  14836. -------------------------------------------------------------------------------
  14837. UniquePtr.tests.cpp:<line number>
  14838. ...............................................................................
  14839. UniquePtr.tests.cpp:<line number>: PASSED:
  14840. REQUIRE_FALSE( ptr1 )
  14841. with expansion:
  14842. !{?}
  14843. UniquePtr.tests.cpp:<line number>: PASSED:
  14844. REQUIRE( ptr2 )
  14845. with expansion:
  14846. {?}
  14847. UniquePtr.tests.cpp:<line number>: PASSED:
  14848. REQUIRE( *ptr2 == 1 )
  14849. with expansion:
  14850. 1 == 1
  14851. -------------------------------------------------------------------------------
  14852. unique_ptr reimplementation: basic functionality
  14853. Move assignment
  14854. -------------------------------------------------------------------------------
  14855. UniquePtr.tests.cpp:<line number>
  14856. ...............................................................................
  14857. UniquePtr.tests.cpp:<line number>: PASSED:
  14858. REQUIRE_FALSE( ptr2 )
  14859. with expansion:
  14860. !{?}
  14861. UniquePtr.tests.cpp:<line number>: PASSED:
  14862. REQUIRE( ptr1 )
  14863. with expansion:
  14864. {?}
  14865. UniquePtr.tests.cpp:<line number>: PASSED:
  14866. REQUIRE( *ptr1 == 2 )
  14867. with expansion:
  14868. 2 == 2
  14869. -------------------------------------------------------------------------------
  14870. unique_ptr reimplementation: basic functionality
  14871. free swap
  14872. -------------------------------------------------------------------------------
  14873. UniquePtr.tests.cpp:<line number>
  14874. ...............................................................................
  14875. UniquePtr.tests.cpp:<line number>: PASSED:
  14876. REQUIRE( *ptr1 == 2 )
  14877. with expansion:
  14878. 2 == 2
  14879. UniquePtr.tests.cpp:<line number>: PASSED:
  14880. REQUIRE( *ptr2 == 1 )
  14881. with expansion:
  14882. 1 == 1
  14883. -------------------------------------------------------------------------------
  14884. vec<vec<string,alloc>> -> toString
  14885. -------------------------------------------------------------------------------
  14886. ToStringVector.tests.cpp:<line number>
  14887. ...............................................................................
  14888. ToStringVector.tests.cpp:<line number>: PASSED:
  14889. REQUIRE( ::Catch::Detail::stringify(v) == "{ }" )
  14890. with expansion:
  14891. "{ }" == "{ }"
  14892. ToStringVector.tests.cpp:<line number>: PASSED:
  14893. REQUIRE( ::Catch::Detail::stringify(v) == "{ { \"hello\" }, { \"world\" } }" )
  14894. with expansion:
  14895. "{ { "hello" }, { "world" } }"
  14896. ==
  14897. "{ { "hello" }, { "world" } }"
  14898. -------------------------------------------------------------------------------
  14899. vector<bool> -> toString
  14900. -------------------------------------------------------------------------------
  14901. ToStringVector.tests.cpp:<line number>
  14902. ...............................................................................
  14903. ToStringVector.tests.cpp:<line number>: PASSED:
  14904. REQUIRE( ::Catch::Detail::stringify(bools) == "{ }" )
  14905. with expansion:
  14906. "{ }" == "{ }"
  14907. ToStringVector.tests.cpp:<line number>: PASSED:
  14908. REQUIRE( ::Catch::Detail::stringify(bools) == "{ true }" )
  14909. with expansion:
  14910. "{ true }" == "{ true }"
  14911. ToStringVector.tests.cpp:<line number>: PASSED:
  14912. REQUIRE( ::Catch::Detail::stringify(bools) == "{ true, false }" )
  14913. with expansion:
  14914. "{ true, false }" == "{ true, false }"
  14915. -------------------------------------------------------------------------------
  14916. vector<int,allocator> -> toString
  14917. -------------------------------------------------------------------------------
  14918. ToStringVector.tests.cpp:<line number>
  14919. ...............................................................................
  14920. ToStringVector.tests.cpp:<line number>: PASSED:
  14921. REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
  14922. with expansion:
  14923. "{ }" == "{ }"
  14924. ToStringVector.tests.cpp:<line number>: PASSED:
  14925. REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" )
  14926. with expansion:
  14927. "{ 42 }" == "{ 42 }"
  14928. ToStringVector.tests.cpp:<line number>: PASSED:
  14929. REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" )
  14930. with expansion:
  14931. "{ 42, 250 }" == "{ 42, 250 }"
  14932. -------------------------------------------------------------------------------
  14933. vector<int> -> toString
  14934. -------------------------------------------------------------------------------
  14935. ToStringVector.tests.cpp:<line number>
  14936. ...............................................................................
  14937. ToStringVector.tests.cpp:<line number>: PASSED:
  14938. REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
  14939. with expansion:
  14940. "{ }" == "{ }"
  14941. ToStringVector.tests.cpp:<line number>: PASSED:
  14942. REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" )
  14943. with expansion:
  14944. "{ 42 }" == "{ 42 }"
  14945. ToStringVector.tests.cpp:<line number>: PASSED:
  14946. REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" )
  14947. with expansion:
  14948. "{ 42, 250 }" == "{ 42, 250 }"
  14949. -------------------------------------------------------------------------------
  14950. vector<string> -> toString
  14951. -------------------------------------------------------------------------------
  14952. ToStringVector.tests.cpp:<line number>
  14953. ...............................................................................
  14954. ToStringVector.tests.cpp:<line number>: PASSED:
  14955. REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
  14956. with expansion:
  14957. "{ }" == "{ }"
  14958. ToStringVector.tests.cpp:<line number>: PASSED:
  14959. REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\" }" )
  14960. with expansion:
  14961. "{ "hello" }" == "{ "hello" }"
  14962. ToStringVector.tests.cpp:<line number>: PASSED:
  14963. REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }" )
  14964. with expansion:
  14965. "{ "hello", "world" }"
  14966. ==
  14967. "{ "hello", "world" }"
  14968. -------------------------------------------------------------------------------
  14969. vectors can be sized and resized
  14970. -------------------------------------------------------------------------------
  14971. Misc.tests.cpp:<line number>
  14972. ...............................................................................
  14973. Misc.tests.cpp:<line number>: PASSED:
  14974. REQUIRE( v.size() == 5 )
  14975. with expansion:
  14976. 5 == 5
  14977. Misc.tests.cpp:<line number>: PASSED:
  14978. REQUIRE( v.capacity() >= 5 )
  14979. with expansion:
  14980. 5 >= 5
  14981. -------------------------------------------------------------------------------
  14982. vectors can be sized and resized
  14983. resizing bigger changes size and capacity
  14984. -------------------------------------------------------------------------------
  14985. Misc.tests.cpp:<line number>
  14986. ...............................................................................
  14987. Misc.tests.cpp:<line number>: PASSED:
  14988. REQUIRE( v.size() == 10 )
  14989. with expansion:
  14990. 10 == 10
  14991. Misc.tests.cpp:<line number>: PASSED:
  14992. REQUIRE( v.capacity() >= 10 )
  14993. with expansion:
  14994. 10 >= 10
  14995. -------------------------------------------------------------------------------
  14996. vectors can be sized and resized
  14997. -------------------------------------------------------------------------------
  14998. Misc.tests.cpp:<line number>
  14999. ...............................................................................
  15000. Misc.tests.cpp:<line number>: PASSED:
  15001. REQUIRE( v.size() == 5 )
  15002. with expansion:
  15003. 5 == 5
  15004. Misc.tests.cpp:<line number>: PASSED:
  15005. REQUIRE( v.capacity() >= 5 )
  15006. with expansion:
  15007. 5 >= 5
  15008. -------------------------------------------------------------------------------
  15009. vectors can be sized and resized
  15010. resizing smaller changes size but not capacity
  15011. -------------------------------------------------------------------------------
  15012. Misc.tests.cpp:<line number>
  15013. ...............................................................................
  15014. Misc.tests.cpp:<line number>: PASSED:
  15015. REQUIRE( v.size() == 0 )
  15016. with expansion:
  15017. 0 == 0
  15018. Misc.tests.cpp:<line number>: PASSED:
  15019. REQUIRE( v.capacity() >= 5 )
  15020. with expansion:
  15021. 5 >= 5
  15022. -------------------------------------------------------------------------------
  15023. vectors can be sized and resized
  15024. resizing smaller changes size but not capacity
  15025. We can use the 'swap trick' to reset the capacity
  15026. -------------------------------------------------------------------------------
  15027. Misc.tests.cpp:<line number>
  15028. ...............................................................................
  15029. Misc.tests.cpp:<line number>: PASSED:
  15030. REQUIRE( v.capacity() == 0 )
  15031. with expansion:
  15032. 0 == 0
  15033. -------------------------------------------------------------------------------
  15034. vectors can be sized and resized
  15035. -------------------------------------------------------------------------------
  15036. Misc.tests.cpp:<line number>
  15037. ...............................................................................
  15038. Misc.tests.cpp:<line number>: PASSED:
  15039. REQUIRE( v.size() == 5 )
  15040. with expansion:
  15041. 5 == 5
  15042. Misc.tests.cpp:<line number>: PASSED:
  15043. REQUIRE( v.capacity() >= 5 )
  15044. with expansion:
  15045. 5 >= 5
  15046. -------------------------------------------------------------------------------
  15047. vectors can be sized and resized
  15048. reserving bigger changes capacity but not size
  15049. -------------------------------------------------------------------------------
  15050. Misc.tests.cpp:<line number>
  15051. ...............................................................................
  15052. Misc.tests.cpp:<line number>: PASSED:
  15053. REQUIRE( v.size() == 5 )
  15054. with expansion:
  15055. 5 == 5
  15056. Misc.tests.cpp:<line number>: PASSED:
  15057. REQUIRE( v.capacity() >= 10 )
  15058. with expansion:
  15059. 10 >= 10
  15060. -------------------------------------------------------------------------------
  15061. vectors can be sized and resized
  15062. -------------------------------------------------------------------------------
  15063. Misc.tests.cpp:<line number>
  15064. ...............................................................................
  15065. Misc.tests.cpp:<line number>: PASSED:
  15066. REQUIRE( v.size() == 5 )
  15067. with expansion:
  15068. 5 == 5
  15069. Misc.tests.cpp:<line number>: PASSED:
  15070. REQUIRE( v.capacity() >= 5 )
  15071. with expansion:
  15072. 5 >= 5
  15073. -------------------------------------------------------------------------------
  15074. vectors can be sized and resized
  15075. reserving smaller does not change size or capacity
  15076. -------------------------------------------------------------------------------
  15077. Misc.tests.cpp:<line number>
  15078. ...............................................................................
  15079. Misc.tests.cpp:<line number>: PASSED:
  15080. REQUIRE( v.size() == 5 )
  15081. with expansion:
  15082. 5 == 5
  15083. Misc.tests.cpp:<line number>: PASSED:
  15084. REQUIRE( v.capacity() >= 5 )
  15085. with expansion:
  15086. 5 >= 5
  15087. -------------------------------------------------------------------------------
  15088. warmup
  15089. -------------------------------------------------------------------------------
  15090. InternalBenchmark.tests.cpp:<line number>
  15091. ...............................................................................
  15092. InternalBenchmark.tests.cpp:<line number>: PASSED:
  15093. REQUIRE( (iterations * rate) > Catch::Benchmark::Detail::warmup_time.count() )
  15094. with expansion:
  15095. 160000000 (0x<hex digits>) > 100
  15096. InternalBenchmark.tests.cpp:<line number>: PASSED:
  15097. REQUIRE( (end - start) > Catch::Benchmark::Detail::warmup_time )
  15098. with expansion:
  15099. 310016000 ns > 100 ms
  15100. -------------------------------------------------------------------------------
  15101. weighted_average_quantile
  15102. -------------------------------------------------------------------------------
  15103. InternalBenchmark.tests.cpp:<line number>
  15104. ...............................................................................
  15105. InternalBenchmark.tests.cpp:<line number>: PASSED:
  15106. REQUIRE( q1 == 14.5 )
  15107. with expansion:
  15108. 14.5 == 14.5
  15109. InternalBenchmark.tests.cpp:<line number>: PASSED:
  15110. REQUIRE( med == 18. )
  15111. with expansion:
  15112. 18.0 == 18.0
  15113. InternalBenchmark.tests.cpp:<line number>: PASSED:
  15114. REQUIRE( q3 == 23. )
  15115. with expansion:
  15116. 23.0 == 23.0
  15117. -------------------------------------------------------------------------------
  15118. xmlentitycheck
  15119. embedded xml: <test>it should be possible to embed xml characters, such as <,
  15120. " or &, or even whole <xml>documents</xml> within an attribute
  15121. </test>
  15122. -------------------------------------------------------------------------------
  15123. Misc.tests.cpp:<line number>
  15124. ...............................................................................
  15125. Misc.tests.cpp:<line number>: PASSED:
  15126. -------------------------------------------------------------------------------
  15127. xmlentitycheck
  15128. encoded chars: these should all be encoded: &&&"""<<<&"<<&"
  15129. -------------------------------------------------------------------------------
  15130. Misc.tests.cpp:<line number>
  15131. ...............................................................................
  15132. Misc.tests.cpp:<line number>: PASSED:
  15133. ===============================================================================
  15134. test cases: 394 | 304 passed | 83 failed | 7 failed as expected
  15135. assertions: 2299 | 2129 passed | 143 failed | 27 failed as expected