console.sw.approved.txt 447 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143
  1. Filters: ~[!nonportable]~[!benchmark]~[approvals]
  2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3. <exe-name> is a <version> host application.
  4. Run with -? for options
  5. Randomness seeded to: 1
  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. #1005: Comparing pointer to int and long (NULL can be either on various
  16. systems)
  17. -------------------------------------------------------------------------------
  18. Decomposition.tests.cpp:<line number>
  19. ...............................................................................
  20. Decomposition.tests.cpp:<line number>: PASSED:
  21. REQUIRE( fptr == 0 )
  22. with expansion:
  23. 0 == 0
  24. Decomposition.tests.cpp:<line number>: PASSED:
  25. REQUIRE( fptr == 0l )
  26. with expansion:
  27. 0 == 0
  28. -------------------------------------------------------------------------------
  29. #1027
  30. -------------------------------------------------------------------------------
  31. Compilation.tests.cpp:<line number>
  32. ...............................................................................
  33. Compilation.tests.cpp:<line number>: PASSED:
  34. REQUIRE( y.v == 0 )
  35. with expansion:
  36. 0 == 0
  37. Compilation.tests.cpp:<line number>: PASSED:
  38. REQUIRE( 0 == y.v )
  39. with expansion:
  40. 0 == 0
  41. -------------------------------------------------------------------------------
  42. #1027: Bitfields can be captured
  43. -------------------------------------------------------------------------------
  44. Compilation.tests.cpp:<line number>
  45. ...............................................................................
  46. Compilation.tests.cpp:<line number>: PASSED:
  47. REQUIRE( y.v == 0 )
  48. with expansion:
  49. 0 == 0
  50. Compilation.tests.cpp:<line number>: PASSED:
  51. REQUIRE( 0 == y.v )
  52. with expansion:
  53. 0 == 0
  54. -------------------------------------------------------------------------------
  55. #1147
  56. -------------------------------------------------------------------------------
  57. Compilation.tests.cpp:<line number>
  58. ...............................................................................
  59. Compilation.tests.cpp:<line number>: PASSED:
  60. REQUIRE( t1 == t2 )
  61. with expansion:
  62. {?} == {?}
  63. Compilation.tests.cpp:<line number>: PASSED:
  64. REQUIRE( t1 != t2 )
  65. with expansion:
  66. {?} != {?}
  67. Compilation.tests.cpp:<line number>: PASSED:
  68. REQUIRE( t1 < t2 )
  69. with expansion:
  70. {?} < {?}
  71. Compilation.tests.cpp:<line number>: PASSED:
  72. REQUIRE( t1 > t2 )
  73. with expansion:
  74. {?} > {?}
  75. Compilation.tests.cpp:<line number>: PASSED:
  76. REQUIRE( t1 <= t2 )
  77. with expansion:
  78. {?} <= {?}
  79. Compilation.tests.cpp:<line number>: PASSED:
  80. REQUIRE( t1 >= t2 )
  81. with expansion:
  82. {?} >= {?}
  83. -------------------------------------------------------------------------------
  84. #1175 - Hidden Test
  85. -------------------------------------------------------------------------------
  86. Misc.tests.cpp:<line number>
  87. ...............................................................................
  88. Misc.tests.cpp:<line number>: PASSED:
  89. -------------------------------------------------------------------------------
  90. #1238
  91. -------------------------------------------------------------------------------
  92. Compilation.tests.cpp:<line number>
  93. ...............................................................................
  94. Compilation.tests.cpp:<line number>: PASSED:
  95. REQUIRE( std::memcmp(uarr, "123", sizeof(uarr)) == 0 )
  96. with expansion:
  97. 0 == 0
  98. with messages:
  99. uarr := "123"
  100. sarr := "456"
  101. Compilation.tests.cpp:<line number>: PASSED:
  102. REQUIRE( std::memcmp(sarr, "456", sizeof(sarr)) == 0 )
  103. with expansion:
  104. 0 == 0
  105. with messages:
  106. uarr := "123"
  107. sarr := "456"
  108. -------------------------------------------------------------------------------
  109. #1245
  110. -------------------------------------------------------------------------------
  111. Compilation.tests.cpp:<line number>
  112. ...............................................................................
  113. Compilation.tests.cpp:<line number>: PASSED:
  114. -------------------------------------------------------------------------------
  115. #1403
  116. -------------------------------------------------------------------------------
  117. Compilation.tests.cpp:<line number>
  118. ...............................................................................
  119. Compilation.tests.cpp:<line number>: PASSED:
  120. REQUIRE( h1 == h2 )
  121. with expansion:
  122. [1403 helper] == [1403 helper]
  123. -------------------------------------------------------------------------------
  124. #1455 - INFO and WARN can start with a linebreak
  125. -------------------------------------------------------------------------------
  126. Message.tests.cpp:<line number>
  127. ...............................................................................
  128. Message.tests.cpp:<line number>: warning:
  129. This info message starts with a linebreak
  130. This warning message starts with a linebreak
  131. No assertions in test case '#1455 - INFO and WARN can start with a linebreak'
  132. This would not be caught previously
  133. Nor would this
  134. -------------------------------------------------------------------------------
  135. #1514: stderr/stdout is not captured in tests aborted by an exception
  136. -------------------------------------------------------------------------------
  137. Tricky.tests.cpp:<line number>
  138. ...............................................................................
  139. Tricky.tests.cpp:<line number>: FAILED:
  140. explicitly with message:
  141. 1514
  142. -------------------------------------------------------------------------------
  143. #1548
  144. -------------------------------------------------------------------------------
  145. Compilation.tests.cpp:<line number>
  146. ...............................................................................
  147. Compilation.tests.cpp:<line number>: PASSED:
  148. REQUIRE( std::is_same<TypeList<int>, TypeList<int>>::value )
  149. with expansion:
  150. true
  151. -------------------------------------------------------------------------------
  152. #1905 -- test spec parser properly clears internal state between compound tests
  153. -------------------------------------------------------------------------------
  154. CmdLine.tests.cpp:<line number>
  155. ...............................................................................
  156. CmdLine.tests.cpp:<line number>: PASSED:
  157. REQUIRE( spec.matches(fakeTestCase("spec . char")) )
  158. with expansion:
  159. true
  160. CmdLine.tests.cpp:<line number>: PASSED:
  161. REQUIRE( spec.matches(fakeTestCase("spec , char")) )
  162. with expansion:
  163. true
  164. CmdLine.tests.cpp:<line number>: PASSED:
  165. REQUIRE_FALSE( spec.matches(fakeTestCase(R"(spec \, char)")) )
  166. with expansion:
  167. !false
  168. -------------------------------------------------------------------------------
  169. #1912 -- test spec parser handles escaping
  170. Various parentheses
  171. -------------------------------------------------------------------------------
  172. CmdLine.tests.cpp:<line number>
  173. ...............................................................................
  174. CmdLine.tests.cpp:<line number>: PASSED:
  175. REQUIRE( spec.matches(fakeTestCase(R"(spec {a} char)")) )
  176. with expansion:
  177. true
  178. CmdLine.tests.cpp:<line number>: PASSED:
  179. REQUIRE( spec.matches(fakeTestCase(R"(spec [a] char)")) )
  180. with expansion:
  181. true
  182. CmdLine.tests.cpp:<line number>: PASSED:
  183. REQUIRE_FALSE( spec.matches(fakeTestCase("differs but has similar tag", "[a]")) )
  184. with expansion:
  185. !false
  186. -------------------------------------------------------------------------------
  187. #1912 -- test spec parser handles escaping
  188. backslash in test name
  189. -------------------------------------------------------------------------------
  190. CmdLine.tests.cpp:<line number>
  191. ...............................................................................
  192. CmdLine.tests.cpp:<line number>: PASSED:
  193. REQUIRE( spec.matches(fakeTestCase(R"(spec \ char)")) )
  194. with expansion:
  195. true
  196. -------------------------------------------------------------------------------
  197. #1913 - GENERATE inside a for loop should not keep recreating the generator
  198. -------------------------------------------------------------------------------
  199. Generators.tests.cpp:<line number>
  200. ...............................................................................
  201. Generators.tests.cpp:<line number>: PASSED:
  202. REQUIRE( counter < 7 )
  203. with expansion:
  204. 3 < 7
  205. -------------------------------------------------------------------------------
  206. #1913 - GENERATE inside a for loop should not keep recreating the generator
  207. -------------------------------------------------------------------------------
  208. Generators.tests.cpp:<line number>
  209. ...............................................................................
  210. Generators.tests.cpp:<line number>: PASSED:
  211. REQUIRE( counter < 7 )
  212. with expansion:
  213. 6 < 7
  214. -------------------------------------------------------------------------------
  215. #1913 - GENERATEs can share a line
  216. -------------------------------------------------------------------------------
  217. Generators.tests.cpp:<line number>
  218. ...............................................................................
  219. Generators.tests.cpp:<line number>: PASSED:
  220. REQUIRE( i != j )
  221. with expansion:
  222. 1 != 3
  223. -------------------------------------------------------------------------------
  224. #1913 - GENERATEs can share a line
  225. -------------------------------------------------------------------------------
  226. Generators.tests.cpp:<line number>
  227. ...............................................................................
  228. Generators.tests.cpp:<line number>: PASSED:
  229. REQUIRE( i != j )
  230. with expansion:
  231. 1 != 4
  232. -------------------------------------------------------------------------------
  233. #1913 - GENERATEs can share a line
  234. -------------------------------------------------------------------------------
  235. Generators.tests.cpp:<line number>
  236. ...............................................................................
  237. Generators.tests.cpp:<line number>: PASSED:
  238. REQUIRE( i != j )
  239. with expansion:
  240. 2 != 3
  241. -------------------------------------------------------------------------------
  242. #1913 - GENERATEs can share a line
  243. -------------------------------------------------------------------------------
  244. Generators.tests.cpp:<line number>
  245. ...............................................................................
  246. Generators.tests.cpp:<line number>: PASSED:
  247. REQUIRE( i != j )
  248. with expansion:
  249. 2 != 4
  250. -------------------------------------------------------------------------------
  251. #1938 - GENERATE after a section
  252. A
  253. -------------------------------------------------------------------------------
  254. PartTracker.tests.cpp:<line number>
  255. ...............................................................................
  256. PartTracker.tests.cpp:<line number>: PASSED:
  257. with message:
  258. A
  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. 1
  269. -------------------------------------------------------------------------------
  270. #1938 - GENERATE after a section
  271. B
  272. -------------------------------------------------------------------------------
  273. PartTracker.tests.cpp:<line number>
  274. ...............................................................................
  275. PartTracker.tests.cpp:<line number>: PASSED:
  276. REQUIRE( m )
  277. with expansion:
  278. 2
  279. -------------------------------------------------------------------------------
  280. #1938 - GENERATE after a section
  281. B
  282. -------------------------------------------------------------------------------
  283. PartTracker.tests.cpp:<line number>
  284. ...............................................................................
  285. PartTracker.tests.cpp:<line number>: PASSED:
  286. REQUIRE( m )
  287. with expansion:
  288. 3
  289. -------------------------------------------------------------------------------
  290. #1938 - Section followed by flat generate
  291. A
  292. -------------------------------------------------------------------------------
  293. PartTracker.tests.cpp:<line number>
  294. ...............................................................................
  295. PartTracker.tests.cpp:<line number>: PASSED:
  296. REQUIRE( 1 )
  297. -------------------------------------------------------------------------------
  298. #1938 - Section followed by flat generate
  299. -------------------------------------------------------------------------------
  300. PartTracker.tests.cpp:<line number>
  301. ...............................................................................
  302. PartTracker.tests.cpp:<line number>: PASSED:
  303. REQUIRE( m )
  304. with expansion:
  305. 2
  306. -------------------------------------------------------------------------------
  307. #1938 - Section followed by flat generate
  308. -------------------------------------------------------------------------------
  309. PartTracker.tests.cpp:<line number>
  310. ...............................................................................
  311. PartTracker.tests.cpp:<line number>: PASSED:
  312. REQUIRE( m )
  313. with expansion:
  314. 3
  315. -------------------------------------------------------------------------------
  316. #1938 - flat generate
  317. -------------------------------------------------------------------------------
  318. PartTracker.tests.cpp:<line number>
  319. ...............................................................................
  320. PartTracker.tests.cpp:<line number>: PASSED:
  321. REQUIRE( m )
  322. with expansion:
  323. 1
  324. -------------------------------------------------------------------------------
  325. #1938 - flat generate
  326. -------------------------------------------------------------------------------
  327. PartTracker.tests.cpp:<line number>
  328. ...............................................................................
  329. PartTracker.tests.cpp:<line number>: PASSED:
  330. REQUIRE( m )
  331. with expansion:
  332. 2
  333. -------------------------------------------------------------------------------
  334. #1938 - flat generate
  335. -------------------------------------------------------------------------------
  336. PartTracker.tests.cpp:<line number>
  337. ...............................................................................
  338. PartTracker.tests.cpp:<line number>: PASSED:
  339. REQUIRE( m )
  340. with expansion:
  341. 3
  342. -------------------------------------------------------------------------------
  343. #1938 - mixed sections and generates
  344. A
  345. -------------------------------------------------------------------------------
  346. PartTracker.tests.cpp:<line number>
  347. ...............................................................................
  348. PartTracker.tests.cpp:<line number>: PASSED:
  349. with message:
  350. A
  351. -------------------------------------------------------------------------------
  352. #1938 - mixed sections and generates
  353. -------------------------------------------------------------------------------
  354. PartTracker.tests.cpp:<line number>
  355. ...............................................................................
  356. PartTracker.tests.cpp:<line number>: PASSED:
  357. with messages:
  358. i := 1
  359. j := 3
  360. k := 5
  361. -------------------------------------------------------------------------------
  362. #1938 - mixed sections and generates
  363. B
  364. -------------------------------------------------------------------------------
  365. PartTracker.tests.cpp:<line number>
  366. ...............................................................................
  367. PartTracker.tests.cpp:<line number>: PASSED:
  368. with message:
  369. B
  370. -------------------------------------------------------------------------------
  371. #1938 - mixed sections and generates
  372. -------------------------------------------------------------------------------
  373. PartTracker.tests.cpp:<line number>
  374. ...............................................................................
  375. PartTracker.tests.cpp:<line number>: PASSED:
  376. with messages:
  377. i := 1
  378. j := 3
  379. k := 6
  380. -------------------------------------------------------------------------------
  381. #1938 - mixed sections and generates
  382. B
  383. -------------------------------------------------------------------------------
  384. PartTracker.tests.cpp:<line number>
  385. ...............................................................................
  386. PartTracker.tests.cpp:<line number>: PASSED:
  387. with message:
  388. B
  389. -------------------------------------------------------------------------------
  390. #1938 - mixed sections and generates
  391. -------------------------------------------------------------------------------
  392. PartTracker.tests.cpp:<line number>
  393. ...............................................................................
  394. PartTracker.tests.cpp:<line number>: PASSED:
  395. with messages:
  396. i := 1
  397. j := 4
  398. k := 5
  399. -------------------------------------------------------------------------------
  400. #1938 - mixed sections and generates
  401. -------------------------------------------------------------------------------
  402. PartTracker.tests.cpp:<line number>
  403. ...............................................................................
  404. PartTracker.tests.cpp:<line number>: PASSED:
  405. with messages:
  406. i := 1
  407. j := 4
  408. k := 6
  409. -------------------------------------------------------------------------------
  410. #1938 - mixed sections and generates
  411. A
  412. -------------------------------------------------------------------------------
  413. PartTracker.tests.cpp:<line number>
  414. ...............................................................................
  415. PartTracker.tests.cpp:<line number>: PASSED:
  416. with message:
  417. A
  418. -------------------------------------------------------------------------------
  419. #1938 - mixed sections and generates
  420. -------------------------------------------------------------------------------
  421. PartTracker.tests.cpp:<line number>
  422. ...............................................................................
  423. PartTracker.tests.cpp:<line number>: PASSED:
  424. with messages:
  425. i := 2
  426. j := 3
  427. k := 5
  428. -------------------------------------------------------------------------------
  429. #1938 - mixed sections and generates
  430. B
  431. -------------------------------------------------------------------------------
  432. PartTracker.tests.cpp:<line number>
  433. ...............................................................................
  434. PartTracker.tests.cpp:<line number>: PASSED:
  435. with message:
  436. B
  437. -------------------------------------------------------------------------------
  438. #1938 - mixed sections and generates
  439. -------------------------------------------------------------------------------
  440. PartTracker.tests.cpp:<line number>
  441. ...............................................................................
  442. PartTracker.tests.cpp:<line number>: PASSED:
  443. with messages:
  444. i := 2
  445. j := 3
  446. k := 6
  447. -------------------------------------------------------------------------------
  448. #1938 - mixed sections and generates
  449. B
  450. -------------------------------------------------------------------------------
  451. PartTracker.tests.cpp:<line number>
  452. ...............................................................................
  453. PartTracker.tests.cpp:<line number>: PASSED:
  454. with message:
  455. B
  456. -------------------------------------------------------------------------------
  457. #1938 - mixed sections and generates
  458. -------------------------------------------------------------------------------
  459. PartTracker.tests.cpp:<line number>
  460. ...............................................................................
  461. PartTracker.tests.cpp:<line number>: PASSED:
  462. with messages:
  463. i := 2
  464. j := 4
  465. k := 5
  466. -------------------------------------------------------------------------------
  467. #1938 - mixed sections and generates
  468. -------------------------------------------------------------------------------
  469. PartTracker.tests.cpp:<line number>
  470. ...............................................................................
  471. PartTracker.tests.cpp:<line number>: PASSED:
  472. with messages:
  473. i := 2
  474. j := 4
  475. k := 6
  476. -------------------------------------------------------------------------------
  477. #1938 - nested generate
  478. -------------------------------------------------------------------------------
  479. PartTracker.tests.cpp:<line number>
  480. ...............................................................................
  481. PartTracker.tests.cpp:<line number>: PASSED:
  482. REQUIRE( m )
  483. with expansion:
  484. 1
  485. PartTracker.tests.cpp:<line number>: PASSED:
  486. REQUIRE( n )
  487. with expansion:
  488. 1
  489. -------------------------------------------------------------------------------
  490. #1938 - nested generate
  491. -------------------------------------------------------------------------------
  492. PartTracker.tests.cpp:<line number>
  493. ...............................................................................
  494. PartTracker.tests.cpp:<line number>: PASSED:
  495. REQUIRE( m )
  496. with expansion:
  497. 1
  498. PartTracker.tests.cpp:<line number>: PASSED:
  499. REQUIRE( n )
  500. with expansion:
  501. 2
  502. -------------------------------------------------------------------------------
  503. #1938 - nested generate
  504. -------------------------------------------------------------------------------
  505. PartTracker.tests.cpp:<line number>
  506. ...............................................................................
  507. PartTracker.tests.cpp:<line number>: PASSED:
  508. REQUIRE( m )
  509. with expansion:
  510. 1
  511. PartTracker.tests.cpp:<line number>: PASSED:
  512. REQUIRE( n )
  513. with expansion:
  514. 3
  515. -------------------------------------------------------------------------------
  516. #1938 - nested generate
  517. -------------------------------------------------------------------------------
  518. PartTracker.tests.cpp:<line number>
  519. ...............................................................................
  520. PartTracker.tests.cpp:<line number>: PASSED:
  521. REQUIRE( m )
  522. with expansion:
  523. 2
  524. PartTracker.tests.cpp:<line number>: PASSED:
  525. REQUIRE( n )
  526. with expansion:
  527. 1
  528. -------------------------------------------------------------------------------
  529. #1938 - nested generate
  530. -------------------------------------------------------------------------------
  531. PartTracker.tests.cpp:<line number>
  532. ...............................................................................
  533. PartTracker.tests.cpp:<line number>: PASSED:
  534. REQUIRE( m )
  535. with expansion:
  536. 2
  537. PartTracker.tests.cpp:<line number>: PASSED:
  538. REQUIRE( n )
  539. with expansion:
  540. 2
  541. -------------------------------------------------------------------------------
  542. #1938 - nested generate
  543. -------------------------------------------------------------------------------
  544. PartTracker.tests.cpp:<line number>
  545. ...............................................................................
  546. PartTracker.tests.cpp:<line number>: PASSED:
  547. REQUIRE( m )
  548. with expansion:
  549. 2
  550. PartTracker.tests.cpp:<line number>: PASSED:
  551. REQUIRE( n )
  552. with expansion:
  553. 3
  554. -------------------------------------------------------------------------------
  555. #1938 - nested generate
  556. -------------------------------------------------------------------------------
  557. PartTracker.tests.cpp:<line number>
  558. ...............................................................................
  559. PartTracker.tests.cpp:<line number>: PASSED:
  560. REQUIRE( m )
  561. with expansion:
  562. 3
  563. PartTracker.tests.cpp:<line number>: PASSED:
  564. REQUIRE( n )
  565. with expansion:
  566. 1
  567. -------------------------------------------------------------------------------
  568. #1938 - nested generate
  569. -------------------------------------------------------------------------------
  570. PartTracker.tests.cpp:<line number>
  571. ...............................................................................
  572. PartTracker.tests.cpp:<line number>: PASSED:
  573. REQUIRE( m )
  574. with expansion:
  575. 3
  576. PartTracker.tests.cpp:<line number>: PASSED:
  577. REQUIRE( n )
  578. with expansion:
  579. 2
  580. -------------------------------------------------------------------------------
  581. #1938 - nested generate
  582. -------------------------------------------------------------------------------
  583. PartTracker.tests.cpp:<line number>
  584. ...............................................................................
  585. PartTracker.tests.cpp:<line number>: PASSED:
  586. REQUIRE( m )
  587. with expansion:
  588. 3
  589. PartTracker.tests.cpp:<line number>: PASSED:
  590. REQUIRE( n )
  591. with expansion:
  592. 3
  593. -------------------------------------------------------------------------------
  594. #1954 - 7 arg template test case sig compiles - 1, 1, 1, 1, 1, 0, 0
  595. -------------------------------------------------------------------------------
  596. Misc.tests.cpp:<line number>
  597. ...............................................................................
  598. Misc.tests.cpp:<line number>: PASSED:
  599. -------------------------------------------------------------------------------
  600. #1954 - 7 arg template test case sig compiles - 5, 1, 1, 1, 1, 0, 0
  601. -------------------------------------------------------------------------------
  602. Misc.tests.cpp:<line number>
  603. ...............................................................................
  604. Misc.tests.cpp:<line number>: PASSED:
  605. -------------------------------------------------------------------------------
  606. #1954 - 7 arg template test case sig compiles - 5, 3, 1, 1, 1, 0, 0
  607. -------------------------------------------------------------------------------
  608. Misc.tests.cpp:<line number>
  609. ...............................................................................
  610. Misc.tests.cpp:<line number>: PASSED:
  611. -------------------------------------------------------------------------------
  612. #748 - captures with unexpected exceptions
  613. outside assertions
  614. -------------------------------------------------------------------------------
  615. Exception.tests.cpp:<line number>
  616. ...............................................................................
  617. Exception.tests.cpp:<line number>: FAILED:
  618. due to unexpected exception with messages:
  619. answer := 42
  620. expected exception
  621. -------------------------------------------------------------------------------
  622. #748 - captures with unexpected exceptions
  623. inside REQUIRE_NOTHROW
  624. -------------------------------------------------------------------------------
  625. Exception.tests.cpp:<line number>
  626. ...............................................................................
  627. Exception.tests.cpp:<line number>: FAILED:
  628. REQUIRE_NOTHROW( thisThrows() )
  629. due to unexpected exception with messages:
  630. answer := 42
  631. expected exception
  632. -------------------------------------------------------------------------------
  633. #748 - captures with unexpected exceptions
  634. inside REQUIRE_THROWS
  635. -------------------------------------------------------------------------------
  636. Exception.tests.cpp:<line number>
  637. ...............................................................................
  638. Exception.tests.cpp:<line number>: PASSED:
  639. REQUIRE_THROWS( thisThrows() )
  640. with message:
  641. answer := 42
  642. -------------------------------------------------------------------------------
  643. #809
  644. -------------------------------------------------------------------------------
  645. Compilation.tests.cpp:<line number>
  646. ...............................................................................
  647. Compilation.tests.cpp:<line number>: PASSED:
  648. REQUIRE( 42 == f )
  649. with expansion:
  650. 42 == {?}
  651. -------------------------------------------------------------------------------
  652. #833
  653. -------------------------------------------------------------------------------
  654. Compilation.tests.cpp:<line number>
  655. ...............................................................................
  656. Compilation.tests.cpp:<line number>: PASSED:
  657. REQUIRE( a == t )
  658. with expansion:
  659. 3 == 3
  660. Compilation.tests.cpp:<line number>: PASSED:
  661. CHECK( a == t )
  662. with expansion:
  663. 3 == 3
  664. Compilation.tests.cpp:<line number>: PASSED:
  665. REQUIRE_THROWS( throws_int(true) )
  666. Compilation.tests.cpp:<line number>: PASSED:
  667. CHECK_THROWS_AS( throws_int(true), int )
  668. Compilation.tests.cpp:<line number>: PASSED:
  669. REQUIRE_NOTHROW( throws_int(false) )
  670. Compilation.tests.cpp:<line number>: PASSED:
  671. REQUIRE_THAT( "aaa", Catch::EndsWith("aaa") )
  672. with expansion:
  673. "aaa" ends with: "aaa"
  674. Compilation.tests.cpp:<line number>: PASSED:
  675. REQUIRE( templated_tests<int>(3) )
  676. with expansion:
  677. true
  678. -------------------------------------------------------------------------------
  679. #835 -- errno should not be touched by Catch
  680. -------------------------------------------------------------------------------
  681. Misc.tests.cpp:<line number>
  682. ...............................................................................
  683. Misc.tests.cpp:<line number>: FAILED:
  684. CHECK( f() == 0 )
  685. with expansion:
  686. 1 == 0
  687. Misc.tests.cpp:<line number>: PASSED:
  688. REQUIRE( errno == 1 )
  689. with expansion:
  690. 1 == 1
  691. -------------------------------------------------------------------------------
  692. #872
  693. -------------------------------------------------------------------------------
  694. Compilation.tests.cpp:<line number>
  695. ...............................................................................
  696. Compilation.tests.cpp:<line number>: PASSED:
  697. REQUIRE( x == 4 )
  698. with expansion:
  699. {?} == 4
  700. with message:
  701. dummy := 0
  702. -------------------------------------------------------------------------------
  703. #961 -- Dynamically created sections should all be reported
  704. Looped section 0
  705. -------------------------------------------------------------------------------
  706. Misc.tests.cpp:<line number>
  707. ...............................................................................
  708. Misc.tests.cpp:<line number>: PASSED:
  709. with message:
  710. Everything is OK
  711. -------------------------------------------------------------------------------
  712. #961 -- Dynamically created sections should all be reported
  713. Looped section 1
  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 2
  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 3
  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 4
  741. -------------------------------------------------------------------------------
  742. Misc.tests.cpp:<line number>
  743. ...............................................................................
  744. Misc.tests.cpp:<line number>: PASSED:
  745. with message:
  746. Everything is OK
  747. -------------------------------------------------------------------------------
  748. 'Not' checks that should fail
  749. -------------------------------------------------------------------------------
  750. Condition.tests.cpp:<line number>
  751. ...............................................................................
  752. Condition.tests.cpp:<line number>: FAILED:
  753. CHECK( false != false )
  754. Condition.tests.cpp:<line number>: FAILED:
  755. CHECK( true != true )
  756. Condition.tests.cpp:<line number>: FAILED:
  757. CHECK( !true )
  758. with expansion:
  759. false
  760. Condition.tests.cpp:<line number>: FAILED:
  761. CHECK_FALSE( true )
  762. with expansion:
  763. !true
  764. Condition.tests.cpp:<line number>: FAILED:
  765. CHECK( !trueValue )
  766. with expansion:
  767. false
  768. Condition.tests.cpp:<line number>: FAILED:
  769. CHECK_FALSE( trueValue )
  770. with expansion:
  771. !true
  772. Condition.tests.cpp:<line number>: FAILED:
  773. CHECK( !(1 == 1) )
  774. with expansion:
  775. false
  776. Condition.tests.cpp:<line number>: FAILED:
  777. CHECK_FALSE( 1 == 1 )
  778. -------------------------------------------------------------------------------
  779. 'Not' checks that should succeed
  780. -------------------------------------------------------------------------------
  781. Condition.tests.cpp:<line number>
  782. ...............................................................................
  783. Condition.tests.cpp:<line number>: PASSED:
  784. REQUIRE( false == false )
  785. Condition.tests.cpp:<line number>: PASSED:
  786. REQUIRE( true == true )
  787. Condition.tests.cpp:<line number>: PASSED:
  788. REQUIRE( !false )
  789. with expansion:
  790. true
  791. Condition.tests.cpp:<line number>: PASSED:
  792. REQUIRE_FALSE( false )
  793. with expansion:
  794. !false
  795. Condition.tests.cpp:<line number>: PASSED:
  796. REQUIRE( !falseValue )
  797. with expansion:
  798. true
  799. Condition.tests.cpp:<line number>: PASSED:
  800. REQUIRE_FALSE( falseValue )
  801. with expansion:
  802. !false
  803. Condition.tests.cpp:<line number>: PASSED:
  804. REQUIRE( !(1 == 2) )
  805. with expansion:
  806. true
  807. Condition.tests.cpp:<line number>: PASSED:
  808. REQUIRE_FALSE( 1 == 2 )
  809. -------------------------------------------------------------------------------
  810. (unimplemented) static bools can be evaluated
  811. compare to true
  812. -------------------------------------------------------------------------------
  813. Tricky.tests.cpp:<line number>
  814. ...............................................................................
  815. Tricky.tests.cpp:<line number>: PASSED:
  816. REQUIRE( is_true<true>::value == true )
  817. with expansion:
  818. true == true
  819. Tricky.tests.cpp:<line number>: PASSED:
  820. REQUIRE( true == is_true<true>::value )
  821. with expansion:
  822. true == true
  823. -------------------------------------------------------------------------------
  824. (unimplemented) static bools can be evaluated
  825. compare to false
  826. -------------------------------------------------------------------------------
  827. Tricky.tests.cpp:<line number>
  828. ...............................................................................
  829. Tricky.tests.cpp:<line number>: PASSED:
  830. REQUIRE( is_true<false>::value == false )
  831. with expansion:
  832. false == false
  833. Tricky.tests.cpp:<line number>: PASSED:
  834. REQUIRE( false == is_true<false>::value )
  835. with expansion:
  836. false == false
  837. -------------------------------------------------------------------------------
  838. (unimplemented) static bools can be evaluated
  839. negation
  840. -------------------------------------------------------------------------------
  841. Tricky.tests.cpp:<line number>
  842. ...............................................................................
  843. Tricky.tests.cpp:<line number>: PASSED:
  844. REQUIRE( !is_true<false>::value )
  845. with expansion:
  846. true
  847. -------------------------------------------------------------------------------
  848. (unimplemented) static bools can be evaluated
  849. double negation
  850. -------------------------------------------------------------------------------
  851. Tricky.tests.cpp:<line number>
  852. ...............................................................................
  853. Tricky.tests.cpp:<line number>: PASSED:
  854. REQUIRE( !!is_true<true>::value )
  855. with expansion:
  856. true
  857. -------------------------------------------------------------------------------
  858. (unimplemented) static bools can be evaluated
  859. direct
  860. -------------------------------------------------------------------------------
  861. Tricky.tests.cpp:<line number>
  862. ...............................................................................
  863. Tricky.tests.cpp:<line number>: PASSED:
  864. REQUIRE( is_true<true>::value )
  865. with expansion:
  866. true
  867. Tricky.tests.cpp:<line number>: PASSED:
  868. REQUIRE_FALSE( is_true<false>::value )
  869. with expansion:
  870. !false
  871. -------------------------------------------------------------------------------
  872. 3x3x3 ints
  873. -------------------------------------------------------------------------------
  874. Generators.tests.cpp:<line number>
  875. ...............................................................................
  876. Generators.tests.cpp:<line number>: PASSED:
  877. CHECK( x < y )
  878. with expansion:
  879. 1 < 4
  880. Generators.tests.cpp:<line number>: PASSED:
  881. CHECK( y < z )
  882. with expansion:
  883. 4 < 7
  884. Generators.tests.cpp:<line number>: PASSED:
  885. REQUIRE( x < z )
  886. with expansion:
  887. 1 < 7
  888. -------------------------------------------------------------------------------
  889. 3x3x3 ints
  890. -------------------------------------------------------------------------------
  891. Generators.tests.cpp:<line number>
  892. ...............................................................................
  893. Generators.tests.cpp:<line number>: PASSED:
  894. CHECK( x < y )
  895. with expansion:
  896. 1 < 4
  897. Generators.tests.cpp:<line number>: PASSED:
  898. CHECK( y < z )
  899. with expansion:
  900. 4 < 8
  901. Generators.tests.cpp:<line number>: PASSED:
  902. REQUIRE( x < z )
  903. with expansion:
  904. 1 < 8
  905. -------------------------------------------------------------------------------
  906. 3x3x3 ints
  907. -------------------------------------------------------------------------------
  908. Generators.tests.cpp:<line number>
  909. ...............................................................................
  910. Generators.tests.cpp:<line number>: PASSED:
  911. CHECK( x < y )
  912. with expansion:
  913. 1 < 4
  914. Generators.tests.cpp:<line number>: PASSED:
  915. CHECK( y < z )
  916. with expansion:
  917. 4 < 9
  918. Generators.tests.cpp:<line number>: PASSED:
  919. REQUIRE( x < z )
  920. with expansion:
  921. 1 < 9
  922. -------------------------------------------------------------------------------
  923. 3x3x3 ints
  924. -------------------------------------------------------------------------------
  925. Generators.tests.cpp:<line number>
  926. ...............................................................................
  927. Generators.tests.cpp:<line number>: PASSED:
  928. CHECK( x < y )
  929. with expansion:
  930. 1 < 5
  931. Generators.tests.cpp:<line number>: PASSED:
  932. CHECK( y < z )
  933. with expansion:
  934. 5 < 7
  935. Generators.tests.cpp:<line number>: PASSED:
  936. REQUIRE( x < z )
  937. with expansion:
  938. 1 < 7
  939. -------------------------------------------------------------------------------
  940. 3x3x3 ints
  941. -------------------------------------------------------------------------------
  942. Generators.tests.cpp:<line number>
  943. ...............................................................................
  944. Generators.tests.cpp:<line number>: PASSED:
  945. CHECK( x < y )
  946. with expansion:
  947. 1 < 5
  948. Generators.tests.cpp:<line number>: PASSED:
  949. CHECK( y < z )
  950. with expansion:
  951. 5 < 8
  952. Generators.tests.cpp:<line number>: PASSED:
  953. REQUIRE( x < z )
  954. with expansion:
  955. 1 < 8
  956. -------------------------------------------------------------------------------
  957. 3x3x3 ints
  958. -------------------------------------------------------------------------------
  959. Generators.tests.cpp:<line number>
  960. ...............................................................................
  961. Generators.tests.cpp:<line number>: PASSED:
  962. CHECK( x < y )
  963. with expansion:
  964. 1 < 5
  965. Generators.tests.cpp:<line number>: PASSED:
  966. CHECK( y < z )
  967. with expansion:
  968. 5 < 9
  969. Generators.tests.cpp:<line number>: PASSED:
  970. REQUIRE( x < z )
  971. with expansion:
  972. 1 < 9
  973. -------------------------------------------------------------------------------
  974. 3x3x3 ints
  975. -------------------------------------------------------------------------------
  976. Generators.tests.cpp:<line number>
  977. ...............................................................................
  978. Generators.tests.cpp:<line number>: PASSED:
  979. CHECK( x < y )
  980. with expansion:
  981. 1 < 6
  982. Generators.tests.cpp:<line number>: PASSED:
  983. CHECK( y < z )
  984. with expansion:
  985. 6 < 7
  986. Generators.tests.cpp:<line number>: PASSED:
  987. REQUIRE( x < z )
  988. with expansion:
  989. 1 < 7
  990. -------------------------------------------------------------------------------
  991. 3x3x3 ints
  992. -------------------------------------------------------------------------------
  993. Generators.tests.cpp:<line number>
  994. ...............................................................................
  995. Generators.tests.cpp:<line number>: PASSED:
  996. CHECK( x < y )
  997. with expansion:
  998. 1 < 6
  999. Generators.tests.cpp:<line number>: PASSED:
  1000. CHECK( y < z )
  1001. with expansion:
  1002. 6 < 8
  1003. Generators.tests.cpp:<line number>: PASSED:
  1004. REQUIRE( x < z )
  1005. with expansion:
  1006. 1 < 8
  1007. -------------------------------------------------------------------------------
  1008. 3x3x3 ints
  1009. -------------------------------------------------------------------------------
  1010. Generators.tests.cpp:<line number>
  1011. ...............................................................................
  1012. Generators.tests.cpp:<line number>: PASSED:
  1013. CHECK( x < y )
  1014. with expansion:
  1015. 1 < 6
  1016. Generators.tests.cpp:<line number>: PASSED:
  1017. CHECK( y < z )
  1018. with expansion:
  1019. 6 < 9
  1020. Generators.tests.cpp:<line number>: PASSED:
  1021. REQUIRE( x < z )
  1022. with expansion:
  1023. 1 < 9
  1024. -------------------------------------------------------------------------------
  1025. 3x3x3 ints
  1026. -------------------------------------------------------------------------------
  1027. Generators.tests.cpp:<line number>
  1028. ...............................................................................
  1029. Generators.tests.cpp:<line number>: PASSED:
  1030. CHECK( x < y )
  1031. with expansion:
  1032. 2 < 4
  1033. Generators.tests.cpp:<line number>: PASSED:
  1034. CHECK( y < z )
  1035. with expansion:
  1036. 4 < 7
  1037. Generators.tests.cpp:<line number>: PASSED:
  1038. REQUIRE( x < z )
  1039. with expansion:
  1040. 2 < 7
  1041. -------------------------------------------------------------------------------
  1042. 3x3x3 ints
  1043. -------------------------------------------------------------------------------
  1044. Generators.tests.cpp:<line number>
  1045. ...............................................................................
  1046. Generators.tests.cpp:<line number>: PASSED:
  1047. CHECK( x < y )
  1048. with expansion:
  1049. 2 < 4
  1050. Generators.tests.cpp:<line number>: PASSED:
  1051. CHECK( y < z )
  1052. with expansion:
  1053. 4 < 8
  1054. Generators.tests.cpp:<line number>: PASSED:
  1055. REQUIRE( x < z )
  1056. with expansion:
  1057. 2 < 8
  1058. -------------------------------------------------------------------------------
  1059. 3x3x3 ints
  1060. -------------------------------------------------------------------------------
  1061. Generators.tests.cpp:<line number>
  1062. ...............................................................................
  1063. Generators.tests.cpp:<line number>: PASSED:
  1064. CHECK( x < y )
  1065. with expansion:
  1066. 2 < 4
  1067. Generators.tests.cpp:<line number>: PASSED:
  1068. CHECK( y < z )
  1069. with expansion:
  1070. 4 < 9
  1071. Generators.tests.cpp:<line number>: PASSED:
  1072. REQUIRE( x < z )
  1073. with expansion:
  1074. 2 < 9
  1075. -------------------------------------------------------------------------------
  1076. 3x3x3 ints
  1077. -------------------------------------------------------------------------------
  1078. Generators.tests.cpp:<line number>
  1079. ...............................................................................
  1080. Generators.tests.cpp:<line number>: PASSED:
  1081. CHECK( x < y )
  1082. with expansion:
  1083. 2 < 5
  1084. Generators.tests.cpp:<line number>: PASSED:
  1085. CHECK( y < z )
  1086. with expansion:
  1087. 5 < 7
  1088. Generators.tests.cpp:<line number>: PASSED:
  1089. REQUIRE( x < z )
  1090. with expansion:
  1091. 2 < 7
  1092. -------------------------------------------------------------------------------
  1093. 3x3x3 ints
  1094. -------------------------------------------------------------------------------
  1095. Generators.tests.cpp:<line number>
  1096. ...............................................................................
  1097. Generators.tests.cpp:<line number>: PASSED:
  1098. CHECK( x < y )
  1099. with expansion:
  1100. 2 < 5
  1101. Generators.tests.cpp:<line number>: PASSED:
  1102. CHECK( y < z )
  1103. with expansion:
  1104. 5 < 8
  1105. Generators.tests.cpp:<line number>: PASSED:
  1106. REQUIRE( x < z )
  1107. with expansion:
  1108. 2 < 8
  1109. -------------------------------------------------------------------------------
  1110. 3x3x3 ints
  1111. -------------------------------------------------------------------------------
  1112. Generators.tests.cpp:<line number>
  1113. ...............................................................................
  1114. Generators.tests.cpp:<line number>: PASSED:
  1115. CHECK( x < y )
  1116. with expansion:
  1117. 2 < 5
  1118. Generators.tests.cpp:<line number>: PASSED:
  1119. CHECK( y < z )
  1120. with expansion:
  1121. 5 < 9
  1122. Generators.tests.cpp:<line number>: PASSED:
  1123. REQUIRE( x < z )
  1124. with expansion:
  1125. 2 < 9
  1126. -------------------------------------------------------------------------------
  1127. 3x3x3 ints
  1128. -------------------------------------------------------------------------------
  1129. Generators.tests.cpp:<line number>
  1130. ...............................................................................
  1131. Generators.tests.cpp:<line number>: PASSED:
  1132. CHECK( x < y )
  1133. with expansion:
  1134. 2 < 6
  1135. Generators.tests.cpp:<line number>: PASSED:
  1136. CHECK( y < z )
  1137. with expansion:
  1138. 6 < 7
  1139. Generators.tests.cpp:<line number>: PASSED:
  1140. REQUIRE( x < z )
  1141. with expansion:
  1142. 2 < 7
  1143. -------------------------------------------------------------------------------
  1144. 3x3x3 ints
  1145. -------------------------------------------------------------------------------
  1146. Generators.tests.cpp:<line number>
  1147. ...............................................................................
  1148. Generators.tests.cpp:<line number>: PASSED:
  1149. CHECK( x < y )
  1150. with expansion:
  1151. 2 < 6
  1152. Generators.tests.cpp:<line number>: PASSED:
  1153. CHECK( y < z )
  1154. with expansion:
  1155. 6 < 8
  1156. Generators.tests.cpp:<line number>: PASSED:
  1157. REQUIRE( x < z )
  1158. with expansion:
  1159. 2 < 8
  1160. -------------------------------------------------------------------------------
  1161. 3x3x3 ints
  1162. -------------------------------------------------------------------------------
  1163. Generators.tests.cpp:<line number>
  1164. ...............................................................................
  1165. Generators.tests.cpp:<line number>: PASSED:
  1166. CHECK( x < y )
  1167. with expansion:
  1168. 2 < 6
  1169. Generators.tests.cpp:<line number>: PASSED:
  1170. CHECK( y < z )
  1171. with expansion:
  1172. 6 < 9
  1173. Generators.tests.cpp:<line number>: PASSED:
  1174. REQUIRE( x < z )
  1175. with expansion:
  1176. 2 < 9
  1177. -------------------------------------------------------------------------------
  1178. 3x3x3 ints
  1179. -------------------------------------------------------------------------------
  1180. Generators.tests.cpp:<line number>
  1181. ...............................................................................
  1182. Generators.tests.cpp:<line number>: PASSED:
  1183. CHECK( x < y )
  1184. with expansion:
  1185. 3 < 4
  1186. Generators.tests.cpp:<line number>: PASSED:
  1187. CHECK( y < z )
  1188. with expansion:
  1189. 4 < 7
  1190. Generators.tests.cpp:<line number>: PASSED:
  1191. REQUIRE( x < z )
  1192. with expansion:
  1193. 3 < 7
  1194. -------------------------------------------------------------------------------
  1195. 3x3x3 ints
  1196. -------------------------------------------------------------------------------
  1197. Generators.tests.cpp:<line number>
  1198. ...............................................................................
  1199. Generators.tests.cpp:<line number>: PASSED:
  1200. CHECK( x < y )
  1201. with expansion:
  1202. 3 < 4
  1203. Generators.tests.cpp:<line number>: PASSED:
  1204. CHECK( y < z )
  1205. with expansion:
  1206. 4 < 8
  1207. Generators.tests.cpp:<line number>: PASSED:
  1208. REQUIRE( x < z )
  1209. with expansion:
  1210. 3 < 8
  1211. -------------------------------------------------------------------------------
  1212. 3x3x3 ints
  1213. -------------------------------------------------------------------------------
  1214. Generators.tests.cpp:<line number>
  1215. ...............................................................................
  1216. Generators.tests.cpp:<line number>: PASSED:
  1217. CHECK( x < y )
  1218. with expansion:
  1219. 3 < 4
  1220. Generators.tests.cpp:<line number>: PASSED:
  1221. CHECK( y < z )
  1222. with expansion:
  1223. 4 < 9
  1224. Generators.tests.cpp:<line number>: PASSED:
  1225. REQUIRE( x < z )
  1226. with expansion:
  1227. 3 < 9
  1228. -------------------------------------------------------------------------------
  1229. 3x3x3 ints
  1230. -------------------------------------------------------------------------------
  1231. Generators.tests.cpp:<line number>
  1232. ...............................................................................
  1233. Generators.tests.cpp:<line number>: PASSED:
  1234. CHECK( x < y )
  1235. with expansion:
  1236. 3 < 5
  1237. Generators.tests.cpp:<line number>: PASSED:
  1238. CHECK( y < z )
  1239. with expansion:
  1240. 5 < 7
  1241. Generators.tests.cpp:<line number>: PASSED:
  1242. REQUIRE( x < z )
  1243. with expansion:
  1244. 3 < 7
  1245. -------------------------------------------------------------------------------
  1246. 3x3x3 ints
  1247. -------------------------------------------------------------------------------
  1248. Generators.tests.cpp:<line number>
  1249. ...............................................................................
  1250. Generators.tests.cpp:<line number>: PASSED:
  1251. CHECK( x < y )
  1252. with expansion:
  1253. 3 < 5
  1254. Generators.tests.cpp:<line number>: PASSED:
  1255. CHECK( y < z )
  1256. with expansion:
  1257. 5 < 8
  1258. Generators.tests.cpp:<line number>: PASSED:
  1259. REQUIRE( x < z )
  1260. with expansion:
  1261. 3 < 8
  1262. -------------------------------------------------------------------------------
  1263. 3x3x3 ints
  1264. -------------------------------------------------------------------------------
  1265. Generators.tests.cpp:<line number>
  1266. ...............................................................................
  1267. Generators.tests.cpp:<line number>: PASSED:
  1268. CHECK( x < y )
  1269. with expansion:
  1270. 3 < 5
  1271. Generators.tests.cpp:<line number>: PASSED:
  1272. CHECK( y < z )
  1273. with expansion:
  1274. 5 < 9
  1275. Generators.tests.cpp:<line number>: PASSED:
  1276. REQUIRE( x < z )
  1277. with expansion:
  1278. 3 < 9
  1279. -------------------------------------------------------------------------------
  1280. 3x3x3 ints
  1281. -------------------------------------------------------------------------------
  1282. Generators.tests.cpp:<line number>
  1283. ...............................................................................
  1284. Generators.tests.cpp:<line number>: PASSED:
  1285. CHECK( x < y )
  1286. with expansion:
  1287. 3 < 6
  1288. Generators.tests.cpp:<line number>: PASSED:
  1289. CHECK( y < z )
  1290. with expansion:
  1291. 6 < 7
  1292. Generators.tests.cpp:<line number>: PASSED:
  1293. REQUIRE( x < z )
  1294. with expansion:
  1295. 3 < 7
  1296. -------------------------------------------------------------------------------
  1297. 3x3x3 ints
  1298. -------------------------------------------------------------------------------
  1299. Generators.tests.cpp:<line number>
  1300. ...............................................................................
  1301. Generators.tests.cpp:<line number>: PASSED:
  1302. CHECK( x < y )
  1303. with expansion:
  1304. 3 < 6
  1305. Generators.tests.cpp:<line number>: PASSED:
  1306. CHECK( y < z )
  1307. with expansion:
  1308. 6 < 8
  1309. Generators.tests.cpp:<line number>: PASSED:
  1310. REQUIRE( x < z )
  1311. with expansion:
  1312. 3 < 8
  1313. -------------------------------------------------------------------------------
  1314. 3x3x3 ints
  1315. -------------------------------------------------------------------------------
  1316. Generators.tests.cpp:<line number>
  1317. ...............................................................................
  1318. Generators.tests.cpp:<line number>: PASSED:
  1319. CHECK( x < y )
  1320. with expansion:
  1321. 3 < 6
  1322. Generators.tests.cpp:<line number>: PASSED:
  1323. CHECK( y < z )
  1324. with expansion:
  1325. 6 < 9
  1326. Generators.tests.cpp:<line number>: PASSED:
  1327. REQUIRE( x < z )
  1328. with expansion:
  1329. 3 < 9
  1330. -------------------------------------------------------------------------------
  1331. A METHOD_AS_TEST_CASE based test run that fails
  1332. -------------------------------------------------------------------------------
  1333. Class.tests.cpp:<line number>
  1334. ...............................................................................
  1335. Class.tests.cpp:<line number>: FAILED:
  1336. REQUIRE( s == "world" )
  1337. with expansion:
  1338. "hello" == "world"
  1339. -------------------------------------------------------------------------------
  1340. A METHOD_AS_TEST_CASE based test run that succeeds
  1341. -------------------------------------------------------------------------------
  1342. Class.tests.cpp:<line number>
  1343. ...............................................................................
  1344. Class.tests.cpp:<line number>: PASSED:
  1345. REQUIRE( s == "hello" )
  1346. with expansion:
  1347. "hello" == "hello"
  1348. -------------------------------------------------------------------------------
  1349. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo
  1350. <float>
  1351. -------------------------------------------------------------------------------
  1352. Class.tests.cpp:<line number>
  1353. ...............................................................................
  1354. Class.tests.cpp:<line number>: FAILED:
  1355. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
  1356. with expansion:
  1357. 0 == 1
  1358. -------------------------------------------------------------------------------
  1359. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo
  1360. <int>
  1361. -------------------------------------------------------------------------------
  1362. Class.tests.cpp:<line number>
  1363. ...............................................................................
  1364. Class.tests.cpp:<line number>: FAILED:
  1365. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
  1366. with expansion:
  1367. 0 == 1
  1368. -------------------------------------------------------------------------------
  1369. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector
  1370. <float>
  1371. -------------------------------------------------------------------------------
  1372. Class.tests.cpp:<line number>
  1373. ...............................................................................
  1374. Class.tests.cpp:<line number>: FAILED:
  1375. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
  1376. with expansion:
  1377. 0 == 1
  1378. -------------------------------------------------------------------------------
  1379. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector
  1380. <int>
  1381. -------------------------------------------------------------------------------
  1382. Class.tests.cpp:<line number>
  1383. ...............................................................................
  1384. Class.tests.cpp:<line number>: FAILED:
  1385. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
  1386. with expansion:
  1387. 0 == 1
  1388. -------------------------------------------------------------------------------
  1389. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo
  1390. <float>
  1391. -------------------------------------------------------------------------------
  1392. Class.tests.cpp:<line number>
  1393. ...............................................................................
  1394. Class.tests.cpp:<line number>: PASSED:
  1395. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
  1396. with expansion:
  1397. 0 == 0
  1398. -------------------------------------------------------------------------------
  1399. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo
  1400. <int>
  1401. -------------------------------------------------------------------------------
  1402. Class.tests.cpp:<line number>
  1403. ...............................................................................
  1404. Class.tests.cpp:<line number>: PASSED:
  1405. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
  1406. with expansion:
  1407. 0 == 0
  1408. -------------------------------------------------------------------------------
  1409. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector
  1410. <float>
  1411. -------------------------------------------------------------------------------
  1412. Class.tests.cpp:<line number>
  1413. ...............................................................................
  1414. Class.tests.cpp:<line number>: PASSED:
  1415. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
  1416. with expansion:
  1417. 0 == 0
  1418. -------------------------------------------------------------------------------
  1419. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector
  1420. <int>
  1421. -------------------------------------------------------------------------------
  1422. Class.tests.cpp:<line number>
  1423. ...............................................................................
  1424. Class.tests.cpp:<line number>: PASSED:
  1425. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
  1426. with expansion:
  1427. 0 == 0
  1428. -------------------------------------------------------------------------------
  1429. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails -
  1430. Template_Foo_2<float, 6>
  1431. -------------------------------------------------------------------------------
  1432. Class.tests.cpp:<line number>
  1433. ...............................................................................
  1434. Class.tests.cpp:<line number>: FAILED:
  1435. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
  1436. with expansion:
  1437. 6 < 2
  1438. -------------------------------------------------------------------------------
  1439. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails -
  1440. Template_Foo_2<int, 2>
  1441. -------------------------------------------------------------------------------
  1442. Class.tests.cpp:<line number>
  1443. ...............................................................................
  1444. Class.tests.cpp:<line number>: FAILED:
  1445. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
  1446. with expansion:
  1447. 2 < 2
  1448. -------------------------------------------------------------------------------
  1449. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array
  1450. <float, 6>
  1451. -------------------------------------------------------------------------------
  1452. Class.tests.cpp:<line number>
  1453. ...............................................................................
  1454. Class.tests.cpp:<line number>: FAILED:
  1455. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
  1456. with expansion:
  1457. 6 < 2
  1458. -------------------------------------------------------------------------------
  1459. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array
  1460. <int, 2>
  1461. -------------------------------------------------------------------------------
  1462. Class.tests.cpp:<line number>
  1463. ...............................................................................
  1464. Class.tests.cpp:<line number>: FAILED:
  1465. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
  1466. with expansion:
  1467. 2 < 2
  1468. -------------------------------------------------------------------------------
  1469. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds -
  1470. Template_Foo_2<float,6>
  1471. -------------------------------------------------------------------------------
  1472. Class.tests.cpp:<line number>
  1473. ...............................................................................
  1474. Class.tests.cpp:<line number>: PASSED:
  1475. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
  1476. with expansion:
  1477. 6 >= 2
  1478. -------------------------------------------------------------------------------
  1479. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds -
  1480. Template_Foo_2<int,2>
  1481. -------------------------------------------------------------------------------
  1482. Class.tests.cpp:<line number>
  1483. ...............................................................................
  1484. Class.tests.cpp:<line number>: PASSED:
  1485. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
  1486. with expansion:
  1487. 2 >= 2
  1488. -------------------------------------------------------------------------------
  1489. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::
  1490. array<float,6>
  1491. -------------------------------------------------------------------------------
  1492. Class.tests.cpp:<line number>
  1493. ...............................................................................
  1494. Class.tests.cpp:<line number>: PASSED:
  1495. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
  1496. with expansion:
  1497. 6 >= 2
  1498. -------------------------------------------------------------------------------
  1499. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::
  1500. array<int,2>
  1501. -------------------------------------------------------------------------------
  1502. Class.tests.cpp:<line number>
  1503. ...............................................................................
  1504. Class.tests.cpp:<line number>: PASSED:
  1505. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
  1506. with expansion:
  1507. 2 >= 2
  1508. -------------------------------------------------------------------------------
  1509. A TEMPLATE_TEST_CASE_METHOD based test run that fails - double
  1510. -------------------------------------------------------------------------------
  1511. Class.tests.cpp:<line number>
  1512. ...............................................................................
  1513. Class.tests.cpp:<line number>: FAILED:
  1514. REQUIRE( Template_Fixture<TestType>::m_a == 2 )
  1515. with expansion:
  1516. 1.0 == 2
  1517. -------------------------------------------------------------------------------
  1518. A TEMPLATE_TEST_CASE_METHOD based test run that fails - float
  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.0f == 2
  1526. -------------------------------------------------------------------------------
  1527. A TEMPLATE_TEST_CASE_METHOD based test run that fails - int
  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 == 2
  1535. -------------------------------------------------------------------------------
  1536. A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - double
  1537. -------------------------------------------------------------------------------
  1538. Class.tests.cpp:<line number>
  1539. ...............................................................................
  1540. Class.tests.cpp:<line number>: PASSED:
  1541. REQUIRE( Template_Fixture<TestType>::m_a == 1 )
  1542. with expansion:
  1543. 1.0 == 1
  1544. -------------------------------------------------------------------------------
  1545. A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - float
  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.0f == 1
  1553. -------------------------------------------------------------------------------
  1554. A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - int
  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 == 1
  1562. -------------------------------------------------------------------------------
  1563. A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 1
  1564. -------------------------------------------------------------------------------
  1565. Class.tests.cpp:<line number>
  1566. ...............................................................................
  1567. Class.tests.cpp:<line number>: FAILED:
  1568. REQUIRE( Nttp_Fixture<V>::value == 0 )
  1569. with expansion:
  1570. 1 == 0
  1571. -------------------------------------------------------------------------------
  1572. A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 3
  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. 3 == 0
  1580. -------------------------------------------------------------------------------
  1581. A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 6
  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. 6 == 0
  1589. -------------------------------------------------------------------------------
  1590. A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 1
  1591. -------------------------------------------------------------------------------
  1592. Class.tests.cpp:<line number>
  1593. ...............................................................................
  1594. Class.tests.cpp:<line number>: PASSED:
  1595. REQUIRE( Nttp_Fixture<V>::value > 0 )
  1596. with expansion:
  1597. 1 > 0
  1598. -------------------------------------------------------------------------------
  1599. A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 3
  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. 3 > 0
  1607. -------------------------------------------------------------------------------
  1608. A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 6
  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. 6 > 0
  1616. -------------------------------------------------------------------------------
  1617. A TEST_CASE_METHOD based test run that fails
  1618. -------------------------------------------------------------------------------
  1619. Class.tests.cpp:<line number>
  1620. ...............................................................................
  1621. Class.tests.cpp:<line number>: FAILED:
  1622. REQUIRE( m_a == 2 )
  1623. with expansion:
  1624. 1 == 2
  1625. -------------------------------------------------------------------------------
  1626. A TEST_CASE_METHOD based test run that succeeds
  1627. -------------------------------------------------------------------------------
  1628. Class.tests.cpp:<line number>
  1629. ...............................................................................
  1630. Class.tests.cpp:<line number>: PASSED:
  1631. REQUIRE( m_a == 1 )
  1632. with expansion:
  1633. 1 == 1
  1634. -------------------------------------------------------------------------------
  1635. A Template product test case - Foo<float>
  1636. -------------------------------------------------------------------------------
  1637. Misc.tests.cpp:<line number>
  1638. ...............................................................................
  1639. Misc.tests.cpp:<line number>: PASSED:
  1640. REQUIRE( x.size() == 0 )
  1641. with expansion:
  1642. 0 == 0
  1643. -------------------------------------------------------------------------------
  1644. A Template product test case - Foo<int>
  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 - std::vector<float>
  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<int>
  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 with array signature - Bar<float, 42>
  1672. -------------------------------------------------------------------------------
  1673. Misc.tests.cpp:<line number>
  1674. ...............................................................................
  1675. Misc.tests.cpp:<line number>: PASSED:
  1676. REQUIRE( x.size() > 0 )
  1677. with expansion:
  1678. 42 > 0
  1679. -------------------------------------------------------------------------------
  1680. A Template product test case with array signature - Bar<int, 9>
  1681. -------------------------------------------------------------------------------
  1682. Misc.tests.cpp:<line number>
  1683. ...............................................................................
  1684. Misc.tests.cpp:<line number>: PASSED:
  1685. REQUIRE( x.size() > 0 )
  1686. with expansion:
  1687. 9 > 0
  1688. -------------------------------------------------------------------------------
  1689. A Template product test case with array signature - std::array<float, 42>
  1690. -------------------------------------------------------------------------------
  1691. Misc.tests.cpp:<line number>
  1692. ...............................................................................
  1693. Misc.tests.cpp:<line number>: PASSED:
  1694. REQUIRE( x.size() > 0 )
  1695. with expansion:
  1696. 42 > 0
  1697. -------------------------------------------------------------------------------
  1698. A Template product test case with array signature - std::array<int, 9>
  1699. -------------------------------------------------------------------------------
  1700. Misc.tests.cpp:<line number>
  1701. ...............................................................................
  1702. Misc.tests.cpp:<line number>: PASSED:
  1703. REQUIRE( x.size() > 0 )
  1704. with expansion:
  1705. 9 > 0
  1706. -------------------------------------------------------------------------------
  1707. A comparison that uses literals instead of the normal constructor
  1708. -------------------------------------------------------------------------------
  1709. Approx.tests.cpp:<line number>
  1710. ...............................................................................
  1711. Approx.tests.cpp:<line number>: PASSED:
  1712. REQUIRE( d == 1.23_a )
  1713. with expansion:
  1714. 1.23 == Approx( 1.23 )
  1715. Approx.tests.cpp:<line number>: PASSED:
  1716. REQUIRE( d != 1.22_a )
  1717. with expansion:
  1718. 1.23 != Approx( 1.22 )
  1719. Approx.tests.cpp:<line number>: PASSED:
  1720. REQUIRE( -d == -1.23_a )
  1721. with expansion:
  1722. -1.23 == Approx( -1.23 )
  1723. Approx.tests.cpp:<line number>: PASSED:
  1724. REQUIRE( d == 1.2_a .epsilon(.1) )
  1725. with expansion:
  1726. 1.23 == Approx( 1.2 )
  1727. Approx.tests.cpp:<line number>: PASSED:
  1728. REQUIRE( d != 1.2_a .epsilon(.001) )
  1729. with expansion:
  1730. 1.23 != Approx( 1.2 )
  1731. Approx.tests.cpp:<line number>: PASSED:
  1732. REQUIRE( d == 1_a .epsilon(.3) )
  1733. with expansion:
  1734. 1.23 == Approx( 1.0 )
  1735. -------------------------------------------------------------------------------
  1736. A couple of nested sections followed by a failure
  1737. Outer
  1738. Inner
  1739. -------------------------------------------------------------------------------
  1740. Misc.tests.cpp:<line number>
  1741. ...............................................................................
  1742. Misc.tests.cpp:<line number>: PASSED:
  1743. with message:
  1744. that's not flying - that's failing in style
  1745. -------------------------------------------------------------------------------
  1746. A couple of nested sections followed by a failure
  1747. -------------------------------------------------------------------------------
  1748. Misc.tests.cpp:<line number>
  1749. ...............................................................................
  1750. Misc.tests.cpp:<line number>: FAILED:
  1751. explicitly with message:
  1752. to infinity and beyond
  1753. -------------------------------------------------------------------------------
  1754. A failing expression with a non streamable type is still captured
  1755. -------------------------------------------------------------------------------
  1756. Tricky.tests.cpp:<line number>
  1757. ...............................................................................
  1758. Tricky.tests.cpp:<line number>: FAILED:
  1759. CHECK( &o1 == &o2 )
  1760. with expansion:
  1761. 0x<hex digits> == 0x<hex digits>
  1762. Tricky.tests.cpp:<line number>: FAILED:
  1763. CHECK( o1 == o2 )
  1764. with expansion:
  1765. {?} == {?}
  1766. -------------------------------------------------------------------------------
  1767. Absolute margin
  1768. -------------------------------------------------------------------------------
  1769. Approx.tests.cpp:<line number>
  1770. ...............................................................................
  1771. Approx.tests.cpp:<line number>: PASSED:
  1772. REQUIRE( 104.0 != Approx(100.0) )
  1773. with expansion:
  1774. 104.0 != Approx( 100.0 )
  1775. Approx.tests.cpp:<line number>: PASSED:
  1776. REQUIRE( 104.0 == Approx(100.0).margin(5) )
  1777. with expansion:
  1778. 104.0 == Approx( 100.0 )
  1779. Approx.tests.cpp:<line number>: PASSED:
  1780. REQUIRE( 104.0 == Approx(100.0).margin(4) )
  1781. with expansion:
  1782. 104.0 == Approx( 100.0 )
  1783. Approx.tests.cpp:<line number>: PASSED:
  1784. REQUIRE( 104.0 != Approx(100.0).margin(3) )
  1785. with expansion:
  1786. 104.0 != Approx( 100.0 )
  1787. Approx.tests.cpp:<line number>: PASSED:
  1788. REQUIRE( 100.3 != Approx(100.0) )
  1789. with expansion:
  1790. 100.3 != Approx( 100.0 )
  1791. Approx.tests.cpp:<line number>: PASSED:
  1792. REQUIRE( 100.3 == Approx(100.0).margin(0.5) )
  1793. with expansion:
  1794. 100.3 == Approx( 100.0 )
  1795. -------------------------------------------------------------------------------
  1796. An empty test with no assertions
  1797. -------------------------------------------------------------------------------
  1798. Misc.tests.cpp:<line number>
  1799. ...............................................................................
  1800. No assertions in test case 'An empty test with no assertions'
  1801. -------------------------------------------------------------------------------
  1802. An expression with side-effects should only be evaluated once
  1803. -------------------------------------------------------------------------------
  1804. Tricky.tests.cpp:<line number>
  1805. ...............................................................................
  1806. Tricky.tests.cpp:<line number>: PASSED:
  1807. REQUIRE( i++ == 7 )
  1808. with expansion:
  1809. 7 == 7
  1810. Tricky.tests.cpp:<line number>: PASSED:
  1811. REQUIRE( i++ == 8 )
  1812. with expansion:
  1813. 8 == 8
  1814. -------------------------------------------------------------------------------
  1815. An unchecked exception reports the line of the last assertion
  1816. -------------------------------------------------------------------------------
  1817. Exception.tests.cpp:<line number>
  1818. ...............................................................................
  1819. Exception.tests.cpp:<line number>: PASSED:
  1820. CHECK( 1 == 1 )
  1821. Exception.tests.cpp:<line number>: FAILED:
  1822. {Unknown expression after the reported line}
  1823. due to unexpected exception with message:
  1824. unexpected exception
  1825. -------------------------------------------------------------------------------
  1826. Anonymous test case 1
  1827. -------------------------------------------------------------------------------
  1828. VariadicMacros.tests.cpp:<line number>
  1829. ...............................................................................
  1830. VariadicMacros.tests.cpp:<line number>: PASSED:
  1831. with message:
  1832. anonymous test case
  1833. -------------------------------------------------------------------------------
  1834. Approx setters validate their arguments
  1835. -------------------------------------------------------------------------------
  1836. Approx.tests.cpp:<line number>
  1837. ...............................................................................
  1838. Approx.tests.cpp:<line number>: PASSED:
  1839. REQUIRE_NOTHROW( Approx(0).margin(0) )
  1840. Approx.tests.cpp:<line number>: PASSED:
  1841. REQUIRE_NOTHROW( Approx(0).margin(1234656) )
  1842. Approx.tests.cpp:<line number>: PASSED:
  1843. REQUIRE_THROWS_AS( Approx(0).margin(-2), std::domain_error )
  1844. Approx.tests.cpp:<line number>: PASSED:
  1845. REQUIRE_NOTHROW( Approx(0).epsilon(0) )
  1846. Approx.tests.cpp:<line number>: PASSED:
  1847. REQUIRE_NOTHROW( Approx(0).epsilon(1) )
  1848. Approx.tests.cpp:<line number>: PASSED:
  1849. REQUIRE_THROWS_AS( Approx(0).epsilon(-0.001), std::domain_error )
  1850. Approx.tests.cpp:<line number>: PASSED:
  1851. REQUIRE_THROWS_AS( Approx(0).epsilon(1.0001), std::domain_error )
  1852. -------------------------------------------------------------------------------
  1853. Approx with exactly-representable margin
  1854. -------------------------------------------------------------------------------
  1855. Approx.tests.cpp:<line number>
  1856. ...............................................................................
  1857. Approx.tests.cpp:<line number>: PASSED:
  1858. CHECK( 0.25f == Approx(0.0f).margin(0.25f) )
  1859. with expansion:
  1860. 0.25f == Approx( 0.0 )
  1861. Approx.tests.cpp:<line number>: PASSED:
  1862. CHECK( 0.0f == Approx(0.25f).margin(0.25f) )
  1863. with expansion:
  1864. 0.0f == Approx( 0.25 )
  1865. Approx.tests.cpp:<line number>: PASSED:
  1866. CHECK( 0.5f == Approx(0.25f).margin(0.25f) )
  1867. with expansion:
  1868. 0.5f == Approx( 0.25 )
  1869. Approx.tests.cpp:<line number>: PASSED:
  1870. CHECK( 245.0f == Approx(245.25f).margin(0.25f) )
  1871. with expansion:
  1872. 245.0f == Approx( 245.25 )
  1873. Approx.tests.cpp:<line number>: PASSED:
  1874. CHECK( 245.5f == Approx(245.25f).margin(0.25f) )
  1875. with expansion:
  1876. 245.5f == Approx( 245.25 )
  1877. -------------------------------------------------------------------------------
  1878. Approximate PI
  1879. -------------------------------------------------------------------------------
  1880. Approx.tests.cpp:<line number>
  1881. ...............................................................................
  1882. Approx.tests.cpp:<line number>: PASSED:
  1883. REQUIRE( divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) )
  1884. with expansion:
  1885. 3.1428571429 == Approx( 3.141 )
  1886. Approx.tests.cpp:<line number>: PASSED:
  1887. REQUIRE( divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) )
  1888. with expansion:
  1889. 3.1428571429 != Approx( 3.141 )
  1890. -------------------------------------------------------------------------------
  1891. Approximate comparisons with different epsilons
  1892. -------------------------------------------------------------------------------
  1893. Approx.tests.cpp:<line number>
  1894. ...............................................................................
  1895. Approx.tests.cpp:<line number>: PASSED:
  1896. REQUIRE( d != Approx( 1.231 ) )
  1897. with expansion:
  1898. 1.23 != Approx( 1.231 )
  1899. Approx.tests.cpp:<line number>: PASSED:
  1900. REQUIRE( d == Approx( 1.231 ).epsilon( 0.1 ) )
  1901. with expansion:
  1902. 1.23 == Approx( 1.231 )
  1903. -------------------------------------------------------------------------------
  1904. Approximate comparisons with floats
  1905. -------------------------------------------------------------------------------
  1906. Approx.tests.cpp:<line number>
  1907. ...............................................................................
  1908. Approx.tests.cpp:<line number>: PASSED:
  1909. REQUIRE( 1.23f == Approx( 1.23f ) )
  1910. with expansion:
  1911. 1.23f == Approx( 1.2300000191 )
  1912. Approx.tests.cpp:<line number>: PASSED:
  1913. REQUIRE( 0.0f == Approx( 0.0f ) )
  1914. with expansion:
  1915. 0.0f == Approx( 0.0 )
  1916. -------------------------------------------------------------------------------
  1917. Approximate comparisons with ints
  1918. -------------------------------------------------------------------------------
  1919. Approx.tests.cpp:<line number>
  1920. ...............................................................................
  1921. Approx.tests.cpp:<line number>: PASSED:
  1922. REQUIRE( 1 == Approx( 1 ) )
  1923. with expansion:
  1924. 1 == Approx( 1.0 )
  1925. Approx.tests.cpp:<line number>: PASSED:
  1926. REQUIRE( 0 == Approx( 0 ) )
  1927. with expansion:
  1928. 0 == Approx( 0.0 )
  1929. -------------------------------------------------------------------------------
  1930. Approximate comparisons with mixed numeric types
  1931. -------------------------------------------------------------------------------
  1932. Approx.tests.cpp:<line number>
  1933. ...............................................................................
  1934. Approx.tests.cpp:<line number>: PASSED:
  1935. REQUIRE( 1.0f == Approx( 1 ) )
  1936. with expansion:
  1937. 1.0f == Approx( 1.0 )
  1938. Approx.tests.cpp:<line number>: PASSED:
  1939. REQUIRE( 0 == Approx( dZero) )
  1940. with expansion:
  1941. 0 == Approx( 0.0 )
  1942. Approx.tests.cpp:<line number>: PASSED:
  1943. REQUIRE( 0 == Approx( dSmall ).margin( 0.001 ) )
  1944. with expansion:
  1945. 0 == Approx( 0.00001 )
  1946. Approx.tests.cpp:<line number>: PASSED:
  1947. REQUIRE( 1.234f == Approx( dMedium ) )
  1948. with expansion:
  1949. 1.234f == Approx( 1.234 )
  1950. Approx.tests.cpp:<line number>: PASSED:
  1951. REQUIRE( dMedium == Approx( 1.234f ) )
  1952. with expansion:
  1953. 1.234 == Approx( 1.2339999676 )
  1954. -------------------------------------------------------------------------------
  1955. Arbitrary predicate matcher
  1956. Function pointer
  1957. -------------------------------------------------------------------------------
  1958. Matchers.tests.cpp:<line number>
  1959. ...............................................................................
  1960. Matchers.tests.cpp:<line number>: PASSED:
  1961. REQUIRE_THAT( 1, Predicate<int>(alwaysTrue, "always true") )
  1962. with expansion:
  1963. 1 matches predicate: "always true"
  1964. Matchers.tests.cpp:<line number>: PASSED:
  1965. REQUIRE_THAT( 1, !Predicate<int>(alwaysFalse, "always false") )
  1966. with expansion:
  1967. 1 not matches predicate: "always false"
  1968. -------------------------------------------------------------------------------
  1969. Arbitrary predicate matcher
  1970. Lambdas + different type
  1971. -------------------------------------------------------------------------------
  1972. Matchers.tests.cpp:<line number>
  1973. ...............................................................................
  1974. Matchers.tests.cpp:<line number>: PASSED:
  1975. REQUIRE_THAT( "Hello olleH", Predicate<std::string>( [] (std::string const& str) -> bool { return str.front() == str.back(); }, "First and last character should be equal") )
  1976. with expansion:
  1977. "Hello olleH" matches predicate: "First and last character should be equal"
  1978. Matchers.tests.cpp:<line number>: PASSED:
  1979. REQUIRE_THAT( "This wouldn't pass", !Predicate<std::string>( [] (std::string const& str) -> bool { return str.front() == str.back(); } ) )
  1980. with expansion:
  1981. "This wouldn't pass" not matches undescribed predicate
  1982. -------------------------------------------------------------------------------
  1983. Assertion macros support bit operators and bool conversions
  1984. -------------------------------------------------------------------------------
  1985. Compilation.tests.cpp:<line number>
  1986. ...............................................................................
  1987. Compilation.tests.cpp:<line number>: PASSED:
  1988. REQUIRE( lhs | rhs )
  1989. with expansion:
  1990. Val: 1 | Val: 2
  1991. Compilation.tests.cpp:<line number>: PASSED:
  1992. REQUIRE_FALSE( lhs & rhs )
  1993. with expansion:
  1994. !(Val: 1 & Val: 2)
  1995. Compilation.tests.cpp:<line number>: PASSED:
  1996. REQUIRE( HasBitOperators{ 1 } & HasBitOperators{ 1 } )
  1997. with expansion:
  1998. Val: 1 & Val: 1
  1999. Compilation.tests.cpp:<line number>: PASSED:
  2000. REQUIRE( lhs ^ rhs )
  2001. with expansion:
  2002. Val: 1 ^ Val: 2
  2003. Compilation.tests.cpp:<line number>: PASSED:
  2004. REQUIRE_FALSE( lhs ^ lhs )
  2005. with expansion:
  2006. !(Val: 1 ^ Val: 1)
  2007. -------------------------------------------------------------------------------
  2008. Assertions then sections
  2009. -------------------------------------------------------------------------------
  2010. Tricky.tests.cpp:<line number>
  2011. ...............................................................................
  2012. Tricky.tests.cpp:<line number>: PASSED:
  2013. REQUIRE( true )
  2014. -------------------------------------------------------------------------------
  2015. Assertions then sections
  2016. A section
  2017. -------------------------------------------------------------------------------
  2018. Tricky.tests.cpp:<line number>
  2019. ...............................................................................
  2020. Tricky.tests.cpp:<line number>: PASSED:
  2021. REQUIRE( true )
  2022. -------------------------------------------------------------------------------
  2023. Assertions then sections
  2024. A section
  2025. Another 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. -------------------------------------------------------------------------------
  2034. Tricky.tests.cpp:<line number>
  2035. ...............................................................................
  2036. Tricky.tests.cpp:<line number>: PASSED:
  2037. REQUIRE( true )
  2038. -------------------------------------------------------------------------------
  2039. Assertions then sections
  2040. A section
  2041. -------------------------------------------------------------------------------
  2042. Tricky.tests.cpp:<line number>
  2043. ...............................................................................
  2044. Tricky.tests.cpp:<line number>: PASSED:
  2045. REQUIRE( true )
  2046. -------------------------------------------------------------------------------
  2047. Assertions then sections
  2048. A section
  2049. Another other section
  2050. -------------------------------------------------------------------------------
  2051. Tricky.tests.cpp:<line number>
  2052. ...............................................................................
  2053. Tricky.tests.cpp:<line number>: PASSED:
  2054. REQUIRE( true )
  2055. -------------------------------------------------------------------------------
  2056. CAPTURE can deal with complex expressions
  2057. -------------------------------------------------------------------------------
  2058. Message.tests.cpp:<line number>
  2059. ...............................................................................
  2060. Message.tests.cpp:<line number>: PASSED:
  2061. with messages:
  2062. a := 1
  2063. b := 2
  2064. c := 3
  2065. a + b := 3
  2066. a+b := 3
  2067. c > b := true
  2068. a == 1 := true
  2069. -------------------------------------------------------------------------------
  2070. CAPTURE can deal with complex expressions involving commas
  2071. -------------------------------------------------------------------------------
  2072. Message.tests.cpp:<line number>
  2073. ...............................................................................
  2074. Message.tests.cpp:<line number>: PASSED:
  2075. with messages:
  2076. std::vector<int>{1, 2, 3}[0, 1, 2] := 3
  2077. std::vector<int>{1, 2, 3}[(0, 1)] := 2
  2078. std::vector<int>{1, 2, 3}[0] := 1
  2079. (helper_1436<int, int>{12, -12}) := { 12, -12 }
  2080. (helper_1436<int, int>(-12, 12)) := { -12, 12 }
  2081. (1, 2) := 2
  2082. (2, 3) := 3
  2083. -------------------------------------------------------------------------------
  2084. CAPTURE parses string and character constants
  2085. -------------------------------------------------------------------------------
  2086. Message.tests.cpp:<line number>
  2087. ...............................................................................
  2088. Message.tests.cpp:<line number>: PASSED:
  2089. with messages:
  2090. ("comma, in string", "escaped, \", ") := "escaped, ", "
  2091. "single quote in string,'," := "single quote in string,',"
  2092. "some escapes, \\,\\\\" := "some escapes, \,\\"
  2093. "some, ), unmatched, } prenheses {[<" := "some, ), unmatched, } prenheses {[
  2094. <"
  2095. '"' := '"'
  2096. '\'' := '''
  2097. ',' := ','
  2098. '}' := '}'
  2099. ')' := ')'
  2100. '(' := '('
  2101. '{' := '{'
  2102. -------------------------------------------------------------------------------
  2103. Capture and info messages
  2104. Capture should stringify like assertions
  2105. -------------------------------------------------------------------------------
  2106. ToStringGeneral.tests.cpp:<line number>
  2107. ...............................................................................
  2108. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2109. REQUIRE( true )
  2110. with message:
  2111. i := 2
  2112. -------------------------------------------------------------------------------
  2113. Capture and info messages
  2114. Info should NOT stringify the way assertions do
  2115. -------------------------------------------------------------------------------
  2116. ToStringGeneral.tests.cpp:<line number>
  2117. ...............................................................................
  2118. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2119. REQUIRE( true )
  2120. with message:
  2121. 3
  2122. -------------------------------------------------------------------------------
  2123. Character pretty printing
  2124. Specifically escaped
  2125. -------------------------------------------------------------------------------
  2126. ToStringGeneral.tests.cpp:<line number>
  2127. ...............................................................................
  2128. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2129. CHECK( tab == '\t' )
  2130. with expansion:
  2131. '\t' == '\t'
  2132. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2133. CHECK( newline == '\n' )
  2134. with expansion:
  2135. '\n' == '\n'
  2136. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2137. CHECK( carr_return == '\r' )
  2138. with expansion:
  2139. '\r' == '\r'
  2140. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2141. CHECK( form_feed == '\f' )
  2142. with expansion:
  2143. '\f' == '\f'
  2144. -------------------------------------------------------------------------------
  2145. Character pretty printing
  2146. General chars
  2147. -------------------------------------------------------------------------------
  2148. ToStringGeneral.tests.cpp:<line number>
  2149. ...............................................................................
  2150. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2151. CHECK( space == ' ' )
  2152. with expansion:
  2153. ' ' == ' '
  2154. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2155. REQUIRE( c == chars[i] )
  2156. with expansion:
  2157. 'a' == 'a'
  2158. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2159. REQUIRE( c == chars[i] )
  2160. with expansion:
  2161. 'z' == 'z'
  2162. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2163. REQUIRE( c == chars[i] )
  2164. with expansion:
  2165. 'A' == 'A'
  2166. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2167. REQUIRE( c == chars[i] )
  2168. with expansion:
  2169. 'Z' == 'Z'
  2170. -------------------------------------------------------------------------------
  2171. Character pretty printing
  2172. Low ASCII
  2173. -------------------------------------------------------------------------------
  2174. ToStringGeneral.tests.cpp:<line number>
  2175. ...............................................................................
  2176. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2177. CHECK( null_terminator == '\0' )
  2178. with expansion:
  2179. 0 == 0
  2180. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2181. REQUIRE( c == i )
  2182. with expansion:
  2183. 2 == 2
  2184. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2185. REQUIRE( c == i )
  2186. with expansion:
  2187. 3 == 3
  2188. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2189. REQUIRE( c == i )
  2190. with expansion:
  2191. 4 == 4
  2192. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2193. REQUIRE( c == i )
  2194. with expansion:
  2195. 5 == 5
  2196. -------------------------------------------------------------------------------
  2197. Commas in various macros are allowed
  2198. -------------------------------------------------------------------------------
  2199. Tricky.tests.cpp:<line number>
  2200. ...............................................................................
  2201. Tricky.tests.cpp:<line number>: PASSED:
  2202. REQUIRE_THROWS( std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} )
  2203. Tricky.tests.cpp:<line number>: PASSED:
  2204. CHECK_THROWS( std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} )
  2205. Tricky.tests.cpp:<line number>: PASSED:
  2206. REQUIRE_NOTHROW( std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} )
  2207. Tricky.tests.cpp:<line number>: PASSED:
  2208. CHECK_NOTHROW( std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} )
  2209. Tricky.tests.cpp:<line number>: PASSED:
  2210. REQUIRE( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
  2211. with expansion:
  2212. { 1, 2 } == { 1, 2 }
  2213. Tricky.tests.cpp:<line number>: PASSED:
  2214. CHECK( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
  2215. with expansion:
  2216. { 1, 2 } == { 1, 2 }
  2217. Tricky.tests.cpp:<line number>: PASSED:
  2218. REQUIRE_FALSE( std::vector<int>{1, 2} == std::vector<int>{1, 2, 3} )
  2219. with expansion:
  2220. !({ 1, 2 } == { 1, 2, 3 })
  2221. Tricky.tests.cpp:<line number>: PASSED:
  2222. CHECK_FALSE( std::vector<int>{1, 2} == std::vector<int>{1, 2, 3} )
  2223. with expansion:
  2224. !({ 1, 2 } == { 1, 2, 3 })
  2225. Tricky.tests.cpp:<line number>: PASSED:
  2226. CHECK_NOFAIL( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
  2227. with expansion:
  2228. { 1, 2 } == { 1, 2 }
  2229. Tricky.tests.cpp:<line number>: PASSED:
  2230. CHECKED_IF( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
  2231. with expansion:
  2232. { 1, 2 } == { 1, 2 }
  2233. Tricky.tests.cpp:<line number>: PASSED:
  2234. REQUIRE( true )
  2235. Tricky.tests.cpp:<line number>: PASSED:
  2236. CHECKED_ELSE( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
  2237. with expansion:
  2238. { 1, 2 } == { 1, 2 }
  2239. -------------------------------------------------------------------------------
  2240. Comparing function pointers
  2241. -------------------------------------------------------------------------------
  2242. Tricky.tests.cpp:<line number>
  2243. ...............................................................................
  2244. Tricky.tests.cpp:<line number>: PASSED:
  2245. REQUIRE( a )
  2246. with expansion:
  2247. 0x<hex digits>
  2248. Tricky.tests.cpp:<line number>: PASSED:
  2249. REQUIRE( a == &foo )
  2250. with expansion:
  2251. 0x<hex digits> == 0x<hex digits>
  2252. -------------------------------------------------------------------------------
  2253. Comparison ops
  2254. -------------------------------------------------------------------------------
  2255. RandomNumberGeneration.tests.cpp:<line number>
  2256. ...............................................................................
  2257. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  2258. REQUIRE( SimplePcg32{} == SimplePcg32{} )
  2259. with expansion:
  2260. {?} == {?}
  2261. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  2262. REQUIRE( SimplePcg32{ 0 } != SimplePcg32{} )
  2263. with expansion:
  2264. {?} != {?}
  2265. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  2266. REQUIRE_FALSE( SimplePcg32{ 1 } == SimplePcg32{ 2 } )
  2267. with expansion:
  2268. !({?} == {?})
  2269. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  2270. REQUIRE_FALSE( SimplePcg32{ 1 } != SimplePcg32{ 1 } )
  2271. with expansion:
  2272. !({?} != {?})
  2273. -------------------------------------------------------------------------------
  2274. Comparison with explicitly convertible types
  2275. -------------------------------------------------------------------------------
  2276. Approx.tests.cpp:<line number>
  2277. ...............................................................................
  2278. Approx.tests.cpp:<line number>: PASSED:
  2279. REQUIRE( td == Approx(10.0) )
  2280. with expansion:
  2281. StrongDoubleTypedef(10) == Approx( 10.0 )
  2282. Approx.tests.cpp:<line number>: PASSED:
  2283. REQUIRE( Approx(10.0) == td )
  2284. with expansion:
  2285. Approx( 10.0 ) == StrongDoubleTypedef(10)
  2286. Approx.tests.cpp:<line number>: PASSED:
  2287. REQUIRE( td != Approx(11.0) )
  2288. with expansion:
  2289. StrongDoubleTypedef(10) != Approx( 11.0 )
  2290. Approx.tests.cpp:<line number>: PASSED:
  2291. REQUIRE( Approx(11.0) != td )
  2292. with expansion:
  2293. Approx( 11.0 ) != StrongDoubleTypedef(10)
  2294. Approx.tests.cpp:<line number>: PASSED:
  2295. REQUIRE( td <= Approx(10.0) )
  2296. with expansion:
  2297. StrongDoubleTypedef(10) <= Approx( 10.0 )
  2298. Approx.tests.cpp:<line number>: PASSED:
  2299. REQUIRE( td <= Approx(11.0) )
  2300. with expansion:
  2301. StrongDoubleTypedef(10) <= Approx( 11.0 )
  2302. Approx.tests.cpp:<line number>: PASSED:
  2303. REQUIRE( Approx(10.0) <= td )
  2304. with expansion:
  2305. Approx( 10.0 ) <= StrongDoubleTypedef(10)
  2306. Approx.tests.cpp:<line number>: PASSED:
  2307. REQUIRE( Approx(9.0) <= td )
  2308. with expansion:
  2309. Approx( 9.0 ) <= StrongDoubleTypedef(10)
  2310. Approx.tests.cpp:<line number>: PASSED:
  2311. REQUIRE( td >= Approx(9.0) )
  2312. with expansion:
  2313. StrongDoubleTypedef(10) >= Approx( 9.0 )
  2314. Approx.tests.cpp:<line number>: PASSED:
  2315. REQUIRE( td >= Approx(td) )
  2316. with expansion:
  2317. StrongDoubleTypedef(10) >= Approx( 10.0 )
  2318. Approx.tests.cpp:<line number>: PASSED:
  2319. REQUIRE( Approx(td) >= td )
  2320. with expansion:
  2321. Approx( 10.0 ) >= StrongDoubleTypedef(10)
  2322. Approx.tests.cpp:<line number>: PASSED:
  2323. REQUIRE( Approx(11.0) >= td )
  2324. with expansion:
  2325. Approx( 11.0 ) >= StrongDoubleTypedef(10)
  2326. -------------------------------------------------------------------------------
  2327. Comparisons between ints where one side is computed
  2328. -------------------------------------------------------------------------------
  2329. Condition.tests.cpp:<line number>
  2330. ...............................................................................
  2331. Condition.tests.cpp:<line number>: PASSED:
  2332. CHECK( 54 == 6*9 )
  2333. with expansion:
  2334. 54 == 54
  2335. -------------------------------------------------------------------------------
  2336. Comparisons between unsigned ints and negative signed ints match c++ standard
  2337. behaviour
  2338. -------------------------------------------------------------------------------
  2339. Condition.tests.cpp:<line number>
  2340. ...............................................................................
  2341. Condition.tests.cpp:<line number>: PASSED:
  2342. CHECK( ( -1 > 2u ) )
  2343. with expansion:
  2344. true
  2345. Condition.tests.cpp:<line number>: PASSED:
  2346. CHECK( -1 > 2u )
  2347. with expansion:
  2348. -1 > 2
  2349. Condition.tests.cpp:<line number>: PASSED:
  2350. CHECK( ( 2u < -1 ) )
  2351. with expansion:
  2352. true
  2353. Condition.tests.cpp:<line number>: PASSED:
  2354. CHECK( 2u < -1 )
  2355. with expansion:
  2356. 2 < -1
  2357. Condition.tests.cpp:<line number>: PASSED:
  2358. CHECK( ( minInt > 2u ) )
  2359. with expansion:
  2360. true
  2361. Condition.tests.cpp:<line number>: PASSED:
  2362. CHECK( minInt > 2u )
  2363. with expansion:
  2364. -2147483648 > 2
  2365. -------------------------------------------------------------------------------
  2366. Comparisons with int literals don't warn when mixing signed/ unsigned
  2367. -------------------------------------------------------------------------------
  2368. Condition.tests.cpp:<line number>
  2369. ...............................................................................
  2370. Condition.tests.cpp:<line number>: PASSED:
  2371. REQUIRE( i == 1 )
  2372. with expansion:
  2373. 1 == 1
  2374. Condition.tests.cpp:<line number>: PASSED:
  2375. REQUIRE( ui == 2 )
  2376. with expansion:
  2377. 2 == 2
  2378. Condition.tests.cpp:<line number>: PASSED:
  2379. REQUIRE( l == 3 )
  2380. with expansion:
  2381. 3 == 3
  2382. Condition.tests.cpp:<line number>: PASSED:
  2383. REQUIRE( ul == 4 )
  2384. with expansion:
  2385. 4 == 4
  2386. Condition.tests.cpp:<line number>: PASSED:
  2387. REQUIRE( c == 5 )
  2388. with expansion:
  2389. 5 == 5
  2390. Condition.tests.cpp:<line number>: PASSED:
  2391. REQUIRE( uc == 6 )
  2392. with expansion:
  2393. 6 == 6
  2394. Condition.tests.cpp:<line number>: PASSED:
  2395. REQUIRE( 1 == i )
  2396. with expansion:
  2397. 1 == 1
  2398. Condition.tests.cpp:<line number>: PASSED:
  2399. REQUIRE( 2 == ui )
  2400. with expansion:
  2401. 2 == 2
  2402. Condition.tests.cpp:<line number>: PASSED:
  2403. REQUIRE( 3 == l )
  2404. with expansion:
  2405. 3 == 3
  2406. Condition.tests.cpp:<line number>: PASSED:
  2407. REQUIRE( 4 == ul )
  2408. with expansion:
  2409. 4 == 4
  2410. Condition.tests.cpp:<line number>: PASSED:
  2411. REQUIRE( 5 == c )
  2412. with expansion:
  2413. 5 == 5
  2414. Condition.tests.cpp:<line number>: PASSED:
  2415. REQUIRE( 6 == uc )
  2416. with expansion:
  2417. 6 == 6
  2418. Condition.tests.cpp:<line number>: PASSED:
  2419. REQUIRE( (std::numeric_limits<uint32_t>::max)() > ul )
  2420. with expansion:
  2421. 4294967295 (0x<hex digits>) > 4
  2422. -------------------------------------------------------------------------------
  2423. Composed matchers are distinct
  2424. -------------------------------------------------------------------------------
  2425. Matchers.tests.cpp:<line number>
  2426. ...............................................................................
  2427. Matchers.tests.cpp:<line number>: PASSED:
  2428. REQUIRE_THAT( testStringForMatching2(), !composed1 )
  2429. with expansion:
  2430. "some completely different text that contains one common word" not (
  2431. contains: "string" or contains: "random" )
  2432. Matchers.tests.cpp:<line number>: PASSED:
  2433. REQUIRE_THAT( testStringForMatching2(), composed2 )
  2434. with expansion:
  2435. "some completely different text that contains one common word" ( contains:
  2436. "string" or contains: "random" or contains: "different" )
  2437. -------------------------------------------------------------------------------
  2438. Composed matchers shortcircuit
  2439. &&
  2440. -------------------------------------------------------------------------------
  2441. Matchers.tests.cpp:<line number>
  2442. ...............................................................................
  2443. Matchers.tests.cpp:<line number>: PASSED:
  2444. CHECK_THAT( 1, !(first && second) )
  2445. with expansion:
  2446. 1 not ( CheckedTestingMatcher set to fail and CheckedTestingMatcher set to
  2447. fail )
  2448. Matchers.tests.cpp:<line number>: PASSED:
  2449. REQUIRE( first.matchCalled )
  2450. with expansion:
  2451. true
  2452. Matchers.tests.cpp:<line number>: PASSED:
  2453. REQUIRE( !second.matchCalled )
  2454. with expansion:
  2455. true
  2456. -------------------------------------------------------------------------------
  2457. Composed matchers shortcircuit
  2458. ||
  2459. -------------------------------------------------------------------------------
  2460. Matchers.tests.cpp:<line number>
  2461. ...............................................................................
  2462. Matchers.tests.cpp:<line number>: PASSED:
  2463. CHECK_THAT( 1, first || second )
  2464. with expansion:
  2465. 1 ( CheckedTestingMatcher set to succeed or CheckedTestingMatcher set to fail
  2466. )
  2467. Matchers.tests.cpp:<line number>: PASSED:
  2468. REQUIRE( first.matchCalled )
  2469. with expansion:
  2470. true
  2471. Matchers.tests.cpp:<line number>: PASSED:
  2472. REQUIRE( !second.matchCalled )
  2473. with expansion:
  2474. true
  2475. -------------------------------------------------------------------------------
  2476. Contains string matcher
  2477. -------------------------------------------------------------------------------
  2478. Matchers.tests.cpp:<line number>
  2479. ...............................................................................
  2480. Matchers.tests.cpp:<line number>: FAILED:
  2481. CHECK_THAT( testStringForMatching(), Contains("not there", Catch::CaseSensitive::No) )
  2482. with expansion:
  2483. "this string contains 'abc' as a substring" contains: "not there" (case
  2484. insensitive)
  2485. Matchers.tests.cpp:<line number>: FAILED:
  2486. CHECK_THAT( testStringForMatching(), Contains("STRING") )
  2487. with expansion:
  2488. "this string contains 'abc' as a substring" contains: "STRING"
  2489. -------------------------------------------------------------------------------
  2490. Copy and then generate a range
  2491. from var and iterators
  2492. -------------------------------------------------------------------------------
  2493. Generators.tests.cpp:<line number>
  2494. ...............................................................................
  2495. Generators.tests.cpp:<line number>: PASSED:
  2496. REQUIRE( elem % 2 == 1 )
  2497. with expansion:
  2498. 1 == 1
  2499. -------------------------------------------------------------------------------
  2500. Copy and then generate a range
  2501. from var and iterators
  2502. -------------------------------------------------------------------------------
  2503. Generators.tests.cpp:<line number>
  2504. ...............................................................................
  2505. Generators.tests.cpp:<line number>: PASSED:
  2506. REQUIRE( elem % 2 == 1 )
  2507. with expansion:
  2508. 1 == 1
  2509. -------------------------------------------------------------------------------
  2510. Copy and then generate a range
  2511. from var and iterators
  2512. -------------------------------------------------------------------------------
  2513. Generators.tests.cpp:<line number>
  2514. ...............................................................................
  2515. Generators.tests.cpp:<line number>: PASSED:
  2516. REQUIRE( elem % 2 == 1 )
  2517. with expansion:
  2518. 1 == 1
  2519. -------------------------------------------------------------------------------
  2520. Copy and then generate a range
  2521. from var and iterators
  2522. -------------------------------------------------------------------------------
  2523. Generators.tests.cpp:<line number>
  2524. ...............................................................................
  2525. Generators.tests.cpp:<line number>: PASSED:
  2526. REQUIRE( elem % 2 == 1 )
  2527. with expansion:
  2528. 1 == 1
  2529. -------------------------------------------------------------------------------
  2530. Copy and then generate a range
  2531. from var and iterators
  2532. -------------------------------------------------------------------------------
  2533. Generators.tests.cpp:<line number>
  2534. ...............................................................................
  2535. Generators.tests.cpp:<line number>: PASSED:
  2536. REQUIRE( elem % 2 == 1 )
  2537. with expansion:
  2538. 1 == 1
  2539. -------------------------------------------------------------------------------
  2540. Copy and then generate a range
  2541. from var and iterators
  2542. -------------------------------------------------------------------------------
  2543. Generators.tests.cpp:<line number>
  2544. ...............................................................................
  2545. Generators.tests.cpp:<line number>: PASSED:
  2546. REQUIRE( elem % 2 == 1 )
  2547. with expansion:
  2548. 1 == 1
  2549. -------------------------------------------------------------------------------
  2550. Copy and then generate a range
  2551. From a temporary container
  2552. -------------------------------------------------------------------------------
  2553. Generators.tests.cpp:<line number>
  2554. ...............................................................................
  2555. Generators.tests.cpp:<line number>: PASSED:
  2556. REQUIRE( elem % 2 == 1 )
  2557. with expansion:
  2558. 1 == 1
  2559. -------------------------------------------------------------------------------
  2560. Copy and then generate a range
  2561. From a temporary container
  2562. -------------------------------------------------------------------------------
  2563. Generators.tests.cpp:<line number>
  2564. ...............................................................................
  2565. Generators.tests.cpp:<line number>: PASSED:
  2566. REQUIRE( elem % 2 == 1 )
  2567. with expansion:
  2568. 1 == 1
  2569. -------------------------------------------------------------------------------
  2570. Copy and then generate a range
  2571. From a temporary container
  2572. -------------------------------------------------------------------------------
  2573. Generators.tests.cpp:<line number>
  2574. ...............................................................................
  2575. Generators.tests.cpp:<line number>: PASSED:
  2576. REQUIRE( elem % 2 == 1 )
  2577. with expansion:
  2578. 1 == 1
  2579. -------------------------------------------------------------------------------
  2580. Copy and then generate a range
  2581. From a temporary container
  2582. -------------------------------------------------------------------------------
  2583. Generators.tests.cpp:<line number>
  2584. ...............................................................................
  2585. Generators.tests.cpp:<line number>: PASSED:
  2586. REQUIRE( elem % 2 == 1 )
  2587. with expansion:
  2588. 1 == 1
  2589. -------------------------------------------------------------------------------
  2590. Copy and then generate a range
  2591. From a temporary container
  2592. -------------------------------------------------------------------------------
  2593. Generators.tests.cpp:<line number>
  2594. ...............................................................................
  2595. Generators.tests.cpp:<line number>: PASSED:
  2596. REQUIRE( elem % 2 == 1 )
  2597. with expansion:
  2598. 1 == 1
  2599. -------------------------------------------------------------------------------
  2600. Copy and then generate a range
  2601. From a temporary container
  2602. -------------------------------------------------------------------------------
  2603. Generators.tests.cpp:<line number>
  2604. ...............................................................................
  2605. Generators.tests.cpp:<line number>: PASSED:
  2606. REQUIRE( elem % 2 == 1 )
  2607. with expansion:
  2608. 1 == 1
  2609. -------------------------------------------------------------------------------
  2610. Copy and then generate a range
  2611. Final validation
  2612. -------------------------------------------------------------------------------
  2613. Generators.tests.cpp:<line number>
  2614. ...............................................................................
  2615. Generators.tests.cpp:<line number>: PASSED:
  2616. REQUIRE( call_count == 1 )
  2617. with expansion:
  2618. 1 == 1
  2619. Generators.tests.cpp:<line number>: PASSED:
  2620. REQUIRE( make_data().size() == test_count )
  2621. with expansion:
  2622. 6 == 6
  2623. -------------------------------------------------------------------------------
  2624. Custom exceptions can be translated when testing for nothrow
  2625. -------------------------------------------------------------------------------
  2626. Exception.tests.cpp:<line number>
  2627. ...............................................................................
  2628. Exception.tests.cpp:<line number>: FAILED:
  2629. REQUIRE_NOTHROW( throwCustom() )
  2630. due to unexpected exception with message:
  2631. custom exception - not std
  2632. -------------------------------------------------------------------------------
  2633. Custom exceptions can be translated when testing for throwing as something else
  2634. -------------------------------------------------------------------------------
  2635. Exception.tests.cpp:<line number>
  2636. ...............................................................................
  2637. Exception.tests.cpp:<line number>: FAILED:
  2638. REQUIRE_THROWS_AS( throwCustom(), std::exception )
  2639. due to unexpected exception with message:
  2640. custom exception - not std
  2641. -------------------------------------------------------------------------------
  2642. Custom std-exceptions can be custom translated
  2643. -------------------------------------------------------------------------------
  2644. Exception.tests.cpp:<line number>
  2645. ...............................................................................
  2646. Exception.tests.cpp:<line number>: FAILED:
  2647. due to unexpected exception with message:
  2648. custom std exception
  2649. -------------------------------------------------------------------------------
  2650. Default scale is invisible to comparison
  2651. -------------------------------------------------------------------------------
  2652. Approx.tests.cpp:<line number>
  2653. ...............................................................................
  2654. Approx.tests.cpp:<line number>: PASSED:
  2655. REQUIRE( 101.000001 != Approx(100).epsilon(0.01) )
  2656. with expansion:
  2657. 101.000001 != Approx( 100.0 )
  2658. Approx.tests.cpp:<line number>: PASSED:
  2659. REQUIRE( std::pow(10, -5) != Approx(std::pow(10, -7)) )
  2660. with expansion:
  2661. 0.00001 != Approx( 0.0000001 )
  2662. -------------------------------------------------------------------------------
  2663. Directly creating an EnumInfo
  2664. -------------------------------------------------------------------------------
  2665. ToString.tests.cpp:<line number>
  2666. ...............................................................................
  2667. ToString.tests.cpp:<line number>: PASSED:
  2668. CHECK( enumInfo->lookup(0) == "Value1" )
  2669. with expansion:
  2670. Value1 == "Value1"
  2671. ToString.tests.cpp:<line number>: PASSED:
  2672. CHECK( enumInfo->lookup(1) == "Value2" )
  2673. with expansion:
  2674. Value2 == "Value2"
  2675. ToString.tests.cpp:<line number>: PASSED:
  2676. CHECK( enumInfo->lookup(3) == "{** unexpected enum value **}" )
  2677. with expansion:
  2678. {** unexpected enum value **}
  2679. ==
  2680. "{** unexpected enum value **}"
  2681. -------------------------------------------------------------------------------
  2682. EndsWith string matcher
  2683. -------------------------------------------------------------------------------
  2684. Matchers.tests.cpp:<line number>
  2685. ...............................................................................
  2686. Matchers.tests.cpp:<line number>: FAILED:
  2687. CHECK_THAT( testStringForMatching(), EndsWith("Substring") )
  2688. with expansion:
  2689. "this string contains 'abc' as a substring" ends with: "Substring"
  2690. Matchers.tests.cpp:<line number>: FAILED:
  2691. CHECK_THAT( testStringForMatching(), EndsWith("this", Catch::CaseSensitive::No) )
  2692. with expansion:
  2693. "this string contains 'abc' as a substring" ends with: "this" (case
  2694. insensitive)
  2695. -------------------------------------------------------------------------------
  2696. Enums can quickly have stringification enabled using REGISTER_ENUM
  2697. -------------------------------------------------------------------------------
  2698. EnumToString.tests.cpp:<line number>
  2699. ...............................................................................
  2700. EnumToString.tests.cpp:<line number>: PASSED:
  2701. REQUIRE( stringify( EnumClass3::Value1 ) == "Value1" )
  2702. with expansion:
  2703. "Value1" == "Value1"
  2704. EnumToString.tests.cpp:<line number>: PASSED:
  2705. REQUIRE( stringify( EnumClass3::Value2 ) == "Value2" )
  2706. with expansion:
  2707. "Value2" == "Value2"
  2708. EnumToString.tests.cpp:<line number>: PASSED:
  2709. REQUIRE( stringify( EnumClass3::Value3 ) == "Value3" )
  2710. with expansion:
  2711. "Value3" == "Value3"
  2712. EnumToString.tests.cpp:<line number>: PASSED:
  2713. REQUIRE( stringify( EnumClass3::Value4 ) == "{** unexpected enum value **}" )
  2714. with expansion:
  2715. "{** unexpected enum value **}"
  2716. ==
  2717. "{** unexpected enum value **}"
  2718. EnumToString.tests.cpp:<line number>: PASSED:
  2719. REQUIRE( stringify( ec3 ) == "Value2" )
  2720. with expansion:
  2721. "Value2" == "Value2"
  2722. -------------------------------------------------------------------------------
  2723. Enums in namespaces can quickly have stringification enabled using
  2724. REGISTER_ENUM
  2725. -------------------------------------------------------------------------------
  2726. EnumToString.tests.cpp:<line number>
  2727. ...............................................................................
  2728. EnumToString.tests.cpp:<line number>: PASSED:
  2729. REQUIRE( stringify( Bikeshed::Colours::Red ) == "Red" )
  2730. with expansion:
  2731. "Red" == "Red"
  2732. EnumToString.tests.cpp:<line number>: PASSED:
  2733. REQUIRE( stringify( Bikeshed::Colours::Blue ) == "Blue" )
  2734. with expansion:
  2735. "Blue" == "Blue"
  2736. -------------------------------------------------------------------------------
  2737. Epsilon only applies to Approx's value
  2738. -------------------------------------------------------------------------------
  2739. Approx.tests.cpp:<line number>
  2740. ...............................................................................
  2741. Approx.tests.cpp:<line number>: PASSED:
  2742. REQUIRE( 101.01 != Approx(100).epsilon(0.01) )
  2743. with expansion:
  2744. 101.01 != Approx( 100.0 )
  2745. -------------------------------------------------------------------------------
  2746. Equality checks that should fail
  2747. -------------------------------------------------------------------------------
  2748. Condition.tests.cpp:<line number>
  2749. ...............................................................................
  2750. Condition.tests.cpp:<line number>: FAILED:
  2751. CHECK( data.int_seven == 6 )
  2752. with expansion:
  2753. 7 == 6
  2754. Condition.tests.cpp:<line number>: FAILED:
  2755. CHECK( data.int_seven == 8 )
  2756. with expansion:
  2757. 7 == 8
  2758. Condition.tests.cpp:<line number>: FAILED:
  2759. CHECK( data.int_seven == 0 )
  2760. with expansion:
  2761. 7 == 0
  2762. Condition.tests.cpp:<line number>: FAILED:
  2763. CHECK( data.float_nine_point_one == Approx( 9.11f ) )
  2764. with expansion:
  2765. 9.1f == Approx( 9.1099996567 )
  2766. Condition.tests.cpp:<line number>: FAILED:
  2767. CHECK( data.float_nine_point_one == Approx( 9.0f ) )
  2768. with expansion:
  2769. 9.1f == Approx( 9.0 )
  2770. Condition.tests.cpp:<line number>: FAILED:
  2771. CHECK( data.float_nine_point_one == Approx( 1 ) )
  2772. with expansion:
  2773. 9.1f == Approx( 1.0 )
  2774. Condition.tests.cpp:<line number>: FAILED:
  2775. CHECK( data.float_nine_point_one == Approx( 0 ) )
  2776. with expansion:
  2777. 9.1f == Approx( 0.0 )
  2778. Condition.tests.cpp:<line number>: FAILED:
  2779. CHECK( data.double_pi == Approx( 3.1415 ) )
  2780. with expansion:
  2781. 3.1415926535 == Approx( 3.1415 )
  2782. Condition.tests.cpp:<line number>: FAILED:
  2783. CHECK( data.str_hello == "goodbye" )
  2784. with expansion:
  2785. "hello" == "goodbye"
  2786. Condition.tests.cpp:<line number>: FAILED:
  2787. CHECK( data.str_hello == "hell" )
  2788. with expansion:
  2789. "hello" == "hell"
  2790. Condition.tests.cpp:<line number>: FAILED:
  2791. CHECK( data.str_hello == "hello1" )
  2792. with expansion:
  2793. "hello" == "hello1"
  2794. Condition.tests.cpp:<line number>: FAILED:
  2795. CHECK( data.str_hello.size() == 6 )
  2796. with expansion:
  2797. 5 == 6
  2798. Condition.tests.cpp:<line number>: FAILED:
  2799. CHECK( x == Approx( 1.301 ) )
  2800. with expansion:
  2801. 1.3 == Approx( 1.301 )
  2802. -------------------------------------------------------------------------------
  2803. Equality checks that should succeed
  2804. -------------------------------------------------------------------------------
  2805. Condition.tests.cpp:<line number>
  2806. ...............................................................................
  2807. Condition.tests.cpp:<line number>: PASSED:
  2808. REQUIRE( data.int_seven == 7 )
  2809. with expansion:
  2810. 7 == 7
  2811. Condition.tests.cpp:<line number>: PASSED:
  2812. REQUIRE( data.float_nine_point_one == Approx( 9.1f ) )
  2813. with expansion:
  2814. 9.1f == Approx( 9.1000003815 )
  2815. Condition.tests.cpp:<line number>: PASSED:
  2816. REQUIRE( data.double_pi == Approx( 3.1415926535 ) )
  2817. with expansion:
  2818. 3.1415926535 == Approx( 3.1415926535 )
  2819. Condition.tests.cpp:<line number>: PASSED:
  2820. REQUIRE( data.str_hello == "hello" )
  2821. with expansion:
  2822. "hello" == "hello"
  2823. Condition.tests.cpp:<line number>: PASSED:
  2824. REQUIRE( "hello" == data.str_hello )
  2825. with expansion:
  2826. "hello" == "hello"
  2827. Condition.tests.cpp:<line number>: PASSED:
  2828. REQUIRE( data.str_hello.size() == 5 )
  2829. with expansion:
  2830. 5 == 5
  2831. Condition.tests.cpp:<line number>: PASSED:
  2832. REQUIRE( x == Approx( 1.3 ) )
  2833. with expansion:
  2834. 1.3 == Approx( 1.3 )
  2835. -------------------------------------------------------------------------------
  2836. Equals
  2837. -------------------------------------------------------------------------------
  2838. Matchers.tests.cpp:<line number>
  2839. ...............................................................................
  2840. Matchers.tests.cpp:<line number>: PASSED:
  2841. CHECK_THAT( testStringForMatching(), Equals("this string contains 'abc' as a substring") )
  2842. with expansion:
  2843. "this string contains 'abc' as a substring" equals: "this string contains
  2844. 'abc' as a substring"
  2845. Matchers.tests.cpp:<line number>: PASSED:
  2846. CHECK_THAT( testStringForMatching(), Equals("this string contains 'ABC' as a substring", Catch::CaseSensitive::No) )
  2847. with expansion:
  2848. "this string contains 'abc' as a substring" equals: "this string contains
  2849. 'abc' as a substring" (case insensitive)
  2850. -------------------------------------------------------------------------------
  2851. Equals string matcher
  2852. -------------------------------------------------------------------------------
  2853. Matchers.tests.cpp:<line number>
  2854. ...............................................................................
  2855. Matchers.tests.cpp:<line number>: FAILED:
  2856. CHECK_THAT( testStringForMatching(), Equals("this string contains 'ABC' as a substring") )
  2857. with expansion:
  2858. "this string contains 'abc' as a substring" equals: "this string contains
  2859. 'ABC' as a substring"
  2860. Matchers.tests.cpp:<line number>: FAILED:
  2861. CHECK_THAT( testStringForMatching(), Equals("something else", Catch::CaseSensitive::No) )
  2862. with expansion:
  2863. "this string contains 'abc' as a substring" equals: "something else" (case
  2864. insensitive)
  2865. -------------------------------------------------------------------------------
  2866. Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified
  2867. -------------------------------------------------------------------------------
  2868. ToStringGeneral.tests.cpp:<line number>
  2869. ...............................................................................
  2870. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2871. REQUIRE( ::Catch::Detail::stringify(WhatException{}) == "This exception has overridden what() method" )
  2872. with expansion:
  2873. "This exception has overridden what() method"
  2874. ==
  2875. "This exception has overridden what() method"
  2876. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2877. REQUIRE( ::Catch::Detail::stringify(OperatorException{}) == "OperatorException" )
  2878. with expansion:
  2879. "OperatorException" == "OperatorException"
  2880. ToStringGeneral.tests.cpp:<line number>: PASSED:
  2881. REQUIRE( ::Catch::Detail::stringify(StringMakerException{}) == "StringMakerException" )
  2882. with expansion:
  2883. "StringMakerException"
  2884. ==
  2885. "StringMakerException"
  2886. -------------------------------------------------------------------------------
  2887. Exception matchers that fail
  2888. No exception
  2889. -------------------------------------------------------------------------------
  2890. Matchers.tests.cpp:<line number>
  2891. ...............................................................................
  2892. Matchers.tests.cpp:<line number>: FAILED:
  2893. CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{1} )
  2894. because no exception was thrown where one was expected:
  2895. Matchers.tests.cpp:<line number>: FAILED:
  2896. REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{1} )
  2897. because no exception was thrown where one was expected:
  2898. -------------------------------------------------------------------------------
  2899. Exception matchers that fail
  2900. Type mismatch
  2901. -------------------------------------------------------------------------------
  2902. Matchers.tests.cpp:<line number>
  2903. ...............................................................................
  2904. Matchers.tests.cpp:<line number>: FAILED:
  2905. CHECK_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{1} )
  2906. due to unexpected exception with message:
  2907. Unknown exception
  2908. Matchers.tests.cpp:<line number>: FAILED:
  2909. REQUIRE_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{1} )
  2910. due to unexpected exception with message:
  2911. Unknown exception
  2912. -------------------------------------------------------------------------------
  2913. Exception matchers that fail
  2914. Contents are wrong
  2915. -------------------------------------------------------------------------------
  2916. Matchers.tests.cpp:<line number>
  2917. ...............................................................................
  2918. Matchers.tests.cpp:<line number>: FAILED:
  2919. CHECK_THROWS_MATCHES( throwsSpecialException(3), SpecialException, ExceptionMatcher{1} )
  2920. with expansion:
  2921. SpecialException::what special exception has value of 1
  2922. Matchers.tests.cpp:<line number>: FAILED:
  2923. REQUIRE_THROWS_MATCHES( throwsSpecialException(4), SpecialException, ExceptionMatcher{1} )
  2924. with expansion:
  2925. SpecialException::what special exception has value of 1
  2926. -------------------------------------------------------------------------------
  2927. Exception matchers that succeed
  2928. -------------------------------------------------------------------------------
  2929. Matchers.tests.cpp:<line number>
  2930. ...............................................................................
  2931. Matchers.tests.cpp:<line number>: PASSED:
  2932. CHECK_THROWS_MATCHES( throwsSpecialException(1), SpecialException, ExceptionMatcher{1} )
  2933. with expansion:
  2934. SpecialException::what special exception has value of 1
  2935. Matchers.tests.cpp:<line number>: PASSED:
  2936. REQUIRE_THROWS_MATCHES( throwsSpecialException(2), SpecialException, ExceptionMatcher{2} )
  2937. with expansion:
  2938. SpecialException::what special exception has value of 2
  2939. -------------------------------------------------------------------------------
  2940. Exception messages can be tested for
  2941. exact match
  2942. -------------------------------------------------------------------------------
  2943. Exception.tests.cpp:<line number>
  2944. ...............................................................................
  2945. Exception.tests.cpp:<line number>: PASSED:
  2946. REQUIRE_THROWS_WITH( thisThrows(), "expected exception" )
  2947. with expansion:
  2948. "expected exception" equals: "expected exception"
  2949. -------------------------------------------------------------------------------
  2950. Exception messages can be tested for
  2951. different case
  2952. -------------------------------------------------------------------------------
  2953. Exception.tests.cpp:<line number>
  2954. ...............................................................................
  2955. Exception.tests.cpp:<line number>: PASSED:
  2956. REQUIRE_THROWS_WITH( thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) )
  2957. with expansion:
  2958. "expected exception" equals: "expected exception" (case insensitive)
  2959. -------------------------------------------------------------------------------
  2960. Exception messages can be tested for
  2961. wildcarded
  2962. -------------------------------------------------------------------------------
  2963. Exception.tests.cpp:<line number>
  2964. ...............................................................................
  2965. Exception.tests.cpp:<line number>: PASSED:
  2966. REQUIRE_THROWS_WITH( thisThrows(), StartsWith( "expected" ) )
  2967. with expansion:
  2968. "expected exception" starts with: "expected"
  2969. Exception.tests.cpp:<line number>: PASSED:
  2970. REQUIRE_THROWS_WITH( thisThrows(), EndsWith( "exception" ) )
  2971. with expansion:
  2972. "expected exception" ends with: "exception"
  2973. Exception.tests.cpp:<line number>: PASSED:
  2974. REQUIRE_THROWS_WITH( thisThrows(), Contains( "except" ) )
  2975. with expansion:
  2976. "expected exception" contains: "except"
  2977. Exception.tests.cpp:<line number>: PASSED:
  2978. REQUIRE_THROWS_WITH( thisThrows(), Contains( "exCept", Catch::CaseSensitive::No ) )
  2979. with expansion:
  2980. "expected exception" contains: "except" (case insensitive)
  2981. -------------------------------------------------------------------------------
  2982. Exceptions matchers
  2983. -------------------------------------------------------------------------------
  2984. Matchers.tests.cpp:<line number>
  2985. ...............................................................................
  2986. Matchers.tests.cpp:<line number>: PASSED:
  2987. REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, Message("DerivedException::what") )
  2988. with expansion:
  2989. DerivedException::what exception message matches "DerivedException::what"
  2990. Matchers.tests.cpp:<line number>: PASSED:
  2991. REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, !Message("derivedexception::what") )
  2992. with expansion:
  2993. DerivedException::what not exception message matches "derivedexception::what"
  2994. Matchers.tests.cpp:<line number>: PASSED:
  2995. REQUIRE_THROWS_MATCHES( throwsSpecialException(2), SpecialException, !Message("DerivedException::what") )
  2996. with expansion:
  2997. SpecialException::what not exception message matches "DerivedException::what"
  2998. Matchers.tests.cpp:<line number>: PASSED:
  2999. REQUIRE_THROWS_MATCHES( throwsSpecialException(2), SpecialException, Message("SpecialException::what") )
  3000. with expansion:
  3001. SpecialException::what exception message matches "SpecialException::what"
  3002. -------------------------------------------------------------------------------
  3003. Expected exceptions that don't throw or unexpected exceptions fail the test
  3004. -------------------------------------------------------------------------------
  3005. Exception.tests.cpp:<line number>
  3006. ...............................................................................
  3007. Exception.tests.cpp:<line number>: FAILED:
  3008. CHECK_THROWS_AS( thisThrows(), std::string )
  3009. due to unexpected exception with message:
  3010. expected exception
  3011. Exception.tests.cpp:<line number>: FAILED:
  3012. CHECK_THROWS_AS( thisDoesntThrow(), std::domain_error )
  3013. because no exception was thrown where one was expected:
  3014. Exception.tests.cpp:<line number>: FAILED:
  3015. CHECK_NOTHROW( thisThrows() )
  3016. due to unexpected exception with message:
  3017. expected exception
  3018. -------------------------------------------------------------------------------
  3019. FAIL aborts the test
  3020. -------------------------------------------------------------------------------
  3021. Message.tests.cpp:<line number>
  3022. ...............................................................................
  3023. Message.tests.cpp:<line number>: FAILED:
  3024. explicitly with message:
  3025. This is a failure
  3026. -------------------------------------------------------------------------------
  3027. FAIL does not require an argument
  3028. -------------------------------------------------------------------------------
  3029. Message.tests.cpp:<line number>
  3030. ...............................................................................
  3031. Message.tests.cpp:<line number>: FAILED:
  3032. -------------------------------------------------------------------------------
  3033. FAIL_CHECK does not abort the test
  3034. -------------------------------------------------------------------------------
  3035. Message.tests.cpp:<line number>
  3036. ...............................................................................
  3037. Message.tests.cpp:<line number>: FAILED:
  3038. explicitly with message:
  3039. This is a failure
  3040. Message.tests.cpp:<line number>: warning:
  3041. This message appears in the output
  3042. -------------------------------------------------------------------------------
  3043. Factorials are computed
  3044. -------------------------------------------------------------------------------
  3045. Misc.tests.cpp:<line number>
  3046. ...............................................................................
  3047. Misc.tests.cpp:<line number>: PASSED:
  3048. REQUIRE( Factorial(0) == 1 )
  3049. with expansion:
  3050. 1 == 1
  3051. Misc.tests.cpp:<line number>: PASSED:
  3052. REQUIRE( Factorial(1) == 1 )
  3053. with expansion:
  3054. 1 == 1
  3055. Misc.tests.cpp:<line number>: PASSED:
  3056. REQUIRE( Factorial(2) == 2 )
  3057. with expansion:
  3058. 2 == 2
  3059. Misc.tests.cpp:<line number>: PASSED:
  3060. REQUIRE( Factorial(3) == 6 )
  3061. with expansion:
  3062. 6 == 6
  3063. Misc.tests.cpp:<line number>: PASSED:
  3064. REQUIRE( Factorial(10) == 3628800 )
  3065. with expansion:
  3066. 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
  3067. -------------------------------------------------------------------------------
  3068. Floating point matchers: double
  3069. Relative
  3070. -------------------------------------------------------------------------------
  3071. Matchers.tests.cpp:<line number>
  3072. ...............................................................................
  3073. Matchers.tests.cpp:<line number>: PASSED:
  3074. REQUIRE_THAT( 10., WithinRel(11.1, 0.1) )
  3075. with expansion:
  3076. 10.0 and 11.1 are within 10% of each other
  3077. Matchers.tests.cpp:<line number>: PASSED:
  3078. REQUIRE_THAT( 10., !WithinRel(11.2, 0.1) )
  3079. with expansion:
  3080. 10.0 not and 11.2 are within 10% of each other
  3081. Matchers.tests.cpp:<line number>: PASSED:
  3082. REQUIRE_THAT( 1., !WithinRel(0., 0.99) )
  3083. with expansion:
  3084. 1.0 not and 0 are within 99% of each other
  3085. Matchers.tests.cpp:<line number>: PASSED:
  3086. REQUIRE_THAT( -0., WithinRel(0.) )
  3087. with expansion:
  3088. -0.0 and 0 are within 2.22045e-12% of each other
  3089. -------------------------------------------------------------------------------
  3090. Floating point matchers: double
  3091. Relative
  3092. Some subnormal values
  3093. -------------------------------------------------------------------------------
  3094. Matchers.tests.cpp:<line number>
  3095. ...............................................................................
  3096. Matchers.tests.cpp:<line number>: PASSED:
  3097. REQUIRE_THAT( v1, WithinRel(v2) )
  3098. with expansion:
  3099. 0.0 and 2.22507e-308 are within 2.22045e-12% of each other
  3100. -------------------------------------------------------------------------------
  3101. Floating point matchers: double
  3102. Margin
  3103. -------------------------------------------------------------------------------
  3104. Matchers.tests.cpp:<line number>
  3105. ...............................................................................
  3106. Matchers.tests.cpp:<line number>: PASSED:
  3107. REQUIRE_THAT( 1., WithinAbs(1., 0) )
  3108. with expansion:
  3109. 1.0 is within 0.0 of 1.0
  3110. Matchers.tests.cpp:<line number>: PASSED:
  3111. REQUIRE_THAT( 0., WithinAbs(1., 1) )
  3112. with expansion:
  3113. 0.0 is within 1.0 of 1.0
  3114. Matchers.tests.cpp:<line number>: PASSED:
  3115. REQUIRE_THAT( 0., !WithinAbs(1., 0.99) )
  3116. with expansion:
  3117. 0.0 not is within 0.99 of 1.0
  3118. Matchers.tests.cpp:<line number>: PASSED:
  3119. REQUIRE_THAT( 0., !WithinAbs(1., 0.99) )
  3120. with expansion:
  3121. 0.0 not is within 0.99 of 1.0
  3122. Matchers.tests.cpp:<line number>: PASSED:
  3123. REQUIRE_THAT( 11., !WithinAbs(10., 0.5) )
  3124. with expansion:
  3125. 11.0 not is within 0.5 of 10.0
  3126. Matchers.tests.cpp:<line number>: PASSED:
  3127. REQUIRE_THAT( 10., !WithinAbs(11., 0.5) )
  3128. with expansion:
  3129. 10.0 not is within 0.5 of 11.0
  3130. Matchers.tests.cpp:<line number>: PASSED:
  3131. REQUIRE_THAT( -10., WithinAbs(-10., 0.5) )
  3132. with expansion:
  3133. -10.0 is within 0.5 of -10.0
  3134. Matchers.tests.cpp:<line number>: PASSED:
  3135. REQUIRE_THAT( -10., WithinAbs(-9.6, 0.5) )
  3136. with expansion:
  3137. -10.0 is within 0.5 of -9.6
  3138. -------------------------------------------------------------------------------
  3139. Floating point matchers: double
  3140. ULPs
  3141. -------------------------------------------------------------------------------
  3142. Matchers.tests.cpp:<line number>
  3143. ...............................................................................
  3144. Matchers.tests.cpp:<line number>: PASSED:
  3145. REQUIRE_THAT( 1., WithinULP(1., 0) )
  3146. with expansion:
  3147. 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.
  3148. 0000000000000000e+00])
  3149. Matchers.tests.cpp:<line number>: PASSED:
  3150. REQUIRE_THAT( nextafter(1., 2.), WithinULP(1., 1) )
  3151. with expansion:
  3152. 1.0 is within 1 ULPs of 1.0000000000000000e+00 ([9.9999999999999989e-01, 1.
  3153. 0000000000000002e+00])
  3154. Matchers.tests.cpp:<line number>: PASSED:
  3155. REQUIRE_THAT( 0., WithinULP(nextafter(0., 1.), 1) )
  3156. with expansion:
  3157. 0.0 is within 1 ULPs of 4.9406564584124654e-324 ([0.0000000000000000e+00, 9.
  3158. 8813129168249309e-324])
  3159. Matchers.tests.cpp:<line number>: PASSED:
  3160. REQUIRE_THAT( 1., WithinULP(nextafter(1., 0.), 1) )
  3161. with expansion:
  3162. 1.0 is within 1 ULPs of 9.9999999999999989e-01 ([9.9999999999999978e-01, 1.
  3163. 0000000000000000e+00])
  3164. Matchers.tests.cpp:<line number>: PASSED:
  3165. REQUIRE_THAT( 1., !WithinULP(nextafter(1., 2.), 0) )
  3166. with expansion:
  3167. 1.0 not is within 0 ULPs of 1.0000000000000002e+00 ([1.0000000000000002e+00,
  3168. 1.0000000000000002e+00])
  3169. Matchers.tests.cpp:<line number>: PASSED:
  3170. REQUIRE_THAT( 1., WithinULP(1., 0) )
  3171. with expansion:
  3172. 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.
  3173. 0000000000000000e+00])
  3174. Matchers.tests.cpp:<line number>: PASSED:
  3175. REQUIRE_THAT( -0., WithinULP(0., 0) )
  3176. with expansion:
  3177. -0.0 is within 0 ULPs of 0.0000000000000000e+00 ([0.0000000000000000e+00, 0.
  3178. 0000000000000000e+00])
  3179. -------------------------------------------------------------------------------
  3180. Floating point matchers: double
  3181. Composed
  3182. -------------------------------------------------------------------------------
  3183. Matchers.tests.cpp:<line number>
  3184. ...............................................................................
  3185. Matchers.tests.cpp:<line number>: PASSED:
  3186. REQUIRE_THAT( 1., WithinAbs(1., 0.5) || WithinULP(2., 1) )
  3187. with expansion:
  3188. 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0000000000000000e+00 ([1.
  3189. 9999999999999998e+00, 2.0000000000000004e+00]) )
  3190. Matchers.tests.cpp:<line number>: PASSED:
  3191. REQUIRE_THAT( 1., WithinAbs(2., 0.5) || WithinULP(1., 0) )
  3192. with expansion:
  3193. 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0000000000000000e+00 ([1.
  3194. 0000000000000000e+00, 1.0000000000000000e+00]) )
  3195. Matchers.tests.cpp:<line number>: PASSED:
  3196. REQUIRE_THAT( 0.0001, WithinAbs(0., 0.001) || WithinRel(0., 0.1) )
  3197. with expansion:
  3198. 0.0001 ( is within 0.001 of 0.0 or and 0 are within 10% of each other )
  3199. -------------------------------------------------------------------------------
  3200. Floating point matchers: double
  3201. Constructor validation
  3202. -------------------------------------------------------------------------------
  3203. Matchers.tests.cpp:<line number>
  3204. ...............................................................................
  3205. Matchers.tests.cpp:<line number>: PASSED:
  3206. REQUIRE_NOTHROW( WithinAbs(1., 0.) )
  3207. Matchers.tests.cpp:<line number>: PASSED:
  3208. REQUIRE_THROWS_AS( WithinAbs(1., -1.), std::domain_error )
  3209. Matchers.tests.cpp:<line number>: PASSED:
  3210. REQUIRE_NOTHROW( WithinULP(1., 0) )
  3211. Matchers.tests.cpp:<line number>: PASSED:
  3212. REQUIRE_NOTHROW( WithinRel(1., 0.) )
  3213. Matchers.tests.cpp:<line number>: PASSED:
  3214. REQUIRE_THROWS_AS( WithinRel(1., -0.2), std::domain_error )
  3215. Matchers.tests.cpp:<line number>: PASSED:
  3216. REQUIRE_THROWS_AS( WithinRel(1., 1.), std::domain_error )
  3217. -------------------------------------------------------------------------------
  3218. Floating point matchers: float
  3219. Relative
  3220. -------------------------------------------------------------------------------
  3221. Matchers.tests.cpp:<line number>
  3222. ...............................................................................
  3223. Matchers.tests.cpp:<line number>: PASSED:
  3224. REQUIRE_THAT( 10.f, WithinRel(11.1f, 0.1f) )
  3225. with expansion:
  3226. 10.0f and 11.1 are within 10% of each other
  3227. Matchers.tests.cpp:<line number>: PASSED:
  3228. REQUIRE_THAT( 10.f, !WithinRel(11.2f, 0.1f) )
  3229. with expansion:
  3230. 10.0f not and 11.2 are within 10% of each other
  3231. Matchers.tests.cpp:<line number>: PASSED:
  3232. REQUIRE_THAT( 1.f, !WithinRel(0.f, 0.99f) )
  3233. with expansion:
  3234. 1.0f not and 0 are within 99% of each other
  3235. Matchers.tests.cpp:<line number>: PASSED:
  3236. REQUIRE_THAT( -0.f, WithinRel(0.f) )
  3237. with expansion:
  3238. -0.0f and 0 are within 0.00119209% of each other
  3239. -------------------------------------------------------------------------------
  3240. Floating point matchers: float
  3241. Relative
  3242. Some subnormal values
  3243. -------------------------------------------------------------------------------
  3244. Matchers.tests.cpp:<line number>
  3245. ...............................................................................
  3246. Matchers.tests.cpp:<line number>: PASSED:
  3247. REQUIRE_THAT( v1, WithinRel(v2) )
  3248. with expansion:
  3249. 0.0f and 1.17549e-38 are within 0.00119209% of each other
  3250. -------------------------------------------------------------------------------
  3251. Floating point matchers: float
  3252. Margin
  3253. -------------------------------------------------------------------------------
  3254. Matchers.tests.cpp:<line number>
  3255. ...............................................................................
  3256. Matchers.tests.cpp:<line number>: PASSED:
  3257. REQUIRE_THAT( 1.f, WithinAbs(1.f, 0) )
  3258. with expansion:
  3259. 1.0f is within 0.0 of 1.0
  3260. Matchers.tests.cpp:<line number>: PASSED:
  3261. REQUIRE_THAT( 0.f, WithinAbs(1.f, 1) )
  3262. with expansion:
  3263. 0.0f is within 1.0 of 1.0
  3264. Matchers.tests.cpp:<line number>: PASSED:
  3265. REQUIRE_THAT( 0.f, !WithinAbs(1.f, 0.99f) )
  3266. with expansion:
  3267. 0.0f not is within 0.9900000095 of 1.0
  3268. Matchers.tests.cpp:<line number>: PASSED:
  3269. REQUIRE_THAT( 0.f, !WithinAbs(1.f, 0.99f) )
  3270. with expansion:
  3271. 0.0f not is within 0.9900000095 of 1.0
  3272. Matchers.tests.cpp:<line number>: PASSED:
  3273. REQUIRE_THAT( 0.f, WithinAbs(-0.f, 0) )
  3274. with expansion:
  3275. 0.0f is within 0.0 of -0.0
  3276. Matchers.tests.cpp:<line number>: PASSED:
  3277. REQUIRE_THAT( 11.f, !WithinAbs(10.f, 0.5f) )
  3278. with expansion:
  3279. 11.0f not is within 0.5 of 10.0
  3280. Matchers.tests.cpp:<line number>: PASSED:
  3281. REQUIRE_THAT( 10.f, !WithinAbs(11.f, 0.5f) )
  3282. with expansion:
  3283. 10.0f not is within 0.5 of 11.0
  3284. Matchers.tests.cpp:<line number>: PASSED:
  3285. REQUIRE_THAT( -10.f, WithinAbs(-10.f, 0.5f) )
  3286. with expansion:
  3287. -10.0f is within 0.5 of -10.0
  3288. Matchers.tests.cpp:<line number>: PASSED:
  3289. REQUIRE_THAT( -10.f, WithinAbs(-9.6f, 0.5f) )
  3290. with expansion:
  3291. -10.0f is within 0.5 of -9.6000003815
  3292. -------------------------------------------------------------------------------
  3293. Floating point matchers: float
  3294. ULPs
  3295. -------------------------------------------------------------------------------
  3296. Matchers.tests.cpp:<line number>
  3297. ...............................................................................
  3298. Matchers.tests.cpp:<line number>: PASSED:
  3299. REQUIRE_THAT( 1.f, WithinULP(1.f, 0) )
  3300. with expansion:
  3301. 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
  3302. Matchers.tests.cpp:<line number>: PASSED:
  3303. REQUIRE_THAT( nextafter(1.f, 2.f), WithinULP(1.f, 1) )
  3304. with expansion:
  3305. 1.0f is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00])
  3306. Matchers.tests.cpp:<line number>: PASSED:
  3307. REQUIRE_THAT( 0.f, WithinULP(nextafter(0.f, 1.f), 1) )
  3308. with expansion:
  3309. 0.0f is within 1 ULPs of 1.40129846e-45f ([0.00000000e+00, 2.80259693e-45])
  3310. Matchers.tests.cpp:<line number>: PASSED:
  3311. REQUIRE_THAT( 1.f, WithinULP(nextafter(1.f, 0.f), 1) )
  3312. with expansion:
  3313. 1.0f is within 1 ULPs of 9.99999940e-01f ([9.99999881e-01, 1.00000000e+00])
  3314. Matchers.tests.cpp:<line number>: PASSED:
  3315. REQUIRE_THAT( 1.f, !WithinULP(nextafter(1.f, 2.f), 0) )
  3316. with expansion:
  3317. 1.0f not is within 0 ULPs of 1.00000012e+00f ([1.00000012e+00, 1.00000012e+
  3318. 00])
  3319. Matchers.tests.cpp:<line number>: PASSED:
  3320. REQUIRE_THAT( 1.f, WithinULP(1.f, 0) )
  3321. with expansion:
  3322. 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
  3323. Matchers.tests.cpp:<line number>: PASSED:
  3324. REQUIRE_THAT( -0.f, WithinULP(0.f, 0) )
  3325. with expansion:
  3326. -0.0f is within 0 ULPs of 0.00000000e+00f ([0.00000000e+00, 0.00000000e+00])
  3327. -------------------------------------------------------------------------------
  3328. Floating point matchers: float
  3329. Composed
  3330. -------------------------------------------------------------------------------
  3331. Matchers.tests.cpp:<line number>
  3332. ...............................................................................
  3333. Matchers.tests.cpp:<line number>: PASSED:
  3334. REQUIRE_THAT( 1.f, WithinAbs(1.f, 0.5) || WithinULP(1.f, 1) )
  3335. with expansion:
  3336. 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.00000000e+00f ([9.
  3337. 99999940e-01, 1.00000012e+00]) )
  3338. Matchers.tests.cpp:<line number>: PASSED:
  3339. REQUIRE_THAT( 1.f, WithinAbs(2.f, 0.5) || WithinULP(1.f, 0) )
  3340. with expansion:
  3341. 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.00000000e+00f ([1.
  3342. 00000000e+00, 1.00000000e+00]) )
  3343. Matchers.tests.cpp:<line number>: PASSED:
  3344. REQUIRE_THAT( 0.0001f, WithinAbs(0.f, 0.001f) || WithinRel(0.f, 0.1f) )
  3345. with expansion:
  3346. 0.0001f ( is within 0.001 of 0.0 or and 0 are within 10% of each other )
  3347. -------------------------------------------------------------------------------
  3348. Floating point matchers: float
  3349. Constructor validation
  3350. -------------------------------------------------------------------------------
  3351. Matchers.tests.cpp:<line number>
  3352. ...............................................................................
  3353. Matchers.tests.cpp:<line number>: PASSED:
  3354. REQUIRE_NOTHROW( WithinAbs(1.f, 0.f) )
  3355. Matchers.tests.cpp:<line number>: PASSED:
  3356. REQUIRE_THROWS_AS( WithinAbs(1.f, -1.f), std::domain_error )
  3357. Matchers.tests.cpp:<line number>: PASSED:
  3358. REQUIRE_NOTHROW( WithinULP(1.f, 0) )
  3359. Matchers.tests.cpp:<line number>: PASSED:
  3360. REQUIRE_THROWS_AS( WithinULP(1.f, static_cast<uint64_t>(-1)), std::domain_error )
  3361. Matchers.tests.cpp:<line number>: PASSED:
  3362. REQUIRE_NOTHROW( WithinRel(1.f, 0.f) )
  3363. Matchers.tests.cpp:<line number>: PASSED:
  3364. REQUIRE_THROWS_AS( WithinRel(1.f, -0.2f), std::domain_error )
  3365. Matchers.tests.cpp:<line number>: PASSED:
  3366. REQUIRE_THROWS_AS( WithinRel(1.f, 1.f), std::domain_error )
  3367. -------------------------------------------------------------------------------
  3368. Generators -- adapters
  3369. Filtering by predicate
  3370. Basic usage
  3371. -------------------------------------------------------------------------------
  3372. Generators.tests.cpp:<line number>
  3373. ...............................................................................
  3374. Generators.tests.cpp:<line number>: PASSED:
  3375. REQUIRE( i % 2 == 0 )
  3376. with expansion:
  3377. 0 == 0
  3378. -------------------------------------------------------------------------------
  3379. Generators -- adapters
  3380. Filtering by predicate
  3381. Basic usage
  3382. -------------------------------------------------------------------------------
  3383. Generators.tests.cpp:<line number>
  3384. ...............................................................................
  3385. Generators.tests.cpp:<line number>: PASSED:
  3386. REQUIRE( i % 2 == 0 )
  3387. with expansion:
  3388. 0 == 0
  3389. -------------------------------------------------------------------------------
  3390. Generators -- adapters
  3391. Filtering by predicate
  3392. Basic usage
  3393. -------------------------------------------------------------------------------
  3394. Generators.tests.cpp:<line number>
  3395. ...............................................................................
  3396. Generators.tests.cpp:<line number>: PASSED:
  3397. REQUIRE( i % 2 == 0 )
  3398. with expansion:
  3399. 0 == 0
  3400. -------------------------------------------------------------------------------
  3401. Generators -- adapters
  3402. Filtering by predicate
  3403. Throws if there are no matching values
  3404. -------------------------------------------------------------------------------
  3405. Generators.tests.cpp:<line number>
  3406. ...............................................................................
  3407. Generators.tests.cpp:<line number>: PASSED:
  3408. REQUIRE_THROWS_AS( filter([] (int) {return false; }, value(1)), Catch::GeneratorException )
  3409. -------------------------------------------------------------------------------
  3410. Generators -- adapters
  3411. Shortening a range
  3412. -------------------------------------------------------------------------------
  3413. Generators.tests.cpp:<line number>
  3414. ...............................................................................
  3415. Generators.tests.cpp:<line number>: PASSED:
  3416. REQUIRE( i < 4 )
  3417. with expansion:
  3418. 1 < 4
  3419. -------------------------------------------------------------------------------
  3420. Generators -- adapters
  3421. Shortening a range
  3422. -------------------------------------------------------------------------------
  3423. Generators.tests.cpp:<line number>
  3424. ...............................................................................
  3425. Generators.tests.cpp:<line number>: PASSED:
  3426. REQUIRE( i < 4 )
  3427. with expansion:
  3428. 2 < 4
  3429. -------------------------------------------------------------------------------
  3430. Generators -- adapters
  3431. Shortening a range
  3432. -------------------------------------------------------------------------------
  3433. Generators.tests.cpp:<line number>
  3434. ...............................................................................
  3435. Generators.tests.cpp:<line number>: PASSED:
  3436. REQUIRE( i < 4 )
  3437. with expansion:
  3438. 3 < 4
  3439. -------------------------------------------------------------------------------
  3440. Generators -- adapters
  3441. Transforming elements
  3442. Same type
  3443. -------------------------------------------------------------------------------
  3444. Generators.tests.cpp:<line number>
  3445. ...............................................................................
  3446. Generators.tests.cpp:<line number>: PASSED:
  3447. REQUIRE( i % 2 == 0 )
  3448. with expansion:
  3449. 0 == 0
  3450. -------------------------------------------------------------------------------
  3451. Generators -- adapters
  3452. Transforming elements
  3453. Same type
  3454. -------------------------------------------------------------------------------
  3455. Generators.tests.cpp:<line number>
  3456. ...............................................................................
  3457. Generators.tests.cpp:<line number>: PASSED:
  3458. REQUIRE( i % 2 == 0 )
  3459. with expansion:
  3460. 0 == 0
  3461. -------------------------------------------------------------------------------
  3462. Generators -- adapters
  3463. Transforming elements
  3464. Same type
  3465. -------------------------------------------------------------------------------
  3466. Generators.tests.cpp:<line number>
  3467. ...............................................................................
  3468. Generators.tests.cpp:<line number>: PASSED:
  3469. REQUIRE( i % 2 == 0 )
  3470. with expansion:
  3471. 0 == 0
  3472. -------------------------------------------------------------------------------
  3473. Generators -- adapters
  3474. Transforming elements
  3475. Different type
  3476. -------------------------------------------------------------------------------
  3477. Generators.tests.cpp:<line number>
  3478. ...............................................................................
  3479. Generators.tests.cpp:<line number>: PASSED:
  3480. REQUIRE( i.size() == 1 )
  3481. with expansion:
  3482. 1 == 1
  3483. -------------------------------------------------------------------------------
  3484. Generators -- adapters
  3485. Transforming elements
  3486. Different type
  3487. -------------------------------------------------------------------------------
  3488. Generators.tests.cpp:<line number>
  3489. ...............................................................................
  3490. Generators.tests.cpp:<line number>: PASSED:
  3491. REQUIRE( i.size() == 1 )
  3492. with expansion:
  3493. 1 == 1
  3494. -------------------------------------------------------------------------------
  3495. Generators -- adapters
  3496. Transforming elements
  3497. Different type
  3498. -------------------------------------------------------------------------------
  3499. Generators.tests.cpp:<line number>
  3500. ...............................................................................
  3501. Generators.tests.cpp:<line number>: PASSED:
  3502. REQUIRE( i.size() == 1 )
  3503. with expansion:
  3504. 1 == 1
  3505. -------------------------------------------------------------------------------
  3506. Generators -- adapters
  3507. Transforming elements
  3508. Different deduced type
  3509. -------------------------------------------------------------------------------
  3510. Generators.tests.cpp:<line number>
  3511. ...............................................................................
  3512. Generators.tests.cpp:<line number>: PASSED:
  3513. REQUIRE( i.size() == 1 )
  3514. with expansion:
  3515. 1 == 1
  3516. -------------------------------------------------------------------------------
  3517. Generators -- adapters
  3518. Transforming elements
  3519. Different deduced type
  3520. -------------------------------------------------------------------------------
  3521. Generators.tests.cpp:<line number>
  3522. ...............................................................................
  3523. Generators.tests.cpp:<line number>: PASSED:
  3524. REQUIRE( i.size() == 1 )
  3525. with expansion:
  3526. 1 == 1
  3527. -------------------------------------------------------------------------------
  3528. Generators -- adapters
  3529. Transforming elements
  3530. Different deduced type
  3531. -------------------------------------------------------------------------------
  3532. Generators.tests.cpp:<line number>
  3533. ...............................................................................
  3534. Generators.tests.cpp:<line number>: PASSED:
  3535. REQUIRE( i.size() == 1 )
  3536. with expansion:
  3537. 1 == 1
  3538. -------------------------------------------------------------------------------
  3539. Generators -- adapters
  3540. Repeating a generator
  3541. -------------------------------------------------------------------------------
  3542. Generators.tests.cpp:<line number>
  3543. ...............................................................................
  3544. Generators.tests.cpp:<line number>: PASSED:
  3545. REQUIRE( j > 0 )
  3546. with expansion:
  3547. 1 > 0
  3548. -------------------------------------------------------------------------------
  3549. Generators -- adapters
  3550. Repeating a generator
  3551. -------------------------------------------------------------------------------
  3552. Generators.tests.cpp:<line number>
  3553. ...............................................................................
  3554. Generators.tests.cpp:<line number>: PASSED:
  3555. REQUIRE( j > 0 )
  3556. with expansion:
  3557. 2 > 0
  3558. -------------------------------------------------------------------------------
  3559. Generators -- adapters
  3560. Repeating a generator
  3561. -------------------------------------------------------------------------------
  3562. Generators.tests.cpp:<line number>
  3563. ...............................................................................
  3564. Generators.tests.cpp:<line number>: PASSED:
  3565. REQUIRE( j > 0 )
  3566. with expansion:
  3567. 3 > 0
  3568. -------------------------------------------------------------------------------
  3569. Generators -- adapters
  3570. Repeating a generator
  3571. -------------------------------------------------------------------------------
  3572. Generators.tests.cpp:<line number>
  3573. ...............................................................................
  3574. Generators.tests.cpp:<line number>: PASSED:
  3575. REQUIRE( j > 0 )
  3576. with expansion:
  3577. 1 > 0
  3578. -------------------------------------------------------------------------------
  3579. Generators -- adapters
  3580. Repeating a generator
  3581. -------------------------------------------------------------------------------
  3582. Generators.tests.cpp:<line number>
  3583. ...............................................................................
  3584. Generators.tests.cpp:<line number>: PASSED:
  3585. REQUIRE( j > 0 )
  3586. with expansion:
  3587. 2 > 0
  3588. -------------------------------------------------------------------------------
  3589. Generators -- adapters
  3590. Repeating a generator
  3591. -------------------------------------------------------------------------------
  3592. Generators.tests.cpp:<line number>
  3593. ...............................................................................
  3594. Generators.tests.cpp:<line number>: PASSED:
  3595. REQUIRE( j > 0 )
  3596. with expansion:
  3597. 3 > 0
  3598. -------------------------------------------------------------------------------
  3599. Generators -- adapters
  3600. Chunking a generator into sized pieces
  3601. Number of elements in source is divisible by chunk size
  3602. -------------------------------------------------------------------------------
  3603. Generators.tests.cpp:<line number>
  3604. ...............................................................................
  3605. Generators.tests.cpp:<line number>: PASSED:
  3606. REQUIRE( chunk2.size() == 2 )
  3607. with expansion:
  3608. 2 == 2
  3609. Generators.tests.cpp:<line number>: PASSED:
  3610. REQUIRE( chunk2.front() == chunk2.back() )
  3611. with expansion:
  3612. 1 == 1
  3613. -------------------------------------------------------------------------------
  3614. Generators -- adapters
  3615. Chunking a generator into sized pieces
  3616. Number of elements in source is divisible by chunk size
  3617. -------------------------------------------------------------------------------
  3618. Generators.tests.cpp:<line number>
  3619. ...............................................................................
  3620. Generators.tests.cpp:<line number>: PASSED:
  3621. REQUIRE( chunk2.size() == 2 )
  3622. with expansion:
  3623. 2 == 2
  3624. Generators.tests.cpp:<line number>: PASSED:
  3625. REQUIRE( chunk2.front() == chunk2.back() )
  3626. with expansion:
  3627. 2 == 2
  3628. -------------------------------------------------------------------------------
  3629. Generators -- adapters
  3630. Chunking a generator into sized pieces
  3631. Number of elements in source is divisible by chunk size
  3632. -------------------------------------------------------------------------------
  3633. Generators.tests.cpp:<line number>
  3634. ...............................................................................
  3635. Generators.tests.cpp:<line number>: PASSED:
  3636. REQUIRE( chunk2.size() == 2 )
  3637. with expansion:
  3638. 2 == 2
  3639. Generators.tests.cpp:<line number>: PASSED:
  3640. REQUIRE( chunk2.front() == chunk2.back() )
  3641. with expansion:
  3642. 3 == 3
  3643. -------------------------------------------------------------------------------
  3644. Generators -- adapters
  3645. Chunking a generator into sized pieces
  3646. Number of elements in source is not divisible by chunk size
  3647. -------------------------------------------------------------------------------
  3648. Generators.tests.cpp:<line number>
  3649. ...............................................................................
  3650. Generators.tests.cpp:<line number>: PASSED:
  3651. REQUIRE( chunk2.size() == 2 )
  3652. with expansion:
  3653. 2 == 2
  3654. Generators.tests.cpp:<line number>: PASSED:
  3655. REQUIRE( chunk2.front() == chunk2.back() )
  3656. with expansion:
  3657. 1 == 1
  3658. Generators.tests.cpp:<line number>: PASSED:
  3659. REQUIRE( chunk2.front() < 3 )
  3660. with expansion:
  3661. 1 < 3
  3662. -------------------------------------------------------------------------------
  3663. Generators -- adapters
  3664. Chunking a generator into sized pieces
  3665. Number of elements in source is not divisible by chunk size
  3666. -------------------------------------------------------------------------------
  3667. Generators.tests.cpp:<line number>
  3668. ...............................................................................
  3669. Generators.tests.cpp:<line number>: PASSED:
  3670. REQUIRE( chunk2.size() == 2 )
  3671. with expansion:
  3672. 2 == 2
  3673. Generators.tests.cpp:<line number>: PASSED:
  3674. REQUIRE( chunk2.front() == chunk2.back() )
  3675. with expansion:
  3676. 2 == 2
  3677. Generators.tests.cpp:<line number>: PASSED:
  3678. REQUIRE( chunk2.front() < 3 )
  3679. with expansion:
  3680. 2 < 3
  3681. -------------------------------------------------------------------------------
  3682. Generators -- adapters
  3683. Chunking a generator into sized pieces
  3684. Chunk size of zero
  3685. -------------------------------------------------------------------------------
  3686. Generators.tests.cpp:<line number>
  3687. ...............................................................................
  3688. Generators.tests.cpp:<line number>: PASSED:
  3689. REQUIRE( chunk2.size() == 0 )
  3690. with expansion:
  3691. 0 == 0
  3692. -------------------------------------------------------------------------------
  3693. Generators -- adapters
  3694. Chunking a generator into sized pieces
  3695. Chunk size of zero
  3696. -------------------------------------------------------------------------------
  3697. Generators.tests.cpp:<line number>
  3698. ...............................................................................
  3699. Generators.tests.cpp:<line number>: PASSED:
  3700. REQUIRE( chunk2.size() == 0 )
  3701. with expansion:
  3702. 0 == 0
  3703. -------------------------------------------------------------------------------
  3704. Generators -- adapters
  3705. Chunking a generator into sized pieces
  3706. Chunk size of zero
  3707. -------------------------------------------------------------------------------
  3708. Generators.tests.cpp:<line number>
  3709. ...............................................................................
  3710. Generators.tests.cpp:<line number>: PASSED:
  3711. REQUIRE( chunk2.size() == 0 )
  3712. with expansion:
  3713. 0 == 0
  3714. -------------------------------------------------------------------------------
  3715. Generators -- adapters
  3716. Chunking a generator into sized pieces
  3717. Throws on too small generators
  3718. -------------------------------------------------------------------------------
  3719. Generators.tests.cpp:<line number>
  3720. ...............................................................................
  3721. Generators.tests.cpp:<line number>: PASSED:
  3722. REQUIRE_THROWS_AS( chunk(2, value(1)), Catch::GeneratorException )
  3723. -------------------------------------------------------------------------------
  3724. Generators -- simple
  3725. one
  3726. -------------------------------------------------------------------------------
  3727. Generators.tests.cpp:<line number>
  3728. ...............................................................................
  3729. Generators.tests.cpp:<line number>: PASSED:
  3730. REQUIRE( j < i )
  3731. with expansion:
  3732. -3 < 1
  3733. -------------------------------------------------------------------------------
  3734. Generators -- simple
  3735. one
  3736. -------------------------------------------------------------------------------
  3737. Generators.tests.cpp:<line number>
  3738. ...............................................................................
  3739. Generators.tests.cpp:<line number>: PASSED:
  3740. REQUIRE( j < i )
  3741. with expansion:
  3742. -2 < 1
  3743. -------------------------------------------------------------------------------
  3744. Generators -- simple
  3745. one
  3746. -------------------------------------------------------------------------------
  3747. Generators.tests.cpp:<line number>
  3748. ...............................................................................
  3749. Generators.tests.cpp:<line number>: PASSED:
  3750. REQUIRE( j < i )
  3751. with expansion:
  3752. -1 < 1
  3753. -------------------------------------------------------------------------------
  3754. Generators -- simple
  3755. two
  3756. -------------------------------------------------------------------------------
  3757. Generators.tests.cpp:<line number>
  3758. ...............................................................................
  3759. Generators.tests.cpp:<line number>: PASSED:
  3760. REQUIRE( 4u * i > str.size() )
  3761. with expansion:
  3762. 4 > 1
  3763. -------------------------------------------------------------------------------
  3764. Generators -- simple
  3765. two
  3766. -------------------------------------------------------------------------------
  3767. Generators.tests.cpp:<line number>
  3768. ...............................................................................
  3769. Generators.tests.cpp:<line number>: PASSED:
  3770. REQUIRE( 4u * i > str.size() )
  3771. with expansion:
  3772. 4 > 2
  3773. -------------------------------------------------------------------------------
  3774. Generators -- simple
  3775. two
  3776. -------------------------------------------------------------------------------
  3777. Generators.tests.cpp:<line number>
  3778. ...............................................................................
  3779. Generators.tests.cpp:<line number>: PASSED:
  3780. REQUIRE( 4u * i > str.size() )
  3781. with expansion:
  3782. 4 > 3
  3783. -------------------------------------------------------------------------------
  3784. Generators -- simple
  3785. one
  3786. -------------------------------------------------------------------------------
  3787. Generators.tests.cpp:<line number>
  3788. ...............................................................................
  3789. Generators.tests.cpp:<line number>: PASSED:
  3790. REQUIRE( j < i )
  3791. with expansion:
  3792. -3 < 2
  3793. -------------------------------------------------------------------------------
  3794. Generators -- simple
  3795. one
  3796. -------------------------------------------------------------------------------
  3797. Generators.tests.cpp:<line number>
  3798. ...............................................................................
  3799. Generators.tests.cpp:<line number>: PASSED:
  3800. REQUIRE( j < i )
  3801. with expansion:
  3802. -2 < 2
  3803. -------------------------------------------------------------------------------
  3804. Generators -- simple
  3805. one
  3806. -------------------------------------------------------------------------------
  3807. Generators.tests.cpp:<line number>
  3808. ...............................................................................
  3809. Generators.tests.cpp:<line number>: PASSED:
  3810. REQUIRE( j < i )
  3811. with expansion:
  3812. -1 < 2
  3813. -------------------------------------------------------------------------------
  3814. Generators -- simple
  3815. two
  3816. -------------------------------------------------------------------------------
  3817. Generators.tests.cpp:<line number>
  3818. ...............................................................................
  3819. Generators.tests.cpp:<line number>: PASSED:
  3820. REQUIRE( 4u * i > str.size() )
  3821. with expansion:
  3822. 8 > 1
  3823. -------------------------------------------------------------------------------
  3824. Generators -- simple
  3825. two
  3826. -------------------------------------------------------------------------------
  3827. Generators.tests.cpp:<line number>
  3828. ...............................................................................
  3829. Generators.tests.cpp:<line number>: PASSED:
  3830. REQUIRE( 4u * i > str.size() )
  3831. with expansion:
  3832. 8 > 2
  3833. -------------------------------------------------------------------------------
  3834. Generators -- simple
  3835. two
  3836. -------------------------------------------------------------------------------
  3837. Generators.tests.cpp:<line number>
  3838. ...............................................................................
  3839. Generators.tests.cpp:<line number>: PASSED:
  3840. REQUIRE( 4u * i > str.size() )
  3841. with expansion:
  3842. 8 > 3
  3843. -------------------------------------------------------------------------------
  3844. Generators -- simple
  3845. one
  3846. -------------------------------------------------------------------------------
  3847. Generators.tests.cpp:<line number>
  3848. ...............................................................................
  3849. Generators.tests.cpp:<line number>: PASSED:
  3850. REQUIRE( j < i )
  3851. with expansion:
  3852. -3 < 3
  3853. -------------------------------------------------------------------------------
  3854. Generators -- simple
  3855. one
  3856. -------------------------------------------------------------------------------
  3857. Generators.tests.cpp:<line number>
  3858. ...............................................................................
  3859. Generators.tests.cpp:<line number>: PASSED:
  3860. REQUIRE( j < i )
  3861. with expansion:
  3862. -2 < 3
  3863. -------------------------------------------------------------------------------
  3864. Generators -- simple
  3865. one
  3866. -------------------------------------------------------------------------------
  3867. Generators.tests.cpp:<line number>
  3868. ...............................................................................
  3869. Generators.tests.cpp:<line number>: PASSED:
  3870. REQUIRE( j < i )
  3871. with expansion:
  3872. -1 < 3
  3873. -------------------------------------------------------------------------------
  3874. Generators -- simple
  3875. two
  3876. -------------------------------------------------------------------------------
  3877. Generators.tests.cpp:<line number>
  3878. ...............................................................................
  3879. Generators.tests.cpp:<line number>: PASSED:
  3880. REQUIRE( 4u * i > str.size() )
  3881. with expansion:
  3882. 12 > 1
  3883. -------------------------------------------------------------------------------
  3884. Generators -- simple
  3885. two
  3886. -------------------------------------------------------------------------------
  3887. Generators.tests.cpp:<line number>
  3888. ...............................................................................
  3889. Generators.tests.cpp:<line number>: PASSED:
  3890. REQUIRE( 4u * i > str.size() )
  3891. with expansion:
  3892. 12 > 2
  3893. -------------------------------------------------------------------------------
  3894. Generators -- simple
  3895. two
  3896. -------------------------------------------------------------------------------
  3897. Generators.tests.cpp:<line number>
  3898. ...............................................................................
  3899. Generators.tests.cpp:<line number>: PASSED:
  3900. REQUIRE( 4u * i > str.size() )
  3901. with expansion:
  3902. 12 > 3
  3903. -------------------------------------------------------------------------------
  3904. Generators internals
  3905. Single value
  3906. -------------------------------------------------------------------------------
  3907. GeneratorsImpl.tests.cpp:<line number>
  3908. ...............................................................................
  3909. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3910. REQUIRE( gen.get() == 123 )
  3911. with expansion:
  3912. 123 == 123
  3913. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3914. REQUIRE_FALSE( gen.next() )
  3915. with expansion:
  3916. !false
  3917. -------------------------------------------------------------------------------
  3918. Generators internals
  3919. Preset values
  3920. -------------------------------------------------------------------------------
  3921. GeneratorsImpl.tests.cpp:<line number>
  3922. ...............................................................................
  3923. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3924. REQUIRE( gen.get() == 1 )
  3925. with expansion:
  3926. 1 == 1
  3927. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3928. REQUIRE( gen.next() )
  3929. with expansion:
  3930. true
  3931. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3932. REQUIRE( gen.get() == 3 )
  3933. with expansion:
  3934. 3 == 3
  3935. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3936. REQUIRE( gen.next() )
  3937. with expansion:
  3938. true
  3939. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3940. REQUIRE( gen.get() == 5 )
  3941. with expansion:
  3942. 5 == 5
  3943. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3944. REQUIRE_FALSE( gen.next() )
  3945. with expansion:
  3946. !false
  3947. -------------------------------------------------------------------------------
  3948. Generators internals
  3949. Generator combinator
  3950. -------------------------------------------------------------------------------
  3951. GeneratorsImpl.tests.cpp:<line number>
  3952. ...............................................................................
  3953. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3954. REQUIRE( gen.get() == 1 )
  3955. with expansion:
  3956. 1 == 1
  3957. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3958. REQUIRE( gen.next() )
  3959. with expansion:
  3960. true
  3961. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3962. REQUIRE( gen.get() == 5 )
  3963. with expansion:
  3964. 5 == 5
  3965. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3966. REQUIRE( gen.next() )
  3967. with expansion:
  3968. true
  3969. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3970. REQUIRE( gen.get() == 2 )
  3971. with expansion:
  3972. 2 == 2
  3973. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3974. REQUIRE( gen.next() )
  3975. with expansion:
  3976. true
  3977. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3978. REQUIRE( gen.get() == 4 )
  3979. with expansion:
  3980. 4 == 4
  3981. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3982. REQUIRE( gen.next() )
  3983. with expansion:
  3984. true
  3985. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3986. REQUIRE( gen.get() == 0 )
  3987. with expansion:
  3988. 0 == 0
  3989. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  3990. REQUIRE_FALSE( gen.next() )
  3991. with expansion:
  3992. !false
  3993. -------------------------------------------------------------------------------
  3994. Generators internals
  3995. Explicitly typed generator sequence
  3996. -------------------------------------------------------------------------------
  3997. GeneratorsImpl.tests.cpp:<line number>
  3998. ...............................................................................
  3999. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4000. REQUIRE( gen.get().size() == 2 )
  4001. with expansion:
  4002. 2 == 2
  4003. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4004. REQUIRE( gen.get() == "aa" )
  4005. with expansion:
  4006. "aa" == "aa"
  4007. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4008. REQUIRE( gen.next() )
  4009. with expansion:
  4010. true
  4011. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4012. REQUIRE( gen.get() == "bb" )
  4013. with expansion:
  4014. "bb" == "bb"
  4015. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4016. REQUIRE( gen.next() )
  4017. with expansion:
  4018. true
  4019. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4020. REQUIRE( gen.get() == "cc" )
  4021. with expansion:
  4022. "cc" == "cc"
  4023. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4024. REQUIRE_FALSE( gen.next() )
  4025. with expansion:
  4026. !false
  4027. -------------------------------------------------------------------------------
  4028. Generators internals
  4029. Filter generator
  4030. -------------------------------------------------------------------------------
  4031. GeneratorsImpl.tests.cpp:<line number>
  4032. ...............................................................................
  4033. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4034. REQUIRE( gen.get() == 1 )
  4035. with expansion:
  4036. 1 == 1
  4037. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4038. REQUIRE( gen.next() )
  4039. with expansion:
  4040. true
  4041. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4042. REQUIRE( gen.get() == 3 )
  4043. with expansion:
  4044. 3 == 3
  4045. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4046. REQUIRE_FALSE( gen.next() )
  4047. with expansion:
  4048. !false
  4049. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4050. REQUIRE_THROWS_AS( filter([] (int) { return false; }, value(1)), Catch::GeneratorException )
  4051. -------------------------------------------------------------------------------
  4052. Generators internals
  4053. Take generator
  4054. Take less
  4055. -------------------------------------------------------------------------------
  4056. GeneratorsImpl.tests.cpp:<line number>
  4057. ...............................................................................
  4058. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4059. REQUIRE( gen.get() == 1 )
  4060. with expansion:
  4061. 1 == 1
  4062. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4063. REQUIRE( gen.next() )
  4064. with expansion:
  4065. true
  4066. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4067. REQUIRE( gen.get() == 2 )
  4068. with expansion:
  4069. 2 == 2
  4070. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4071. REQUIRE_FALSE( gen.next() )
  4072. with expansion:
  4073. !false
  4074. -------------------------------------------------------------------------------
  4075. Generators internals
  4076. Take generator
  4077. Take more
  4078. -------------------------------------------------------------------------------
  4079. GeneratorsImpl.tests.cpp:<line number>
  4080. ...............................................................................
  4081. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4082. REQUIRE( gen.get() == 1 )
  4083. with expansion:
  4084. 1 == 1
  4085. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4086. REQUIRE_FALSE( gen.next() )
  4087. with expansion:
  4088. !false
  4089. -------------------------------------------------------------------------------
  4090. Generators internals
  4091. Map with explicit return type
  4092. -------------------------------------------------------------------------------
  4093. GeneratorsImpl.tests.cpp:<line number>
  4094. ...............................................................................
  4095. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4096. REQUIRE( gen.get() == 2.0 )
  4097. with expansion:
  4098. 2.0 == 2.0
  4099. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4100. REQUIRE( gen.next() )
  4101. with expansion:
  4102. true
  4103. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4104. REQUIRE( gen.get() == 4.0 )
  4105. with expansion:
  4106. 4.0 == 4.0
  4107. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4108. REQUIRE( gen.next() )
  4109. with expansion:
  4110. true
  4111. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4112. REQUIRE( gen.get() == 6.0 )
  4113. with expansion:
  4114. 6.0 == 6.0
  4115. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4116. REQUIRE_FALSE( gen.next() )
  4117. with expansion:
  4118. !false
  4119. -------------------------------------------------------------------------------
  4120. Generators internals
  4121. Map with deduced return type
  4122. -------------------------------------------------------------------------------
  4123. GeneratorsImpl.tests.cpp:<line number>
  4124. ...............................................................................
  4125. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4126. REQUIRE( gen.get() == 2.0 )
  4127. with expansion:
  4128. 2.0 == 2.0
  4129. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4130. REQUIRE( gen.next() )
  4131. with expansion:
  4132. true
  4133. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4134. REQUIRE( gen.get() == 4.0 )
  4135. with expansion:
  4136. 4.0 == 4.0
  4137. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4138. REQUIRE( gen.next() )
  4139. with expansion:
  4140. true
  4141. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4142. REQUIRE( gen.get() == 6.0 )
  4143. with expansion:
  4144. 6.0 == 6.0
  4145. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4146. REQUIRE_FALSE( gen.next() )
  4147. with expansion:
  4148. !false
  4149. -------------------------------------------------------------------------------
  4150. Generators internals
  4151. Repeat
  4152. Singular repeat
  4153. -------------------------------------------------------------------------------
  4154. GeneratorsImpl.tests.cpp:<line number>
  4155. ...............................................................................
  4156. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4157. REQUIRE( gen.get() == 3 )
  4158. with expansion:
  4159. 3 == 3
  4160. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4161. REQUIRE_FALSE( gen.next() )
  4162. with expansion:
  4163. !false
  4164. -------------------------------------------------------------------------------
  4165. Generators internals
  4166. Repeat
  4167. Actual repeat
  4168. -------------------------------------------------------------------------------
  4169. GeneratorsImpl.tests.cpp:<line number>
  4170. ...............................................................................
  4171. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4172. REQUIRE( gen.get() == 1 )
  4173. with expansion:
  4174. 1 == 1
  4175. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4176. REQUIRE( gen.next() )
  4177. with expansion:
  4178. true
  4179. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4180. REQUIRE( gen.get() == 2 )
  4181. with expansion:
  4182. 2 == 2
  4183. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4184. REQUIRE( gen.next() )
  4185. with expansion:
  4186. true
  4187. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4188. REQUIRE( gen.get() == 3 )
  4189. with expansion:
  4190. 3 == 3
  4191. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4192. REQUIRE( gen.next() )
  4193. with expansion:
  4194. true
  4195. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4196. REQUIRE( gen.get() == 1 )
  4197. with expansion:
  4198. 1 == 1
  4199. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4200. REQUIRE( gen.next() )
  4201. with expansion:
  4202. true
  4203. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4204. REQUIRE( gen.get() == 2 )
  4205. with expansion:
  4206. 2 == 2
  4207. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4208. REQUIRE( gen.next() )
  4209. with expansion:
  4210. true
  4211. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4212. REQUIRE( gen.get() == 3 )
  4213. with expansion:
  4214. 3 == 3
  4215. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4216. REQUIRE_FALSE( gen.next() )
  4217. with expansion:
  4218. !false
  4219. -------------------------------------------------------------------------------
  4220. Generators internals
  4221. Range
  4222. Positive auto step
  4223. Integer
  4224. -------------------------------------------------------------------------------
  4225. GeneratorsImpl.tests.cpp:<line number>
  4226. ...............................................................................
  4227. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4228. REQUIRE( gen.get() == -2 )
  4229. with expansion:
  4230. -2 == -2
  4231. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4232. REQUIRE( gen.next() )
  4233. with expansion:
  4234. true
  4235. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4236. REQUIRE( gen.get() == -1 )
  4237. with expansion:
  4238. -1 == -1
  4239. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4240. REQUIRE( gen.next() )
  4241. with expansion:
  4242. true
  4243. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4244. REQUIRE( gen.get() == 0 )
  4245. with expansion:
  4246. 0 == 0
  4247. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4248. REQUIRE( gen.next() )
  4249. with expansion:
  4250. true
  4251. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4252. REQUIRE( gen.get() == 1 )
  4253. with expansion:
  4254. 1 == 1
  4255. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4256. REQUIRE_FALSE( gen.next() )
  4257. with expansion:
  4258. !false
  4259. -------------------------------------------------------------------------------
  4260. Generators internals
  4261. Range
  4262. Negative auto step
  4263. Integer
  4264. -------------------------------------------------------------------------------
  4265. GeneratorsImpl.tests.cpp:<line number>
  4266. ...............................................................................
  4267. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4268. REQUIRE( gen.get() == 2 )
  4269. with expansion:
  4270. 2 == 2
  4271. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4272. REQUIRE( gen.next() )
  4273. with expansion:
  4274. true
  4275. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4276. REQUIRE( gen.get() == 1 )
  4277. with expansion:
  4278. 1 == 1
  4279. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4280. REQUIRE( gen.next() )
  4281. with expansion:
  4282. true
  4283. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4284. REQUIRE( gen.get() == 0 )
  4285. with expansion:
  4286. 0 == 0
  4287. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4288. REQUIRE( gen.next() )
  4289. with expansion:
  4290. true
  4291. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4292. REQUIRE( gen.get() == -1 )
  4293. with expansion:
  4294. -1 == -1
  4295. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4296. REQUIRE_FALSE( gen.next() )
  4297. with expansion:
  4298. !false
  4299. -------------------------------------------------------------------------------
  4300. Generators internals
  4301. Range
  4302. Positive manual step
  4303. Integer
  4304. Exact
  4305. -------------------------------------------------------------------------------
  4306. GeneratorsImpl.tests.cpp:<line number>
  4307. ...............................................................................
  4308. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4309. REQUIRE( gen.get() == -7 )
  4310. with expansion:
  4311. -7 == -7
  4312. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4313. REQUIRE( gen.next() )
  4314. with expansion:
  4315. true
  4316. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4317. REQUIRE( gen.get() == -4 )
  4318. with expansion:
  4319. -4 == -4
  4320. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4321. REQUIRE( gen.next() )
  4322. with expansion:
  4323. true
  4324. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4325. REQUIRE( gen.get() == -1 )
  4326. with expansion:
  4327. -1 == -1
  4328. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4329. REQUIRE( gen.next() )
  4330. with expansion:
  4331. true
  4332. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4333. REQUIRE( gen.get() == 2 )
  4334. with expansion:
  4335. 2 == 2
  4336. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4337. REQUIRE_FALSE( gen.next() )
  4338. with expansion:
  4339. !false
  4340. -------------------------------------------------------------------------------
  4341. Generators internals
  4342. Range
  4343. Positive manual step
  4344. Integer
  4345. Slightly over end
  4346. -------------------------------------------------------------------------------
  4347. GeneratorsImpl.tests.cpp:<line number>
  4348. ...............................................................................
  4349. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4350. REQUIRE( gen.get() == -7 )
  4351. with expansion:
  4352. -7 == -7
  4353. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4354. REQUIRE( gen.next() )
  4355. with expansion:
  4356. true
  4357. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4358. REQUIRE( gen.get() == -4 )
  4359. with expansion:
  4360. -4 == -4
  4361. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4362. REQUIRE( gen.next() )
  4363. with expansion:
  4364. true
  4365. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4366. REQUIRE( gen.get() == -1 )
  4367. with expansion:
  4368. -1 == -1
  4369. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4370. REQUIRE( gen.next() )
  4371. with expansion:
  4372. true
  4373. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4374. REQUIRE( gen.get() == 2 )
  4375. with expansion:
  4376. 2 == 2
  4377. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4378. REQUIRE_FALSE( gen.next() )
  4379. with expansion:
  4380. !false
  4381. -------------------------------------------------------------------------------
  4382. Generators internals
  4383. Range
  4384. Positive manual step
  4385. Integer
  4386. Slightly under end
  4387. -------------------------------------------------------------------------------
  4388. GeneratorsImpl.tests.cpp:<line number>
  4389. ...............................................................................
  4390. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4391. REQUIRE( gen.get() == -7 )
  4392. with expansion:
  4393. -7 == -7
  4394. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4395. REQUIRE( gen.next() )
  4396. with expansion:
  4397. true
  4398. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4399. REQUIRE( gen.get() == -4 )
  4400. with expansion:
  4401. -4 == -4
  4402. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4403. REQUIRE( gen.next() )
  4404. with expansion:
  4405. true
  4406. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4407. REQUIRE( gen.get() == -1 )
  4408. with expansion:
  4409. -1 == -1
  4410. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4411. REQUIRE( gen.next() )
  4412. with expansion:
  4413. true
  4414. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4415. REQUIRE( gen.get() == 2 )
  4416. with expansion:
  4417. 2 == 2
  4418. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4419. REQUIRE( gen.next() )
  4420. with expansion:
  4421. true
  4422. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4423. REQUIRE( gen.get() == 5 )
  4424. with expansion:
  4425. 5 == 5
  4426. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4427. REQUIRE_FALSE( gen.next() )
  4428. with expansion:
  4429. !false
  4430. -------------------------------------------------------------------------------
  4431. Generators internals
  4432. Range
  4433. Positive manual step
  4434. Floating Point
  4435. Exact
  4436. -------------------------------------------------------------------------------
  4437. GeneratorsImpl.tests.cpp:<line number>
  4438. ...............................................................................
  4439. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4440. REQUIRE( gen.get() == Approx(expected) )
  4441. with expansion:
  4442. -1.0 == Approx( -1.0 )
  4443. with message:
  4444. Current expected value is -1
  4445. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4446. REQUIRE( gen.next() )
  4447. with expansion:
  4448. true
  4449. with message:
  4450. Current expected value is -1
  4451. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4452. REQUIRE( gen.get() == Approx(expected) )
  4453. with expansion:
  4454. -0.9 == Approx( -0.9 )
  4455. with message:
  4456. Current expected value is -0.9
  4457. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4458. REQUIRE( gen.next() )
  4459. with expansion:
  4460. true
  4461. with message:
  4462. Current expected value is -0.9
  4463. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4464. REQUIRE( gen.get() == Approx(expected) )
  4465. with expansion:
  4466. -0.8 == Approx( -0.8 )
  4467. with message:
  4468. Current expected value is -0.8
  4469. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4470. REQUIRE( gen.next() )
  4471. with expansion:
  4472. true
  4473. with message:
  4474. Current expected value is -0.8
  4475. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4476. REQUIRE( gen.get() == Approx(expected) )
  4477. with expansion:
  4478. -0.7 == Approx( -0.7 )
  4479. with message:
  4480. Current expected value is -0.7
  4481. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4482. REQUIRE( gen.next() )
  4483. with expansion:
  4484. true
  4485. with message:
  4486. Current expected value is -0.7
  4487. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4488. REQUIRE( gen.get() == Approx(expected) )
  4489. with expansion:
  4490. -0.6 == Approx( -0.6 )
  4491. with message:
  4492. Current expected value is -0.6
  4493. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4494. REQUIRE( gen.next() )
  4495. with expansion:
  4496. true
  4497. with message:
  4498. Current expected value is -0.6
  4499. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4500. REQUIRE( gen.get() == Approx(expected) )
  4501. with expansion:
  4502. -0.5 == Approx( -0.5 )
  4503. with message:
  4504. Current expected value is -0.5
  4505. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4506. REQUIRE( gen.next() )
  4507. with expansion:
  4508. true
  4509. with message:
  4510. Current expected value is -0.5
  4511. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4512. REQUIRE( gen.get() == Approx(expected) )
  4513. with expansion:
  4514. -0.4 == Approx( -0.4 )
  4515. with message:
  4516. Current expected value is -0.4
  4517. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4518. REQUIRE( gen.next() )
  4519. with expansion:
  4520. true
  4521. with message:
  4522. Current expected value is -0.4
  4523. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4524. REQUIRE( gen.get() == Approx(expected) )
  4525. with expansion:
  4526. -0.3 == Approx( -0.3 )
  4527. with message:
  4528. Current expected value is -0.3
  4529. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4530. REQUIRE( gen.next() )
  4531. with expansion:
  4532. true
  4533. with message:
  4534. Current expected value is -0.3
  4535. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4536. REQUIRE( gen.get() == Approx(expected) )
  4537. with expansion:
  4538. -0.2 == Approx( -0.2 )
  4539. with message:
  4540. Current expected value is -0.2
  4541. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4542. REQUIRE( gen.next() )
  4543. with expansion:
  4544. true
  4545. with message:
  4546. Current expected value is -0.2
  4547. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4548. REQUIRE( gen.get() == Approx(expected) )
  4549. with expansion:
  4550. -0.1 == Approx( -0.1 )
  4551. with message:
  4552. Current expected value is -0.1
  4553. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4554. REQUIRE( gen.next() )
  4555. with expansion:
  4556. true
  4557. with message:
  4558. Current expected value is -0.1
  4559. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4560. REQUIRE( gen.get() == Approx(expected) )
  4561. with expansion:
  4562. -0.0 == Approx( -0.0 )
  4563. with message:
  4564. Current expected value is -1.38778e-16
  4565. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4566. REQUIRE( gen.next() )
  4567. with expansion:
  4568. true
  4569. with message:
  4570. Current expected value is -1.38778e-16
  4571. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4572. REQUIRE( gen.get() == Approx(expected) )
  4573. with expansion:
  4574. 0.1 == Approx( 0.1 )
  4575. with message:
  4576. Current expected value is 0.1
  4577. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4578. REQUIRE( gen.next() )
  4579. with expansion:
  4580. true
  4581. with message:
  4582. Current expected value is 0.1
  4583. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4584. REQUIRE( gen.get() == Approx(expected) )
  4585. with expansion:
  4586. 0.2 == Approx( 0.2 )
  4587. with message:
  4588. Current expected value is 0.2
  4589. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4590. REQUIRE( gen.next() )
  4591. with expansion:
  4592. true
  4593. with message:
  4594. Current expected value is 0.2
  4595. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4596. REQUIRE( gen.get() == Approx(expected) )
  4597. with expansion:
  4598. 0.3 == Approx( 0.3 )
  4599. with message:
  4600. Current expected value is 0.3
  4601. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4602. REQUIRE( gen.next() )
  4603. with expansion:
  4604. true
  4605. with message:
  4606. Current expected value is 0.3
  4607. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4608. REQUIRE( gen.get() == Approx(expected) )
  4609. with expansion:
  4610. 0.4 == Approx( 0.4 )
  4611. with message:
  4612. Current expected value is 0.4
  4613. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4614. REQUIRE( gen.next() )
  4615. with expansion:
  4616. true
  4617. with message:
  4618. Current expected value is 0.4
  4619. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4620. REQUIRE( gen.get() == Approx(expected) )
  4621. with expansion:
  4622. 0.5 == Approx( 0.5 )
  4623. with message:
  4624. Current expected value is 0.5
  4625. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4626. REQUIRE( gen.next() )
  4627. with expansion:
  4628. true
  4629. with message:
  4630. Current expected value is 0.5
  4631. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4632. REQUIRE( gen.get() == Approx(expected) )
  4633. with expansion:
  4634. 0.6 == Approx( 0.6 )
  4635. with message:
  4636. Current expected value is 0.6
  4637. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4638. REQUIRE( gen.next() )
  4639. with expansion:
  4640. true
  4641. with message:
  4642. Current expected value is 0.6
  4643. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4644. REQUIRE( gen.get() == Approx(expected) )
  4645. with expansion:
  4646. 0.7 == Approx( 0.7 )
  4647. with message:
  4648. Current expected value is 0.7
  4649. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4650. REQUIRE( gen.next() )
  4651. with expansion:
  4652. true
  4653. with message:
  4654. Current expected value is 0.7
  4655. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4656. REQUIRE( gen.get() == Approx(expected) )
  4657. with expansion:
  4658. 0.8 == Approx( 0.8 )
  4659. with message:
  4660. Current expected value is 0.8
  4661. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4662. REQUIRE( gen.next() )
  4663. with expansion:
  4664. true
  4665. with message:
  4666. Current expected value is 0.8
  4667. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4668. REQUIRE( gen.get() == Approx(expected) )
  4669. with expansion:
  4670. 0.9 == Approx( 0.9 )
  4671. with message:
  4672. Current expected value is 0.9
  4673. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4674. REQUIRE( gen.next() )
  4675. with expansion:
  4676. true
  4677. with message:
  4678. Current expected value is 0.9
  4679. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4680. REQUIRE( gen.get() == Approx( rangeEnd ) )
  4681. with expansion:
  4682. 1.0 == Approx( 1.0 )
  4683. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4684. REQUIRE_FALSE( gen.next() )
  4685. with expansion:
  4686. !false
  4687. -------------------------------------------------------------------------------
  4688. Generators internals
  4689. Range
  4690. Positive manual step
  4691. Floating Point
  4692. Slightly over end
  4693. -------------------------------------------------------------------------------
  4694. GeneratorsImpl.tests.cpp:<line number>
  4695. ...............................................................................
  4696. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4697. REQUIRE( gen.get() == Approx(expected) )
  4698. with expansion:
  4699. -1.0 == Approx( -1.0 )
  4700. with message:
  4701. Current expected value is -1
  4702. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4703. REQUIRE( gen.next() )
  4704. with expansion:
  4705. true
  4706. with message:
  4707. Current expected value is -1
  4708. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4709. REQUIRE( gen.get() == Approx(expected) )
  4710. with expansion:
  4711. -0.7 == Approx( -0.7 )
  4712. with message:
  4713. Current expected value is -0.7
  4714. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4715. REQUIRE( gen.next() )
  4716. with expansion:
  4717. true
  4718. with message:
  4719. Current expected value is -0.7
  4720. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4721. REQUIRE( gen.get() == Approx(expected) )
  4722. with expansion:
  4723. -0.4 == Approx( -0.4 )
  4724. with message:
  4725. Current expected value is -0.4
  4726. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4727. REQUIRE( gen.next() )
  4728. with expansion:
  4729. true
  4730. with message:
  4731. Current expected value is -0.4
  4732. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4733. REQUIRE( gen.get() == Approx(expected) )
  4734. with expansion:
  4735. -0.1 == Approx( -0.1 )
  4736. with message:
  4737. Current expected value is -0.1
  4738. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4739. REQUIRE( gen.next() )
  4740. with expansion:
  4741. true
  4742. with message:
  4743. Current expected value is -0.1
  4744. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4745. REQUIRE( gen.get() == Approx(expected) )
  4746. with expansion:
  4747. 0.2 == Approx( 0.2 )
  4748. with message:
  4749. Current expected value is 0.2
  4750. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4751. REQUIRE( gen.next() )
  4752. with expansion:
  4753. true
  4754. with message:
  4755. Current expected value is 0.2
  4756. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4757. REQUIRE( gen.get() == Approx(expected) )
  4758. with expansion:
  4759. 0.5 == Approx( 0.5 )
  4760. with message:
  4761. Current expected value is 0.5
  4762. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4763. REQUIRE( gen.next() )
  4764. with expansion:
  4765. true
  4766. with message:
  4767. Current expected value is 0.5
  4768. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4769. REQUIRE_FALSE( gen.next() )
  4770. with expansion:
  4771. !false
  4772. -------------------------------------------------------------------------------
  4773. Generators internals
  4774. Range
  4775. Positive manual step
  4776. Floating Point
  4777. Slightly under end
  4778. -------------------------------------------------------------------------------
  4779. GeneratorsImpl.tests.cpp:<line number>
  4780. ...............................................................................
  4781. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4782. REQUIRE( gen.get() == Approx(expected) )
  4783. with expansion:
  4784. -1.0 == Approx( -1.0 )
  4785. with message:
  4786. Current expected value is -1
  4787. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4788. REQUIRE( gen.next() )
  4789. with expansion:
  4790. true
  4791. with message:
  4792. Current expected value is -1
  4793. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4794. REQUIRE( gen.get() == Approx(expected) )
  4795. with expansion:
  4796. -0.7 == Approx( -0.7 )
  4797. with message:
  4798. Current expected value is -0.7
  4799. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4800. REQUIRE( gen.next() )
  4801. with expansion:
  4802. true
  4803. with message:
  4804. Current expected value is -0.7
  4805. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4806. REQUIRE( gen.get() == Approx(expected) )
  4807. with expansion:
  4808. -0.4 == Approx( -0.4 )
  4809. with message:
  4810. Current expected value is -0.4
  4811. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4812. REQUIRE( gen.next() )
  4813. with expansion:
  4814. true
  4815. with message:
  4816. Current expected value is -0.4
  4817. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4818. REQUIRE( gen.get() == Approx(expected) )
  4819. with expansion:
  4820. -0.1 == Approx( -0.1 )
  4821. with message:
  4822. Current expected value is -0.1
  4823. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4824. REQUIRE( gen.next() )
  4825. with expansion:
  4826. true
  4827. with message:
  4828. Current expected value is -0.1
  4829. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4830. REQUIRE( gen.get() == Approx(expected) )
  4831. with expansion:
  4832. 0.2 == Approx( 0.2 )
  4833. with message:
  4834. Current expected value is 0.2
  4835. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4836. REQUIRE( gen.next() )
  4837. with expansion:
  4838. true
  4839. with message:
  4840. Current expected value is 0.2
  4841. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4842. REQUIRE( gen.get() == Approx(expected) )
  4843. with expansion:
  4844. 0.5 == Approx( 0.5 )
  4845. with message:
  4846. Current expected value is 0.5
  4847. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4848. REQUIRE( gen.next() )
  4849. with expansion:
  4850. true
  4851. with message:
  4852. Current expected value is 0.5
  4853. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4854. REQUIRE_FALSE( gen.next() )
  4855. with expansion:
  4856. !false
  4857. -------------------------------------------------------------------------------
  4858. Generators internals
  4859. Range
  4860. Negative manual step
  4861. Integer
  4862. Exact
  4863. -------------------------------------------------------------------------------
  4864. GeneratorsImpl.tests.cpp:<line number>
  4865. ...............................................................................
  4866. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4867. REQUIRE( gen.get() == 5 )
  4868. with expansion:
  4869. 5 == 5
  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() == 2 )
  4876. with expansion:
  4877. 2 == 2
  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( gen.next() )
  4888. with expansion:
  4889. true
  4890. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4891. REQUIRE( gen.get() == -4 )
  4892. with expansion:
  4893. -4 == -4
  4894. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4895. REQUIRE_FALSE( gen.next() )
  4896. with expansion:
  4897. !false
  4898. -------------------------------------------------------------------------------
  4899. Generators internals
  4900. Range
  4901. Negative manual step
  4902. Integer
  4903. Slightly over end
  4904. -------------------------------------------------------------------------------
  4905. GeneratorsImpl.tests.cpp:<line number>
  4906. ...............................................................................
  4907. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4908. REQUIRE( gen.get() == 5 )
  4909. with expansion:
  4910. 5 == 5
  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() == 2 )
  4917. with expansion:
  4918. 2 == 2
  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() == -1 )
  4925. with expansion:
  4926. -1 == -1
  4927. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4928. REQUIRE( gen.next() )
  4929. with expansion:
  4930. true
  4931. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4932. REQUIRE( gen.get() == -4 )
  4933. with expansion:
  4934. -4 == -4
  4935. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4936. REQUIRE_FALSE( gen.next() )
  4937. with expansion:
  4938. !false
  4939. -------------------------------------------------------------------------------
  4940. Generators internals
  4941. Range
  4942. Negative manual step
  4943. Integer
  4944. Slightly under end
  4945. -------------------------------------------------------------------------------
  4946. GeneratorsImpl.tests.cpp:<line number>
  4947. ...............................................................................
  4948. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4949. REQUIRE( gen.get() == 5 )
  4950. with expansion:
  4951. 5 == 5
  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() == 2 )
  4958. with expansion:
  4959. 2 == 2
  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() == -1 )
  4966. with expansion:
  4967. -1 == -1
  4968. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4969. REQUIRE( gen.next() )
  4970. with expansion:
  4971. true
  4972. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4973. REQUIRE( gen.get() == -4 )
  4974. with expansion:
  4975. -4 == -4
  4976. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4977. REQUIRE( gen.next() )
  4978. with expansion:
  4979. true
  4980. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4981. REQUIRE( gen.get() == -7 )
  4982. with expansion:
  4983. -7 == -7
  4984. GeneratorsImpl.tests.cpp:<line number>: PASSED:
  4985. REQUIRE_FALSE( gen.next() )
  4986. with expansion:
  4987. !false
  4988. -------------------------------------------------------------------------------
  4989. Greater-than inequalities with different epsilons
  4990. -------------------------------------------------------------------------------
  4991. Approx.tests.cpp:<line number>
  4992. ...............................................................................
  4993. Approx.tests.cpp:<line number>: PASSED:
  4994. REQUIRE( d >= Approx( 1.22 ) )
  4995. with expansion:
  4996. 1.23 >= Approx( 1.22 )
  4997. Approx.tests.cpp:<line number>: PASSED:
  4998. REQUIRE( d >= Approx( 1.23 ) )
  4999. with expansion:
  5000. 1.23 >= Approx( 1.23 )
  5001. Approx.tests.cpp:<line number>: PASSED:
  5002. REQUIRE_FALSE( d >= Approx( 1.24 ) )
  5003. with expansion:
  5004. !(1.23 >= Approx( 1.24 ))
  5005. Approx.tests.cpp:<line number>: PASSED:
  5006. REQUIRE( d >= Approx( 1.24 ).epsilon(0.1) )
  5007. with expansion:
  5008. 1.23 >= Approx( 1.24 )
  5009. -------------------------------------------------------------------------------
  5010. INFO and WARN do not abort tests
  5011. -------------------------------------------------------------------------------
  5012. Message.tests.cpp:<line number>
  5013. ...............................................................................
  5014. Message.tests.cpp:<line number>: warning:
  5015. this is a message
  5016. this is a warning
  5017. No assertions in test case 'INFO and WARN do not abort tests'
  5018. -------------------------------------------------------------------------------
  5019. INFO gets logged on failure
  5020. -------------------------------------------------------------------------------
  5021. Message.tests.cpp:<line number>
  5022. ...............................................................................
  5023. Message.tests.cpp:<line number>: FAILED:
  5024. REQUIRE( a == 1 )
  5025. with expansion:
  5026. 2 == 1
  5027. with messages:
  5028. this message should be logged
  5029. so should this
  5030. -------------------------------------------------------------------------------
  5031. INFO gets logged on failure, even if captured before successful assertions
  5032. -------------------------------------------------------------------------------
  5033. Message.tests.cpp:<line number>
  5034. ...............................................................................
  5035. Message.tests.cpp:<line number>: PASSED:
  5036. CHECK( a == 2 )
  5037. with expansion:
  5038. 2 == 2
  5039. with message:
  5040. this message may be logged later
  5041. Message.tests.cpp:<line number>: FAILED:
  5042. CHECK( a == 1 )
  5043. with expansion:
  5044. 2 == 1
  5045. with messages:
  5046. this message may be logged later
  5047. this message should be logged
  5048. Message.tests.cpp:<line number>: FAILED:
  5049. CHECK( a == 0 )
  5050. with expansion:
  5051. 2 == 0
  5052. with messages:
  5053. this message may be logged later
  5054. this message should be logged
  5055. and this, but later
  5056. Message.tests.cpp:<line number>: PASSED:
  5057. CHECK( a == 2 )
  5058. with expansion:
  5059. 2 == 2
  5060. with messages:
  5061. this message may be logged later
  5062. this message should be logged
  5063. and this, but later
  5064. but not this
  5065. -------------------------------------------------------------------------------
  5066. INFO is reset for each loop
  5067. -------------------------------------------------------------------------------
  5068. Message.tests.cpp:<line number>
  5069. ...............................................................................
  5070. Message.tests.cpp:<line number>: PASSED:
  5071. REQUIRE( i < 10 )
  5072. with expansion:
  5073. 0 < 10
  5074. with messages:
  5075. current counter 0
  5076. i := 0
  5077. Message.tests.cpp:<line number>: PASSED:
  5078. REQUIRE( i < 10 )
  5079. with expansion:
  5080. 1 < 10
  5081. with messages:
  5082. current counter 1
  5083. i := 1
  5084. Message.tests.cpp:<line number>: PASSED:
  5085. REQUIRE( i < 10 )
  5086. with expansion:
  5087. 2 < 10
  5088. with messages:
  5089. current counter 2
  5090. i := 2
  5091. Message.tests.cpp:<line number>: PASSED:
  5092. REQUIRE( i < 10 )
  5093. with expansion:
  5094. 3 < 10
  5095. with messages:
  5096. current counter 3
  5097. i := 3
  5098. Message.tests.cpp:<line number>: PASSED:
  5099. REQUIRE( i < 10 )
  5100. with expansion:
  5101. 4 < 10
  5102. with messages:
  5103. current counter 4
  5104. i := 4
  5105. Message.tests.cpp:<line number>: PASSED:
  5106. REQUIRE( i < 10 )
  5107. with expansion:
  5108. 5 < 10
  5109. with messages:
  5110. current counter 5
  5111. i := 5
  5112. Message.tests.cpp:<line number>: PASSED:
  5113. REQUIRE( i < 10 )
  5114. with expansion:
  5115. 6 < 10
  5116. with messages:
  5117. current counter 6
  5118. i := 6
  5119. Message.tests.cpp:<line number>: PASSED:
  5120. REQUIRE( i < 10 )
  5121. with expansion:
  5122. 7 < 10
  5123. with messages:
  5124. current counter 7
  5125. i := 7
  5126. Message.tests.cpp:<line number>: PASSED:
  5127. REQUIRE( i < 10 )
  5128. with expansion:
  5129. 8 < 10
  5130. with messages:
  5131. current counter 8
  5132. i := 8
  5133. Message.tests.cpp:<line number>: PASSED:
  5134. REQUIRE( i < 10 )
  5135. with expansion:
  5136. 9 < 10
  5137. with messages:
  5138. current counter 9
  5139. i := 9
  5140. Message.tests.cpp:<line number>: FAILED:
  5141. REQUIRE( i < 10 )
  5142. with expansion:
  5143. 10 < 10
  5144. with messages:
  5145. current counter 10
  5146. i := 10
  5147. -------------------------------------------------------------------------------
  5148. Inequality checks that should fail
  5149. -------------------------------------------------------------------------------
  5150. Condition.tests.cpp:<line number>
  5151. ...............................................................................
  5152. Condition.tests.cpp:<line number>: FAILED:
  5153. CHECK( data.int_seven != 7 )
  5154. with expansion:
  5155. 7 != 7
  5156. Condition.tests.cpp:<line number>: FAILED:
  5157. CHECK( data.float_nine_point_one != Approx( 9.1f ) )
  5158. with expansion:
  5159. 9.1f != Approx( 9.1000003815 )
  5160. Condition.tests.cpp:<line number>: FAILED:
  5161. CHECK( data.double_pi != Approx( 3.1415926535 ) )
  5162. with expansion:
  5163. 3.1415926535 != Approx( 3.1415926535 )
  5164. Condition.tests.cpp:<line number>: FAILED:
  5165. CHECK( data.str_hello != "hello" )
  5166. with expansion:
  5167. "hello" != "hello"
  5168. Condition.tests.cpp:<line number>: FAILED:
  5169. CHECK( data.str_hello.size() != 5 )
  5170. with expansion:
  5171. 5 != 5
  5172. -------------------------------------------------------------------------------
  5173. Inequality checks that should succeed
  5174. -------------------------------------------------------------------------------
  5175. Condition.tests.cpp:<line number>
  5176. ...............................................................................
  5177. Condition.tests.cpp:<line number>: PASSED:
  5178. REQUIRE( data.int_seven != 6 )
  5179. with expansion:
  5180. 7 != 6
  5181. Condition.tests.cpp:<line number>: PASSED:
  5182. REQUIRE( data.int_seven != 8 )
  5183. with expansion:
  5184. 7 != 8
  5185. Condition.tests.cpp:<line number>: PASSED:
  5186. REQUIRE( data.float_nine_point_one != Approx( 9.11f ) )
  5187. with expansion:
  5188. 9.1f != Approx( 9.1099996567 )
  5189. Condition.tests.cpp:<line number>: PASSED:
  5190. REQUIRE( data.float_nine_point_one != Approx( 9.0f ) )
  5191. with expansion:
  5192. 9.1f != Approx( 9.0 )
  5193. Condition.tests.cpp:<line number>: PASSED:
  5194. REQUIRE( data.float_nine_point_one != Approx( 1 ) )
  5195. with expansion:
  5196. 9.1f != Approx( 1.0 )
  5197. Condition.tests.cpp:<line number>: PASSED:
  5198. REQUIRE( data.float_nine_point_one != Approx( 0 ) )
  5199. with expansion:
  5200. 9.1f != Approx( 0.0 )
  5201. Condition.tests.cpp:<line number>: PASSED:
  5202. REQUIRE( data.double_pi != Approx( 3.1415 ) )
  5203. with expansion:
  5204. 3.1415926535 != Approx( 3.1415 )
  5205. Condition.tests.cpp:<line number>: PASSED:
  5206. REQUIRE( data.str_hello != "goodbye" )
  5207. with expansion:
  5208. "hello" != "goodbye"
  5209. Condition.tests.cpp:<line number>: PASSED:
  5210. REQUIRE( data.str_hello != "hell" )
  5211. with expansion:
  5212. "hello" != "hell"
  5213. Condition.tests.cpp:<line number>: PASSED:
  5214. REQUIRE( data.str_hello != "hello1" )
  5215. with expansion:
  5216. "hello" != "hello1"
  5217. Condition.tests.cpp:<line number>: PASSED:
  5218. REQUIRE( data.str_hello.size() != 6 )
  5219. with expansion:
  5220. 5 != 6
  5221. -------------------------------------------------------------------------------
  5222. Lambdas in assertions
  5223. -------------------------------------------------------------------------------
  5224. Compilation.tests.cpp:<line number>
  5225. ...............................................................................
  5226. Compilation.tests.cpp:<line number>: PASSED:
  5227. REQUIRE( []() { return true; }() )
  5228. with expansion:
  5229. true
  5230. -------------------------------------------------------------------------------
  5231. Less-than inequalities with different epsilons
  5232. -------------------------------------------------------------------------------
  5233. Approx.tests.cpp:<line number>
  5234. ...............................................................................
  5235. Approx.tests.cpp:<line number>: PASSED:
  5236. REQUIRE( d <= Approx( 1.24 ) )
  5237. with expansion:
  5238. 1.23 <= Approx( 1.24 )
  5239. Approx.tests.cpp:<line number>: PASSED:
  5240. REQUIRE( d <= Approx( 1.23 ) )
  5241. with expansion:
  5242. 1.23 <= Approx( 1.23 )
  5243. Approx.tests.cpp:<line number>: PASSED:
  5244. REQUIRE_FALSE( d <= Approx( 1.22 ) )
  5245. with expansion:
  5246. !(1.23 <= Approx( 1.22 ))
  5247. Approx.tests.cpp:<line number>: PASSED:
  5248. REQUIRE( d <= Approx( 1.22 ).epsilon(0.1) )
  5249. with expansion:
  5250. 1.23 <= Approx( 1.22 )
  5251. -------------------------------------------------------------------------------
  5252. ManuallyRegistered
  5253. -------------------------------------------------------------------------------
  5254. Misc.tests.cpp:<line number>
  5255. ...............................................................................
  5256. Misc.tests.cpp:<line number>: PASSED:
  5257. with message:
  5258. was called
  5259. -------------------------------------------------------------------------------
  5260. Matchers can be (AllOf) composed with the && operator
  5261. -------------------------------------------------------------------------------
  5262. Matchers.tests.cpp:<line number>
  5263. ...............................................................................
  5264. Matchers.tests.cpp:<line number>: PASSED:
  5265. CHECK_THAT( testStringForMatching(), Contains("string") && Contains("abc") && Contains("substring") && Contains("contains") )
  5266. with expansion:
  5267. "this string contains 'abc' as a substring" ( contains: "string" and
  5268. contains: "abc" and contains: "substring" and contains: "contains" )
  5269. -------------------------------------------------------------------------------
  5270. Matchers can be (AnyOf) composed with the || operator
  5271. -------------------------------------------------------------------------------
  5272. Matchers.tests.cpp:<line number>
  5273. ...............................................................................
  5274. Matchers.tests.cpp:<line number>: PASSED:
  5275. CHECK_THAT( testStringForMatching(), Contains("string") || Contains("different") || Contains("random") )
  5276. with expansion:
  5277. "this string contains 'abc' as a substring" ( contains: "string" or contains:
  5278. "different" or contains: "random" )
  5279. Matchers.tests.cpp:<line number>: PASSED:
  5280. CHECK_THAT( testStringForMatching2(), Contains("string") || Contains("different") || Contains("random") )
  5281. with expansion:
  5282. "some completely different text that contains one common word" ( contains:
  5283. "string" or contains: "different" or contains: "random" )
  5284. -------------------------------------------------------------------------------
  5285. Matchers can be composed with both && and ||
  5286. -------------------------------------------------------------------------------
  5287. Matchers.tests.cpp:<line number>
  5288. ...............................................................................
  5289. Matchers.tests.cpp:<line number>: PASSED:
  5290. CHECK_THAT( testStringForMatching(), (Contains("string") || Contains("different")) && Contains("substring") )
  5291. with expansion:
  5292. "this string contains 'abc' as a substring" ( ( contains: "string" or
  5293. contains: "different" ) and contains: "substring" )
  5294. -------------------------------------------------------------------------------
  5295. Matchers can be composed with both && and || - failing
  5296. -------------------------------------------------------------------------------
  5297. Matchers.tests.cpp:<line number>
  5298. ...............................................................................
  5299. Matchers.tests.cpp:<line number>: FAILED:
  5300. CHECK_THAT( testStringForMatching(), (Contains("string") || Contains("different")) && Contains("random") )
  5301. with expansion:
  5302. "this string contains 'abc' as a substring" ( ( contains: "string" or
  5303. contains: "different" ) and contains: "random" )
  5304. -------------------------------------------------------------------------------
  5305. Matchers can be negated (Not) with the ! operator
  5306. -------------------------------------------------------------------------------
  5307. Matchers.tests.cpp:<line number>
  5308. ...............................................................................
  5309. Matchers.tests.cpp:<line number>: PASSED:
  5310. CHECK_THAT( testStringForMatching(), !Contains("different") )
  5311. with expansion:
  5312. "this string contains 'abc' as a substring" not contains: "different"
  5313. -------------------------------------------------------------------------------
  5314. Matchers can be negated (Not) with the ! operator - failing
  5315. -------------------------------------------------------------------------------
  5316. Matchers.tests.cpp:<line number>
  5317. ...............................................................................
  5318. Matchers.tests.cpp:<line number>: FAILED:
  5319. CHECK_THAT( testStringForMatching(), !Contains("substring") )
  5320. with expansion:
  5321. "this string contains 'abc' as a substring" not contains: "substring"
  5322. -------------------------------------------------------------------------------
  5323. Mismatching exception messages failing the test
  5324. -------------------------------------------------------------------------------
  5325. Exception.tests.cpp:<line number>
  5326. ...............................................................................
  5327. Exception.tests.cpp:<line number>: PASSED:
  5328. REQUIRE_THROWS_WITH( thisThrows(), "expected exception" )
  5329. with expansion:
  5330. "expected exception" equals: "expected exception"
  5331. Exception.tests.cpp:<line number>: FAILED:
  5332. REQUIRE_THROWS_WITH( thisThrows(), "should fail" )
  5333. with expansion:
  5334. "expected exception" equals: "should fail"
  5335. -------------------------------------------------------------------------------
  5336. Nested generators and captured variables
  5337. -------------------------------------------------------------------------------
  5338. Generators.tests.cpp:<line number>
  5339. ...............................................................................
  5340. Generators.tests.cpp:<line number>: PASSED:
  5341. REQUIRE( values > -6 )
  5342. with expansion:
  5343. 3 > -6
  5344. -------------------------------------------------------------------------------
  5345. Nested generators and captured variables
  5346. -------------------------------------------------------------------------------
  5347. Generators.tests.cpp:<line number>
  5348. ...............................................................................
  5349. Generators.tests.cpp:<line number>: PASSED:
  5350. REQUIRE( values > -6 )
  5351. with expansion:
  5352. 4 > -6
  5353. -------------------------------------------------------------------------------
  5354. Nested generators and captured variables
  5355. -------------------------------------------------------------------------------
  5356. Generators.tests.cpp:<line number>
  5357. ...............................................................................
  5358. Generators.tests.cpp:<line number>: PASSED:
  5359. REQUIRE( values > -6 )
  5360. with expansion:
  5361. 5 > -6
  5362. -------------------------------------------------------------------------------
  5363. Nested generators and captured variables
  5364. -------------------------------------------------------------------------------
  5365. Generators.tests.cpp:<line number>
  5366. ...............................................................................
  5367. Generators.tests.cpp:<line number>: PASSED:
  5368. REQUIRE( values > -6 )
  5369. with expansion:
  5370. 6 > -6
  5371. -------------------------------------------------------------------------------
  5372. Nested generators and captured variables
  5373. -------------------------------------------------------------------------------
  5374. Generators.tests.cpp:<line number>
  5375. ...............................................................................
  5376. Generators.tests.cpp:<line number>: PASSED:
  5377. REQUIRE( values > -6 )
  5378. with expansion:
  5379. -5 > -6
  5380. -------------------------------------------------------------------------------
  5381. Nested generators and captured variables
  5382. -------------------------------------------------------------------------------
  5383. Generators.tests.cpp:<line number>
  5384. ...............................................................................
  5385. Generators.tests.cpp:<line number>: PASSED:
  5386. REQUIRE( values > -6 )
  5387. with expansion:
  5388. -4 > -6
  5389. -------------------------------------------------------------------------------
  5390. Nested generators and captured variables
  5391. -------------------------------------------------------------------------------
  5392. Generators.tests.cpp:<line number>
  5393. ...............................................................................
  5394. Generators.tests.cpp:<line number>: PASSED:
  5395. REQUIRE( values > -6 )
  5396. with expansion:
  5397. 90 > -6
  5398. -------------------------------------------------------------------------------
  5399. Nested generators and captured variables
  5400. -------------------------------------------------------------------------------
  5401. Generators.tests.cpp:<line number>
  5402. ...............................................................................
  5403. Generators.tests.cpp:<line number>: PASSED:
  5404. REQUIRE( values > -6 )
  5405. with expansion:
  5406. 91 > -6
  5407. -------------------------------------------------------------------------------
  5408. Nested generators and captured variables
  5409. -------------------------------------------------------------------------------
  5410. Generators.tests.cpp:<line number>
  5411. ...............................................................................
  5412. Generators.tests.cpp:<line number>: PASSED:
  5413. REQUIRE( values > -6 )
  5414. with expansion:
  5415. 92 > -6
  5416. -------------------------------------------------------------------------------
  5417. Nested generators and captured variables
  5418. -------------------------------------------------------------------------------
  5419. Generators.tests.cpp:<line number>
  5420. ...............................................................................
  5421. Generators.tests.cpp:<line number>: PASSED:
  5422. REQUIRE( values > -6 )
  5423. with expansion:
  5424. 93 > -6
  5425. -------------------------------------------------------------------------------
  5426. Nested generators and captured variables
  5427. -------------------------------------------------------------------------------
  5428. Generators.tests.cpp:<line number>
  5429. ...............................................................................
  5430. Generators.tests.cpp:<line number>: PASSED:
  5431. REQUIRE( values > -6 )
  5432. with expansion:
  5433. 94 > -6
  5434. -------------------------------------------------------------------------------
  5435. Nested generators and captured variables
  5436. -------------------------------------------------------------------------------
  5437. Generators.tests.cpp:<line number>
  5438. ...............................................................................
  5439. Generators.tests.cpp:<line number>: PASSED:
  5440. REQUIRE( values > -6 )
  5441. with expansion:
  5442. 95 > -6
  5443. -------------------------------------------------------------------------------
  5444. Nested generators and captured variables
  5445. -------------------------------------------------------------------------------
  5446. Generators.tests.cpp:<line number>
  5447. ...............................................................................
  5448. Generators.tests.cpp:<line number>: PASSED:
  5449. REQUIRE( values > -6 )
  5450. with expansion:
  5451. 96 > -6
  5452. -------------------------------------------------------------------------------
  5453. Nested generators and captured variables
  5454. -------------------------------------------------------------------------------
  5455. Generators.tests.cpp:<line number>
  5456. ...............................................................................
  5457. Generators.tests.cpp:<line number>: PASSED:
  5458. REQUIRE( values > -6 )
  5459. with expansion:
  5460. 97 > -6
  5461. -------------------------------------------------------------------------------
  5462. Nested generators and captured variables
  5463. -------------------------------------------------------------------------------
  5464. Generators.tests.cpp:<line number>
  5465. ...............................................................................
  5466. Generators.tests.cpp:<line number>: PASSED:
  5467. REQUIRE( values > -6 )
  5468. with expansion:
  5469. 98 > -6
  5470. -------------------------------------------------------------------------------
  5471. Nested generators and captured variables
  5472. -------------------------------------------------------------------------------
  5473. Generators.tests.cpp:<line number>
  5474. ...............................................................................
  5475. Generators.tests.cpp:<line number>: PASSED:
  5476. REQUIRE( values > -6 )
  5477. with expansion:
  5478. 99 > -6
  5479. -------------------------------------------------------------------------------
  5480. Nice descriptive name
  5481. -------------------------------------------------------------------------------
  5482. Misc.tests.cpp:<line number>
  5483. ...............................................................................
  5484. Misc.tests.cpp:<line number>: warning:
  5485. This one ran
  5486. No assertions in test case 'Nice descriptive name'
  5487. -------------------------------------------------------------------------------
  5488. Non-std exceptions can be translated
  5489. -------------------------------------------------------------------------------
  5490. Exception.tests.cpp:<line number>
  5491. ...............................................................................
  5492. Exception.tests.cpp:<line number>: FAILED:
  5493. due to unexpected exception with message:
  5494. custom exception
  5495. -------------------------------------------------------------------------------
  5496. Objects that evaluated in boolean contexts can be checked
  5497. -------------------------------------------------------------------------------
  5498. Tricky.tests.cpp:<line number>
  5499. ...............................................................................
  5500. Tricky.tests.cpp:<line number>: PASSED:
  5501. CHECK( True )
  5502. with expansion:
  5503. {?}
  5504. Tricky.tests.cpp:<line number>: PASSED:
  5505. CHECK( !False )
  5506. with expansion:
  5507. true
  5508. Tricky.tests.cpp:<line number>: PASSED:
  5509. CHECK_FALSE( False )
  5510. with expansion:
  5511. !{?}
  5512. -------------------------------------------------------------------------------
  5513. Optionally static assertions
  5514. -------------------------------------------------------------------------------
  5515. Compilation.tests.cpp:<line number>
  5516. ...............................................................................
  5517. Compilation.tests.cpp:<line number>: PASSED:
  5518. with message:
  5519. std::is_void<void>::value
  5520. Compilation.tests.cpp:<line number>: PASSED:
  5521. with message:
  5522. !(std::is_void<int>::value)
  5523. -------------------------------------------------------------------------------
  5524. Ordering comparison checks that should fail
  5525. -------------------------------------------------------------------------------
  5526. Condition.tests.cpp:<line number>
  5527. ...............................................................................
  5528. Condition.tests.cpp:<line number>: FAILED:
  5529. CHECK( data.int_seven > 7 )
  5530. with expansion:
  5531. 7 > 7
  5532. Condition.tests.cpp:<line number>: FAILED:
  5533. CHECK( data.int_seven < 7 )
  5534. with expansion:
  5535. 7 < 7
  5536. Condition.tests.cpp:<line number>: FAILED:
  5537. CHECK( data.int_seven > 8 )
  5538. with expansion:
  5539. 7 > 8
  5540. Condition.tests.cpp:<line number>: FAILED:
  5541. CHECK( data.int_seven < 6 )
  5542. with expansion:
  5543. 7 < 6
  5544. Condition.tests.cpp:<line number>: FAILED:
  5545. CHECK( data.int_seven < 0 )
  5546. with expansion:
  5547. 7 < 0
  5548. Condition.tests.cpp:<line number>: FAILED:
  5549. CHECK( data.int_seven < -1 )
  5550. with expansion:
  5551. 7 < -1
  5552. Condition.tests.cpp:<line number>: FAILED:
  5553. CHECK( data.int_seven >= 8 )
  5554. with expansion:
  5555. 7 >= 8
  5556. Condition.tests.cpp:<line number>: FAILED:
  5557. CHECK( data.int_seven <= 6 )
  5558. with expansion:
  5559. 7 <= 6
  5560. Condition.tests.cpp:<line number>: FAILED:
  5561. CHECK( data.float_nine_point_one < 9 )
  5562. with expansion:
  5563. 9.1f < 9
  5564. Condition.tests.cpp:<line number>: FAILED:
  5565. CHECK( data.float_nine_point_one > 10 )
  5566. with expansion:
  5567. 9.1f > 10
  5568. Condition.tests.cpp:<line number>: FAILED:
  5569. CHECK( data.float_nine_point_one > 9.2 )
  5570. with expansion:
  5571. 9.1f > 9.2
  5572. Condition.tests.cpp:<line number>: FAILED:
  5573. CHECK( data.str_hello > "hello" )
  5574. with expansion:
  5575. "hello" > "hello"
  5576. Condition.tests.cpp:<line number>: FAILED:
  5577. CHECK( data.str_hello < "hello" )
  5578. with expansion:
  5579. "hello" < "hello"
  5580. Condition.tests.cpp:<line number>: FAILED:
  5581. CHECK( data.str_hello > "hellp" )
  5582. with expansion:
  5583. "hello" > "hellp"
  5584. Condition.tests.cpp:<line number>: FAILED:
  5585. CHECK( data.str_hello > "z" )
  5586. with expansion:
  5587. "hello" > "z"
  5588. Condition.tests.cpp:<line number>: FAILED:
  5589. CHECK( data.str_hello < "hellm" )
  5590. with expansion:
  5591. "hello" < "hellm"
  5592. Condition.tests.cpp:<line number>: FAILED:
  5593. CHECK( data.str_hello < "a" )
  5594. with expansion:
  5595. "hello" < "a"
  5596. Condition.tests.cpp:<line number>: FAILED:
  5597. CHECK( data.str_hello >= "z" )
  5598. with expansion:
  5599. "hello" >= "z"
  5600. Condition.tests.cpp:<line number>: FAILED:
  5601. CHECK( data.str_hello <= "a" )
  5602. with expansion:
  5603. "hello" <= "a"
  5604. -------------------------------------------------------------------------------
  5605. Ordering comparison checks that should succeed
  5606. -------------------------------------------------------------------------------
  5607. Condition.tests.cpp:<line number>
  5608. ...............................................................................
  5609. Condition.tests.cpp:<line number>: PASSED:
  5610. REQUIRE( data.int_seven < 8 )
  5611. with expansion:
  5612. 7 < 8
  5613. Condition.tests.cpp:<line number>: PASSED:
  5614. REQUIRE( data.int_seven > 6 )
  5615. with expansion:
  5616. 7 > 6
  5617. Condition.tests.cpp:<line number>: PASSED:
  5618. REQUIRE( data.int_seven > 0 )
  5619. with expansion:
  5620. 7 > 0
  5621. Condition.tests.cpp:<line number>: PASSED:
  5622. REQUIRE( data.int_seven > -1 )
  5623. with expansion:
  5624. 7 > -1
  5625. Condition.tests.cpp:<line number>: PASSED:
  5626. REQUIRE( data.int_seven >= 7 )
  5627. with expansion:
  5628. 7 >= 7
  5629. Condition.tests.cpp:<line number>: PASSED:
  5630. REQUIRE( data.int_seven >= 6 )
  5631. with expansion:
  5632. 7 >= 6
  5633. Condition.tests.cpp:<line number>: PASSED:
  5634. REQUIRE( data.int_seven <= 7 )
  5635. with expansion:
  5636. 7 <= 7
  5637. Condition.tests.cpp:<line number>: PASSED:
  5638. REQUIRE( data.int_seven <= 8 )
  5639. with expansion:
  5640. 7 <= 8
  5641. Condition.tests.cpp:<line number>: PASSED:
  5642. REQUIRE( data.float_nine_point_one > 9 )
  5643. with expansion:
  5644. 9.1f > 9
  5645. Condition.tests.cpp:<line number>: PASSED:
  5646. REQUIRE( data.float_nine_point_one < 10 )
  5647. with expansion:
  5648. 9.1f < 10
  5649. Condition.tests.cpp:<line number>: PASSED:
  5650. REQUIRE( data.float_nine_point_one < 9.2 )
  5651. with expansion:
  5652. 9.1f < 9.2
  5653. Condition.tests.cpp:<line number>: PASSED:
  5654. REQUIRE( data.str_hello <= "hello" )
  5655. with expansion:
  5656. "hello" <= "hello"
  5657. Condition.tests.cpp:<line number>: PASSED:
  5658. REQUIRE( data.str_hello >= "hello" )
  5659. with expansion:
  5660. "hello" >= "hello"
  5661. Condition.tests.cpp:<line number>: PASSED:
  5662. REQUIRE( data.str_hello < "hellp" )
  5663. with expansion:
  5664. "hello" < "hellp"
  5665. Condition.tests.cpp:<line number>: PASSED:
  5666. REQUIRE( data.str_hello < "zebra" )
  5667. with expansion:
  5668. "hello" < "zebra"
  5669. Condition.tests.cpp:<line number>: PASSED:
  5670. REQUIRE( data.str_hello > "hellm" )
  5671. with expansion:
  5672. "hello" > "hellm"
  5673. Condition.tests.cpp:<line number>: PASSED:
  5674. REQUIRE( data.str_hello > "a" )
  5675. with expansion:
  5676. "hello" > "a"
  5677. -------------------------------------------------------------------------------
  5678. Our PCG implementation provides expected results for known seeds
  5679. Default seeded
  5680. -------------------------------------------------------------------------------
  5681. RandomNumberGeneration.tests.cpp:<line number>
  5682. ...............................................................................
  5683. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  5684. REQUIRE( rng() == 0x<hex digits> )
  5685. with expansion:
  5686. 4242248763 (0x<hex digits>)
  5687. ==
  5688. 4242248763 (0x<hex digits>)
  5689. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  5690. REQUIRE( rng() == 0x<hex digits> )
  5691. with expansion:
  5692. 1867888929 (0x<hex digits>)
  5693. ==
  5694. 1867888929 (0x<hex digits>)
  5695. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  5696. REQUIRE( rng() == 0x<hex digits> )
  5697. with expansion:
  5698. 1276619030 (0x<hex digits>)
  5699. ==
  5700. 1276619030 (0x<hex digits>)
  5701. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  5702. REQUIRE( rng() == 0x<hex digits> )
  5703. with expansion:
  5704. 1911218783 (0x<hex digits>)
  5705. ==
  5706. 1911218783 (0x<hex digits>)
  5707. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  5708. REQUIRE( rng() == 0x<hex digits> )
  5709. with expansion:
  5710. 1827115164 (0x<hex digits>)
  5711. ==
  5712. 1827115164 (0x<hex digits>)
  5713. -------------------------------------------------------------------------------
  5714. Our PCG implementation provides expected results for known seeds
  5715. Specific seed
  5716. -------------------------------------------------------------------------------
  5717. RandomNumberGeneration.tests.cpp:<line number>
  5718. ...............................................................................
  5719. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  5720. REQUIRE( rng() == 0x<hex digits> )
  5721. with expansion:
  5722. 1472234645 (0x<hex digits>)
  5723. ==
  5724. 1472234645 (0x<hex digits>)
  5725. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  5726. REQUIRE( rng() == 0x<hex digits> )
  5727. with expansion:
  5728. 868832940 (0x<hex digits>)
  5729. ==
  5730. 868832940 (0x<hex digits>)
  5731. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  5732. REQUIRE( rng() == 0x<hex digits> )
  5733. with expansion:
  5734. 570883446 (0x<hex digits>)
  5735. ==
  5736. 570883446 (0x<hex digits>)
  5737. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  5738. REQUIRE( rng() == 0x<hex digits> )
  5739. with expansion:
  5740. 889299803 (0x<hex digits>)
  5741. ==
  5742. 889299803 (0x<hex digits>)
  5743. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  5744. REQUIRE( rng() == 0x<hex digits> )
  5745. with expansion:
  5746. 4261393167 (0x<hex digits>)
  5747. ==
  5748. 4261393167 (0x<hex digits>)
  5749. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  5750. REQUIRE( rng() == 0x<hex digits> )
  5751. with expansion:
  5752. 1472234645 (0x<hex digits>)
  5753. ==
  5754. 1472234645 (0x<hex digits>)
  5755. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  5756. REQUIRE( rng() == 0x<hex digits> )
  5757. with expansion:
  5758. 868832940 (0x<hex digits>)
  5759. ==
  5760. 868832940 (0x<hex digits>)
  5761. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  5762. REQUIRE( rng() == 0x<hex digits> )
  5763. with expansion:
  5764. 570883446 (0x<hex digits>)
  5765. ==
  5766. 570883446 (0x<hex digits>)
  5767. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  5768. REQUIRE( rng() == 0x<hex digits> )
  5769. with expansion:
  5770. 889299803 (0x<hex digits>)
  5771. ==
  5772. 889299803 (0x<hex digits>)
  5773. RandomNumberGeneration.tests.cpp:<line number>: PASSED:
  5774. REQUIRE( rng() == 0x<hex digits> )
  5775. with expansion:
  5776. 4261393167 (0x<hex digits>)
  5777. ==
  5778. 4261393167 (0x<hex digits>)
  5779. -------------------------------------------------------------------------------
  5780. Output from all sections is reported
  5781. one
  5782. -------------------------------------------------------------------------------
  5783. Message.tests.cpp:<line number>
  5784. ...............................................................................
  5785. Message.tests.cpp:<line number>: FAILED:
  5786. explicitly with message:
  5787. Message from section one
  5788. -------------------------------------------------------------------------------
  5789. Output from all sections is reported
  5790. two
  5791. -------------------------------------------------------------------------------
  5792. Message.tests.cpp:<line number>
  5793. ...............................................................................
  5794. Message.tests.cpp:<line number>: FAILED:
  5795. explicitly with message:
  5796. Message from section two
  5797. -------------------------------------------------------------------------------
  5798. Parse test names and tags
  5799. Empty test spec should have no filters
  5800. -------------------------------------------------------------------------------
  5801. CmdLine.tests.cpp:<line number>
  5802. ...............................................................................
  5803. CmdLine.tests.cpp:<line number>: PASSED:
  5804. CHECK( spec.hasFilters() == false )
  5805. with expansion:
  5806. false == false
  5807. CmdLine.tests.cpp:<line number>: PASSED:
  5808. CHECK( spec.matches( tcA ) == false )
  5809. with expansion:
  5810. false == false
  5811. CmdLine.tests.cpp:<line number>: PASSED:
  5812. CHECK( spec.matches( tcB ) == false )
  5813. with expansion:
  5814. false == false
  5815. -------------------------------------------------------------------------------
  5816. Parse test names and tags
  5817. Test spec from empty string should have no filters
  5818. -------------------------------------------------------------------------------
  5819. CmdLine.tests.cpp:<line number>
  5820. ...............................................................................
  5821. CmdLine.tests.cpp:<line number>: PASSED:
  5822. CHECK( spec.hasFilters() == false )
  5823. with expansion:
  5824. false == false
  5825. CmdLine.tests.cpp:<line number>: PASSED:
  5826. CHECK( spec.matches(tcA ) == false )
  5827. with expansion:
  5828. false == false
  5829. CmdLine.tests.cpp:<line number>: PASSED:
  5830. CHECK( spec.matches( tcB ) == false )
  5831. with expansion:
  5832. false == false
  5833. -------------------------------------------------------------------------------
  5834. Parse test names and tags
  5835. Test spec from just a comma should have no filters
  5836. -------------------------------------------------------------------------------
  5837. CmdLine.tests.cpp:<line number>
  5838. ...............................................................................
  5839. CmdLine.tests.cpp:<line number>: PASSED:
  5840. CHECK( spec.hasFilters() == false )
  5841. with expansion:
  5842. false == false
  5843. CmdLine.tests.cpp:<line number>: PASSED:
  5844. CHECK( spec.matches( tcA ) == false )
  5845. with expansion:
  5846. false == false
  5847. CmdLine.tests.cpp:<line number>: PASSED:
  5848. CHECK( spec.matches( tcB ) == false )
  5849. with expansion:
  5850. false == false
  5851. -------------------------------------------------------------------------------
  5852. Parse test names and tags
  5853. Test spec from name should have one filter
  5854. -------------------------------------------------------------------------------
  5855. CmdLine.tests.cpp:<line number>
  5856. ...............................................................................
  5857. CmdLine.tests.cpp:<line number>: PASSED:
  5858. CHECK( spec.hasFilters() == true )
  5859. with expansion:
  5860. true == true
  5861. CmdLine.tests.cpp:<line number>: PASSED:
  5862. CHECK( spec.matches( tcA ) == false )
  5863. with expansion:
  5864. false == false
  5865. CmdLine.tests.cpp:<line number>: PASSED:
  5866. CHECK( spec.matches( tcB ) == true )
  5867. with expansion:
  5868. true == true
  5869. -------------------------------------------------------------------------------
  5870. Parse test names and tags
  5871. Test spec from quoted name should have one filter
  5872. -------------------------------------------------------------------------------
  5873. CmdLine.tests.cpp:<line number>
  5874. ...............................................................................
  5875. CmdLine.tests.cpp:<line number>: PASSED:
  5876. CHECK( spec.hasFilters() == true )
  5877. with expansion:
  5878. true == true
  5879. CmdLine.tests.cpp:<line number>: PASSED:
  5880. CHECK( spec.matches( tcA ) == false )
  5881. with expansion:
  5882. false == false
  5883. CmdLine.tests.cpp:<line number>: PASSED:
  5884. CHECK( spec.matches( tcB ) == true )
  5885. with expansion:
  5886. true == true
  5887. -------------------------------------------------------------------------------
  5888. Parse test names and tags
  5889. Test spec from name should have one filter
  5890. -------------------------------------------------------------------------------
  5891. CmdLine.tests.cpp:<line number>
  5892. ...............................................................................
  5893. CmdLine.tests.cpp:<line number>: PASSED:
  5894. CHECK( spec.hasFilters() == true )
  5895. with expansion:
  5896. true == true
  5897. CmdLine.tests.cpp:<line number>: PASSED:
  5898. CHECK( spec.matches( tcA ) == false )
  5899. with expansion:
  5900. false == false
  5901. CmdLine.tests.cpp:<line number>: PASSED:
  5902. CHECK( spec.matches( tcB ) == true )
  5903. with expansion:
  5904. true == true
  5905. CmdLine.tests.cpp:<line number>: PASSED:
  5906. CHECK( spec.matches( tcC ) == false )
  5907. with expansion:
  5908. false == false
  5909. -------------------------------------------------------------------------------
  5910. Parse test names and tags
  5911. Wildcard at the start
  5912. -------------------------------------------------------------------------------
  5913. CmdLine.tests.cpp:<line number>
  5914. ...............................................................................
  5915. CmdLine.tests.cpp:<line number>: PASSED:
  5916. CHECK( spec.hasFilters() == true )
  5917. with expansion:
  5918. true == true
  5919. CmdLine.tests.cpp:<line number>: PASSED:
  5920. CHECK( spec.matches( tcA ) == false )
  5921. with expansion:
  5922. false == false
  5923. CmdLine.tests.cpp:<line number>: PASSED:
  5924. CHECK( spec.matches( tcB ) == false )
  5925. with expansion:
  5926. false == false
  5927. CmdLine.tests.cpp:<line number>: PASSED:
  5928. CHECK( spec.matches( tcC ) == true )
  5929. with expansion:
  5930. true == true
  5931. CmdLine.tests.cpp:<line number>: PASSED:
  5932. CHECK( spec.matches( tcD ) == false )
  5933. with expansion:
  5934. false == false
  5935. CmdLine.tests.cpp:<line number>: PASSED:
  5936. CHECK( parseTestSpec( "*a" ).matches( tcA ) == true )
  5937. with expansion:
  5938. true == true
  5939. -------------------------------------------------------------------------------
  5940. Parse test names and tags
  5941. Wildcard at the end
  5942. -------------------------------------------------------------------------------
  5943. CmdLine.tests.cpp:<line number>
  5944. ...............................................................................
  5945. CmdLine.tests.cpp:<line number>: PASSED:
  5946. CHECK( spec.hasFilters() == true )
  5947. with expansion:
  5948. true == true
  5949. CmdLine.tests.cpp:<line number>: PASSED:
  5950. CHECK( spec.matches( tcA ) == false )
  5951. with expansion:
  5952. false == false
  5953. CmdLine.tests.cpp:<line number>: PASSED:
  5954. CHECK( spec.matches( tcB ) == false )
  5955. with expansion:
  5956. false == false
  5957. CmdLine.tests.cpp:<line number>: PASSED:
  5958. CHECK( spec.matches( tcC ) == true )
  5959. with expansion:
  5960. true == true
  5961. CmdLine.tests.cpp:<line number>: PASSED:
  5962. CHECK( spec.matches( tcD ) == false )
  5963. with expansion:
  5964. false == false
  5965. CmdLine.tests.cpp:<line number>: PASSED:
  5966. CHECK( parseTestSpec( "a*" ).matches( tcA ) == true )
  5967. with expansion:
  5968. true == true
  5969. -------------------------------------------------------------------------------
  5970. Parse test names and tags
  5971. Wildcard at both ends
  5972. -------------------------------------------------------------------------------
  5973. CmdLine.tests.cpp:<line number>
  5974. ...............................................................................
  5975. CmdLine.tests.cpp:<line number>: PASSED:
  5976. CHECK( spec.hasFilters() == true )
  5977. with expansion:
  5978. true == true
  5979. CmdLine.tests.cpp:<line number>: PASSED:
  5980. CHECK( spec.matches( tcA ) == false )
  5981. with expansion:
  5982. false == false
  5983. CmdLine.tests.cpp:<line number>: PASSED:
  5984. CHECK( spec.matches( tcB ) == false )
  5985. with expansion:
  5986. false == false
  5987. CmdLine.tests.cpp:<line number>: PASSED:
  5988. CHECK( spec.matches( tcC ) == true )
  5989. with expansion:
  5990. true == true
  5991. CmdLine.tests.cpp:<line number>: PASSED:
  5992. CHECK( spec.matches( tcD ) == true )
  5993. with expansion:
  5994. true == true
  5995. CmdLine.tests.cpp:<line number>: PASSED:
  5996. CHECK( parseTestSpec( "*a*" ).matches( tcA ) == true )
  5997. with expansion:
  5998. true == true
  5999. -------------------------------------------------------------------------------
  6000. Parse test names and tags
  6001. Redundant wildcard at the start
  6002. -------------------------------------------------------------------------------
  6003. CmdLine.tests.cpp:<line number>
  6004. ...............................................................................
  6005. CmdLine.tests.cpp:<line number>: PASSED:
  6006. CHECK( spec.hasFilters() == true )
  6007. with expansion:
  6008. true == true
  6009. CmdLine.tests.cpp:<line number>: PASSED:
  6010. CHECK( spec.matches( tcA ) == true )
  6011. with expansion:
  6012. true == true
  6013. CmdLine.tests.cpp:<line number>: PASSED:
  6014. CHECK( spec.matches( tcB ) == false )
  6015. with expansion:
  6016. false == false
  6017. -------------------------------------------------------------------------------
  6018. Parse test names and tags
  6019. Redundant wildcard at the end
  6020. -------------------------------------------------------------------------------
  6021. CmdLine.tests.cpp:<line number>
  6022. ...............................................................................
  6023. CmdLine.tests.cpp:<line number>: PASSED:
  6024. CHECK( spec.hasFilters() == true )
  6025. with expansion:
  6026. true == true
  6027. CmdLine.tests.cpp:<line number>: PASSED:
  6028. CHECK( spec.matches( tcA ) == true )
  6029. with expansion:
  6030. true == true
  6031. CmdLine.tests.cpp:<line number>: PASSED:
  6032. CHECK( spec.matches( tcB ) == false )
  6033. with expansion:
  6034. false == false
  6035. -------------------------------------------------------------------------------
  6036. Parse test names and tags
  6037. Redundant wildcard at both ends
  6038. -------------------------------------------------------------------------------
  6039. CmdLine.tests.cpp:<line number>
  6040. ...............................................................................
  6041. CmdLine.tests.cpp:<line number>: PASSED:
  6042. CHECK( spec.hasFilters() == true )
  6043. with expansion:
  6044. true == true
  6045. CmdLine.tests.cpp:<line number>: PASSED:
  6046. CHECK( spec.matches( tcA ) == true )
  6047. with expansion:
  6048. true == true
  6049. CmdLine.tests.cpp:<line number>: PASSED:
  6050. CHECK( spec.matches( tcB ) == false )
  6051. with expansion:
  6052. false == false
  6053. -------------------------------------------------------------------------------
  6054. Parse test names and tags
  6055. Wildcard at both ends, redundant at start
  6056. -------------------------------------------------------------------------------
  6057. CmdLine.tests.cpp:<line number>
  6058. ...............................................................................
  6059. CmdLine.tests.cpp:<line number>: PASSED:
  6060. CHECK( spec.hasFilters() == true )
  6061. with expansion:
  6062. true == true
  6063. CmdLine.tests.cpp:<line number>: PASSED:
  6064. CHECK( spec.matches( tcA ) == false )
  6065. with expansion:
  6066. false == false
  6067. CmdLine.tests.cpp:<line number>: PASSED:
  6068. CHECK( spec.matches( tcB ) == false )
  6069. with expansion:
  6070. false == false
  6071. CmdLine.tests.cpp:<line number>: PASSED:
  6072. CHECK( spec.matches( tcC ) == true )
  6073. with expansion:
  6074. true == true
  6075. CmdLine.tests.cpp:<line number>: PASSED:
  6076. CHECK( spec.matches( tcD ) == true )
  6077. with expansion:
  6078. true == true
  6079. -------------------------------------------------------------------------------
  6080. Parse test names and tags
  6081. Just wildcard
  6082. -------------------------------------------------------------------------------
  6083. CmdLine.tests.cpp:<line number>
  6084. ...............................................................................
  6085. CmdLine.tests.cpp:<line number>: PASSED:
  6086. CHECK( spec.hasFilters() == true )
  6087. with expansion:
  6088. true == true
  6089. CmdLine.tests.cpp:<line number>: PASSED:
  6090. CHECK( spec.matches( tcA ) == true )
  6091. with expansion:
  6092. true == true
  6093. CmdLine.tests.cpp:<line number>: PASSED:
  6094. CHECK( spec.matches( tcB ) == true )
  6095. with expansion:
  6096. true == true
  6097. CmdLine.tests.cpp:<line number>: PASSED:
  6098. CHECK( spec.matches( tcC ) == true )
  6099. with expansion:
  6100. true == true
  6101. CmdLine.tests.cpp:<line number>: PASSED:
  6102. CHECK( spec.matches( tcD ) == true )
  6103. with expansion:
  6104. true == true
  6105. -------------------------------------------------------------------------------
  6106. Parse test names and tags
  6107. Single tag
  6108. -------------------------------------------------------------------------------
  6109. CmdLine.tests.cpp:<line number>
  6110. ...............................................................................
  6111. CmdLine.tests.cpp:<line number>: PASSED:
  6112. CHECK( spec.hasFilters() == true )
  6113. with expansion:
  6114. true == true
  6115. CmdLine.tests.cpp:<line number>: PASSED:
  6116. CHECK( spec.matches( tcA ) == false )
  6117. with expansion:
  6118. false == false
  6119. CmdLine.tests.cpp:<line number>: PASSED:
  6120. CHECK( spec.matches( tcB ) == true )
  6121. with expansion:
  6122. true == true
  6123. CmdLine.tests.cpp:<line number>: PASSED:
  6124. CHECK( spec.matches( tcC ) == false )
  6125. with expansion:
  6126. false == false
  6127. -------------------------------------------------------------------------------
  6128. Parse test names and tags
  6129. Single tag, two matches
  6130. -------------------------------------------------------------------------------
  6131. CmdLine.tests.cpp:<line number>
  6132. ...............................................................................
  6133. CmdLine.tests.cpp:<line number>: PASSED:
  6134. CHECK( spec.hasFilters() == true )
  6135. with expansion:
  6136. true == true
  6137. CmdLine.tests.cpp:<line number>: PASSED:
  6138. CHECK( spec.matches( tcA ) == false )
  6139. with expansion:
  6140. false == false
  6141. CmdLine.tests.cpp:<line number>: PASSED:
  6142. CHECK( spec.matches( tcB ) == true )
  6143. with expansion:
  6144. true == true
  6145. CmdLine.tests.cpp:<line number>: PASSED:
  6146. CHECK( spec.matches( tcC ) == true )
  6147. with expansion:
  6148. true == true
  6149. -------------------------------------------------------------------------------
  6150. Parse test names and tags
  6151. Two tags
  6152. -------------------------------------------------------------------------------
  6153. CmdLine.tests.cpp:<line number>
  6154. ...............................................................................
  6155. CmdLine.tests.cpp:<line number>: PASSED:
  6156. CHECK( spec.hasFilters() == true )
  6157. with expansion:
  6158. true == true
  6159. CmdLine.tests.cpp:<line number>: PASSED:
  6160. CHECK( spec.matches( tcA ) == false )
  6161. with expansion:
  6162. false == false
  6163. CmdLine.tests.cpp:<line number>: PASSED:
  6164. CHECK( spec.matches( tcB ) == false )
  6165. with expansion:
  6166. false == false
  6167. CmdLine.tests.cpp:<line number>: PASSED:
  6168. CHECK( spec.matches( tcC ) == true )
  6169. with expansion:
  6170. true == true
  6171. -------------------------------------------------------------------------------
  6172. Parse test names and tags
  6173. Two tags, spare separated
  6174. -------------------------------------------------------------------------------
  6175. CmdLine.tests.cpp:<line number>
  6176. ...............................................................................
  6177. CmdLine.tests.cpp:<line number>: PASSED:
  6178. CHECK( spec.hasFilters() == true )
  6179. with expansion:
  6180. true == true
  6181. CmdLine.tests.cpp:<line number>: PASSED:
  6182. CHECK( spec.matches( tcA ) == false )
  6183. with expansion:
  6184. false == false
  6185. CmdLine.tests.cpp:<line number>: PASSED:
  6186. CHECK( spec.matches( tcB ) == false )
  6187. with expansion:
  6188. false == false
  6189. CmdLine.tests.cpp:<line number>: PASSED:
  6190. CHECK( spec.matches( tcC ) == true )
  6191. with expansion:
  6192. true == true
  6193. -------------------------------------------------------------------------------
  6194. Parse test names and tags
  6195. Wildcarded name and tag
  6196. -------------------------------------------------------------------------------
  6197. CmdLine.tests.cpp:<line number>
  6198. ...............................................................................
  6199. CmdLine.tests.cpp:<line number>: PASSED:
  6200. CHECK( spec.hasFilters() == true )
  6201. with expansion:
  6202. true == true
  6203. CmdLine.tests.cpp:<line number>: PASSED:
  6204. CHECK( spec.matches( tcA ) == false )
  6205. with expansion:
  6206. false == false
  6207. CmdLine.tests.cpp:<line number>: PASSED:
  6208. CHECK( spec.matches( tcB ) == false )
  6209. with expansion:
  6210. false == false
  6211. CmdLine.tests.cpp:<line number>: PASSED:
  6212. CHECK( spec.matches( tcC ) == true )
  6213. with expansion:
  6214. true == true
  6215. CmdLine.tests.cpp:<line number>: PASSED:
  6216. CHECK( spec.matches( tcD ) == false )
  6217. with expansion:
  6218. false == false
  6219. -------------------------------------------------------------------------------
  6220. Parse test names and tags
  6221. Single tag exclusion
  6222. -------------------------------------------------------------------------------
  6223. CmdLine.tests.cpp:<line number>
  6224. ...............................................................................
  6225. CmdLine.tests.cpp:<line number>: PASSED:
  6226. CHECK( spec.hasFilters() == true )
  6227. with expansion:
  6228. true == true
  6229. CmdLine.tests.cpp:<line number>: PASSED:
  6230. CHECK( spec.matches( tcA ) == true )
  6231. with expansion:
  6232. true == true
  6233. CmdLine.tests.cpp:<line number>: PASSED:
  6234. CHECK( spec.matches( tcB ) == false )
  6235. with expansion:
  6236. false == false
  6237. CmdLine.tests.cpp:<line number>: PASSED:
  6238. CHECK( spec.matches( tcC ) == true )
  6239. with expansion:
  6240. true == true
  6241. -------------------------------------------------------------------------------
  6242. Parse test names and tags
  6243. One tag exclusion and one tag inclusion
  6244. -------------------------------------------------------------------------------
  6245. CmdLine.tests.cpp:<line number>
  6246. ...............................................................................
  6247. CmdLine.tests.cpp:<line number>: PASSED:
  6248. CHECK( spec.hasFilters() == true )
  6249. with expansion:
  6250. true == true
  6251. CmdLine.tests.cpp:<line number>: PASSED:
  6252. CHECK( spec.matches( tcA ) == false )
  6253. with expansion:
  6254. false == false
  6255. CmdLine.tests.cpp:<line number>: PASSED:
  6256. CHECK( spec.matches( tcB ) == true )
  6257. with expansion:
  6258. true == true
  6259. CmdLine.tests.cpp:<line number>: PASSED:
  6260. CHECK( spec.matches( tcC ) == false )
  6261. with expansion:
  6262. false == false
  6263. -------------------------------------------------------------------------------
  6264. Parse test names and tags
  6265. One tag exclusion and one wldcarded name inclusion
  6266. -------------------------------------------------------------------------------
  6267. CmdLine.tests.cpp:<line number>
  6268. ...............................................................................
  6269. CmdLine.tests.cpp:<line number>: PASSED:
  6270. CHECK( spec.hasFilters() == true )
  6271. with expansion:
  6272. true == true
  6273. CmdLine.tests.cpp:<line number>: PASSED:
  6274. CHECK( spec.matches( tcA ) == false )
  6275. with expansion:
  6276. false == false
  6277. CmdLine.tests.cpp:<line number>: PASSED:
  6278. CHECK( spec.matches( tcB ) == false )
  6279. with expansion:
  6280. false == false
  6281. CmdLine.tests.cpp:<line number>: PASSED:
  6282. CHECK( spec.matches( tcC ) == false )
  6283. with expansion:
  6284. false == false
  6285. CmdLine.tests.cpp:<line number>: PASSED:
  6286. CHECK( spec.matches( tcD ) == true )
  6287. with expansion:
  6288. true == true
  6289. -------------------------------------------------------------------------------
  6290. Parse test names and tags
  6291. One tag exclusion, using exclude:, and one wldcarded name inclusion
  6292. -------------------------------------------------------------------------------
  6293. CmdLine.tests.cpp:<line number>
  6294. ...............................................................................
  6295. CmdLine.tests.cpp:<line number>: PASSED:
  6296. CHECK( spec.hasFilters() == true )
  6297. with expansion:
  6298. true == true
  6299. CmdLine.tests.cpp:<line number>: PASSED:
  6300. CHECK( spec.matches( tcA ) == false )
  6301. with expansion:
  6302. false == false
  6303. CmdLine.tests.cpp:<line number>: PASSED:
  6304. CHECK( spec.matches( tcB ) == false )
  6305. with expansion:
  6306. false == false
  6307. CmdLine.tests.cpp:<line number>: PASSED:
  6308. CHECK( spec.matches( tcC ) == false )
  6309. with expansion:
  6310. false == false
  6311. CmdLine.tests.cpp:<line number>: PASSED:
  6312. CHECK( spec.matches( tcD ) == true )
  6313. with expansion:
  6314. true == true
  6315. -------------------------------------------------------------------------------
  6316. Parse test names and tags
  6317. name exclusion
  6318. -------------------------------------------------------------------------------
  6319. CmdLine.tests.cpp:<line number>
  6320. ...............................................................................
  6321. CmdLine.tests.cpp:<line number>: PASSED:
  6322. CHECK( spec.hasFilters() == true )
  6323. with expansion:
  6324. true == true
  6325. CmdLine.tests.cpp:<line number>: PASSED:
  6326. CHECK( spec.matches( tcA ) == true )
  6327. with expansion:
  6328. true == true
  6329. CmdLine.tests.cpp:<line number>: PASSED:
  6330. CHECK( spec.matches( tcB ) == false )
  6331. with expansion:
  6332. false == false
  6333. CmdLine.tests.cpp:<line number>: PASSED:
  6334. CHECK( spec.matches( tcC ) == true )
  6335. with expansion:
  6336. true == true
  6337. CmdLine.tests.cpp:<line number>: PASSED:
  6338. CHECK( spec.matches( tcD ) == true )
  6339. with expansion:
  6340. true == true
  6341. -------------------------------------------------------------------------------
  6342. Parse test names and tags
  6343. wildcarded name exclusion
  6344. -------------------------------------------------------------------------------
  6345. CmdLine.tests.cpp:<line number>
  6346. ...............................................................................
  6347. CmdLine.tests.cpp:<line number>: PASSED:
  6348. CHECK( spec.hasFilters() == true )
  6349. with expansion:
  6350. true == true
  6351. CmdLine.tests.cpp:<line number>: PASSED:
  6352. CHECK( spec.matches( tcA ) == true )
  6353. with expansion:
  6354. true == true
  6355. CmdLine.tests.cpp:<line number>: PASSED:
  6356. CHECK( spec.matches( tcB ) == true )
  6357. with expansion:
  6358. true == true
  6359. CmdLine.tests.cpp:<line number>: PASSED:
  6360. CHECK( spec.matches( tcC ) == false )
  6361. with expansion:
  6362. false == false
  6363. CmdLine.tests.cpp:<line number>: PASSED:
  6364. CHECK( spec.matches( tcD ) == false )
  6365. with expansion:
  6366. false == false
  6367. -------------------------------------------------------------------------------
  6368. Parse test names and tags
  6369. wildcarded name exclusion with tag inclusion
  6370. -------------------------------------------------------------------------------
  6371. CmdLine.tests.cpp:<line number>
  6372. ...............................................................................
  6373. CmdLine.tests.cpp:<line number>: PASSED:
  6374. CHECK( spec.hasFilters() == true )
  6375. with expansion:
  6376. true == true
  6377. CmdLine.tests.cpp:<line number>: PASSED:
  6378. CHECK( spec.matches( tcA ) == true )
  6379. with expansion:
  6380. true == true
  6381. CmdLine.tests.cpp:<line number>: PASSED:
  6382. CHECK( spec.matches( tcB ) == true )
  6383. with expansion:
  6384. true == true
  6385. CmdLine.tests.cpp:<line number>: PASSED:
  6386. CHECK( spec.matches( tcC ) == true )
  6387. with expansion:
  6388. true == true
  6389. CmdLine.tests.cpp:<line number>: PASSED:
  6390. CHECK( spec.matches( tcD ) == false )
  6391. with expansion:
  6392. false == false
  6393. -------------------------------------------------------------------------------
  6394. Parse test names and tags
  6395. wildcarded name exclusion, using exclude:, with tag inclusion
  6396. -------------------------------------------------------------------------------
  6397. CmdLine.tests.cpp:<line number>
  6398. ...............................................................................
  6399. CmdLine.tests.cpp:<line number>: PASSED:
  6400. CHECK( spec.hasFilters() == true )
  6401. with expansion:
  6402. true == true
  6403. CmdLine.tests.cpp:<line number>: PASSED:
  6404. CHECK( spec.matches( tcA ) == true )
  6405. with expansion:
  6406. true == true
  6407. CmdLine.tests.cpp:<line number>: PASSED:
  6408. CHECK( spec.matches( tcB ) == true )
  6409. with expansion:
  6410. true == true
  6411. CmdLine.tests.cpp:<line number>: PASSED:
  6412. CHECK( spec.matches( tcC ) == true )
  6413. with expansion:
  6414. true == true
  6415. CmdLine.tests.cpp:<line number>: PASSED:
  6416. CHECK( spec.matches( tcD ) == false )
  6417. with expansion:
  6418. false == false
  6419. -------------------------------------------------------------------------------
  6420. Parse test names and tags
  6421. two wildcarded names
  6422. -------------------------------------------------------------------------------
  6423. CmdLine.tests.cpp:<line number>
  6424. ...............................................................................
  6425. CmdLine.tests.cpp:<line number>: PASSED:
  6426. CHECK( spec.hasFilters() == true )
  6427. with expansion:
  6428. true == true
  6429. CmdLine.tests.cpp:<line number>: PASSED:
  6430. CHECK( spec.matches( tcA ) == false )
  6431. with expansion:
  6432. false == false
  6433. CmdLine.tests.cpp:<line number>: PASSED:
  6434. CHECK( spec.matches( tcB ) == false )
  6435. with expansion:
  6436. false == false
  6437. CmdLine.tests.cpp:<line number>: PASSED:
  6438. CHECK( spec.matches( tcC ) == true )
  6439. with expansion:
  6440. true == true
  6441. CmdLine.tests.cpp:<line number>: PASSED:
  6442. CHECK( spec.matches( tcD ) == false )
  6443. with expansion:
  6444. false == false
  6445. -------------------------------------------------------------------------------
  6446. Parse test names and tags
  6447. empty tag
  6448. -------------------------------------------------------------------------------
  6449. CmdLine.tests.cpp:<line number>
  6450. ...............................................................................
  6451. CmdLine.tests.cpp:<line number>: PASSED:
  6452. CHECK( spec.hasFilters() == false )
  6453. with expansion:
  6454. false == false
  6455. CmdLine.tests.cpp:<line number>: PASSED:
  6456. CHECK( spec.matches( tcA ) == false )
  6457. with expansion:
  6458. false == false
  6459. CmdLine.tests.cpp:<line number>: PASSED:
  6460. CHECK( spec.matches( tcB ) == false )
  6461. with expansion:
  6462. false == false
  6463. CmdLine.tests.cpp:<line number>: PASSED:
  6464. CHECK( spec.matches( tcC ) == false )
  6465. with expansion:
  6466. false == false
  6467. CmdLine.tests.cpp:<line number>: PASSED:
  6468. CHECK( spec.matches( tcD ) == false )
  6469. with expansion:
  6470. false == false
  6471. -------------------------------------------------------------------------------
  6472. Parse test names and tags
  6473. empty quoted name
  6474. -------------------------------------------------------------------------------
  6475. CmdLine.tests.cpp:<line number>
  6476. ...............................................................................
  6477. CmdLine.tests.cpp:<line number>: PASSED:
  6478. CHECK( spec.hasFilters() == false )
  6479. with expansion:
  6480. false == false
  6481. CmdLine.tests.cpp:<line number>: PASSED:
  6482. CHECK( spec.matches( tcA ) == false )
  6483. with expansion:
  6484. false == false
  6485. CmdLine.tests.cpp:<line number>: PASSED:
  6486. CHECK( spec.matches( tcB ) == false )
  6487. with expansion:
  6488. false == false
  6489. CmdLine.tests.cpp:<line number>: PASSED:
  6490. CHECK( spec.matches( tcC ) == false )
  6491. with expansion:
  6492. false == false
  6493. CmdLine.tests.cpp:<line number>: PASSED:
  6494. CHECK( spec.matches( tcD ) == false )
  6495. with expansion:
  6496. false == false
  6497. -------------------------------------------------------------------------------
  6498. Parse test names and tags
  6499. quoted string followed by tag exclusion
  6500. -------------------------------------------------------------------------------
  6501. CmdLine.tests.cpp:<line number>
  6502. ...............................................................................
  6503. CmdLine.tests.cpp:<line number>: PASSED:
  6504. CHECK( spec.hasFilters() == true )
  6505. with expansion:
  6506. true == true
  6507. CmdLine.tests.cpp:<line number>: PASSED:
  6508. CHECK( spec.matches( tcA ) == false )
  6509. with expansion:
  6510. false == false
  6511. CmdLine.tests.cpp:<line number>: PASSED:
  6512. CHECK( spec.matches( tcB ) == false )
  6513. with expansion:
  6514. false == false
  6515. CmdLine.tests.cpp:<line number>: PASSED:
  6516. CHECK( spec.matches( tcC ) == false )
  6517. with expansion:
  6518. false == false
  6519. CmdLine.tests.cpp:<line number>: PASSED:
  6520. CHECK( spec.matches( tcD ) == true )
  6521. with expansion:
  6522. true == true
  6523. -------------------------------------------------------------------------------
  6524. Parse test names and tags
  6525. Leading and trailing spaces in test spec
  6526. -------------------------------------------------------------------------------
  6527. CmdLine.tests.cpp:<line number>
  6528. ...............................................................................
  6529. CmdLine.tests.cpp:<line number>: PASSED:
  6530. CHECK( spec.matches( fakeTestCase( " aardvark " ) ) )
  6531. with expansion:
  6532. true
  6533. CmdLine.tests.cpp:<line number>: PASSED:
  6534. CHECK( spec.matches( fakeTestCase( " aardvark" ) ) )
  6535. with expansion:
  6536. true
  6537. CmdLine.tests.cpp:<line number>: PASSED:
  6538. CHECK( spec.matches( fakeTestCase( " aardvark " ) ) )
  6539. with expansion:
  6540. true
  6541. CmdLine.tests.cpp:<line number>: PASSED:
  6542. CHECK( spec.matches( fakeTestCase( "aardvark " ) ) )
  6543. with expansion:
  6544. true
  6545. CmdLine.tests.cpp:<line number>: PASSED:
  6546. CHECK( spec.matches( fakeTestCase( "aardvark" ) ) )
  6547. with expansion:
  6548. true
  6549. -------------------------------------------------------------------------------
  6550. Parse test names and tags
  6551. Leading and trailing spaces in test name
  6552. -------------------------------------------------------------------------------
  6553. CmdLine.tests.cpp:<line number>
  6554. ...............................................................................
  6555. CmdLine.tests.cpp:<line number>: PASSED:
  6556. CHECK( spec.matches( fakeTestCase( " aardvark " ) ) )
  6557. with expansion:
  6558. true
  6559. CmdLine.tests.cpp:<line number>: PASSED:
  6560. CHECK( spec.matches( fakeTestCase( " aardvark" ) ) )
  6561. with expansion:
  6562. true
  6563. CmdLine.tests.cpp:<line number>: PASSED:
  6564. CHECK( spec.matches( fakeTestCase( " aardvark " ) ) )
  6565. with expansion:
  6566. true
  6567. CmdLine.tests.cpp:<line number>: PASSED:
  6568. CHECK( spec.matches( fakeTestCase( "aardvark " ) ) )
  6569. with expansion:
  6570. true
  6571. CmdLine.tests.cpp:<line number>: PASSED:
  6572. CHECK( spec.matches( fakeTestCase( "aardvark" ) ) )
  6573. with expansion:
  6574. true
  6575. -------------------------------------------------------------------------------
  6576. Parse test names and tags
  6577. Shortened hide tags are split apart when parsing
  6578. -------------------------------------------------------------------------------
  6579. CmdLine.tests.cpp:<line number>
  6580. ...............................................................................
  6581. CmdLine.tests.cpp:<line number>: PASSED:
  6582. CHECK( spec.matches(fakeTestCase("hidden and foo", "[.][foo]")) )
  6583. with expansion:
  6584. true
  6585. CmdLine.tests.cpp:<line number>: PASSED:
  6586. CHECK_FALSE( spec.matches(fakeTestCase("only foo", "[foo]")) )
  6587. with expansion:
  6588. !false
  6589. -------------------------------------------------------------------------------
  6590. Parse test names and tags
  6591. Shortened hide tags also properly handle exclusion
  6592. -------------------------------------------------------------------------------
  6593. CmdLine.tests.cpp:<line number>
  6594. ...............................................................................
  6595. CmdLine.tests.cpp:<line number>: PASSED:
  6596. CHECK_FALSE( spec.matches(fakeTestCase("hidden and foo", "[.][foo]")) )
  6597. with expansion:
  6598. !false
  6599. CmdLine.tests.cpp:<line number>: PASSED:
  6600. CHECK_FALSE( spec.matches(fakeTestCase("only foo", "[foo]")) )
  6601. with expansion:
  6602. !false
  6603. CmdLine.tests.cpp:<line number>: PASSED:
  6604. CHECK_FALSE( spec.matches(fakeTestCase("only hidden", "[.]")) )
  6605. with expansion:
  6606. !false
  6607. CmdLine.tests.cpp:<line number>: PASSED:
  6608. CHECK( spec.matches(fakeTestCase("neither foo nor hidden", "[bar]")) )
  6609. with expansion:
  6610. true
  6611. -------------------------------------------------------------------------------
  6612. Pointers can be compared to null
  6613. -------------------------------------------------------------------------------
  6614. Condition.tests.cpp:<line number>
  6615. ...............................................................................
  6616. Condition.tests.cpp:<line number>: PASSED:
  6617. REQUIRE( p == 0 )
  6618. with expansion:
  6619. 0 == 0
  6620. Condition.tests.cpp:<line number>: PASSED:
  6621. REQUIRE( p == pNULL )
  6622. with expansion:
  6623. 0 == 0
  6624. Condition.tests.cpp:<line number>: PASSED:
  6625. REQUIRE( p != 0 )
  6626. with expansion:
  6627. 0x<hex digits> != 0
  6628. Condition.tests.cpp:<line number>: PASSED:
  6629. REQUIRE( cp != 0 )
  6630. with expansion:
  6631. 0x<hex digits> != 0
  6632. Condition.tests.cpp:<line number>: PASSED:
  6633. REQUIRE( cpc != 0 )
  6634. with expansion:
  6635. 0x<hex digits> != 0
  6636. Condition.tests.cpp:<line number>: PASSED:
  6637. REQUIRE( returnsNull() == 0 )
  6638. with expansion:
  6639. {null string} == 0
  6640. Condition.tests.cpp:<line number>: PASSED:
  6641. REQUIRE( returnsConstNull() == 0 )
  6642. with expansion:
  6643. {null string} == 0
  6644. Condition.tests.cpp:<line number>: PASSED:
  6645. REQUIRE( 0 != p )
  6646. with expansion:
  6647. 0 != 0x<hex digits>
  6648. -------------------------------------------------------------------------------
  6649. Precision of floating point stringification can be set
  6650. Floats
  6651. -------------------------------------------------------------------------------
  6652. ToStringGeneral.tests.cpp:<line number>
  6653. ...............................................................................
  6654. ToStringGeneral.tests.cpp:<line number>: PASSED:
  6655. CHECK( str1.size() == 3 + 5 )
  6656. with expansion:
  6657. 8 == 8
  6658. ToStringGeneral.tests.cpp:<line number>: PASSED:
  6659. REQUIRE( str2.size() == 3 + 10 )
  6660. with expansion:
  6661. 13 == 13
  6662. -------------------------------------------------------------------------------
  6663. Precision of floating point stringification can be set
  6664. Double
  6665. -------------------------------------------------------------------------------
  6666. ToStringGeneral.tests.cpp:<line number>
  6667. ...............................................................................
  6668. ToStringGeneral.tests.cpp:<line number>: PASSED:
  6669. CHECK( str1.size() == 2 + 5 )
  6670. with expansion:
  6671. 7 == 7
  6672. ToStringGeneral.tests.cpp:<line number>: PASSED:
  6673. REQUIRE( str2.size() == 2 + 15 )
  6674. with expansion:
  6675. 17 == 17
  6676. -------------------------------------------------------------------------------
  6677. Predicate matcher can accept const char*
  6678. -------------------------------------------------------------------------------
  6679. Matchers.tests.cpp:<line number>
  6680. ...............................................................................
  6681. Matchers.tests.cpp:<line number>: PASSED:
  6682. REQUIRE_THAT( "foo", Predicate<const char*>([] (const char* const&) { return true; }) )
  6683. with expansion:
  6684. "foo" matches undescribed predicate
  6685. -------------------------------------------------------------------------------
  6686. Process can be configured on command line
  6687. empty args don't cause a crash
  6688. -------------------------------------------------------------------------------
  6689. CmdLine.tests.cpp:<line number>
  6690. ...............................................................................
  6691. CmdLine.tests.cpp:<line number>: PASSED:
  6692. CHECK( result )
  6693. with expansion:
  6694. {?}
  6695. CmdLine.tests.cpp:<line number>: PASSED:
  6696. CHECK( config.processName == "" )
  6697. with expansion:
  6698. "" == ""
  6699. -------------------------------------------------------------------------------
  6700. Process can be configured on command line
  6701. default - no arguments
  6702. -------------------------------------------------------------------------------
  6703. CmdLine.tests.cpp:<line number>
  6704. ...............................................................................
  6705. CmdLine.tests.cpp:<line number>: PASSED:
  6706. CHECK( result )
  6707. with expansion:
  6708. {?}
  6709. CmdLine.tests.cpp:<line number>: PASSED:
  6710. CHECK( config.processName == "test" )
  6711. with expansion:
  6712. "test" == "test"
  6713. CmdLine.tests.cpp:<line number>: PASSED:
  6714. CHECK( config.shouldDebugBreak == false )
  6715. with expansion:
  6716. false == false
  6717. CmdLine.tests.cpp:<line number>: PASSED:
  6718. CHECK( config.abortAfter == -1 )
  6719. with expansion:
  6720. -1 == -1
  6721. CmdLine.tests.cpp:<line number>: PASSED:
  6722. CHECK( config.noThrow == false )
  6723. with expansion:
  6724. false == false
  6725. CmdLine.tests.cpp:<line number>: PASSED:
  6726. CHECK( config.reporterName == "console" )
  6727. with expansion:
  6728. "console" == "console"
  6729. CmdLine.tests.cpp:<line number>: PASSED:
  6730. CHECK_FALSE( cfg.hasTestFilters() )
  6731. with expansion:
  6732. !false
  6733. -------------------------------------------------------------------------------
  6734. Process can be configured on command line
  6735. test lists
  6736. Specify one test case using
  6737. -------------------------------------------------------------------------------
  6738. CmdLine.tests.cpp:<line number>
  6739. ...............................................................................
  6740. CmdLine.tests.cpp:<line number>: PASSED:
  6741. CHECK( result )
  6742. with expansion:
  6743. {?}
  6744. CmdLine.tests.cpp:<line number>: PASSED:
  6745. REQUIRE( cfg.hasTestFilters() )
  6746. with expansion:
  6747. true
  6748. CmdLine.tests.cpp:<line number>: PASSED:
  6749. REQUIRE( cfg.testSpec().matches(fakeTestCase("notIncluded")) == false )
  6750. with expansion:
  6751. false == false
  6752. CmdLine.tests.cpp:<line number>: PASSED:
  6753. REQUIRE( cfg.testSpec().matches(fakeTestCase("test1")) )
  6754. with expansion:
  6755. true
  6756. -------------------------------------------------------------------------------
  6757. Process can be configured on command line
  6758. test lists
  6759. Specify one test case exclusion using exclude:
  6760. -------------------------------------------------------------------------------
  6761. CmdLine.tests.cpp:<line number>
  6762. ...............................................................................
  6763. CmdLine.tests.cpp:<line number>: PASSED:
  6764. CHECK( result )
  6765. with expansion:
  6766. {?}
  6767. CmdLine.tests.cpp:<line number>: PASSED:
  6768. REQUIRE( cfg.hasTestFilters() )
  6769. with expansion:
  6770. true
  6771. CmdLine.tests.cpp:<line number>: PASSED:
  6772. REQUIRE( cfg.testSpec().matches(fakeTestCase("test1")) == false )
  6773. with expansion:
  6774. false == false
  6775. CmdLine.tests.cpp:<line number>: PASSED:
  6776. REQUIRE( cfg.testSpec().matches(fakeTestCase("alwaysIncluded")) )
  6777. with expansion:
  6778. true
  6779. -------------------------------------------------------------------------------
  6780. Process can be configured on command line
  6781. test lists
  6782. Specify one test case exclusion using ~
  6783. -------------------------------------------------------------------------------
  6784. CmdLine.tests.cpp:<line number>
  6785. ...............................................................................
  6786. CmdLine.tests.cpp:<line number>: PASSED:
  6787. CHECK( result )
  6788. with expansion:
  6789. {?}
  6790. CmdLine.tests.cpp:<line number>: PASSED:
  6791. REQUIRE( cfg.hasTestFilters() )
  6792. with expansion:
  6793. true
  6794. CmdLine.tests.cpp:<line number>: PASSED:
  6795. REQUIRE( cfg.testSpec().matches(fakeTestCase("test1")) == false )
  6796. with expansion:
  6797. false == false
  6798. CmdLine.tests.cpp:<line number>: PASSED:
  6799. REQUIRE( cfg.testSpec().matches(fakeTestCase("alwaysIncluded")) )
  6800. with expansion:
  6801. true
  6802. -------------------------------------------------------------------------------
  6803. Process can be configured on command line
  6804. reporter
  6805. -r/console
  6806. -------------------------------------------------------------------------------
  6807. CmdLine.tests.cpp:<line number>
  6808. ...............................................................................
  6809. CmdLine.tests.cpp:<line number>: PASSED:
  6810. CHECK( cli.parse({"test", "-r", "console"}) )
  6811. with expansion:
  6812. {?}
  6813. CmdLine.tests.cpp:<line number>: PASSED:
  6814. REQUIRE( config.reporterName == "console" )
  6815. with expansion:
  6816. "console" == "console"
  6817. -------------------------------------------------------------------------------
  6818. Process can be configured on command line
  6819. reporter
  6820. -r/xml
  6821. -------------------------------------------------------------------------------
  6822. CmdLine.tests.cpp:<line number>
  6823. ...............................................................................
  6824. CmdLine.tests.cpp:<line number>: PASSED:
  6825. CHECK( cli.parse({"test", "-r", "xml"}) )
  6826. with expansion:
  6827. {?}
  6828. CmdLine.tests.cpp:<line number>: PASSED:
  6829. REQUIRE( config.reporterName == "xml" )
  6830. with expansion:
  6831. "xml" == "xml"
  6832. -------------------------------------------------------------------------------
  6833. Process can be configured on command line
  6834. reporter
  6835. --reporter/junit
  6836. -------------------------------------------------------------------------------
  6837. CmdLine.tests.cpp:<line number>
  6838. ...............................................................................
  6839. CmdLine.tests.cpp:<line number>: PASSED:
  6840. CHECK( cli.parse({"test", "--reporter", "junit"}) )
  6841. with expansion:
  6842. {?}
  6843. CmdLine.tests.cpp:<line number>: PASSED:
  6844. REQUIRE( config.reporterName == "junit" )
  6845. with expansion:
  6846. "junit" == "junit"
  6847. -------------------------------------------------------------------------------
  6848. Process can be configured on command line
  6849. reporter
  6850. Only one reporter is accepted
  6851. -------------------------------------------------------------------------------
  6852. CmdLine.tests.cpp:<line number>
  6853. ...............................................................................
  6854. CmdLine.tests.cpp:<line number>: PASSED:
  6855. REQUIRE_FALSE( cli.parse({ "test", "-r", "xml", "-r", "junit" }) )
  6856. with expansion:
  6857. !{?}
  6858. -------------------------------------------------------------------------------
  6859. Process can be configured on command line
  6860. reporter
  6861. must match one of the available ones
  6862. -------------------------------------------------------------------------------
  6863. CmdLine.tests.cpp:<line number>
  6864. ...............................................................................
  6865. CmdLine.tests.cpp:<line number>: PASSED:
  6866. CHECK( !result )
  6867. with expansion:
  6868. true
  6869. CmdLine.tests.cpp:<line number>: PASSED:
  6870. REQUIRE_THAT( result.errorMessage(), Contains("Unrecognized reporter") )
  6871. with expansion:
  6872. "Unrecognized reporter, 'unsupported'. Check available with --list-reporters"
  6873. contains: "Unrecognized reporter"
  6874. -------------------------------------------------------------------------------
  6875. Process can be configured on command line
  6876. debugger
  6877. -b
  6878. -------------------------------------------------------------------------------
  6879. CmdLine.tests.cpp:<line number>
  6880. ...............................................................................
  6881. CmdLine.tests.cpp:<line number>: PASSED:
  6882. CHECK( cli.parse({"test", "-b"}) )
  6883. with expansion:
  6884. {?}
  6885. CmdLine.tests.cpp:<line number>: PASSED:
  6886. REQUIRE( config.shouldDebugBreak == true )
  6887. with expansion:
  6888. true == true
  6889. -------------------------------------------------------------------------------
  6890. Process can be configured on command line
  6891. debugger
  6892. --break
  6893. -------------------------------------------------------------------------------
  6894. CmdLine.tests.cpp:<line number>
  6895. ...............................................................................
  6896. CmdLine.tests.cpp:<line number>: PASSED:
  6897. CHECK( cli.parse({"test", "--break"}) )
  6898. with expansion:
  6899. {?}
  6900. CmdLine.tests.cpp:<line number>: PASSED:
  6901. REQUIRE( config.shouldDebugBreak )
  6902. with expansion:
  6903. true
  6904. -------------------------------------------------------------------------------
  6905. Process can be configured on command line
  6906. abort
  6907. -a aborts after first failure
  6908. -------------------------------------------------------------------------------
  6909. CmdLine.tests.cpp:<line number>
  6910. ...............................................................................
  6911. CmdLine.tests.cpp:<line number>: PASSED:
  6912. CHECK( cli.parse({"test", "-a"}) )
  6913. with expansion:
  6914. {?}
  6915. CmdLine.tests.cpp:<line number>: PASSED:
  6916. REQUIRE( config.abortAfter == 1 )
  6917. with expansion:
  6918. 1 == 1
  6919. -------------------------------------------------------------------------------
  6920. Process can be configured on command line
  6921. abort
  6922. -x 2 aborts after two failures
  6923. -------------------------------------------------------------------------------
  6924. CmdLine.tests.cpp:<line number>
  6925. ...............................................................................
  6926. CmdLine.tests.cpp:<line number>: PASSED:
  6927. CHECK( cli.parse({"test", "-x", "2"}) )
  6928. with expansion:
  6929. {?}
  6930. CmdLine.tests.cpp:<line number>: PASSED:
  6931. REQUIRE( config.abortAfter == 2 )
  6932. with expansion:
  6933. 2 == 2
  6934. -------------------------------------------------------------------------------
  6935. Process can be configured on command line
  6936. abort
  6937. -x must be numeric
  6938. -------------------------------------------------------------------------------
  6939. CmdLine.tests.cpp:<line number>
  6940. ...............................................................................
  6941. CmdLine.tests.cpp:<line number>: PASSED:
  6942. CHECK( !result )
  6943. with expansion:
  6944. true
  6945. CmdLine.tests.cpp:<line number>: PASSED:
  6946. REQUIRE_THAT( result.errorMessage(), Contains("convert") && Contains("oops") )
  6947. with expansion:
  6948. "Unable to convert 'oops' to destination type" ( contains: "convert" and
  6949. contains: "oops" )
  6950. -------------------------------------------------------------------------------
  6951. Process can be configured on command line
  6952. abort
  6953. wait-for-keypress
  6954. Accepted options
  6955. -------------------------------------------------------------------------------
  6956. CmdLine.tests.cpp:<line number>
  6957. ...............................................................................
  6958. CmdLine.tests.cpp:<line number>: PASSED:
  6959. CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
  6960. with expansion:
  6961. {?}
  6962. CmdLine.tests.cpp:<line number>: PASSED:
  6963. REQUIRE( config.waitForKeypress == std::get<1>(input) )
  6964. with expansion:
  6965. 0 == 0
  6966. -------------------------------------------------------------------------------
  6967. Process can be configured on command line
  6968. abort
  6969. wait-for-keypress
  6970. Accepted options
  6971. -------------------------------------------------------------------------------
  6972. CmdLine.tests.cpp:<line number>
  6973. ...............................................................................
  6974. CmdLine.tests.cpp:<line number>: PASSED:
  6975. CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
  6976. with expansion:
  6977. {?}
  6978. CmdLine.tests.cpp:<line number>: PASSED:
  6979. REQUIRE( config.waitForKeypress == std::get<1>(input) )
  6980. with expansion:
  6981. 1 == 1
  6982. -------------------------------------------------------------------------------
  6983. Process can be configured on command line
  6984. abort
  6985. wait-for-keypress
  6986. Accepted options
  6987. -------------------------------------------------------------------------------
  6988. CmdLine.tests.cpp:<line number>
  6989. ...............................................................................
  6990. CmdLine.tests.cpp:<line number>: PASSED:
  6991. CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
  6992. with expansion:
  6993. {?}
  6994. CmdLine.tests.cpp:<line number>: PASSED:
  6995. REQUIRE( config.waitForKeypress == std::get<1>(input) )
  6996. with expansion:
  6997. 2 == 2
  6998. -------------------------------------------------------------------------------
  6999. Process can be configured on command line
  7000. abort
  7001. wait-for-keypress
  7002. Accepted options
  7003. -------------------------------------------------------------------------------
  7004. CmdLine.tests.cpp:<line number>
  7005. ...............................................................................
  7006. CmdLine.tests.cpp:<line number>: PASSED:
  7007. CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
  7008. with expansion:
  7009. {?}
  7010. CmdLine.tests.cpp:<line number>: PASSED:
  7011. REQUIRE( config.waitForKeypress == std::get<1>(input) )
  7012. with expansion:
  7013. 3 == 3
  7014. -------------------------------------------------------------------------------
  7015. Process can be configured on command line
  7016. abort
  7017. wait-for-keypress
  7018. invalid options are reported
  7019. -------------------------------------------------------------------------------
  7020. CmdLine.tests.cpp:<line number>
  7021. ...............................................................................
  7022. CmdLine.tests.cpp:<line number>: PASSED:
  7023. CHECK( !result )
  7024. with expansion:
  7025. true
  7026. CmdLine.tests.cpp:<line number>: PASSED:
  7027. REQUIRE_THAT( result.errorMessage(), Contains("never") && Contains("both") )
  7028. with expansion:
  7029. "keypress argument must be one of: never, start, exit or both. 'sometimes'
  7030. not recognised" ( contains: "never" and contains: "both" )
  7031. -------------------------------------------------------------------------------
  7032. Process can be configured on command line
  7033. nothrow
  7034. -e
  7035. -------------------------------------------------------------------------------
  7036. CmdLine.tests.cpp:<line number>
  7037. ...............................................................................
  7038. CmdLine.tests.cpp:<line number>: PASSED:
  7039. CHECK( cli.parse({"test", "-e"}) )
  7040. with expansion:
  7041. {?}
  7042. CmdLine.tests.cpp:<line number>: PASSED:
  7043. REQUIRE( config.noThrow )
  7044. with expansion:
  7045. true
  7046. -------------------------------------------------------------------------------
  7047. Process can be configured on command line
  7048. nothrow
  7049. --nothrow
  7050. -------------------------------------------------------------------------------
  7051. CmdLine.tests.cpp:<line number>
  7052. ...............................................................................
  7053. CmdLine.tests.cpp:<line number>: PASSED:
  7054. CHECK( cli.parse({"test", "--nothrow"}) )
  7055. with expansion:
  7056. {?}
  7057. CmdLine.tests.cpp:<line number>: PASSED:
  7058. REQUIRE( config.noThrow )
  7059. with expansion:
  7060. true
  7061. -------------------------------------------------------------------------------
  7062. Process can be configured on command line
  7063. output filename
  7064. -o filename
  7065. -------------------------------------------------------------------------------
  7066. CmdLine.tests.cpp:<line number>
  7067. ...............................................................................
  7068. CmdLine.tests.cpp:<line number>: PASSED:
  7069. CHECK( cli.parse({"test", "-o", "filename.ext"}) )
  7070. with expansion:
  7071. {?}
  7072. CmdLine.tests.cpp:<line number>: PASSED:
  7073. REQUIRE( config.outputFilename == "filename.ext" )
  7074. with expansion:
  7075. "filename.ext" == "filename.ext"
  7076. -------------------------------------------------------------------------------
  7077. Process can be configured on command line
  7078. output filename
  7079. --out
  7080. -------------------------------------------------------------------------------
  7081. CmdLine.tests.cpp:<line number>
  7082. ...............................................................................
  7083. CmdLine.tests.cpp:<line number>: PASSED:
  7084. CHECK( cli.parse({"test", "--out", "filename.ext"}) )
  7085. with expansion:
  7086. {?}
  7087. CmdLine.tests.cpp:<line number>: PASSED:
  7088. REQUIRE( config.outputFilename == "filename.ext" )
  7089. with expansion:
  7090. "filename.ext" == "filename.ext"
  7091. -------------------------------------------------------------------------------
  7092. Process can be configured on command line
  7093. combinations
  7094. Single character flags can be combined
  7095. -------------------------------------------------------------------------------
  7096. CmdLine.tests.cpp:<line number>
  7097. ...............................................................................
  7098. CmdLine.tests.cpp:<line number>: PASSED:
  7099. CHECK( cli.parse({"test", "-abe"}) )
  7100. with expansion:
  7101. {?}
  7102. CmdLine.tests.cpp:<line number>: PASSED:
  7103. CHECK( config.abortAfter == 1 )
  7104. with expansion:
  7105. 1 == 1
  7106. CmdLine.tests.cpp:<line number>: PASSED:
  7107. CHECK( config.shouldDebugBreak )
  7108. with expansion:
  7109. true
  7110. CmdLine.tests.cpp:<line number>: PASSED:
  7111. CHECK( config.noThrow == true )
  7112. with expansion:
  7113. true == true
  7114. -------------------------------------------------------------------------------
  7115. Process can be configured on command line
  7116. use-colour
  7117. without option
  7118. -------------------------------------------------------------------------------
  7119. CmdLine.tests.cpp:<line number>
  7120. ...............................................................................
  7121. CmdLine.tests.cpp:<line number>: PASSED:
  7122. CHECK( cli.parse({"test"}) )
  7123. with expansion:
  7124. {?}
  7125. CmdLine.tests.cpp:<line number>: PASSED:
  7126. REQUIRE( config.useColour == UseColour::Auto )
  7127. with expansion:
  7128. 0 == 0
  7129. -------------------------------------------------------------------------------
  7130. Process can be configured on command line
  7131. use-colour
  7132. auto
  7133. -------------------------------------------------------------------------------
  7134. CmdLine.tests.cpp:<line number>
  7135. ...............................................................................
  7136. CmdLine.tests.cpp:<line number>: PASSED:
  7137. CHECK( cli.parse({"test", "--use-colour", "auto"}) )
  7138. with expansion:
  7139. {?}
  7140. CmdLine.tests.cpp:<line number>: PASSED:
  7141. REQUIRE( config.useColour == UseColour::Auto )
  7142. with expansion:
  7143. 0 == 0
  7144. -------------------------------------------------------------------------------
  7145. Process can be configured on command line
  7146. use-colour
  7147. yes
  7148. -------------------------------------------------------------------------------
  7149. CmdLine.tests.cpp:<line number>
  7150. ...............................................................................
  7151. CmdLine.tests.cpp:<line number>: PASSED:
  7152. CHECK( cli.parse({"test", "--use-colour", "yes"}) )
  7153. with expansion:
  7154. {?}
  7155. CmdLine.tests.cpp:<line number>: PASSED:
  7156. REQUIRE( config.useColour == UseColour::Yes )
  7157. with expansion:
  7158. 1 == 1
  7159. -------------------------------------------------------------------------------
  7160. Process can be configured on command line
  7161. use-colour
  7162. no
  7163. -------------------------------------------------------------------------------
  7164. CmdLine.tests.cpp:<line number>
  7165. ...............................................................................
  7166. CmdLine.tests.cpp:<line number>: PASSED:
  7167. CHECK( cli.parse({"test", "--use-colour", "no"}) )
  7168. with expansion:
  7169. {?}
  7170. CmdLine.tests.cpp:<line number>: PASSED:
  7171. REQUIRE( config.useColour == UseColour::No )
  7172. with expansion:
  7173. 2 == 2
  7174. -------------------------------------------------------------------------------
  7175. Process can be configured on command line
  7176. use-colour
  7177. error
  7178. -------------------------------------------------------------------------------
  7179. CmdLine.tests.cpp:<line number>
  7180. ...............................................................................
  7181. CmdLine.tests.cpp:<line number>: PASSED:
  7182. CHECK( !result )
  7183. with expansion:
  7184. true
  7185. CmdLine.tests.cpp:<line number>: PASSED:
  7186. CHECK_THAT( result.errorMessage(), Contains( "colour mode must be one of" ) )
  7187. with expansion:
  7188. "colour mode must be one of: auto, yes or no. 'wrong' not recognised"
  7189. contains: "colour mode must be one of"
  7190. -------------------------------------------------------------------------------
  7191. Process can be configured on command line
  7192. Benchmark options
  7193. samples
  7194. -------------------------------------------------------------------------------
  7195. CmdLine.tests.cpp:<line number>
  7196. ...............................................................................
  7197. CmdLine.tests.cpp:<line number>: PASSED:
  7198. CHECK( cli.parse({ "test", "--benchmark-samples=200" }) )
  7199. with expansion:
  7200. {?}
  7201. CmdLine.tests.cpp:<line number>: PASSED:
  7202. REQUIRE( config.benchmarkSamples == 200 )
  7203. with expansion:
  7204. 200 == 200
  7205. -------------------------------------------------------------------------------
  7206. Process can be configured on command line
  7207. Benchmark options
  7208. resamples
  7209. -------------------------------------------------------------------------------
  7210. CmdLine.tests.cpp:<line number>
  7211. ...............................................................................
  7212. CmdLine.tests.cpp:<line number>: PASSED:
  7213. CHECK( cli.parse({ "test", "--benchmark-resamples=20000" }) )
  7214. with expansion:
  7215. {?}
  7216. CmdLine.tests.cpp:<line number>: PASSED:
  7217. REQUIRE( config.benchmarkResamples == 20000 )
  7218. with expansion:
  7219. 20000 (0x<hex digits>) == 20000 (0x<hex digits>)
  7220. -------------------------------------------------------------------------------
  7221. Process can be configured on command line
  7222. Benchmark options
  7223. confidence-interval
  7224. -------------------------------------------------------------------------------
  7225. CmdLine.tests.cpp:<line number>
  7226. ...............................................................................
  7227. CmdLine.tests.cpp:<line number>: PASSED:
  7228. CHECK( cli.parse({ "test", "--benchmark-confidence-interval=0.99" }) )
  7229. with expansion:
  7230. {?}
  7231. CmdLine.tests.cpp:<line number>: PASSED:
  7232. REQUIRE( config.benchmarkConfidenceInterval == Catch::Detail::Approx(0.99) )
  7233. with expansion:
  7234. 0.99 == Approx( 0.99 )
  7235. -------------------------------------------------------------------------------
  7236. Process can be configured on command line
  7237. Benchmark options
  7238. no-analysis
  7239. -------------------------------------------------------------------------------
  7240. CmdLine.tests.cpp:<line number>
  7241. ...............................................................................
  7242. CmdLine.tests.cpp:<line number>: PASSED:
  7243. CHECK( cli.parse({ "test", "--benchmark-no-analysis" }) )
  7244. with expansion:
  7245. {?}
  7246. CmdLine.tests.cpp:<line number>: PASSED:
  7247. REQUIRE( config.benchmarkNoAnalysis )
  7248. with expansion:
  7249. true
  7250. -------------------------------------------------------------------------------
  7251. Process can be configured on command line
  7252. Benchmark options
  7253. warmup-time
  7254. -------------------------------------------------------------------------------
  7255. CmdLine.tests.cpp:<line number>
  7256. ...............................................................................
  7257. CmdLine.tests.cpp:<line number>: PASSED:
  7258. CHECK( cli.parse({ "test", "--benchmark-warmup-time=10" }) )
  7259. with expansion:
  7260. {?}
  7261. CmdLine.tests.cpp:<line number>: PASSED:
  7262. REQUIRE( config.benchmarkWarmupTime == 10 )
  7263. with expansion:
  7264. 10 == 10
  7265. -------------------------------------------------------------------------------
  7266. Product with differing arities - std::tuple<int, double, float>
  7267. -------------------------------------------------------------------------------
  7268. Misc.tests.cpp:<line number>
  7269. ...............................................................................
  7270. Misc.tests.cpp:<line number>: PASSED:
  7271. REQUIRE( std::tuple_size<TestType>::value >= 1 )
  7272. with expansion:
  7273. 3 >= 1
  7274. -------------------------------------------------------------------------------
  7275. Product with differing arities - std::tuple<int, double>
  7276. -------------------------------------------------------------------------------
  7277. Misc.tests.cpp:<line number>
  7278. ...............................................................................
  7279. Misc.tests.cpp:<line number>: PASSED:
  7280. REQUIRE( std::tuple_size<TestType>::value >= 1 )
  7281. with expansion:
  7282. 2 >= 1
  7283. -------------------------------------------------------------------------------
  7284. Product with differing arities - std::tuple<int>
  7285. -------------------------------------------------------------------------------
  7286. Misc.tests.cpp:<line number>
  7287. ...............................................................................
  7288. Misc.tests.cpp:<line number>: PASSED:
  7289. REQUIRE( std::tuple_size<TestType>::value >= 1 )
  7290. with expansion:
  7291. 1 >= 1
  7292. -------------------------------------------------------------------------------
  7293. Range type with sentinel
  7294. -------------------------------------------------------------------------------
  7295. ToString.tests.cpp:<line number>
  7296. ...............................................................................
  7297. ToString.tests.cpp:<line number>: PASSED:
  7298. CHECK( Catch::Detail::stringify(UsesSentinel{}) == "{ }" )
  7299. with expansion:
  7300. "{ }" == "{ }"
  7301. -------------------------------------------------------------------------------
  7302. Reconstruction should be based on stringification: #914
  7303. -------------------------------------------------------------------------------
  7304. Decomposition.tests.cpp:<line number>
  7305. ...............................................................................
  7306. Decomposition.tests.cpp:<line number>: FAILED:
  7307. CHECK( truthy(false) )
  7308. with expansion:
  7309. Hey, its truthy!
  7310. -------------------------------------------------------------------------------
  7311. Regex string matcher
  7312. -------------------------------------------------------------------------------
  7313. Matchers.tests.cpp:<line number>
  7314. ...............................................................................
  7315. Matchers.tests.cpp:<line number>: FAILED:
  7316. CHECK_THAT( testStringForMatching(), Matches("this STRING contains 'abc' as a substring") )
  7317. with expansion:
  7318. "this string contains 'abc' as a substring" matches "this STRING contains
  7319. 'abc' as a substring" case sensitively
  7320. Matchers.tests.cpp:<line number>: FAILED:
  7321. CHECK_THAT( testStringForMatching(), Matches("contains 'abc' as a substring") )
  7322. with expansion:
  7323. "this string contains 'abc' as a substring" matches "contains 'abc' as a
  7324. substring" case sensitively
  7325. Matchers.tests.cpp:<line number>: FAILED:
  7326. CHECK_THAT( testStringForMatching(), Matches("this string contains 'abc' as a") )
  7327. with expansion:
  7328. "this string contains 'abc' as a substring" matches "this string contains
  7329. 'abc' as a" case sensitively
  7330. -------------------------------------------------------------------------------
  7331. Regression test #1
  7332. -------------------------------------------------------------------------------
  7333. Matchers.tests.cpp:<line number>
  7334. ...............................................................................
  7335. Matchers.tests.cpp:<line number>: PASSED:
  7336. CHECK_THAT( actual, !UnorderedEquals(expected) )
  7337. with expansion:
  7338. { 'a', 'b' } not UnorderedEquals: { 'c', 'b' }
  7339. -------------------------------------------------------------------------------
  7340. SUCCEED counts as a test pass
  7341. -------------------------------------------------------------------------------
  7342. Message.tests.cpp:<line number>
  7343. ...............................................................................
  7344. Message.tests.cpp:<line number>: PASSED:
  7345. with message:
  7346. this is a success
  7347. -------------------------------------------------------------------------------
  7348. SUCCEED does not require an argument
  7349. -------------------------------------------------------------------------------
  7350. Message.tests.cpp:<line number>
  7351. ...............................................................................
  7352. Message.tests.cpp:<line number>: PASSED:
  7353. -------------------------------------------------------------------------------
  7354. Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or
  7355. methods
  7356. Given: No operations precede me
  7357. -------------------------------------------------------------------------------
  7358. BDD.tests.cpp:<line number>
  7359. ...............................................................................
  7360. BDD.tests.cpp:<line number>: PASSED:
  7361. REQUIRE( before == 0 )
  7362. with expansion:
  7363. 0 == 0
  7364. -------------------------------------------------------------------------------
  7365. Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or
  7366. methods
  7367. Given: No operations precede me
  7368. When: We get the count
  7369. Then: Subsequently values are higher
  7370. -------------------------------------------------------------------------------
  7371. BDD.tests.cpp:<line number>
  7372. ...............................................................................
  7373. BDD.tests.cpp:<line number>: PASSED:
  7374. REQUIRE( after > before )
  7375. with expansion:
  7376. 1 > 0
  7377. -------------------------------------------------------------------------------
  7378. Scenario: Do that thing with the thing
  7379. Given: This stuff exists
  7380. And given: And some assumption
  7381. When: I do this
  7382. Then: it should do this
  7383. -------------------------------------------------------------------------------
  7384. BDD.tests.cpp:<line number>
  7385. ...............................................................................
  7386. BDD.tests.cpp:<line number>: PASSED:
  7387. REQUIRE( itDoesThis() )
  7388. with expansion:
  7389. true
  7390. -------------------------------------------------------------------------------
  7391. Scenario: Do that thing with the thing
  7392. Given: This stuff exists
  7393. And given: And some assumption
  7394. When: I do this
  7395. Then: it should do this
  7396. And: do that
  7397. -------------------------------------------------------------------------------
  7398. BDD.tests.cpp:<line number>
  7399. ...............................................................................
  7400. BDD.tests.cpp:<line number>: PASSED:
  7401. REQUIRE( itDoesThat() )
  7402. with expansion:
  7403. true
  7404. -------------------------------------------------------------------------------
  7405. Scenario: This is a really long scenario name to see how the list command deals
  7406. with wrapping
  7407. Given: A section name that is so long that it cannot fit in a single
  7408. console width
  7409. When: The test headers are printed as part of the normal running of the
  7410. scenario
  7411. Then: The, deliberately very long and overly verbose (you see what I did
  7412. there?) section names must wrap, along with an indent
  7413. -------------------------------------------------------------------------------
  7414. BDD.tests.cpp:<line number>
  7415. ...............................................................................
  7416. BDD.tests.cpp:<line number>: PASSED:
  7417. with message:
  7418. boo!
  7419. -------------------------------------------------------------------------------
  7420. Scenario: Vector resizing affects size and capacity
  7421. Given: an empty vector
  7422. -------------------------------------------------------------------------------
  7423. BDD.tests.cpp:<line number>
  7424. ...............................................................................
  7425. BDD.tests.cpp:<line number>: PASSED:
  7426. REQUIRE( v.size() == 0 )
  7427. with expansion:
  7428. 0 == 0
  7429. -------------------------------------------------------------------------------
  7430. Scenario: Vector resizing affects size and capacity
  7431. Given: an empty vector
  7432. When: it is made larger
  7433. Then: the size and capacity go up
  7434. -------------------------------------------------------------------------------
  7435. BDD.tests.cpp:<line number>
  7436. ...............................................................................
  7437. BDD.tests.cpp:<line number>: PASSED:
  7438. REQUIRE( v.size() == 10 )
  7439. with expansion:
  7440. 10 == 10
  7441. BDD.tests.cpp:<line number>: PASSED:
  7442. REQUIRE( v.capacity() >= 10 )
  7443. with expansion:
  7444. 10 >= 10
  7445. -------------------------------------------------------------------------------
  7446. Scenario: Vector resizing affects size and capacity
  7447. Given: an empty vector
  7448. When: it is made larger
  7449. Then: the size and capacity go up
  7450. And when: it is made smaller again
  7451. Then: the size goes down but the capacity stays the same
  7452. -------------------------------------------------------------------------------
  7453. BDD.tests.cpp:<line number>
  7454. ...............................................................................
  7455. BDD.tests.cpp:<line number>: PASSED:
  7456. REQUIRE( v.size() == 5 )
  7457. with expansion:
  7458. 5 == 5
  7459. BDD.tests.cpp:<line number>: PASSED:
  7460. REQUIRE( v.capacity() >= 10 )
  7461. with expansion:
  7462. 10 >= 10
  7463. -------------------------------------------------------------------------------
  7464. Scenario: Vector resizing affects size and capacity
  7465. Given: an empty vector
  7466. -------------------------------------------------------------------------------
  7467. BDD.tests.cpp:<line number>
  7468. ...............................................................................
  7469. BDD.tests.cpp:<line number>: PASSED:
  7470. REQUIRE( v.size() == 0 )
  7471. with expansion:
  7472. 0 == 0
  7473. -------------------------------------------------------------------------------
  7474. Scenario: Vector resizing affects size and capacity
  7475. Given: an empty vector
  7476. When: we reserve more space
  7477. Then: The capacity is increased but the size remains the same
  7478. -------------------------------------------------------------------------------
  7479. BDD.tests.cpp:<line number>
  7480. ...............................................................................
  7481. BDD.tests.cpp:<line number>: PASSED:
  7482. REQUIRE( v.capacity() >= 10 )
  7483. with expansion:
  7484. 10 >= 10
  7485. BDD.tests.cpp:<line number>: PASSED:
  7486. REQUIRE( v.size() == 0 )
  7487. with expansion:
  7488. 0 == 0
  7489. A string sent directly to stdout
  7490. A string sent directly to stderr
  7491. A string sent to stderr via clog
  7492. -------------------------------------------------------------------------------
  7493. Sends stuff to stdout and stderr
  7494. -------------------------------------------------------------------------------
  7495. Misc.tests.cpp:<line number>
  7496. ...............................................................................
  7497. No assertions in test case 'Sends stuff to stdout and stderr'
  7498. -------------------------------------------------------------------------------
  7499. Some simple comparisons between doubles
  7500. -------------------------------------------------------------------------------
  7501. Approx.tests.cpp:<line number>
  7502. ...............................................................................
  7503. Approx.tests.cpp:<line number>: PASSED:
  7504. REQUIRE( d == Approx( 1.23 ) )
  7505. with expansion:
  7506. 1.23 == Approx( 1.23 )
  7507. Approx.tests.cpp:<line number>: PASSED:
  7508. REQUIRE( d != Approx( 1.22 ) )
  7509. with expansion:
  7510. 1.23 != Approx( 1.22 )
  7511. Approx.tests.cpp:<line number>: PASSED:
  7512. REQUIRE( d != Approx( 1.24 ) )
  7513. with expansion:
  7514. 1.23 != Approx( 1.24 )
  7515. Approx.tests.cpp:<line number>: PASSED:
  7516. REQUIRE( d == 1.23_a )
  7517. with expansion:
  7518. 1.23 == Approx( 1.23 )
  7519. Approx.tests.cpp:<line number>: PASSED:
  7520. REQUIRE( d != 1.22_a )
  7521. with expansion:
  7522. 1.23 != Approx( 1.22 )
  7523. Approx.tests.cpp:<line number>: PASSED:
  7524. REQUIRE( Approx( d ) == 1.23 )
  7525. with expansion:
  7526. Approx( 1.23 ) == 1.23
  7527. Approx.tests.cpp:<line number>: PASSED:
  7528. REQUIRE( Approx( d ) != 1.22 )
  7529. with expansion:
  7530. Approx( 1.23 ) != 1.22
  7531. Approx.tests.cpp:<line number>: PASSED:
  7532. REQUIRE( Approx( d ) != 1.24 )
  7533. with expansion:
  7534. Approx( 1.23 ) != 1.24
  7535. Message from section one
  7536. -------------------------------------------------------------------------------
  7537. Standard output from all sections is reported
  7538. one
  7539. -------------------------------------------------------------------------------
  7540. Message.tests.cpp:<line number>
  7541. ...............................................................................
  7542. No assertions in section 'one'
  7543. Message from section two
  7544. -------------------------------------------------------------------------------
  7545. Standard output from all sections is reported
  7546. two
  7547. -------------------------------------------------------------------------------
  7548. Message.tests.cpp:<line number>
  7549. ...............................................................................
  7550. No assertions in section 'two'
  7551. -------------------------------------------------------------------------------
  7552. StartsWith string matcher
  7553. -------------------------------------------------------------------------------
  7554. Matchers.tests.cpp:<line number>
  7555. ...............................................................................
  7556. Matchers.tests.cpp:<line number>: FAILED:
  7557. CHECK_THAT( testStringForMatching(), StartsWith("This String") )
  7558. with expansion:
  7559. "this string contains 'abc' as a substring" starts with: "This String"
  7560. Matchers.tests.cpp:<line number>: FAILED:
  7561. CHECK_THAT( testStringForMatching(), StartsWith("string", Catch::CaseSensitive::No) )
  7562. with expansion:
  7563. "this string contains 'abc' as a substring" starts with: "string" (case
  7564. insensitive)
  7565. -------------------------------------------------------------------------------
  7566. Static arrays are convertible to string
  7567. Single item
  7568. -------------------------------------------------------------------------------
  7569. ToStringGeneral.tests.cpp:<line number>
  7570. ...............................................................................
  7571. ToStringGeneral.tests.cpp:<line number>: PASSED:
  7572. REQUIRE( Catch::Detail::stringify(singular) == "{ 1 }" )
  7573. with expansion:
  7574. "{ 1 }" == "{ 1 }"
  7575. -------------------------------------------------------------------------------
  7576. Static arrays are convertible to string
  7577. Multiple
  7578. -------------------------------------------------------------------------------
  7579. ToStringGeneral.tests.cpp:<line number>
  7580. ...............................................................................
  7581. ToStringGeneral.tests.cpp:<line number>: PASSED:
  7582. REQUIRE( Catch::Detail::stringify(arr) == "{ 3, 2, 1 }" )
  7583. with expansion:
  7584. "{ 3, 2, 1 }" == "{ 3, 2, 1 }"
  7585. -------------------------------------------------------------------------------
  7586. Static arrays are convertible to string
  7587. Non-trivial inner items
  7588. -------------------------------------------------------------------------------
  7589. ToStringGeneral.tests.cpp:<line number>
  7590. ...............................................................................
  7591. ToStringGeneral.tests.cpp:<line number>: PASSED:
  7592. REQUIRE( Catch::Detail::stringify(arr) == R"({ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } })" )
  7593. with expansion:
  7594. "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
  7595. ==
  7596. "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
  7597. -------------------------------------------------------------------------------
  7598. String matchers
  7599. -------------------------------------------------------------------------------
  7600. Matchers.tests.cpp:<line number>
  7601. ...............................................................................
  7602. Matchers.tests.cpp:<line number>: PASSED:
  7603. REQUIRE_THAT( testStringForMatching(), Contains("string") )
  7604. with expansion:
  7605. "this string contains 'abc' as a substring" contains: "string"
  7606. Matchers.tests.cpp:<line number>: PASSED:
  7607. REQUIRE_THAT( testStringForMatching(), Contains("string", Catch::CaseSensitive::No) )
  7608. with expansion:
  7609. "this string contains 'abc' as a substring" contains: "string" (case
  7610. insensitive)
  7611. Matchers.tests.cpp:<line number>: PASSED:
  7612. CHECK_THAT( testStringForMatching(), Contains("abc") )
  7613. with expansion:
  7614. "this string contains 'abc' as a substring" contains: "abc"
  7615. Matchers.tests.cpp:<line number>: PASSED:
  7616. CHECK_THAT( testStringForMatching(), Contains("aBC", Catch::CaseSensitive::No) )
  7617. with expansion:
  7618. "this string contains 'abc' as a substring" contains: "abc" (case
  7619. insensitive)
  7620. Matchers.tests.cpp:<line number>: PASSED:
  7621. CHECK_THAT( testStringForMatching(), StartsWith("this") )
  7622. with expansion:
  7623. "this string contains 'abc' as a substring" starts with: "this"
  7624. Matchers.tests.cpp:<line number>: PASSED:
  7625. CHECK_THAT( testStringForMatching(), StartsWith("THIS", Catch::CaseSensitive::No) )
  7626. with expansion:
  7627. "this string contains 'abc' as a substring" starts with: "this" (case
  7628. insensitive)
  7629. Matchers.tests.cpp:<line number>: PASSED:
  7630. CHECK_THAT( testStringForMatching(), EndsWith("substring") )
  7631. with expansion:
  7632. "this string contains 'abc' as a substring" ends with: "substring"
  7633. Matchers.tests.cpp:<line number>: PASSED:
  7634. CHECK_THAT( testStringForMatching(), EndsWith(" SuBsTrInG", Catch::CaseSensitive::No) )
  7635. with expansion:
  7636. "this string contains 'abc' as a substring" ends with: " substring" (case
  7637. insensitive)
  7638. -------------------------------------------------------------------------------
  7639. StringRef
  7640. Empty string
  7641. -------------------------------------------------------------------------------
  7642. String.tests.cpp:<line number>
  7643. ...............................................................................
  7644. String.tests.cpp:<line number>: PASSED:
  7645. REQUIRE( empty.empty() )
  7646. with expansion:
  7647. true
  7648. String.tests.cpp:<line number>: PASSED:
  7649. REQUIRE( empty.size() == 0 )
  7650. with expansion:
  7651. 0 == 0
  7652. String.tests.cpp:<line number>: PASSED:
  7653. REQUIRE( empty.isNullTerminated() )
  7654. with expansion:
  7655. true
  7656. String.tests.cpp:<line number>: PASSED:
  7657. REQUIRE( std::strcmp( empty.c_str(), "" ) == 0 )
  7658. with expansion:
  7659. 0 == 0
  7660. -------------------------------------------------------------------------------
  7661. StringRef
  7662. From string literal
  7663. -------------------------------------------------------------------------------
  7664. String.tests.cpp:<line number>
  7665. ...............................................................................
  7666. String.tests.cpp:<line number>: PASSED:
  7667. REQUIRE( s.empty() == false )
  7668. with expansion:
  7669. false == false
  7670. String.tests.cpp:<line number>: PASSED:
  7671. REQUIRE( s.size() == 5 )
  7672. with expansion:
  7673. 5 == 5
  7674. String.tests.cpp:<line number>: PASSED:
  7675. REQUIRE( s.isNullTerminated() )
  7676. with expansion:
  7677. true
  7678. String.tests.cpp:<line number>: PASSED:
  7679. REQUIRE( std::strcmp( rawChars, "hello" ) == 0 )
  7680. with expansion:
  7681. 0 == 0
  7682. String.tests.cpp:<line number>: PASSED:
  7683. REQUIRE_NOTHROW( s.c_str() )
  7684. String.tests.cpp:<line number>: PASSED:
  7685. REQUIRE( s.c_str() == rawChars )
  7686. with expansion:
  7687. "hello" == "hello"
  7688. String.tests.cpp:<line number>: PASSED:
  7689. REQUIRE( s.data() == rawChars )
  7690. with expansion:
  7691. "hello" == "hello"
  7692. -------------------------------------------------------------------------------
  7693. StringRef
  7694. From sub-string
  7695. -------------------------------------------------------------------------------
  7696. String.tests.cpp:<line number>
  7697. ...............................................................................
  7698. String.tests.cpp:<line number>: PASSED:
  7699. REQUIRE( original == "original" )
  7700. String.tests.cpp:<line number>: PASSED:
  7701. REQUIRE_FALSE( original.isNullTerminated() )
  7702. with expansion:
  7703. !false
  7704. String.tests.cpp:<line number>: PASSED:
  7705. REQUIRE_THROWS( original.c_str() )
  7706. String.tests.cpp:<line number>: PASSED:
  7707. REQUIRE_NOTHROW( original.data() )
  7708. -------------------------------------------------------------------------------
  7709. StringRef
  7710. Substrings
  7711. zero-based substring
  7712. -------------------------------------------------------------------------------
  7713. String.tests.cpp:<line number>
  7714. ...............................................................................
  7715. String.tests.cpp:<line number>: PASSED:
  7716. REQUIRE( ss.empty() == false )
  7717. with expansion:
  7718. false == false
  7719. String.tests.cpp:<line number>: PASSED:
  7720. REQUIRE( ss.size() == 5 )
  7721. with expansion:
  7722. 5 == 5
  7723. String.tests.cpp:<line number>: PASSED:
  7724. REQUIRE( std::strncmp( ss.data(), "hello", 5 ) == 0 )
  7725. with expansion:
  7726. 0 == 0
  7727. String.tests.cpp:<line number>: PASSED:
  7728. REQUIRE( ss == "hello" )
  7729. with expansion:
  7730. hello == "hello"
  7731. -------------------------------------------------------------------------------
  7732. StringRef
  7733. Substrings
  7734. non-zero-based substring
  7735. -------------------------------------------------------------------------------
  7736. String.tests.cpp:<line number>
  7737. ...............................................................................
  7738. String.tests.cpp:<line number>: PASSED:
  7739. REQUIRE( ss.size() == 6 )
  7740. with expansion:
  7741. 6 == 6
  7742. String.tests.cpp:<line number>: PASSED:
  7743. REQUIRE( std::strcmp( ss.c_str(), "world!" ) == 0 )
  7744. with expansion:
  7745. 0 == 0
  7746. -------------------------------------------------------------------------------
  7747. StringRef
  7748. Substrings
  7749. Pointer values of full refs should match
  7750. -------------------------------------------------------------------------------
  7751. String.tests.cpp:<line number>
  7752. ...............................................................................
  7753. String.tests.cpp:<line number>: PASSED:
  7754. REQUIRE( s.data() == s2.data() )
  7755. with expansion:
  7756. "hello world!" == "hello world!"
  7757. -------------------------------------------------------------------------------
  7758. StringRef
  7759. Substrings
  7760. Pointer values of substring refs should also match
  7761. -------------------------------------------------------------------------------
  7762. String.tests.cpp:<line number>
  7763. ...............................................................................
  7764. String.tests.cpp:<line number>: PASSED:
  7765. REQUIRE( s.data() == ss.data() )
  7766. with expansion:
  7767. "hello world!" == "hello world!"
  7768. -------------------------------------------------------------------------------
  7769. StringRef
  7770. Substrings
  7771. Past the end substring
  7772. -------------------------------------------------------------------------------
  7773. String.tests.cpp:<line number>
  7774. ...............................................................................
  7775. String.tests.cpp:<line number>: PASSED:
  7776. REQUIRE( s.substr(s.size() + 1, 123).empty() )
  7777. with expansion:
  7778. true
  7779. -------------------------------------------------------------------------------
  7780. StringRef
  7781. Substrings
  7782. Substring off the end are trimmed
  7783. -------------------------------------------------------------------------------
  7784. String.tests.cpp:<line number>
  7785. ...............................................................................
  7786. String.tests.cpp:<line number>: PASSED:
  7787. REQUIRE( std::strcmp(ss.c_str(), "world!") == 0 )
  7788. with expansion:
  7789. 0 == 0
  7790. -------------------------------------------------------------------------------
  7791. StringRef
  7792. Comparisons are deep
  7793. -------------------------------------------------------------------------------
  7794. String.tests.cpp:<line number>
  7795. ...............................................................................
  7796. String.tests.cpp:<line number>: PASSED:
  7797. CHECK( (char*)buffer1 != (char*)buffer2 )
  7798. with expansion:
  7799. "Hello" != "Hello"
  7800. String.tests.cpp:<line number>: PASSED:
  7801. REQUIRE( left == right )
  7802. with expansion:
  7803. Hello == Hello
  7804. String.tests.cpp:<line number>: PASSED:
  7805. REQUIRE( left != left.substr(0, 3) )
  7806. with expansion:
  7807. Hello != Hel
  7808. -------------------------------------------------------------------------------
  7809. StringRef
  7810. from std::string
  7811. implicitly constructed
  7812. -------------------------------------------------------------------------------
  7813. String.tests.cpp:<line number>
  7814. ...............................................................................
  7815. String.tests.cpp:<line number>: PASSED:
  7816. REQUIRE( sr == "a standard string" )
  7817. with expansion:
  7818. a standard string == "a standard string"
  7819. String.tests.cpp:<line number>: PASSED:
  7820. REQUIRE( sr.size() == stdStr.size() )
  7821. with expansion:
  7822. 17 == 17
  7823. -------------------------------------------------------------------------------
  7824. StringRef
  7825. from std::string
  7826. explicitly constructed
  7827. -------------------------------------------------------------------------------
  7828. String.tests.cpp:<line number>
  7829. ...............................................................................
  7830. String.tests.cpp:<line number>: PASSED:
  7831. REQUIRE( sr == "a standard string" )
  7832. with expansion:
  7833. a standard string == "a standard string"
  7834. String.tests.cpp:<line number>: PASSED:
  7835. REQUIRE( sr.size() == stdStr.size() )
  7836. with expansion:
  7837. 17 == 17
  7838. -------------------------------------------------------------------------------
  7839. StringRef
  7840. from std::string
  7841. assigned
  7842. -------------------------------------------------------------------------------
  7843. String.tests.cpp:<line number>
  7844. ...............................................................................
  7845. String.tests.cpp:<line number>: PASSED:
  7846. REQUIRE( sr == "a standard string" )
  7847. with expansion:
  7848. a standard string == "a standard string"
  7849. String.tests.cpp:<line number>: PASSED:
  7850. REQUIRE( sr.size() == stdStr.size() )
  7851. with expansion:
  7852. 17 == 17
  7853. -------------------------------------------------------------------------------
  7854. StringRef
  7855. to std::string
  7856. explicitly constructed
  7857. -------------------------------------------------------------------------------
  7858. String.tests.cpp:<line number>
  7859. ...............................................................................
  7860. String.tests.cpp:<line number>: PASSED:
  7861. REQUIRE( stdStr == "a stringref" )
  7862. with expansion:
  7863. "a stringref" == "a stringref"
  7864. String.tests.cpp:<line number>: PASSED:
  7865. REQUIRE( stdStr.size() == sr.size() )
  7866. with expansion:
  7867. 11 == 11
  7868. -------------------------------------------------------------------------------
  7869. StringRef
  7870. to std::string
  7871. assigned
  7872. -------------------------------------------------------------------------------
  7873. String.tests.cpp:<line number>
  7874. ...............................................................................
  7875. String.tests.cpp:<line number>: PASSED:
  7876. REQUIRE( stdStr == "a stringref" )
  7877. with expansion:
  7878. "a stringref" == "a stringref"
  7879. String.tests.cpp:<line number>: PASSED:
  7880. REQUIRE( stdStr.size() == sr.size() )
  7881. with expansion:
  7882. 11 == 11
  7883. -------------------------------------------------------------------------------
  7884. StringRef at compilation time
  7885. Simple constructors
  7886. -------------------------------------------------------------------------------
  7887. String.tests.cpp:<line number>
  7888. ...............................................................................
  7889. String.tests.cpp:<line number>: PASSED:
  7890. with message:
  7891. StringRef{}.size() == 0
  7892. String.tests.cpp:<line number>: PASSED:
  7893. with message:
  7894. StringRef{ "abc", 3 }.size() == 3
  7895. String.tests.cpp:<line number>: PASSED:
  7896. with message:
  7897. StringRef{ "abc", 3 }.isNullTerminated()
  7898. String.tests.cpp:<line number>: PASSED:
  7899. with message:
  7900. StringRef{ "abc", 2 }.size() == 2
  7901. String.tests.cpp:<line number>: PASSED:
  7902. with message:
  7903. !(StringRef{ "abc", 2 }.isNullTerminated())
  7904. -------------------------------------------------------------------------------
  7905. StringRef at compilation time
  7906. UDL construction
  7907. -------------------------------------------------------------------------------
  7908. String.tests.cpp:<line number>
  7909. ...............................................................................
  7910. String.tests.cpp:<line number>: PASSED:
  7911. with message:
  7912. !(sr1.empty())
  7913. String.tests.cpp:<line number>: PASSED:
  7914. with message:
  7915. sr1.size() == 3
  7916. String.tests.cpp:<line number>: PASSED:
  7917. with message:
  7918. sr1.isNullTerminated()
  7919. String.tests.cpp:<line number>: PASSED:
  7920. with message:
  7921. sr2.empty()
  7922. String.tests.cpp:<line number>: PASSED:
  7923. with message:
  7924. sr2.size() == 0
  7925. String.tests.cpp:<line number>: PASSED:
  7926. with message:
  7927. sr2.isNullTerminated()
  7928. -------------------------------------------------------------------------------
  7929. Stringifying std::chrono::duration helpers
  7930. -------------------------------------------------------------------------------
  7931. ToStringChrono.tests.cpp:<line number>
  7932. ...............................................................................
  7933. ToStringChrono.tests.cpp:<line number>: PASSED:
  7934. REQUIRE( minute == seconds )
  7935. with expansion:
  7936. 1 m == 60 s
  7937. ToStringChrono.tests.cpp:<line number>: PASSED:
  7938. REQUIRE( hour != seconds )
  7939. with expansion:
  7940. 1 h != 60 s
  7941. ToStringChrono.tests.cpp:<line number>: PASSED:
  7942. REQUIRE( micro != milli )
  7943. with expansion:
  7944. 1 us != 1 ms
  7945. ToStringChrono.tests.cpp:<line number>: PASSED:
  7946. REQUIRE( nano != micro )
  7947. with expansion:
  7948. 1 ns != 1 us
  7949. -------------------------------------------------------------------------------
  7950. Stringifying std::chrono::duration with weird ratios
  7951. -------------------------------------------------------------------------------
  7952. ToStringChrono.tests.cpp:<line number>
  7953. ...............................................................................
  7954. ToStringChrono.tests.cpp:<line number>: PASSED:
  7955. REQUIRE( half_minute != femto_second )
  7956. with expansion:
  7957. 1 [30/1]s != 1 fs
  7958. ToStringChrono.tests.cpp:<line number>: PASSED:
  7959. REQUIRE( pico_second != atto_second )
  7960. with expansion:
  7961. 1 ps != 1 as
  7962. -------------------------------------------------------------------------------
  7963. Stringifying std::chrono::time_point<system_clock>
  7964. -------------------------------------------------------------------------------
  7965. ToStringChrono.tests.cpp:<line number>
  7966. ...............................................................................
  7967. ToStringChrono.tests.cpp:<line number>: PASSED:
  7968. REQUIRE( now != later )
  7969. with expansion:
  7970. {iso8601-timestamp}
  7971. !=
  7972. {iso8601-timestamp}
  7973. -------------------------------------------------------------------------------
  7974. Tabs and newlines show in output
  7975. -------------------------------------------------------------------------------
  7976. Misc.tests.cpp:<line number>
  7977. ...............................................................................
  7978. Misc.tests.cpp:<line number>: FAILED:
  7979. CHECK( s1 == s2 )
  7980. with expansion:
  7981. "if ($b == 10) {
  7982. $a = 20;
  7983. }"
  7984. ==
  7985. "if ($b == 10) {
  7986. $a = 20;
  7987. }
  7988. "
  7989. -------------------------------------------------------------------------------
  7990. Tag alias can be registered against tag patterns
  7991. The same tag alias can only be registered once
  7992. -------------------------------------------------------------------------------
  7993. Tag.tests.cpp:<line number>
  7994. ...............................................................................
  7995. Tag.tests.cpp:<line number>: PASSED:
  7996. CHECK_THAT( what, Contains( "[@zzz]" ) )
  7997. with expansion:
  7998. "error: tag alias, '[@zzz]' already registered.
  7999. First seen at: file:2
  8000. Redefined at: file:10" contains: "[@zzz]"
  8001. Tag.tests.cpp:<line number>: PASSED:
  8002. CHECK_THAT( what, Contains( "file" ) )
  8003. with expansion:
  8004. "error: tag alias, '[@zzz]' already registered.
  8005. First seen at: file:2
  8006. Redefined at: file:10" contains: "file"
  8007. Tag.tests.cpp:<line number>: PASSED:
  8008. CHECK_THAT( what, Contains( "2" ) )
  8009. with expansion:
  8010. "error: tag alias, '[@zzz]' already registered.
  8011. First seen at: file:2
  8012. Redefined at: file:10" contains: "2"
  8013. Tag.tests.cpp:<line number>: PASSED:
  8014. CHECK_THAT( what, Contains( "10" ) )
  8015. with expansion:
  8016. "error: tag alias, '[@zzz]' already registered.
  8017. First seen at: file:2
  8018. Redefined at: file:10" contains: "10"
  8019. -------------------------------------------------------------------------------
  8020. Tag alias can be registered against tag patterns
  8021. Tag aliases must be of the form [@name]
  8022. -------------------------------------------------------------------------------
  8023. Tag.tests.cpp:<line number>
  8024. ...............................................................................
  8025. Tag.tests.cpp:<line number>: PASSED:
  8026. CHECK_THROWS( registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) )
  8027. Tag.tests.cpp:<line number>: PASSED:
  8028. CHECK_THROWS( registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) )
  8029. Tag.tests.cpp:<line number>: PASSED:
  8030. CHECK_THROWS( registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) )
  8031. Tag.tests.cpp:<line number>: PASSED:
  8032. CHECK_THROWS( registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) )
  8033. -------------------------------------------------------------------------------
  8034. Template test case method with test types specified inside std::tuple - MyTypes
  8035. - 0
  8036. -------------------------------------------------------------------------------
  8037. Class.tests.cpp:<line number>
  8038. ...............................................................................
  8039. Class.tests.cpp:<line number>: PASSED:
  8040. REQUIRE( Template_Fixture<TestType>::m_a == 1 )
  8041. with expansion:
  8042. 1 == 1
  8043. -------------------------------------------------------------------------------
  8044. Template test case method with test types specified inside std::tuple - MyTypes
  8045. - 1
  8046. -------------------------------------------------------------------------------
  8047. Class.tests.cpp:<line number>
  8048. ...............................................................................
  8049. Class.tests.cpp:<line number>: PASSED:
  8050. REQUIRE( Template_Fixture<TestType>::m_a == 1 )
  8051. with expansion:
  8052. 1 == 1
  8053. -------------------------------------------------------------------------------
  8054. Template test case method with test types specified inside std::tuple - MyTypes
  8055. - 2
  8056. -------------------------------------------------------------------------------
  8057. Class.tests.cpp:<line number>
  8058. ...............................................................................
  8059. Class.tests.cpp:<line number>: PASSED:
  8060. REQUIRE( Template_Fixture<TestType>::m_a == 1 )
  8061. with expansion:
  8062. 1.0 == 1
  8063. -------------------------------------------------------------------------------
  8064. Template test case with test types specified inside non-copyable and non-
  8065. movable std::tuple - NonCopyableAndNonMovableTypes - 0
  8066. -------------------------------------------------------------------------------
  8067. Misc.tests.cpp:<line number>
  8068. ...............................................................................
  8069. Misc.tests.cpp:<line number>: PASSED:
  8070. REQUIRE( sizeof(TestType) > 0 )
  8071. with expansion:
  8072. 1 > 0
  8073. -------------------------------------------------------------------------------
  8074. Template test case with test types specified inside non-copyable and non-
  8075. movable std::tuple - NonCopyableAndNonMovableTypes - 1
  8076. -------------------------------------------------------------------------------
  8077. Misc.tests.cpp:<line number>
  8078. ...............................................................................
  8079. Misc.tests.cpp:<line number>: PASSED:
  8080. REQUIRE( sizeof(TestType) > 0 )
  8081. with expansion:
  8082. 4 > 0
  8083. -------------------------------------------------------------------------------
  8084. Template test case with test types specified inside non-default-constructible
  8085. std::tuple - MyNonDefaultConstructibleTypes - 0
  8086. -------------------------------------------------------------------------------
  8087. Misc.tests.cpp:<line number>
  8088. ...............................................................................
  8089. Misc.tests.cpp:<line number>: PASSED:
  8090. REQUIRE( sizeof(TestType) > 0 )
  8091. with expansion:
  8092. 1 > 0
  8093. -------------------------------------------------------------------------------
  8094. Template test case with test types specified inside non-default-constructible
  8095. std::tuple - MyNonDefaultConstructibleTypes - 1
  8096. -------------------------------------------------------------------------------
  8097. Misc.tests.cpp:<line number>
  8098. ...............................................................................
  8099. Misc.tests.cpp:<line number>: PASSED:
  8100. REQUIRE( sizeof(TestType) > 0 )
  8101. with expansion:
  8102. 4 > 0
  8103. -------------------------------------------------------------------------------
  8104. Template test case with test types specified inside std::tuple - MyTypes - 0
  8105. -------------------------------------------------------------------------------
  8106. Misc.tests.cpp:<line number>
  8107. ...............................................................................
  8108. Misc.tests.cpp:<line number>: PASSED:
  8109. REQUIRE( sizeof(TestType) > 0 )
  8110. with expansion:
  8111. 4 > 0
  8112. -------------------------------------------------------------------------------
  8113. Template test case with test types specified inside std::tuple - MyTypes - 1
  8114. -------------------------------------------------------------------------------
  8115. Misc.tests.cpp:<line number>
  8116. ...............................................................................
  8117. Misc.tests.cpp:<line number>: PASSED:
  8118. REQUIRE( sizeof(TestType) > 0 )
  8119. with expansion:
  8120. 1 > 0
  8121. -------------------------------------------------------------------------------
  8122. Template test case with test types specified inside std::tuple - MyTypes - 2
  8123. -------------------------------------------------------------------------------
  8124. Misc.tests.cpp:<line number>
  8125. ...............................................................................
  8126. Misc.tests.cpp:<line number>: PASSED:
  8127. REQUIRE( sizeof(TestType) > 0 )
  8128. with expansion:
  8129. 4 > 0
  8130. -------------------------------------------------------------------------------
  8131. TemplateTest: vectors can be sized and resized - float
  8132. -------------------------------------------------------------------------------
  8133. Misc.tests.cpp:<line number>
  8134. ...............................................................................
  8135. Misc.tests.cpp:<line number>: PASSED:
  8136. REQUIRE( v.size() == 5 )
  8137. with expansion:
  8138. 5 == 5
  8139. Misc.tests.cpp:<line number>: PASSED:
  8140. REQUIRE( v.capacity() >= 5 )
  8141. with expansion:
  8142. 5 >= 5
  8143. -------------------------------------------------------------------------------
  8144. TemplateTest: vectors can be sized and resized - float
  8145. resizing bigger changes size and capacity
  8146. -------------------------------------------------------------------------------
  8147. Misc.tests.cpp:<line number>
  8148. ...............................................................................
  8149. Misc.tests.cpp:<line number>: PASSED:
  8150. REQUIRE( v.size() == 10 )
  8151. with expansion:
  8152. 10 == 10
  8153. Misc.tests.cpp:<line number>: PASSED:
  8154. REQUIRE( v.capacity() >= 10 )
  8155. with expansion:
  8156. 10 >= 10
  8157. -------------------------------------------------------------------------------
  8158. TemplateTest: vectors can be sized and resized - float
  8159. -------------------------------------------------------------------------------
  8160. Misc.tests.cpp:<line number>
  8161. ...............................................................................
  8162. Misc.tests.cpp:<line number>: PASSED:
  8163. REQUIRE( v.size() == 5 )
  8164. with expansion:
  8165. 5 == 5
  8166. Misc.tests.cpp:<line number>: PASSED:
  8167. REQUIRE( v.capacity() >= 5 )
  8168. with expansion:
  8169. 5 >= 5
  8170. -------------------------------------------------------------------------------
  8171. TemplateTest: vectors can be sized and resized - float
  8172. resizing smaller changes size but not capacity
  8173. -------------------------------------------------------------------------------
  8174. Misc.tests.cpp:<line number>
  8175. ...............................................................................
  8176. Misc.tests.cpp:<line number>: PASSED:
  8177. REQUIRE( v.size() == 0 )
  8178. with expansion:
  8179. 0 == 0
  8180. Misc.tests.cpp:<line number>: PASSED:
  8181. REQUIRE( v.capacity() >= 5 )
  8182. with expansion:
  8183. 5 >= 5
  8184. -------------------------------------------------------------------------------
  8185. TemplateTest: vectors can be sized and resized - float
  8186. resizing smaller changes size but not capacity
  8187. We can use the 'swap trick' to reset the capacity
  8188. -------------------------------------------------------------------------------
  8189. Misc.tests.cpp:<line number>
  8190. ...............................................................................
  8191. Misc.tests.cpp:<line number>: PASSED:
  8192. REQUIRE( v.capacity() == 0 )
  8193. with expansion:
  8194. 0 == 0
  8195. -------------------------------------------------------------------------------
  8196. TemplateTest: vectors can be sized and resized - float
  8197. -------------------------------------------------------------------------------
  8198. Misc.tests.cpp:<line number>
  8199. ...............................................................................
  8200. Misc.tests.cpp:<line number>: PASSED:
  8201. REQUIRE( v.size() == 5 )
  8202. with expansion:
  8203. 5 == 5
  8204. Misc.tests.cpp:<line number>: PASSED:
  8205. REQUIRE( v.capacity() >= 5 )
  8206. with expansion:
  8207. 5 >= 5
  8208. -------------------------------------------------------------------------------
  8209. TemplateTest: vectors can be sized and resized - float
  8210. reserving bigger changes capacity but not size
  8211. -------------------------------------------------------------------------------
  8212. Misc.tests.cpp:<line number>
  8213. ...............................................................................
  8214. Misc.tests.cpp:<line number>: PASSED:
  8215. REQUIRE( v.size() == 5 )
  8216. with expansion:
  8217. 5 == 5
  8218. Misc.tests.cpp:<line number>: PASSED:
  8219. REQUIRE( v.capacity() >= 10 )
  8220. with expansion:
  8221. 10 >= 10
  8222. -------------------------------------------------------------------------------
  8223. TemplateTest: vectors can be sized and resized - float
  8224. -------------------------------------------------------------------------------
  8225. Misc.tests.cpp:<line number>
  8226. ...............................................................................
  8227. Misc.tests.cpp:<line number>: PASSED:
  8228. REQUIRE( v.size() == 5 )
  8229. with expansion:
  8230. 5 == 5
  8231. Misc.tests.cpp:<line number>: PASSED:
  8232. REQUIRE( v.capacity() >= 5 )
  8233. with expansion:
  8234. 5 >= 5
  8235. -------------------------------------------------------------------------------
  8236. TemplateTest: vectors can be sized and resized - float
  8237. reserving smaller does not change size or capacity
  8238. -------------------------------------------------------------------------------
  8239. Misc.tests.cpp:<line number>
  8240. ...............................................................................
  8241. Misc.tests.cpp:<line number>: PASSED:
  8242. REQUIRE( v.size() == 5 )
  8243. with expansion:
  8244. 5 == 5
  8245. Misc.tests.cpp:<line number>: PASSED:
  8246. REQUIRE( v.capacity() >= 5 )
  8247. with expansion:
  8248. 5 >= 5
  8249. -------------------------------------------------------------------------------
  8250. TemplateTest: vectors can be sized and resized - int
  8251. -------------------------------------------------------------------------------
  8252. Misc.tests.cpp:<line number>
  8253. ...............................................................................
  8254. Misc.tests.cpp:<line number>: PASSED:
  8255. REQUIRE( v.size() == 5 )
  8256. with expansion:
  8257. 5 == 5
  8258. Misc.tests.cpp:<line number>: PASSED:
  8259. REQUIRE( v.capacity() >= 5 )
  8260. with expansion:
  8261. 5 >= 5
  8262. -------------------------------------------------------------------------------
  8263. TemplateTest: vectors can be sized and resized - int
  8264. resizing bigger changes size and capacity
  8265. -------------------------------------------------------------------------------
  8266. Misc.tests.cpp:<line number>
  8267. ...............................................................................
  8268. Misc.tests.cpp:<line number>: PASSED:
  8269. REQUIRE( v.size() == 10 )
  8270. with expansion:
  8271. 10 == 10
  8272. Misc.tests.cpp:<line number>: PASSED:
  8273. REQUIRE( v.capacity() >= 10 )
  8274. with expansion:
  8275. 10 >= 10
  8276. -------------------------------------------------------------------------------
  8277. TemplateTest: vectors can be sized and resized - int
  8278. -------------------------------------------------------------------------------
  8279. Misc.tests.cpp:<line number>
  8280. ...............................................................................
  8281. Misc.tests.cpp:<line number>: PASSED:
  8282. REQUIRE( v.size() == 5 )
  8283. with expansion:
  8284. 5 == 5
  8285. Misc.tests.cpp:<line number>: PASSED:
  8286. REQUIRE( v.capacity() >= 5 )
  8287. with expansion:
  8288. 5 >= 5
  8289. -------------------------------------------------------------------------------
  8290. TemplateTest: vectors can be sized and resized - int
  8291. resizing smaller changes size but not capacity
  8292. -------------------------------------------------------------------------------
  8293. Misc.tests.cpp:<line number>
  8294. ...............................................................................
  8295. Misc.tests.cpp:<line number>: PASSED:
  8296. REQUIRE( v.size() == 0 )
  8297. with expansion:
  8298. 0 == 0
  8299. Misc.tests.cpp:<line number>: PASSED:
  8300. REQUIRE( v.capacity() >= 5 )
  8301. with expansion:
  8302. 5 >= 5
  8303. -------------------------------------------------------------------------------
  8304. TemplateTest: vectors can be sized and resized - int
  8305. resizing smaller changes size but not capacity
  8306. We can use the 'swap trick' to reset the capacity
  8307. -------------------------------------------------------------------------------
  8308. Misc.tests.cpp:<line number>
  8309. ...............................................................................
  8310. Misc.tests.cpp:<line number>: PASSED:
  8311. REQUIRE( v.capacity() == 0 )
  8312. with expansion:
  8313. 0 == 0
  8314. -------------------------------------------------------------------------------
  8315. TemplateTest: vectors can be sized and resized - int
  8316. -------------------------------------------------------------------------------
  8317. Misc.tests.cpp:<line number>
  8318. ...............................................................................
  8319. Misc.tests.cpp:<line number>: PASSED:
  8320. REQUIRE( v.size() == 5 )
  8321. with expansion:
  8322. 5 == 5
  8323. Misc.tests.cpp:<line number>: PASSED:
  8324. REQUIRE( v.capacity() >= 5 )
  8325. with expansion:
  8326. 5 >= 5
  8327. -------------------------------------------------------------------------------
  8328. TemplateTest: vectors can be sized and resized - int
  8329. reserving bigger changes capacity but not size
  8330. -------------------------------------------------------------------------------
  8331. Misc.tests.cpp:<line number>
  8332. ...............................................................................
  8333. Misc.tests.cpp:<line number>: PASSED:
  8334. REQUIRE( v.size() == 5 )
  8335. with expansion:
  8336. 5 == 5
  8337. Misc.tests.cpp:<line number>: PASSED:
  8338. REQUIRE( v.capacity() >= 10 )
  8339. with expansion:
  8340. 10 >= 10
  8341. -------------------------------------------------------------------------------
  8342. TemplateTest: vectors can be sized and resized - int
  8343. -------------------------------------------------------------------------------
  8344. Misc.tests.cpp:<line number>
  8345. ...............................................................................
  8346. Misc.tests.cpp:<line number>: PASSED:
  8347. REQUIRE( v.size() == 5 )
  8348. with expansion:
  8349. 5 == 5
  8350. Misc.tests.cpp:<line number>: PASSED:
  8351. REQUIRE( v.capacity() >= 5 )
  8352. with expansion:
  8353. 5 >= 5
  8354. -------------------------------------------------------------------------------
  8355. TemplateTest: vectors can be sized and resized - int
  8356. reserving smaller does not change size or capacity
  8357. -------------------------------------------------------------------------------
  8358. Misc.tests.cpp:<line number>
  8359. ...............................................................................
  8360. Misc.tests.cpp:<line number>: PASSED:
  8361. REQUIRE( v.size() == 5 )
  8362. with expansion:
  8363. 5 == 5
  8364. Misc.tests.cpp:<line number>: PASSED:
  8365. REQUIRE( v.capacity() >= 5 )
  8366. with expansion:
  8367. 5 >= 5
  8368. -------------------------------------------------------------------------------
  8369. TemplateTest: vectors can be sized and resized - std::string
  8370. -------------------------------------------------------------------------------
  8371. Misc.tests.cpp:<line number>
  8372. ...............................................................................
  8373. Misc.tests.cpp:<line number>: PASSED:
  8374. REQUIRE( v.size() == 5 )
  8375. with expansion:
  8376. 5 == 5
  8377. Misc.tests.cpp:<line number>: PASSED:
  8378. REQUIRE( v.capacity() >= 5 )
  8379. with expansion:
  8380. 5 >= 5
  8381. -------------------------------------------------------------------------------
  8382. TemplateTest: vectors can be sized and resized - std::string
  8383. resizing bigger changes size and capacity
  8384. -------------------------------------------------------------------------------
  8385. Misc.tests.cpp:<line number>
  8386. ...............................................................................
  8387. Misc.tests.cpp:<line number>: PASSED:
  8388. REQUIRE( v.size() == 10 )
  8389. with expansion:
  8390. 10 == 10
  8391. Misc.tests.cpp:<line number>: PASSED:
  8392. REQUIRE( v.capacity() >= 10 )
  8393. with expansion:
  8394. 10 >= 10
  8395. -------------------------------------------------------------------------------
  8396. TemplateTest: vectors can be sized and resized - std::string
  8397. -------------------------------------------------------------------------------
  8398. Misc.tests.cpp:<line number>
  8399. ...............................................................................
  8400. Misc.tests.cpp:<line number>: PASSED:
  8401. REQUIRE( v.size() == 5 )
  8402. with expansion:
  8403. 5 == 5
  8404. Misc.tests.cpp:<line number>: PASSED:
  8405. REQUIRE( v.capacity() >= 5 )
  8406. with expansion:
  8407. 5 >= 5
  8408. -------------------------------------------------------------------------------
  8409. TemplateTest: vectors can be sized and resized - std::string
  8410. resizing smaller changes size but not capacity
  8411. -------------------------------------------------------------------------------
  8412. Misc.tests.cpp:<line number>
  8413. ...............................................................................
  8414. Misc.tests.cpp:<line number>: PASSED:
  8415. REQUIRE( v.size() == 0 )
  8416. with expansion:
  8417. 0 == 0
  8418. Misc.tests.cpp:<line number>: PASSED:
  8419. REQUIRE( v.capacity() >= 5 )
  8420. with expansion:
  8421. 5 >= 5
  8422. -------------------------------------------------------------------------------
  8423. TemplateTest: vectors can be sized and resized - std::string
  8424. resizing smaller changes size but not capacity
  8425. We can use the 'swap trick' to reset the capacity
  8426. -------------------------------------------------------------------------------
  8427. Misc.tests.cpp:<line number>
  8428. ...............................................................................
  8429. Misc.tests.cpp:<line number>: PASSED:
  8430. REQUIRE( v.capacity() == 0 )
  8431. with expansion:
  8432. 0 == 0
  8433. -------------------------------------------------------------------------------
  8434. TemplateTest: vectors can be sized and resized - std::string
  8435. -------------------------------------------------------------------------------
  8436. Misc.tests.cpp:<line number>
  8437. ...............................................................................
  8438. Misc.tests.cpp:<line number>: PASSED:
  8439. REQUIRE( v.size() == 5 )
  8440. with expansion:
  8441. 5 == 5
  8442. Misc.tests.cpp:<line number>: PASSED:
  8443. REQUIRE( v.capacity() >= 5 )
  8444. with expansion:
  8445. 5 >= 5
  8446. -------------------------------------------------------------------------------
  8447. TemplateTest: vectors can be sized and resized - std::string
  8448. reserving bigger changes capacity but not size
  8449. -------------------------------------------------------------------------------
  8450. Misc.tests.cpp:<line number>
  8451. ...............................................................................
  8452. Misc.tests.cpp:<line number>: PASSED:
  8453. REQUIRE( v.size() == 5 )
  8454. with expansion:
  8455. 5 == 5
  8456. Misc.tests.cpp:<line number>: PASSED:
  8457. REQUIRE( v.capacity() >= 10 )
  8458. with expansion:
  8459. 10 >= 10
  8460. -------------------------------------------------------------------------------
  8461. TemplateTest: vectors can be sized and resized - std::string
  8462. -------------------------------------------------------------------------------
  8463. Misc.tests.cpp:<line number>
  8464. ...............................................................................
  8465. Misc.tests.cpp:<line number>: PASSED:
  8466. REQUIRE( v.size() == 5 )
  8467. with expansion:
  8468. 5 == 5
  8469. Misc.tests.cpp:<line number>: PASSED:
  8470. REQUIRE( v.capacity() >= 5 )
  8471. with expansion:
  8472. 5 >= 5
  8473. -------------------------------------------------------------------------------
  8474. TemplateTest: vectors can be sized and resized - std::string
  8475. reserving smaller does not change size or capacity
  8476. -------------------------------------------------------------------------------
  8477. Misc.tests.cpp:<line number>
  8478. ...............................................................................
  8479. Misc.tests.cpp:<line number>: PASSED:
  8480. REQUIRE( v.size() == 5 )
  8481. with expansion:
  8482. 5 == 5
  8483. Misc.tests.cpp:<line number>: PASSED:
  8484. REQUIRE( v.capacity() >= 5 )
  8485. with expansion:
  8486. 5 >= 5
  8487. -------------------------------------------------------------------------------
  8488. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  8489. -------------------------------------------------------------------------------
  8490. Misc.tests.cpp:<line number>
  8491. ...............................................................................
  8492. Misc.tests.cpp:<line number>: PASSED:
  8493. REQUIRE( v.size() == 5 )
  8494. with expansion:
  8495. 5 == 5
  8496. Misc.tests.cpp:<line number>: PASSED:
  8497. REQUIRE( v.capacity() >= 5 )
  8498. with expansion:
  8499. 5 >= 5
  8500. -------------------------------------------------------------------------------
  8501. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  8502. resizing bigger changes size and capacity
  8503. -------------------------------------------------------------------------------
  8504. Misc.tests.cpp:<line number>
  8505. ...............................................................................
  8506. Misc.tests.cpp:<line number>: PASSED:
  8507. REQUIRE( v.size() == 10 )
  8508. with expansion:
  8509. 10 == 10
  8510. Misc.tests.cpp:<line number>: PASSED:
  8511. REQUIRE( v.capacity() >= 10 )
  8512. with expansion:
  8513. 10 >= 10
  8514. -------------------------------------------------------------------------------
  8515. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  8516. -------------------------------------------------------------------------------
  8517. Misc.tests.cpp:<line number>
  8518. ...............................................................................
  8519. Misc.tests.cpp:<line number>: PASSED:
  8520. REQUIRE( v.size() == 5 )
  8521. with expansion:
  8522. 5 == 5
  8523. Misc.tests.cpp:<line number>: PASSED:
  8524. REQUIRE( v.capacity() >= 5 )
  8525. with expansion:
  8526. 5 >= 5
  8527. -------------------------------------------------------------------------------
  8528. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  8529. resizing smaller changes size but not capacity
  8530. -------------------------------------------------------------------------------
  8531. Misc.tests.cpp:<line number>
  8532. ...............................................................................
  8533. Misc.tests.cpp:<line number>: PASSED:
  8534. REQUIRE( v.size() == 0 )
  8535. with expansion:
  8536. 0 == 0
  8537. Misc.tests.cpp:<line number>: PASSED:
  8538. REQUIRE( v.capacity() >= 5 )
  8539. with expansion:
  8540. 5 >= 5
  8541. -------------------------------------------------------------------------------
  8542. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  8543. resizing smaller changes size but not capacity
  8544. We can use the 'swap trick' to reset the capacity
  8545. -------------------------------------------------------------------------------
  8546. Misc.tests.cpp:<line number>
  8547. ...............................................................................
  8548. Misc.tests.cpp:<line number>: PASSED:
  8549. REQUIRE( v.capacity() == 0 )
  8550. with expansion:
  8551. 0 == 0
  8552. -------------------------------------------------------------------------------
  8553. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  8554. -------------------------------------------------------------------------------
  8555. Misc.tests.cpp:<line number>
  8556. ...............................................................................
  8557. Misc.tests.cpp:<line number>: PASSED:
  8558. REQUIRE( v.size() == 5 )
  8559. with expansion:
  8560. 5 == 5
  8561. Misc.tests.cpp:<line number>: PASSED:
  8562. REQUIRE( v.capacity() >= 5 )
  8563. with expansion:
  8564. 5 >= 5
  8565. -------------------------------------------------------------------------------
  8566. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  8567. reserving bigger changes capacity but not size
  8568. -------------------------------------------------------------------------------
  8569. Misc.tests.cpp:<line number>
  8570. ...............................................................................
  8571. Misc.tests.cpp:<line number>: PASSED:
  8572. REQUIRE( v.size() == 5 )
  8573. with expansion:
  8574. 5 == 5
  8575. Misc.tests.cpp:<line number>: PASSED:
  8576. REQUIRE( v.capacity() >= 10 )
  8577. with expansion:
  8578. 10 >= 10
  8579. -------------------------------------------------------------------------------
  8580. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  8581. -------------------------------------------------------------------------------
  8582. Misc.tests.cpp:<line number>
  8583. ...............................................................................
  8584. Misc.tests.cpp:<line number>: PASSED:
  8585. REQUIRE( v.size() == 5 )
  8586. with expansion:
  8587. 5 == 5
  8588. Misc.tests.cpp:<line number>: PASSED:
  8589. REQUIRE( v.capacity() >= 5 )
  8590. with expansion:
  8591. 5 >= 5
  8592. -------------------------------------------------------------------------------
  8593. TemplateTest: vectors can be sized and resized - std::tuple<int,float>
  8594. reserving smaller does not change size or capacity
  8595. -------------------------------------------------------------------------------
  8596. Misc.tests.cpp:<line number>
  8597. ...............................................................................
  8598. Misc.tests.cpp:<line number>: PASSED:
  8599. REQUIRE( v.size() == 5 )
  8600. with expansion:
  8601. 5 == 5
  8602. Misc.tests.cpp:<line number>: PASSED:
  8603. REQUIRE( v.capacity() >= 5 )
  8604. with expansion:
  8605. 5 >= 5
  8606. -------------------------------------------------------------------------------
  8607. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  8608. -------------------------------------------------------------------------------
  8609. Misc.tests.cpp:<line number>
  8610. ...............................................................................
  8611. Misc.tests.cpp:<line number>: PASSED:
  8612. REQUIRE( v.size() == V )
  8613. with expansion:
  8614. 6 == 6
  8615. Misc.tests.cpp:<line number>: PASSED:
  8616. REQUIRE( v.capacity() >= V )
  8617. with expansion:
  8618. 6 >= 6
  8619. -------------------------------------------------------------------------------
  8620. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  8621. resizing bigger changes size and capacity
  8622. -------------------------------------------------------------------------------
  8623. Misc.tests.cpp:<line number>
  8624. ...............................................................................
  8625. Misc.tests.cpp:<line number>: PASSED:
  8626. REQUIRE( v.size() == 2 * V )
  8627. with expansion:
  8628. 12 == 12
  8629. Misc.tests.cpp:<line number>: PASSED:
  8630. REQUIRE( v.capacity() >= 2 * V )
  8631. with expansion:
  8632. 12 >= 12
  8633. -------------------------------------------------------------------------------
  8634. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  8635. -------------------------------------------------------------------------------
  8636. Misc.tests.cpp:<line number>
  8637. ...............................................................................
  8638. Misc.tests.cpp:<line number>: PASSED:
  8639. REQUIRE( v.size() == V )
  8640. with expansion:
  8641. 6 == 6
  8642. Misc.tests.cpp:<line number>: PASSED:
  8643. REQUIRE( v.capacity() >= V )
  8644. with expansion:
  8645. 6 >= 6
  8646. -------------------------------------------------------------------------------
  8647. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  8648. resizing smaller changes size but not capacity
  8649. -------------------------------------------------------------------------------
  8650. Misc.tests.cpp:<line number>
  8651. ...............................................................................
  8652. Misc.tests.cpp:<line number>: PASSED:
  8653. REQUIRE( v.size() == 0 )
  8654. with expansion:
  8655. 0 == 0
  8656. Misc.tests.cpp:<line number>: PASSED:
  8657. REQUIRE( v.capacity() >= V )
  8658. with expansion:
  8659. 6 >= 6
  8660. -------------------------------------------------------------------------------
  8661. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  8662. resizing smaller changes size but not capacity
  8663. We can use the 'swap trick' to reset the capacity
  8664. -------------------------------------------------------------------------------
  8665. Misc.tests.cpp:<line number>
  8666. ...............................................................................
  8667. Misc.tests.cpp:<line number>: PASSED:
  8668. REQUIRE( v.capacity() == 0 )
  8669. with expansion:
  8670. 0 == 0
  8671. -------------------------------------------------------------------------------
  8672. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  8673. -------------------------------------------------------------------------------
  8674. Misc.tests.cpp:<line number>
  8675. ...............................................................................
  8676. Misc.tests.cpp:<line number>: PASSED:
  8677. REQUIRE( v.size() == V )
  8678. with expansion:
  8679. 6 == 6
  8680. Misc.tests.cpp:<line number>: PASSED:
  8681. REQUIRE( v.capacity() >= V )
  8682. with expansion:
  8683. 6 >= 6
  8684. -------------------------------------------------------------------------------
  8685. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  8686. reserving bigger changes capacity but not size
  8687. -------------------------------------------------------------------------------
  8688. Misc.tests.cpp:<line number>
  8689. ...............................................................................
  8690. Misc.tests.cpp:<line number>: PASSED:
  8691. REQUIRE( v.size() == V )
  8692. with expansion:
  8693. 6 == 6
  8694. Misc.tests.cpp:<line number>: PASSED:
  8695. REQUIRE( v.capacity() >= 2 * V )
  8696. with expansion:
  8697. 12 >= 12
  8698. -------------------------------------------------------------------------------
  8699. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  8700. -------------------------------------------------------------------------------
  8701. Misc.tests.cpp:<line number>
  8702. ...............................................................................
  8703. Misc.tests.cpp:<line number>: PASSED:
  8704. REQUIRE( v.size() == V )
  8705. with expansion:
  8706. 6 == 6
  8707. Misc.tests.cpp:<line number>: PASSED:
  8708. REQUIRE( v.capacity() >= V )
  8709. with expansion:
  8710. 6 >= 6
  8711. -------------------------------------------------------------------------------
  8712. TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
  8713. reserving smaller does not change size or capacity
  8714. -------------------------------------------------------------------------------
  8715. Misc.tests.cpp:<line number>
  8716. ...............................................................................
  8717. Misc.tests.cpp:<line number>: PASSED:
  8718. REQUIRE( v.size() == V )
  8719. with expansion:
  8720. 6 == 6
  8721. Misc.tests.cpp:<line number>: PASSED:
  8722. REQUIRE( v.capacity() >= V )
  8723. with expansion:
  8724. 6 >= 6
  8725. -------------------------------------------------------------------------------
  8726. TemplateTestSig: vectors can be sized and resized - float,4
  8727. -------------------------------------------------------------------------------
  8728. Misc.tests.cpp:<line number>
  8729. ...............................................................................
  8730. Misc.tests.cpp:<line number>: PASSED:
  8731. REQUIRE( v.size() == V )
  8732. with expansion:
  8733. 4 == 4
  8734. Misc.tests.cpp:<line number>: PASSED:
  8735. REQUIRE( v.capacity() >= V )
  8736. with expansion:
  8737. 4 >= 4
  8738. -------------------------------------------------------------------------------
  8739. TemplateTestSig: vectors can be sized and resized - float,4
  8740. resizing bigger changes size and capacity
  8741. -------------------------------------------------------------------------------
  8742. Misc.tests.cpp:<line number>
  8743. ...............................................................................
  8744. Misc.tests.cpp:<line number>: PASSED:
  8745. REQUIRE( v.size() == 2 * V )
  8746. with expansion:
  8747. 8 == 8
  8748. Misc.tests.cpp:<line number>: PASSED:
  8749. REQUIRE( v.capacity() >= 2 * V )
  8750. with expansion:
  8751. 8 >= 8
  8752. -------------------------------------------------------------------------------
  8753. TemplateTestSig: vectors can be sized and resized - float,4
  8754. -------------------------------------------------------------------------------
  8755. Misc.tests.cpp:<line number>
  8756. ...............................................................................
  8757. Misc.tests.cpp:<line number>: PASSED:
  8758. REQUIRE( v.size() == V )
  8759. with expansion:
  8760. 4 == 4
  8761. Misc.tests.cpp:<line number>: PASSED:
  8762. REQUIRE( v.capacity() >= V )
  8763. with expansion:
  8764. 4 >= 4
  8765. -------------------------------------------------------------------------------
  8766. TemplateTestSig: vectors can be sized and resized - float,4
  8767. resizing smaller changes size but not capacity
  8768. -------------------------------------------------------------------------------
  8769. Misc.tests.cpp:<line number>
  8770. ...............................................................................
  8771. Misc.tests.cpp:<line number>: PASSED:
  8772. REQUIRE( v.size() == 0 )
  8773. with expansion:
  8774. 0 == 0
  8775. Misc.tests.cpp:<line number>: PASSED:
  8776. REQUIRE( v.capacity() >= V )
  8777. with expansion:
  8778. 4 >= 4
  8779. -------------------------------------------------------------------------------
  8780. TemplateTestSig: vectors can be sized and resized - float,4
  8781. resizing smaller changes size but not capacity
  8782. We can use the 'swap trick' to reset the capacity
  8783. -------------------------------------------------------------------------------
  8784. Misc.tests.cpp:<line number>
  8785. ...............................................................................
  8786. Misc.tests.cpp:<line number>: PASSED:
  8787. REQUIRE( v.capacity() == 0 )
  8788. with expansion:
  8789. 0 == 0
  8790. -------------------------------------------------------------------------------
  8791. TemplateTestSig: vectors can be sized and resized - float,4
  8792. -------------------------------------------------------------------------------
  8793. Misc.tests.cpp:<line number>
  8794. ...............................................................................
  8795. Misc.tests.cpp:<line number>: PASSED:
  8796. REQUIRE( v.size() == V )
  8797. with expansion:
  8798. 4 == 4
  8799. Misc.tests.cpp:<line number>: PASSED:
  8800. REQUIRE( v.capacity() >= V )
  8801. with expansion:
  8802. 4 >= 4
  8803. -------------------------------------------------------------------------------
  8804. TemplateTestSig: vectors can be sized and resized - float,4
  8805. reserving bigger changes capacity but not size
  8806. -------------------------------------------------------------------------------
  8807. Misc.tests.cpp:<line number>
  8808. ...............................................................................
  8809. Misc.tests.cpp:<line number>: PASSED:
  8810. REQUIRE( v.size() == V )
  8811. with expansion:
  8812. 4 == 4
  8813. Misc.tests.cpp:<line number>: PASSED:
  8814. REQUIRE( v.capacity() >= 2 * V )
  8815. with expansion:
  8816. 8 >= 8
  8817. -------------------------------------------------------------------------------
  8818. TemplateTestSig: vectors can be sized and resized - float,4
  8819. -------------------------------------------------------------------------------
  8820. Misc.tests.cpp:<line number>
  8821. ...............................................................................
  8822. Misc.tests.cpp:<line number>: PASSED:
  8823. REQUIRE( v.size() == V )
  8824. with expansion:
  8825. 4 == 4
  8826. Misc.tests.cpp:<line number>: PASSED:
  8827. REQUIRE( v.capacity() >= V )
  8828. with expansion:
  8829. 4 >= 4
  8830. -------------------------------------------------------------------------------
  8831. TemplateTestSig: vectors can be sized and resized - float,4
  8832. reserving smaller does not change size or capacity
  8833. -------------------------------------------------------------------------------
  8834. Misc.tests.cpp:<line number>
  8835. ...............................................................................
  8836. Misc.tests.cpp:<line number>: PASSED:
  8837. REQUIRE( v.size() == V )
  8838. with expansion:
  8839. 4 == 4
  8840. Misc.tests.cpp:<line number>: PASSED:
  8841. REQUIRE( v.capacity() >= V )
  8842. with expansion:
  8843. 4 >= 4
  8844. -------------------------------------------------------------------------------
  8845. TemplateTestSig: vectors can be sized and resized - int,5
  8846. -------------------------------------------------------------------------------
  8847. Misc.tests.cpp:<line number>
  8848. ...............................................................................
  8849. Misc.tests.cpp:<line number>: PASSED:
  8850. REQUIRE( v.size() == V )
  8851. with expansion:
  8852. 5 == 5
  8853. Misc.tests.cpp:<line number>: PASSED:
  8854. REQUIRE( v.capacity() >= V )
  8855. with expansion:
  8856. 5 >= 5
  8857. -------------------------------------------------------------------------------
  8858. TemplateTestSig: vectors can be sized and resized - int,5
  8859. resizing bigger changes size and capacity
  8860. -------------------------------------------------------------------------------
  8861. Misc.tests.cpp:<line number>
  8862. ...............................................................................
  8863. Misc.tests.cpp:<line number>: PASSED:
  8864. REQUIRE( v.size() == 2 * V )
  8865. with expansion:
  8866. 10 == 10
  8867. Misc.tests.cpp:<line number>: PASSED:
  8868. REQUIRE( v.capacity() >= 2 * V )
  8869. with expansion:
  8870. 10 >= 10
  8871. -------------------------------------------------------------------------------
  8872. TemplateTestSig: vectors can be sized and resized - int,5
  8873. -------------------------------------------------------------------------------
  8874. Misc.tests.cpp:<line number>
  8875. ...............................................................................
  8876. Misc.tests.cpp:<line number>: PASSED:
  8877. REQUIRE( v.size() == V )
  8878. with expansion:
  8879. 5 == 5
  8880. Misc.tests.cpp:<line number>: PASSED:
  8881. REQUIRE( v.capacity() >= V )
  8882. with expansion:
  8883. 5 >= 5
  8884. -------------------------------------------------------------------------------
  8885. TemplateTestSig: vectors can be sized and resized - int,5
  8886. resizing smaller changes size but not capacity
  8887. -------------------------------------------------------------------------------
  8888. Misc.tests.cpp:<line number>
  8889. ...............................................................................
  8890. Misc.tests.cpp:<line number>: PASSED:
  8891. REQUIRE( v.size() == 0 )
  8892. with expansion:
  8893. 0 == 0
  8894. Misc.tests.cpp:<line number>: PASSED:
  8895. REQUIRE( v.capacity() >= V )
  8896. with expansion:
  8897. 5 >= 5
  8898. -------------------------------------------------------------------------------
  8899. TemplateTestSig: vectors can be sized and resized - int,5
  8900. resizing smaller changes size but not capacity
  8901. We can use the 'swap trick' to reset the capacity
  8902. -------------------------------------------------------------------------------
  8903. Misc.tests.cpp:<line number>
  8904. ...............................................................................
  8905. Misc.tests.cpp:<line number>: PASSED:
  8906. REQUIRE( v.capacity() == 0 )
  8907. with expansion:
  8908. 0 == 0
  8909. -------------------------------------------------------------------------------
  8910. TemplateTestSig: vectors can be sized and resized - int,5
  8911. -------------------------------------------------------------------------------
  8912. Misc.tests.cpp:<line number>
  8913. ...............................................................................
  8914. Misc.tests.cpp:<line number>: PASSED:
  8915. REQUIRE( v.size() == V )
  8916. with expansion:
  8917. 5 == 5
  8918. Misc.tests.cpp:<line number>: PASSED:
  8919. REQUIRE( v.capacity() >= V )
  8920. with expansion:
  8921. 5 >= 5
  8922. -------------------------------------------------------------------------------
  8923. TemplateTestSig: vectors can be sized and resized - int,5
  8924. reserving bigger changes capacity but not size
  8925. -------------------------------------------------------------------------------
  8926. Misc.tests.cpp:<line number>
  8927. ...............................................................................
  8928. Misc.tests.cpp:<line number>: PASSED:
  8929. REQUIRE( v.size() == V )
  8930. with expansion:
  8931. 5 == 5
  8932. Misc.tests.cpp:<line number>: PASSED:
  8933. REQUIRE( v.capacity() >= 2 * V )
  8934. with expansion:
  8935. 10 >= 10
  8936. -------------------------------------------------------------------------------
  8937. TemplateTestSig: vectors can be sized and resized - int,5
  8938. -------------------------------------------------------------------------------
  8939. Misc.tests.cpp:<line number>
  8940. ...............................................................................
  8941. Misc.tests.cpp:<line number>: PASSED:
  8942. REQUIRE( v.size() == V )
  8943. with expansion:
  8944. 5 == 5
  8945. Misc.tests.cpp:<line number>: PASSED:
  8946. REQUIRE( v.capacity() >= V )
  8947. with expansion:
  8948. 5 >= 5
  8949. -------------------------------------------------------------------------------
  8950. TemplateTestSig: vectors can be sized and resized - int,5
  8951. reserving smaller does not change size or capacity
  8952. -------------------------------------------------------------------------------
  8953. Misc.tests.cpp:<line number>
  8954. ...............................................................................
  8955. Misc.tests.cpp:<line number>: PASSED:
  8956. REQUIRE( v.size() == V )
  8957. with expansion:
  8958. 5 == 5
  8959. Misc.tests.cpp:<line number>: PASSED:
  8960. REQUIRE( v.capacity() >= V )
  8961. with expansion:
  8962. 5 >= 5
  8963. -------------------------------------------------------------------------------
  8964. TemplateTestSig: vectors can be sized and resized - std::string,15
  8965. -------------------------------------------------------------------------------
  8966. Misc.tests.cpp:<line number>
  8967. ...............................................................................
  8968. Misc.tests.cpp:<line number>: PASSED:
  8969. REQUIRE( v.size() == V )
  8970. with expansion:
  8971. 15 == 15
  8972. Misc.tests.cpp:<line number>: PASSED:
  8973. REQUIRE( v.capacity() >= V )
  8974. with expansion:
  8975. 15 >= 15
  8976. -------------------------------------------------------------------------------
  8977. TemplateTestSig: vectors can be sized and resized - std::string,15
  8978. resizing bigger changes size and capacity
  8979. -------------------------------------------------------------------------------
  8980. Misc.tests.cpp:<line number>
  8981. ...............................................................................
  8982. Misc.tests.cpp:<line number>: PASSED:
  8983. REQUIRE( v.size() == 2 * V )
  8984. with expansion:
  8985. 30 == 30
  8986. Misc.tests.cpp:<line number>: PASSED:
  8987. REQUIRE( v.capacity() >= 2 * V )
  8988. with expansion:
  8989. 30 >= 30
  8990. -------------------------------------------------------------------------------
  8991. TemplateTestSig: vectors can be sized and resized - std::string,15
  8992. -------------------------------------------------------------------------------
  8993. Misc.tests.cpp:<line number>
  8994. ...............................................................................
  8995. Misc.tests.cpp:<line number>: PASSED:
  8996. REQUIRE( v.size() == V )
  8997. with expansion:
  8998. 15 == 15
  8999. Misc.tests.cpp:<line number>: PASSED:
  9000. REQUIRE( v.capacity() >= V )
  9001. with expansion:
  9002. 15 >= 15
  9003. -------------------------------------------------------------------------------
  9004. TemplateTestSig: vectors can be sized and resized - std::string,15
  9005. resizing smaller changes size but not capacity
  9006. -------------------------------------------------------------------------------
  9007. Misc.tests.cpp:<line number>
  9008. ...............................................................................
  9009. Misc.tests.cpp:<line number>: PASSED:
  9010. REQUIRE( v.size() == 0 )
  9011. with expansion:
  9012. 0 == 0
  9013. Misc.tests.cpp:<line number>: PASSED:
  9014. REQUIRE( v.capacity() >= V )
  9015. with expansion:
  9016. 15 >= 15
  9017. -------------------------------------------------------------------------------
  9018. TemplateTestSig: vectors can be sized and resized - std::string,15
  9019. resizing smaller changes size but not capacity
  9020. We can use the 'swap trick' to reset the capacity
  9021. -------------------------------------------------------------------------------
  9022. Misc.tests.cpp:<line number>
  9023. ...............................................................................
  9024. Misc.tests.cpp:<line number>: PASSED:
  9025. REQUIRE( v.capacity() == 0 )
  9026. with expansion:
  9027. 0 == 0
  9028. -------------------------------------------------------------------------------
  9029. TemplateTestSig: vectors can be sized and resized - std::string,15
  9030. -------------------------------------------------------------------------------
  9031. Misc.tests.cpp:<line number>
  9032. ...............................................................................
  9033. Misc.tests.cpp:<line number>: PASSED:
  9034. REQUIRE( v.size() == V )
  9035. with expansion:
  9036. 15 == 15
  9037. Misc.tests.cpp:<line number>: PASSED:
  9038. REQUIRE( v.capacity() >= V )
  9039. with expansion:
  9040. 15 >= 15
  9041. -------------------------------------------------------------------------------
  9042. TemplateTestSig: vectors can be sized and resized - std::string,15
  9043. reserving bigger changes capacity but not size
  9044. -------------------------------------------------------------------------------
  9045. Misc.tests.cpp:<line number>
  9046. ...............................................................................
  9047. Misc.tests.cpp:<line number>: PASSED:
  9048. REQUIRE( v.size() == V )
  9049. with expansion:
  9050. 15 == 15
  9051. Misc.tests.cpp:<line number>: PASSED:
  9052. REQUIRE( v.capacity() >= 2 * V )
  9053. with expansion:
  9054. 30 >= 30
  9055. -------------------------------------------------------------------------------
  9056. TemplateTestSig: vectors can be sized and resized - std::string,15
  9057. -------------------------------------------------------------------------------
  9058. Misc.tests.cpp:<line number>
  9059. ...............................................................................
  9060. Misc.tests.cpp:<line number>: PASSED:
  9061. REQUIRE( v.size() == V )
  9062. with expansion:
  9063. 15 == 15
  9064. Misc.tests.cpp:<line number>: PASSED:
  9065. REQUIRE( v.capacity() >= V )
  9066. with expansion:
  9067. 15 >= 15
  9068. -------------------------------------------------------------------------------
  9069. TemplateTestSig: vectors can be sized and resized - std::string,15
  9070. reserving smaller does not change size or capacity
  9071. -------------------------------------------------------------------------------
  9072. Misc.tests.cpp:<line number>
  9073. ...............................................................................
  9074. Misc.tests.cpp:<line number>: PASSED:
  9075. REQUIRE( v.size() == V )
  9076. with expansion:
  9077. 15 == 15
  9078. Misc.tests.cpp:<line number>: PASSED:
  9079. REQUIRE( v.capacity() >= V )
  9080. with expansion:
  9081. 15 >= 15
  9082. -------------------------------------------------------------------------------
  9083. Test case with one argument
  9084. -------------------------------------------------------------------------------
  9085. VariadicMacros.tests.cpp:<line number>
  9086. ...............................................................................
  9087. VariadicMacros.tests.cpp:<line number>: PASSED:
  9088. with message:
  9089. no assertions
  9090. -------------------------------------------------------------------------------
  9091. Test enum bit values
  9092. -------------------------------------------------------------------------------
  9093. Tricky.tests.cpp:<line number>
  9094. ...............................................................................
  9095. Tricky.tests.cpp:<line number>: PASSED:
  9096. REQUIRE( 0x<hex digits> == bit30and31 )
  9097. with expansion:
  9098. 3221225472 (0x<hex digits>) == 3221225472
  9099. -------------------------------------------------------------------------------
  9100. Test with special, characters "in name
  9101. -------------------------------------------------------------------------------
  9102. CmdLine.tests.cpp:<line number>
  9103. ...............................................................................
  9104. CmdLine.tests.cpp:<line number>: PASSED:
  9105. -------------------------------------------------------------------------------
  9106. The NO_FAIL macro reports a failure but does not fail the test
  9107. -------------------------------------------------------------------------------
  9108. Message.tests.cpp:<line number>
  9109. ...............................................................................
  9110. Message.tests.cpp:<line number>: FAILED - but was ok:
  9111. CHECK_NOFAIL( 1 == 2 )
  9112. No assertions in test case 'The NO_FAIL macro reports a failure but does not fail the test'
  9113. -------------------------------------------------------------------------------
  9114. This test 'should' fail but doesn't
  9115. -------------------------------------------------------------------------------
  9116. Misc.tests.cpp:<line number>
  9117. ...............................................................................
  9118. Misc.tests.cpp:<line number>: PASSED:
  9119. with message:
  9120. oops!
  9121. -------------------------------------------------------------------------------
  9122. Thrown string literals are translated
  9123. -------------------------------------------------------------------------------
  9124. Exception.tests.cpp:<line number>
  9125. ...............................................................................
  9126. Exception.tests.cpp:<line number>: FAILED:
  9127. due to unexpected exception with message:
  9128. For some reason someone is throwing a string literal!
  9129. -------------------------------------------------------------------------------
  9130. Tracker
  9131. -------------------------------------------------------------------------------
  9132. PartTracker.tests.cpp:<line number>
  9133. ...............................................................................
  9134. PartTracker.tests.cpp:<line number>: PASSED:
  9135. REQUIRE( testCase.isOpen() )
  9136. with expansion:
  9137. true
  9138. PartTracker.tests.cpp:<line number>: PASSED:
  9139. REQUIRE( s1.isOpen() )
  9140. with expansion:
  9141. true
  9142. -------------------------------------------------------------------------------
  9143. Tracker
  9144. successfully close one section
  9145. -------------------------------------------------------------------------------
  9146. PartTracker.tests.cpp:<line number>
  9147. ...............................................................................
  9148. PartTracker.tests.cpp:<line number>: PASSED:
  9149. REQUIRE( s1.isSuccessfullyCompleted() )
  9150. with expansion:
  9151. true
  9152. PartTracker.tests.cpp:<line number>: PASSED:
  9153. REQUIRE( testCase.isComplete() == false )
  9154. with expansion:
  9155. false == false
  9156. PartTracker.tests.cpp:<line number>: PASSED:
  9157. REQUIRE( ctx.completedCycle() )
  9158. with expansion:
  9159. true
  9160. PartTracker.tests.cpp:<line number>: PASSED:
  9161. REQUIRE( testCase.isSuccessfullyCompleted() )
  9162. with expansion:
  9163. true
  9164. -------------------------------------------------------------------------------
  9165. Tracker
  9166. -------------------------------------------------------------------------------
  9167. PartTracker.tests.cpp:<line number>
  9168. ...............................................................................
  9169. PartTracker.tests.cpp:<line number>: PASSED:
  9170. REQUIRE( testCase.isOpen() )
  9171. with expansion:
  9172. true
  9173. PartTracker.tests.cpp:<line number>: PASSED:
  9174. REQUIRE( s1.isOpen() )
  9175. with expansion:
  9176. true
  9177. -------------------------------------------------------------------------------
  9178. Tracker
  9179. fail one section
  9180. -------------------------------------------------------------------------------
  9181. PartTracker.tests.cpp:<line number>
  9182. ...............................................................................
  9183. PartTracker.tests.cpp:<line number>: PASSED:
  9184. REQUIRE( s1.isComplete() )
  9185. with expansion:
  9186. true
  9187. PartTracker.tests.cpp:<line number>: PASSED:
  9188. REQUIRE( s1.isSuccessfullyCompleted() == false )
  9189. with expansion:
  9190. false == false
  9191. PartTracker.tests.cpp:<line number>: PASSED:
  9192. REQUIRE( testCase.isComplete() == false )
  9193. with expansion:
  9194. false == false
  9195. PartTracker.tests.cpp:<line number>: PASSED:
  9196. REQUIRE( ctx.completedCycle() )
  9197. with expansion:
  9198. true
  9199. PartTracker.tests.cpp:<line number>: PASSED:
  9200. REQUIRE( testCase.isSuccessfullyCompleted() == false )
  9201. with expansion:
  9202. false == false
  9203. -------------------------------------------------------------------------------
  9204. Tracker
  9205. fail one section
  9206. re-enter after failed section
  9207. -------------------------------------------------------------------------------
  9208. PartTracker.tests.cpp:<line number>
  9209. ...............................................................................
  9210. PartTracker.tests.cpp:<line number>: PASSED:
  9211. REQUIRE( testCase2.isOpen() )
  9212. with expansion:
  9213. true
  9214. PartTracker.tests.cpp:<line number>: PASSED:
  9215. REQUIRE( s1b.isOpen() == false )
  9216. with expansion:
  9217. false == false
  9218. PartTracker.tests.cpp:<line number>: PASSED:
  9219. REQUIRE( ctx.completedCycle() )
  9220. with expansion:
  9221. true
  9222. PartTracker.tests.cpp:<line number>: PASSED:
  9223. REQUIRE( testCase.isComplete() )
  9224. with expansion:
  9225. true
  9226. PartTracker.tests.cpp:<line number>: PASSED:
  9227. REQUIRE( testCase.isSuccessfullyCompleted() )
  9228. with expansion:
  9229. true
  9230. -------------------------------------------------------------------------------
  9231. Tracker
  9232. -------------------------------------------------------------------------------
  9233. PartTracker.tests.cpp:<line number>
  9234. ...............................................................................
  9235. PartTracker.tests.cpp:<line number>: PASSED:
  9236. REQUIRE( testCase.isOpen() )
  9237. with expansion:
  9238. true
  9239. PartTracker.tests.cpp:<line number>: PASSED:
  9240. REQUIRE( s1.isOpen() )
  9241. with expansion:
  9242. true
  9243. -------------------------------------------------------------------------------
  9244. Tracker
  9245. fail one section
  9246. -------------------------------------------------------------------------------
  9247. PartTracker.tests.cpp:<line number>
  9248. ...............................................................................
  9249. PartTracker.tests.cpp:<line number>: PASSED:
  9250. REQUIRE( s1.isComplete() )
  9251. with expansion:
  9252. true
  9253. PartTracker.tests.cpp:<line number>: PASSED:
  9254. REQUIRE( s1.isSuccessfullyCompleted() == false )
  9255. with expansion:
  9256. false == false
  9257. PartTracker.tests.cpp:<line number>: PASSED:
  9258. REQUIRE( testCase.isComplete() == false )
  9259. with expansion:
  9260. false == false
  9261. PartTracker.tests.cpp:<line number>: PASSED:
  9262. REQUIRE( ctx.completedCycle() )
  9263. with expansion:
  9264. true
  9265. PartTracker.tests.cpp:<line number>: PASSED:
  9266. REQUIRE( testCase.isSuccessfullyCompleted() == false )
  9267. with expansion:
  9268. false == false
  9269. -------------------------------------------------------------------------------
  9270. Tracker
  9271. fail one section
  9272. re-enter after failed section and find next section
  9273. -------------------------------------------------------------------------------
  9274. PartTracker.tests.cpp:<line number>
  9275. ...............................................................................
  9276. PartTracker.tests.cpp:<line number>: PASSED:
  9277. REQUIRE( testCase2.isOpen() )
  9278. with expansion:
  9279. true
  9280. PartTracker.tests.cpp:<line number>: PASSED:
  9281. REQUIRE( s1b.isOpen() == false )
  9282. with expansion:
  9283. false == false
  9284. PartTracker.tests.cpp:<line number>: PASSED:
  9285. REQUIRE( s2.isOpen() )
  9286. with expansion:
  9287. true
  9288. PartTracker.tests.cpp:<line number>: PASSED:
  9289. REQUIRE( ctx.completedCycle() )
  9290. with expansion:
  9291. true
  9292. PartTracker.tests.cpp:<line number>: PASSED:
  9293. REQUIRE( testCase.isComplete() )
  9294. with expansion:
  9295. true
  9296. PartTracker.tests.cpp:<line number>: PASSED:
  9297. REQUIRE( testCase.isSuccessfullyCompleted() )
  9298. with expansion:
  9299. true
  9300. -------------------------------------------------------------------------------
  9301. Tracker
  9302. -------------------------------------------------------------------------------
  9303. PartTracker.tests.cpp:<line number>
  9304. ...............................................................................
  9305. PartTracker.tests.cpp:<line number>: PASSED:
  9306. REQUIRE( testCase.isOpen() )
  9307. with expansion:
  9308. true
  9309. PartTracker.tests.cpp:<line number>: PASSED:
  9310. REQUIRE( s1.isOpen() )
  9311. with expansion:
  9312. true
  9313. -------------------------------------------------------------------------------
  9314. Tracker
  9315. successfully close one section, then find another
  9316. -------------------------------------------------------------------------------
  9317. PartTracker.tests.cpp:<line number>
  9318. ...............................................................................
  9319. PartTracker.tests.cpp:<line number>: PASSED:
  9320. REQUIRE( s2.isOpen() == false )
  9321. with expansion:
  9322. false == false
  9323. PartTracker.tests.cpp:<line number>: PASSED:
  9324. REQUIRE( testCase.isComplete() == false )
  9325. with expansion:
  9326. false == false
  9327. -------------------------------------------------------------------------------
  9328. Tracker
  9329. successfully close one section, then find another
  9330. Re-enter - skips S1 and enters S2
  9331. -------------------------------------------------------------------------------
  9332. PartTracker.tests.cpp:<line number>
  9333. ...............................................................................
  9334. PartTracker.tests.cpp:<line number>: PASSED:
  9335. REQUIRE( testCase2.isOpen() )
  9336. with expansion:
  9337. true
  9338. PartTracker.tests.cpp:<line number>: PASSED:
  9339. REQUIRE( s1b.isOpen() == false )
  9340. with expansion:
  9341. false == false
  9342. PartTracker.tests.cpp:<line number>: PASSED:
  9343. REQUIRE( s2b.isOpen() )
  9344. with expansion:
  9345. true
  9346. PartTracker.tests.cpp:<line number>: PASSED:
  9347. REQUIRE( ctx.completedCycle() == false )
  9348. with expansion:
  9349. false == false
  9350. -------------------------------------------------------------------------------
  9351. Tracker
  9352. successfully close one section, then find another
  9353. Re-enter - skips S1 and enters S2
  9354. Successfully close S2
  9355. -------------------------------------------------------------------------------
  9356. PartTracker.tests.cpp:<line number>
  9357. ...............................................................................
  9358. PartTracker.tests.cpp:<line number>: PASSED:
  9359. REQUIRE( ctx.completedCycle() )
  9360. with expansion:
  9361. true
  9362. PartTracker.tests.cpp:<line number>: PASSED:
  9363. REQUIRE( s2b.isSuccessfullyCompleted() )
  9364. with expansion:
  9365. true
  9366. PartTracker.tests.cpp:<line number>: PASSED:
  9367. REQUIRE( testCase2.isComplete() == false )
  9368. with expansion:
  9369. false == false
  9370. PartTracker.tests.cpp:<line number>: PASSED:
  9371. REQUIRE( testCase2.isSuccessfullyCompleted() )
  9372. with expansion:
  9373. true
  9374. -------------------------------------------------------------------------------
  9375. Tracker
  9376. -------------------------------------------------------------------------------
  9377. PartTracker.tests.cpp:<line number>
  9378. ...............................................................................
  9379. PartTracker.tests.cpp:<line number>: PASSED:
  9380. REQUIRE( testCase.isOpen() )
  9381. with expansion:
  9382. true
  9383. PartTracker.tests.cpp:<line number>: PASSED:
  9384. REQUIRE( s1.isOpen() )
  9385. with expansion:
  9386. true
  9387. -------------------------------------------------------------------------------
  9388. Tracker
  9389. successfully close one section, then find another
  9390. -------------------------------------------------------------------------------
  9391. PartTracker.tests.cpp:<line number>
  9392. ...............................................................................
  9393. PartTracker.tests.cpp:<line number>: PASSED:
  9394. REQUIRE( s2.isOpen() == false )
  9395. with expansion:
  9396. false == false
  9397. PartTracker.tests.cpp:<line number>: PASSED:
  9398. REQUIRE( testCase.isComplete() == false )
  9399. with expansion:
  9400. false == false
  9401. -------------------------------------------------------------------------------
  9402. Tracker
  9403. successfully close one section, then find another
  9404. Re-enter - skips S1 and enters S2
  9405. -------------------------------------------------------------------------------
  9406. PartTracker.tests.cpp:<line number>
  9407. ...............................................................................
  9408. PartTracker.tests.cpp:<line number>: PASSED:
  9409. REQUIRE( testCase2.isOpen() )
  9410. with expansion:
  9411. true
  9412. PartTracker.tests.cpp:<line number>: PASSED:
  9413. REQUIRE( s1b.isOpen() == false )
  9414. with expansion:
  9415. false == false
  9416. PartTracker.tests.cpp:<line number>: PASSED:
  9417. REQUIRE( s2b.isOpen() )
  9418. with expansion:
  9419. true
  9420. PartTracker.tests.cpp:<line number>: PASSED:
  9421. REQUIRE( ctx.completedCycle() == false )
  9422. with expansion:
  9423. false == false
  9424. -------------------------------------------------------------------------------
  9425. Tracker
  9426. successfully close one section, then find another
  9427. Re-enter - skips S1 and enters S2
  9428. fail S2
  9429. -------------------------------------------------------------------------------
  9430. PartTracker.tests.cpp:<line number>
  9431. ...............................................................................
  9432. PartTracker.tests.cpp:<line number>: PASSED:
  9433. REQUIRE( ctx.completedCycle() )
  9434. with expansion:
  9435. true
  9436. PartTracker.tests.cpp:<line number>: PASSED:
  9437. REQUIRE( s2b.isComplete() )
  9438. with expansion:
  9439. true
  9440. PartTracker.tests.cpp:<line number>: PASSED:
  9441. REQUIRE( s2b.isSuccessfullyCompleted() == false )
  9442. with expansion:
  9443. false == false
  9444. PartTracker.tests.cpp:<line number>: PASSED:
  9445. REQUIRE( testCase2.isSuccessfullyCompleted() == false )
  9446. with expansion:
  9447. false == false
  9448. PartTracker.tests.cpp:<line number>: PASSED:
  9449. REQUIRE( testCase3.isOpen() )
  9450. with expansion:
  9451. true
  9452. PartTracker.tests.cpp:<line number>: PASSED:
  9453. REQUIRE( s1c.isOpen() == false )
  9454. with expansion:
  9455. false == false
  9456. PartTracker.tests.cpp:<line number>: PASSED:
  9457. REQUIRE( s2c.isOpen() == false )
  9458. with expansion:
  9459. false == false
  9460. PartTracker.tests.cpp:<line number>: PASSED:
  9461. REQUIRE( testCase3.isSuccessfullyCompleted() )
  9462. with expansion:
  9463. true
  9464. -------------------------------------------------------------------------------
  9465. Tracker
  9466. -------------------------------------------------------------------------------
  9467. PartTracker.tests.cpp:<line number>
  9468. ...............................................................................
  9469. PartTracker.tests.cpp:<line number>: PASSED:
  9470. REQUIRE( testCase.isOpen() )
  9471. with expansion:
  9472. true
  9473. PartTracker.tests.cpp:<line number>: PASSED:
  9474. REQUIRE( s1.isOpen() )
  9475. with expansion:
  9476. true
  9477. -------------------------------------------------------------------------------
  9478. Tracker
  9479. open a nested section
  9480. -------------------------------------------------------------------------------
  9481. PartTracker.tests.cpp:<line number>
  9482. ...............................................................................
  9483. PartTracker.tests.cpp:<line number>: PASSED:
  9484. REQUIRE( s2.isOpen() )
  9485. with expansion:
  9486. true
  9487. PartTracker.tests.cpp:<line number>: PASSED:
  9488. REQUIRE( s2.isComplete() )
  9489. with expansion:
  9490. true
  9491. PartTracker.tests.cpp:<line number>: PASSED:
  9492. REQUIRE( s1.isComplete() == false )
  9493. with expansion:
  9494. false == false
  9495. PartTracker.tests.cpp:<line number>: PASSED:
  9496. REQUIRE( s1.isComplete() )
  9497. with expansion:
  9498. true
  9499. PartTracker.tests.cpp:<line number>: PASSED:
  9500. REQUIRE( testCase.isComplete() == false )
  9501. with expansion:
  9502. false == false
  9503. PartTracker.tests.cpp:<line number>: PASSED:
  9504. REQUIRE( testCase.isComplete() )
  9505. with expansion:
  9506. true
  9507. -------------------------------------------------------------------------------
  9508. Trim strings
  9509. -------------------------------------------------------------------------------
  9510. StringManip.tests.cpp:<line number>
  9511. ...............................................................................
  9512. StringManip.tests.cpp:<line number>: PASSED:
  9513. REQUIRE( trim(std::string(no_whitespace)) == no_whitespace )
  9514. with expansion:
  9515. "There is no extra whitespace here"
  9516. ==
  9517. "There is no extra whitespace here"
  9518. StringManip.tests.cpp:<line number>: PASSED:
  9519. REQUIRE( trim(std::string(leading_whitespace)) == no_whitespace )
  9520. with expansion:
  9521. "There is no extra whitespace here"
  9522. ==
  9523. "There is no extra whitespace here"
  9524. StringManip.tests.cpp:<line number>: PASSED:
  9525. REQUIRE( trim(std::string(trailing_whitespace)) == no_whitespace )
  9526. with expansion:
  9527. "There is no extra whitespace here"
  9528. ==
  9529. "There is no extra whitespace here"
  9530. StringManip.tests.cpp:<line number>: PASSED:
  9531. REQUIRE( trim(std::string(whitespace_at_both_ends)) == no_whitespace )
  9532. with expansion:
  9533. "There is no extra whitespace here"
  9534. ==
  9535. "There is no extra whitespace here"
  9536. StringManip.tests.cpp:<line number>: PASSED:
  9537. REQUIRE( trim(StringRef(no_whitespace)) == StringRef(no_whitespace) )
  9538. with expansion:
  9539. There is no extra whitespace here
  9540. ==
  9541. There is no extra whitespace here
  9542. StringManip.tests.cpp:<line number>: PASSED:
  9543. REQUIRE( trim(StringRef(leading_whitespace)) == StringRef(no_whitespace) )
  9544. with expansion:
  9545. There is no extra whitespace here
  9546. ==
  9547. There is no extra whitespace here
  9548. StringManip.tests.cpp:<line number>: PASSED:
  9549. REQUIRE( trim(StringRef(trailing_whitespace)) == StringRef(no_whitespace) )
  9550. with expansion:
  9551. There is no extra whitespace here
  9552. ==
  9553. There is no extra whitespace here
  9554. StringManip.tests.cpp:<line number>: PASSED:
  9555. REQUIRE( trim(StringRef(whitespace_at_both_ends)) == StringRef(no_whitespace) )
  9556. with expansion:
  9557. There is no extra whitespace here
  9558. ==
  9559. There is no extra whitespace here
  9560. -------------------------------------------------------------------------------
  9561. Unexpected exceptions can be translated
  9562. -------------------------------------------------------------------------------
  9563. Exception.tests.cpp:<line number>
  9564. ...............................................................................
  9565. Exception.tests.cpp:<line number>: FAILED:
  9566. due to unexpected exception with message:
  9567. 3.14
  9568. -------------------------------------------------------------------------------
  9569. Use a custom approx
  9570. -------------------------------------------------------------------------------
  9571. Approx.tests.cpp:<line number>
  9572. ...............................................................................
  9573. Approx.tests.cpp:<line number>: PASSED:
  9574. REQUIRE( d == approx( 1.23 ) )
  9575. with expansion:
  9576. 1.23 == Approx( 1.23 )
  9577. Approx.tests.cpp:<line number>: PASSED:
  9578. REQUIRE( d == approx( 1.22 ) )
  9579. with expansion:
  9580. 1.23 == Approx( 1.22 )
  9581. Approx.tests.cpp:<line number>: PASSED:
  9582. REQUIRE( d == approx( 1.24 ) )
  9583. with expansion:
  9584. 1.23 == Approx( 1.24 )
  9585. Approx.tests.cpp:<line number>: PASSED:
  9586. REQUIRE( d != approx( 1.25 ) )
  9587. with expansion:
  9588. 1.23 != Approx( 1.25 )
  9589. Approx.tests.cpp:<line number>: PASSED:
  9590. REQUIRE( approx( d ) == 1.23 )
  9591. with expansion:
  9592. Approx( 1.23 ) == 1.23
  9593. Approx.tests.cpp:<line number>: PASSED:
  9594. REQUIRE( approx( d ) == 1.22 )
  9595. with expansion:
  9596. Approx( 1.23 ) == 1.22
  9597. Approx.tests.cpp:<line number>: PASSED:
  9598. REQUIRE( approx( d ) == 1.24 )
  9599. with expansion:
  9600. Approx( 1.23 ) == 1.24
  9601. Approx.tests.cpp:<line number>: PASSED:
  9602. REQUIRE( approx( d ) != 1.25 )
  9603. with expansion:
  9604. Approx( 1.23 ) != 1.25
  9605. -------------------------------------------------------------------------------
  9606. Variadic macros
  9607. Section with one argument
  9608. -------------------------------------------------------------------------------
  9609. VariadicMacros.tests.cpp:<line number>
  9610. ...............................................................................
  9611. VariadicMacros.tests.cpp:<line number>: PASSED:
  9612. with message:
  9613. no assertions
  9614. -------------------------------------------------------------------------------
  9615. Vector Approx matcher
  9616. Empty vector is roughly equal to an empty vector
  9617. -------------------------------------------------------------------------------
  9618. Matchers.tests.cpp:<line number>
  9619. ...............................................................................
  9620. Matchers.tests.cpp:<line number>: PASSED:
  9621. REQUIRE_THAT( empty, Approx(empty) )
  9622. with expansion:
  9623. { } is approx: { }
  9624. -------------------------------------------------------------------------------
  9625. Vector Approx matcher
  9626. Vectors with elements
  9627. A vector is approx equal to itself
  9628. -------------------------------------------------------------------------------
  9629. Matchers.tests.cpp:<line number>
  9630. ...............................................................................
  9631. Matchers.tests.cpp:<line number>: PASSED:
  9632. REQUIRE_THAT( v1, Approx(v1) )
  9633. with expansion:
  9634. { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
  9635. Matchers.tests.cpp:<line number>: PASSED:
  9636. REQUIRE_THAT( v1, Approx<double>({ 1., 2., 3. }) )
  9637. with expansion:
  9638. { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
  9639. -------------------------------------------------------------------------------
  9640. Vector Approx matcher
  9641. Vectors with elements
  9642. Different length
  9643. -------------------------------------------------------------------------------
  9644. Matchers.tests.cpp:<line number>
  9645. ...............................................................................
  9646. Matchers.tests.cpp:<line number>: PASSED:
  9647. REQUIRE_THAT( v1, !Approx(temp) )
  9648. with expansion:
  9649. { 1.0, 2.0, 3.0 } not is approx: { 1.0, 2.0, 3.0, 4.0 }
  9650. -------------------------------------------------------------------------------
  9651. Vector Approx matcher
  9652. Vectors with elements
  9653. Same length, different elements
  9654. -------------------------------------------------------------------------------
  9655. Matchers.tests.cpp:<line number>
  9656. ...............................................................................
  9657. Matchers.tests.cpp:<line number>: PASSED:
  9658. REQUIRE_THAT( v1, !Approx(v2) )
  9659. with expansion:
  9660. { 1.0, 2.0, 3.0 } not is approx: { 1.5, 2.5, 3.5 }
  9661. Matchers.tests.cpp:<line number>: PASSED:
  9662. REQUIRE_THAT( v1, Approx(v2).margin(0.5) )
  9663. with expansion:
  9664. { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
  9665. Matchers.tests.cpp:<line number>: PASSED:
  9666. REQUIRE_THAT( v1, Approx(v2).epsilon(0.5) )
  9667. with expansion:
  9668. { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
  9669. Matchers.tests.cpp:<line number>: PASSED:
  9670. REQUIRE_THAT( v1, Approx(v2).epsilon(0.1).scale(500) )
  9671. with expansion:
  9672. { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
  9673. -------------------------------------------------------------------------------
  9674. Vector Approx matcher -- failing
  9675. Empty and non empty vectors are not approx equal
  9676. -------------------------------------------------------------------------------
  9677. Matchers.tests.cpp:<line number>
  9678. ...............................................................................
  9679. Matchers.tests.cpp:<line number>: FAILED:
  9680. CHECK_THAT( empty, Approx(t1) )
  9681. with expansion:
  9682. { } is approx: { 1.0, 2.0 }
  9683. -------------------------------------------------------------------------------
  9684. Vector Approx matcher -- failing
  9685. Just different vectors
  9686. -------------------------------------------------------------------------------
  9687. Matchers.tests.cpp:<line number>
  9688. ...............................................................................
  9689. Matchers.tests.cpp:<line number>: FAILED:
  9690. CHECK_THAT( v1, Approx(v2) )
  9691. with expansion:
  9692. { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 }
  9693. -------------------------------------------------------------------------------
  9694. Vector matchers
  9695. Contains (element)
  9696. -------------------------------------------------------------------------------
  9697. Matchers.tests.cpp:<line number>
  9698. ...............................................................................
  9699. Matchers.tests.cpp:<line number>: PASSED:
  9700. CHECK_THAT( v, VectorContains(1) )
  9701. with expansion:
  9702. { 1, 2, 3 } Contains: 1
  9703. Matchers.tests.cpp:<line number>: PASSED:
  9704. CHECK_THAT( v, VectorContains(2) )
  9705. with expansion:
  9706. { 1, 2, 3 } Contains: 2
  9707. Matchers.tests.cpp:<line number>: PASSED:
  9708. CHECK_THAT( v5, (VectorContains<int, CustomAllocator<int>>(2)) )
  9709. with expansion:
  9710. { 1, 2, 3 } Contains: 2
  9711. -------------------------------------------------------------------------------
  9712. Vector matchers
  9713. Contains (vector)
  9714. -------------------------------------------------------------------------------
  9715. Matchers.tests.cpp:<line number>
  9716. ...............................................................................
  9717. Matchers.tests.cpp:<line number>: PASSED:
  9718. CHECK_THAT( v, Contains(v2) )
  9719. with expansion:
  9720. { 1, 2, 3 } Contains: { 1, 2 }
  9721. Matchers.tests.cpp:<line number>: PASSED:
  9722. CHECK_THAT( v, Contains<int>({ 1, 2 }) )
  9723. with expansion:
  9724. { 1, 2, 3 } Contains: { 1, 2 }
  9725. Matchers.tests.cpp:<line number>: PASSED:
  9726. CHECK_THAT( v5, (Contains<int, std::allocator<int>, CustomAllocator<int>>(v2)) )
  9727. with expansion:
  9728. { 1, 2, 3 } Contains: { 1, 2 }
  9729. Matchers.tests.cpp:<line number>: PASSED:
  9730. CHECK_THAT( v, Contains(v2) )
  9731. with expansion:
  9732. { 1, 2, 3 } Contains: { 1, 2, 3 }
  9733. Matchers.tests.cpp:<line number>: PASSED:
  9734. CHECK_THAT( v, Contains(empty) )
  9735. with expansion:
  9736. { 1, 2, 3 } Contains: { }
  9737. Matchers.tests.cpp:<line number>: PASSED:
  9738. CHECK_THAT( empty, Contains(empty) )
  9739. with expansion:
  9740. { } Contains: { }
  9741. Matchers.tests.cpp:<line number>: PASSED:
  9742. CHECK_THAT( v5, (Contains<int, std::allocator<int>, CustomAllocator<int>>(v2)) )
  9743. with expansion:
  9744. { 1, 2, 3 } Contains: { 1, 2, 3 }
  9745. Matchers.tests.cpp:<line number>: PASSED:
  9746. CHECK_THAT( v5, Contains(v6) )
  9747. with expansion:
  9748. { 1, 2, 3 } Contains: { 1, 2 }
  9749. -------------------------------------------------------------------------------
  9750. Vector matchers
  9751. Contains (element), composed
  9752. -------------------------------------------------------------------------------
  9753. Matchers.tests.cpp:<line number>
  9754. ...............................................................................
  9755. Matchers.tests.cpp:<line number>: PASSED:
  9756. CHECK_THAT( v, VectorContains(1) && VectorContains(2) )
  9757. with expansion:
  9758. { 1, 2, 3 } ( Contains: 1 and Contains: 2 )
  9759. -------------------------------------------------------------------------------
  9760. Vector matchers
  9761. Equals
  9762. -------------------------------------------------------------------------------
  9763. Matchers.tests.cpp:<line number>
  9764. ...............................................................................
  9765. Matchers.tests.cpp:<line number>: PASSED:
  9766. CHECK_THAT( v, Equals(v) )
  9767. with expansion:
  9768. { 1, 2, 3 } Equals: { 1, 2, 3 }
  9769. Matchers.tests.cpp:<line number>: PASSED:
  9770. CHECK_THAT( empty, Equals(empty) )
  9771. with expansion:
  9772. { } Equals: { }
  9773. Matchers.tests.cpp:<line number>: PASSED:
  9774. CHECK_THAT( v, Equals<int>({ 1, 2, 3 }) )
  9775. with expansion:
  9776. { 1, 2, 3 } Equals: { 1, 2, 3 }
  9777. Matchers.tests.cpp:<line number>: PASSED:
  9778. CHECK_THAT( v, Equals(v2) )
  9779. with expansion:
  9780. { 1, 2, 3 } Equals: { 1, 2, 3 }
  9781. Matchers.tests.cpp:<line number>: PASSED:
  9782. CHECK_THAT( v5, (Equals<int, std::allocator<int>, CustomAllocator<int>>(v2)) )
  9783. with expansion:
  9784. { 1, 2, 3 } Equals: { 1, 2, 3 }
  9785. Matchers.tests.cpp:<line number>: PASSED:
  9786. CHECK_THAT( v5, Equals(v6) )
  9787. with expansion:
  9788. { 1, 2, 3 } Equals: { 1, 2, 3 }
  9789. -------------------------------------------------------------------------------
  9790. Vector matchers
  9791. UnorderedEquals
  9792. -------------------------------------------------------------------------------
  9793. Matchers.tests.cpp:<line number>
  9794. ...............................................................................
  9795. Matchers.tests.cpp:<line number>: PASSED:
  9796. CHECK_THAT( v, UnorderedEquals(v) )
  9797. with expansion:
  9798. { 1, 2, 3 } UnorderedEquals: { 1, 2, 3 }
  9799. Matchers.tests.cpp:<line number>: PASSED:
  9800. CHECK_THAT( v, UnorderedEquals<int>({ 3, 2, 1 }) )
  9801. with expansion:
  9802. { 1, 2, 3 } UnorderedEquals: { 3, 2, 1 }
  9803. Matchers.tests.cpp:<line number>: PASSED:
  9804. CHECK_THAT( empty, UnorderedEquals(empty) )
  9805. with expansion:
  9806. { } UnorderedEquals: { }
  9807. Matchers.tests.cpp:<line number>: PASSED:
  9808. REQUIRE_THAT( permuted, UnorderedEquals(v) )
  9809. with expansion:
  9810. { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
  9811. Matchers.tests.cpp:<line number>: PASSED:
  9812. REQUIRE_THAT( permuted, UnorderedEquals(v) )
  9813. with expansion:
  9814. { 2, 3, 1 } UnorderedEquals: { 1, 2, 3 }
  9815. Matchers.tests.cpp:<line number>: PASSED:
  9816. CHECK_THAT( v5, (UnorderedEquals<int, std::allocator<int>, CustomAllocator<int>>(permuted)) )
  9817. with expansion:
  9818. { 1, 2, 3 } UnorderedEquals: { 2, 3, 1 }
  9819. Matchers.tests.cpp:<line number>: PASSED:
  9820. CHECK_THAT( v5_permuted, UnorderedEquals(v5) )
  9821. with expansion:
  9822. { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
  9823. -------------------------------------------------------------------------------
  9824. Vector matchers that fail
  9825. Contains (element)
  9826. -------------------------------------------------------------------------------
  9827. Matchers.tests.cpp:<line number>
  9828. ...............................................................................
  9829. Matchers.tests.cpp:<line number>: FAILED:
  9830. CHECK_THAT( v, VectorContains(-1) )
  9831. with expansion:
  9832. { 1, 2, 3 } Contains: -1
  9833. Matchers.tests.cpp:<line number>: FAILED:
  9834. CHECK_THAT( empty, VectorContains(1) )
  9835. with expansion:
  9836. { } Contains: 1
  9837. -------------------------------------------------------------------------------
  9838. Vector matchers that fail
  9839. Contains (vector)
  9840. -------------------------------------------------------------------------------
  9841. Matchers.tests.cpp:<line number>
  9842. ...............................................................................
  9843. Matchers.tests.cpp:<line number>: FAILED:
  9844. CHECK_THAT( empty, Contains(v) )
  9845. with expansion:
  9846. { } Contains: { 1, 2, 3 }
  9847. Matchers.tests.cpp:<line number>: FAILED:
  9848. CHECK_THAT( v, Contains(v2) )
  9849. with expansion:
  9850. { 1, 2, 3 } Contains: { 1, 2, 4 }
  9851. -------------------------------------------------------------------------------
  9852. Vector matchers that fail
  9853. Equals
  9854. -------------------------------------------------------------------------------
  9855. Matchers.tests.cpp:<line number>
  9856. ...............................................................................
  9857. Matchers.tests.cpp:<line number>: FAILED:
  9858. CHECK_THAT( v, Equals(v2) )
  9859. with expansion:
  9860. { 1, 2, 3 } Equals: { 1, 2 }
  9861. Matchers.tests.cpp:<line number>: FAILED:
  9862. CHECK_THAT( v2, Equals(v) )
  9863. with expansion:
  9864. { 1, 2 } Equals: { 1, 2, 3 }
  9865. Matchers.tests.cpp:<line number>: FAILED:
  9866. CHECK_THAT( empty, Equals(v) )
  9867. with expansion:
  9868. { } Equals: { 1, 2, 3 }
  9869. Matchers.tests.cpp:<line number>: FAILED:
  9870. CHECK_THAT( v, Equals(empty) )
  9871. with expansion:
  9872. { 1, 2, 3 } Equals: { }
  9873. -------------------------------------------------------------------------------
  9874. Vector matchers that fail
  9875. UnorderedEquals
  9876. -------------------------------------------------------------------------------
  9877. Matchers.tests.cpp:<line number>
  9878. ...............................................................................
  9879. Matchers.tests.cpp:<line number>: FAILED:
  9880. CHECK_THAT( v, UnorderedEquals(empty) )
  9881. with expansion:
  9882. { 1, 2, 3 } UnorderedEquals: { }
  9883. Matchers.tests.cpp:<line number>: FAILED:
  9884. CHECK_THAT( empty, UnorderedEquals(v) )
  9885. with expansion:
  9886. { } UnorderedEquals: { 1, 2, 3 }
  9887. Matchers.tests.cpp:<line number>: FAILED:
  9888. CHECK_THAT( permuted, UnorderedEquals(v) )
  9889. with expansion:
  9890. { 1, 3 } UnorderedEquals: { 1, 2, 3 }
  9891. Matchers.tests.cpp:<line number>: FAILED:
  9892. CHECK_THAT( permuted, UnorderedEquals(v) )
  9893. with expansion:
  9894. { 3, 1 } UnorderedEquals: { 1, 2, 3 }
  9895. -------------------------------------------------------------------------------
  9896. When checked exceptions are thrown they can be expected or unexpected
  9897. -------------------------------------------------------------------------------
  9898. Exception.tests.cpp:<line number>
  9899. ...............................................................................
  9900. Exception.tests.cpp:<line number>: PASSED:
  9901. REQUIRE_THROWS_AS( thisThrows(), std::domain_error )
  9902. Exception.tests.cpp:<line number>: PASSED:
  9903. REQUIRE_NOTHROW( thisDoesntThrow() )
  9904. Exception.tests.cpp:<line number>: PASSED:
  9905. REQUIRE_THROWS( thisThrows() )
  9906. -------------------------------------------------------------------------------
  9907. When unchecked exceptions are thrown directly they are always failures
  9908. -------------------------------------------------------------------------------
  9909. Exception.tests.cpp:<line number>
  9910. ...............................................................................
  9911. Exception.tests.cpp:<line number>: FAILED:
  9912. due to unexpected exception with message:
  9913. unexpected exception
  9914. -------------------------------------------------------------------------------
  9915. When unchecked exceptions are thrown during a CHECK the test should continue
  9916. -------------------------------------------------------------------------------
  9917. Exception.tests.cpp:<line number>
  9918. ...............................................................................
  9919. Exception.tests.cpp:<line number>: FAILED:
  9920. CHECK( thisThrows() == 0 )
  9921. due to unexpected exception with message:
  9922. expected exception
  9923. -------------------------------------------------------------------------------
  9924. When unchecked exceptions are thrown during a REQUIRE the test should abort
  9925. fail
  9926. -------------------------------------------------------------------------------
  9927. Exception.tests.cpp:<line number>
  9928. ...............................................................................
  9929. Exception.tests.cpp:<line number>: FAILED:
  9930. REQUIRE( thisThrows() == 0 )
  9931. due to unexpected exception with message:
  9932. expected exception
  9933. -------------------------------------------------------------------------------
  9934. When unchecked exceptions are thrown from functions they are always failures
  9935. -------------------------------------------------------------------------------
  9936. Exception.tests.cpp:<line number>
  9937. ...............................................................................
  9938. Exception.tests.cpp:<line number>: FAILED:
  9939. CHECK( thisThrows() == 0 )
  9940. due to unexpected exception with message:
  9941. expected exception
  9942. -------------------------------------------------------------------------------
  9943. When unchecked exceptions are thrown from sections they are always failures
  9944. section name
  9945. -------------------------------------------------------------------------------
  9946. Exception.tests.cpp:<line number>
  9947. ...............................................................................
  9948. Exception.tests.cpp:<line number>: FAILED:
  9949. due to unexpected exception with message:
  9950. unexpected exception
  9951. -------------------------------------------------------------------------------
  9952. When unchecked exceptions are thrown, but caught, they do not affect the test
  9953. -------------------------------------------------------------------------------
  9954. Exception.tests.cpp:<line number>
  9955. ...............................................................................
  9956. No assertions in test case 'When unchecked exceptions are thrown, but caught, they do not affect the test'
  9957. -------------------------------------------------------------------------------
  9958. Where the LHS is not a simple value
  9959. -------------------------------------------------------------------------------
  9960. Tricky.tests.cpp:<line number>
  9961. ...............................................................................
  9962. Tricky.tests.cpp:<line number>: warning:
  9963. Uncomment the code in this test to check that it gives a sensible compiler
  9964. error
  9965. No assertions in test case 'Where the LHS is not a simple value'
  9966. -------------------------------------------------------------------------------
  9967. Where there is more to the expression after the RHS
  9968. -------------------------------------------------------------------------------
  9969. Tricky.tests.cpp:<line number>
  9970. ...............................................................................
  9971. Tricky.tests.cpp:<line number>: warning:
  9972. Uncomment the code in this test to check that it gives a sensible compiler
  9973. error
  9974. No assertions in test case 'Where there is more to the expression after the RHS'
  9975. -------------------------------------------------------------------------------
  9976. X/level/0/a
  9977. -------------------------------------------------------------------------------
  9978. Tricky.tests.cpp:<line number>
  9979. ...............................................................................
  9980. Tricky.tests.cpp:<line number>: PASSED:
  9981. -------------------------------------------------------------------------------
  9982. X/level/0/b
  9983. -------------------------------------------------------------------------------
  9984. Tricky.tests.cpp:<line number>
  9985. ...............................................................................
  9986. Tricky.tests.cpp:<line number>: PASSED:
  9987. -------------------------------------------------------------------------------
  9988. X/level/1/a
  9989. -------------------------------------------------------------------------------
  9990. Tricky.tests.cpp:<line number>
  9991. ...............................................................................
  9992. Tricky.tests.cpp:<line number>: PASSED:
  9993. -------------------------------------------------------------------------------
  9994. X/level/1/b
  9995. -------------------------------------------------------------------------------
  9996. Tricky.tests.cpp:<line number>
  9997. ...............................................................................
  9998. Tricky.tests.cpp:<line number>: PASSED:
  9999. -------------------------------------------------------------------------------
  10000. XmlEncode
  10001. normal string
  10002. -------------------------------------------------------------------------------
  10003. Xml.tests.cpp:<line number>
  10004. ...............................................................................
  10005. Xml.tests.cpp:<line number>: PASSED:
  10006. REQUIRE( encode( "normal string" ) == "normal string" )
  10007. with expansion:
  10008. "normal string" == "normal string"
  10009. -------------------------------------------------------------------------------
  10010. XmlEncode
  10011. empty string
  10012. -------------------------------------------------------------------------------
  10013. Xml.tests.cpp:<line number>
  10014. ...............................................................................
  10015. Xml.tests.cpp:<line number>: PASSED:
  10016. REQUIRE( encode( "" ) == "" )
  10017. with expansion:
  10018. "" == ""
  10019. -------------------------------------------------------------------------------
  10020. XmlEncode
  10021. string with ampersand
  10022. -------------------------------------------------------------------------------
  10023. Xml.tests.cpp:<line number>
  10024. ...............................................................................
  10025. Xml.tests.cpp:<line number>: PASSED:
  10026. REQUIRE( encode( "smith & jones" ) == "smith &amp; jones" )
  10027. with expansion:
  10028. "smith &amp; jones" == "smith &amp; jones"
  10029. -------------------------------------------------------------------------------
  10030. XmlEncode
  10031. string with less-than
  10032. -------------------------------------------------------------------------------
  10033. Xml.tests.cpp:<line number>
  10034. ...............................................................................
  10035. Xml.tests.cpp:<line number>: PASSED:
  10036. REQUIRE( encode( "smith < jones" ) == "smith &lt; jones" )
  10037. with expansion:
  10038. "smith &lt; jones" == "smith &lt; jones"
  10039. -------------------------------------------------------------------------------
  10040. XmlEncode
  10041. string with greater-than
  10042. -------------------------------------------------------------------------------
  10043. Xml.tests.cpp:<line number>
  10044. ...............................................................................
  10045. Xml.tests.cpp:<line number>: PASSED:
  10046. REQUIRE( encode( "smith > jones" ) == "smith > jones" )
  10047. with expansion:
  10048. "smith > jones" == "smith > jones"
  10049. Xml.tests.cpp:<line number>: PASSED:
  10050. REQUIRE( encode( "smith ]]> jones" ) == "smith ]]&gt; jones" )
  10051. with expansion:
  10052. "smith ]]&gt; jones"
  10053. ==
  10054. "smith ]]&gt; jones"
  10055. -------------------------------------------------------------------------------
  10056. XmlEncode
  10057. string with quotes
  10058. -------------------------------------------------------------------------------
  10059. Xml.tests.cpp:<line number>
  10060. ...............................................................................
  10061. Xml.tests.cpp:<line number>: PASSED:
  10062. REQUIRE( encode( stringWithQuotes ) == stringWithQuotes )
  10063. with expansion:
  10064. "don't "quote" me on that"
  10065. ==
  10066. "don't "quote" me on that"
  10067. Xml.tests.cpp:<line number>: PASSED:
  10068. REQUIRE( encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't &quot;quote&quot; me on that" )
  10069. with expansion:
  10070. "don't &quot;quote&quot; me on that"
  10071. ==
  10072. "don't &quot;quote&quot; me on that"
  10073. -------------------------------------------------------------------------------
  10074. XmlEncode
  10075. string with control char (1)
  10076. -------------------------------------------------------------------------------
  10077. Xml.tests.cpp:<line number>
  10078. ...............................................................................
  10079. Xml.tests.cpp:<line number>: PASSED:
  10080. REQUIRE( encode( "[\x01]" ) == "[\\x01]" )
  10081. with expansion:
  10082. "[\x01]" == "[\x01]"
  10083. -------------------------------------------------------------------------------
  10084. XmlEncode
  10085. string with control char (x7F)
  10086. -------------------------------------------------------------------------------
  10087. Xml.tests.cpp:<line number>
  10088. ...............................................................................
  10089. Xml.tests.cpp:<line number>: PASSED:
  10090. REQUIRE( encode( "[\x7F]" ) == "[\\x7F]" )
  10091. with expansion:
  10092. "[\x7F]" == "[\x7F]"
  10093. -------------------------------------------------------------------------------
  10094. adding a hide tag implicitly enables all others
  10095. -------------------------------------------------------------------------------
  10096. Tag.tests.cpp:<line number>
  10097. ...............................................................................
  10098. Tag.tests.cpp:<line number>: PASSED:
  10099. REQUIRE_THAT( testcase.tags, VectorContains(std::string(".")) && VectorContains(std::string("!hide")) )
  10100. with expansion:
  10101. { "!hide", "." } ( Contains: "." and Contains: "!hide" )
  10102. -------------------------------------------------------------------------------
  10103. adding a hide tag implicitly enables all others
  10104. -------------------------------------------------------------------------------
  10105. Tag.tests.cpp:<line number>
  10106. ...............................................................................
  10107. Tag.tests.cpp:<line number>: PASSED:
  10108. REQUIRE_THAT( testcase.tags, VectorContains(std::string(".")) && VectorContains(std::string("!hide")) )
  10109. with expansion:
  10110. { "!hide", "." } ( Contains: "." and Contains: "!hide" )
  10111. -------------------------------------------------------------------------------
  10112. adding a hide tag implicitly enables all others
  10113. -------------------------------------------------------------------------------
  10114. Tag.tests.cpp:<line number>
  10115. ...............................................................................
  10116. Tag.tests.cpp:<line number>: PASSED:
  10117. REQUIRE_THAT( testcase.tags, VectorContains(std::string(".")) && VectorContains(std::string("!hide")) )
  10118. with expansion:
  10119. { "!hide", ".", "foo" } ( Contains: "." and Contains: "!hide" )
  10120. -------------------------------------------------------------------------------
  10121. array<int, N> -> toString
  10122. -------------------------------------------------------------------------------
  10123. ToStringVector.tests.cpp:<line number>
  10124. ...............................................................................
  10125. ToStringVector.tests.cpp:<line number>: PASSED:
  10126. REQUIRE( Catch::Detail::stringify( empty ) == "{ }" )
  10127. with expansion:
  10128. "{ }" == "{ }"
  10129. ToStringVector.tests.cpp:<line number>: PASSED:
  10130. REQUIRE( Catch::Detail::stringify( oneValue ) == "{ 42 }" )
  10131. with expansion:
  10132. "{ 42 }" == "{ 42 }"
  10133. ToStringVector.tests.cpp:<line number>: PASSED:
  10134. REQUIRE( Catch::Detail::stringify( twoValues ) == "{ 42, 250 }" )
  10135. with expansion:
  10136. "{ 42, 250 }" == "{ 42, 250 }"
  10137. -------------------------------------------------------------------------------
  10138. atomic if
  10139. -------------------------------------------------------------------------------
  10140. Misc.tests.cpp:<line number>
  10141. ...............................................................................
  10142. Misc.tests.cpp:<line number>: PASSED:
  10143. REQUIRE( x == 0 )
  10144. with expansion:
  10145. 0 == 0
  10146. -------------------------------------------------------------------------------
  10147. boolean member
  10148. -------------------------------------------------------------------------------
  10149. Tricky.tests.cpp:<line number>
  10150. ...............................................................................
  10151. Tricky.tests.cpp:<line number>: PASSED:
  10152. REQUIRE( obj.prop != 0 )
  10153. with expansion:
  10154. 0x<hex digits> != 0
  10155. -------------------------------------------------------------------------------
  10156. checkedElse
  10157. -------------------------------------------------------------------------------
  10158. Misc.tests.cpp:<line number>
  10159. ...............................................................................
  10160. Misc.tests.cpp:<line number>: PASSED:
  10161. CHECKED_ELSE( flag )
  10162. with expansion:
  10163. true
  10164. Misc.tests.cpp:<line number>: PASSED:
  10165. REQUIRE( testCheckedElse( true ) )
  10166. with expansion:
  10167. true
  10168. -------------------------------------------------------------------------------
  10169. checkedElse, failing
  10170. -------------------------------------------------------------------------------
  10171. Misc.tests.cpp:<line number>
  10172. ...............................................................................
  10173. Misc.tests.cpp:<line number>: FAILED:
  10174. CHECKED_ELSE( flag )
  10175. with expansion:
  10176. false
  10177. Misc.tests.cpp:<line number>: FAILED:
  10178. REQUIRE( testCheckedElse( false ) )
  10179. with expansion:
  10180. false
  10181. -------------------------------------------------------------------------------
  10182. checkedIf
  10183. -------------------------------------------------------------------------------
  10184. Misc.tests.cpp:<line number>
  10185. ...............................................................................
  10186. Misc.tests.cpp:<line number>: PASSED:
  10187. CHECKED_IF( flag )
  10188. with expansion:
  10189. true
  10190. Misc.tests.cpp:<line number>: PASSED:
  10191. REQUIRE( testCheckedIf( true ) )
  10192. with expansion:
  10193. true
  10194. -------------------------------------------------------------------------------
  10195. checkedIf, failing
  10196. -------------------------------------------------------------------------------
  10197. Misc.tests.cpp:<line number>
  10198. ...............................................................................
  10199. Misc.tests.cpp:<line number>: FAILED:
  10200. CHECKED_IF( flag )
  10201. with expansion:
  10202. false
  10203. Misc.tests.cpp:<line number>: FAILED:
  10204. REQUIRE( testCheckedIf( false ) )
  10205. with expansion:
  10206. false
  10207. -------------------------------------------------------------------------------
  10208. comparisons between const int variables
  10209. -------------------------------------------------------------------------------
  10210. Condition.tests.cpp:<line number>
  10211. ...............................................................................
  10212. Condition.tests.cpp:<line number>: PASSED:
  10213. REQUIRE( unsigned_char_var == 1 )
  10214. with expansion:
  10215. 1 == 1
  10216. Condition.tests.cpp:<line number>: PASSED:
  10217. REQUIRE( unsigned_short_var == 1 )
  10218. with expansion:
  10219. 1 == 1
  10220. Condition.tests.cpp:<line number>: PASSED:
  10221. REQUIRE( unsigned_int_var == 1 )
  10222. with expansion:
  10223. 1 == 1
  10224. Condition.tests.cpp:<line number>: PASSED:
  10225. REQUIRE( unsigned_long_var == 1 )
  10226. with expansion:
  10227. 1 == 1
  10228. -------------------------------------------------------------------------------
  10229. comparisons between int variables
  10230. -------------------------------------------------------------------------------
  10231. Condition.tests.cpp:<line number>
  10232. ...............................................................................
  10233. Condition.tests.cpp:<line number>: PASSED:
  10234. REQUIRE( long_var == unsigned_char_var )
  10235. with expansion:
  10236. 1 == 1
  10237. Condition.tests.cpp:<line number>: PASSED:
  10238. REQUIRE( long_var == unsigned_short_var )
  10239. with expansion:
  10240. 1 == 1
  10241. Condition.tests.cpp:<line number>: PASSED:
  10242. REQUIRE( long_var == unsigned_int_var )
  10243. with expansion:
  10244. 1 == 1
  10245. Condition.tests.cpp:<line number>: PASSED:
  10246. REQUIRE( long_var == unsigned_long_var )
  10247. with expansion:
  10248. 1 == 1
  10249. -------------------------------------------------------------------------------
  10250. even more nested SECTION tests
  10251. c
  10252. d (leaf)
  10253. -------------------------------------------------------------------------------
  10254. Misc.tests.cpp:<line number>
  10255. ...............................................................................
  10256. Misc.tests.cpp:<line number>: PASSED:
  10257. -------------------------------------------------------------------------------
  10258. even more nested SECTION tests
  10259. c
  10260. e (leaf)
  10261. -------------------------------------------------------------------------------
  10262. Misc.tests.cpp:<line number>
  10263. ...............................................................................
  10264. Misc.tests.cpp:<line number>: PASSED:
  10265. -------------------------------------------------------------------------------
  10266. even more nested SECTION tests
  10267. f (leaf)
  10268. -------------------------------------------------------------------------------
  10269. Misc.tests.cpp:<line number>
  10270. ...............................................................................
  10271. Misc.tests.cpp:<line number>: PASSED:
  10272. -------------------------------------------------------------------------------
  10273. first tag
  10274. -------------------------------------------------------------------------------
  10275. Misc.tests.cpp:<line number>
  10276. ...............................................................................
  10277. No assertions in test case 'first tag'
  10278. loose text artifact
  10279. -------------------------------------------------------------------------------
  10280. has printf
  10281. -------------------------------------------------------------------------------
  10282. Tricky.tests.cpp:<line number>
  10283. ...............................................................................
  10284. No assertions in test case 'has printf'
  10285. -------------------------------------------------------------------------------
  10286. just failure
  10287. -------------------------------------------------------------------------------
  10288. Message.tests.cpp:<line number>
  10289. ...............................................................................
  10290. Message.tests.cpp:<line number>: FAILED:
  10291. explicitly with message:
  10292. Previous info should not be seen
  10293. -------------------------------------------------------------------------------
  10294. just failure after unscoped info
  10295. -------------------------------------------------------------------------------
  10296. Message.tests.cpp:<line number>
  10297. ...............................................................................
  10298. Message.tests.cpp:<line number>: FAILED:
  10299. explicitly with message:
  10300. previous unscoped info SHOULD not be seen
  10301. -------------------------------------------------------------------------------
  10302. just info
  10303. -------------------------------------------------------------------------------
  10304. Message.tests.cpp:<line number>
  10305. ...............................................................................
  10306. No assertions in test case 'just info'
  10307. -------------------------------------------------------------------------------
  10308. just unscoped info
  10309. -------------------------------------------------------------------------------
  10310. Message.tests.cpp:<line number>
  10311. ...............................................................................
  10312. No assertions in test case 'just unscoped info'
  10313. -------------------------------------------------------------------------------
  10314. long long
  10315. -------------------------------------------------------------------------------
  10316. Misc.tests.cpp:<line number>
  10317. ...............................................................................
  10318. Misc.tests.cpp:<line number>: PASSED:
  10319. REQUIRE( l == std::numeric_limits<long long>::max() )
  10320. with expansion:
  10321. 9223372036854775807 (0x<hex digits>)
  10322. ==
  10323. 9223372036854775807 (0x<hex digits>)
  10324. -------------------------------------------------------------------------------
  10325. looped SECTION tests
  10326. b is currently: 0
  10327. -------------------------------------------------------------------------------
  10328. Misc.tests.cpp:<line number>
  10329. ...............................................................................
  10330. Misc.tests.cpp:<line number>: FAILED:
  10331. CHECK( b > a )
  10332. with expansion:
  10333. 0 > 1
  10334. -------------------------------------------------------------------------------
  10335. looped SECTION tests
  10336. b is currently: 1
  10337. -------------------------------------------------------------------------------
  10338. Misc.tests.cpp:<line number>
  10339. ...............................................................................
  10340. Misc.tests.cpp:<line number>: FAILED:
  10341. CHECK( b > a )
  10342. with expansion:
  10343. 1 > 1
  10344. -------------------------------------------------------------------------------
  10345. looped SECTION tests
  10346. b is currently: 2
  10347. -------------------------------------------------------------------------------
  10348. Misc.tests.cpp:<line number>
  10349. ...............................................................................
  10350. Misc.tests.cpp:<line number>: PASSED:
  10351. CHECK( b > a )
  10352. with expansion:
  10353. 2 > 1
  10354. -------------------------------------------------------------------------------
  10355. looped SECTION tests
  10356. b is currently: 3
  10357. -------------------------------------------------------------------------------
  10358. Misc.tests.cpp:<line number>
  10359. ...............................................................................
  10360. Misc.tests.cpp:<line number>: PASSED:
  10361. CHECK( b > a )
  10362. with expansion:
  10363. 3 > 1
  10364. -------------------------------------------------------------------------------
  10365. looped SECTION tests
  10366. b is currently: 4
  10367. -------------------------------------------------------------------------------
  10368. Misc.tests.cpp:<line number>
  10369. ...............................................................................
  10370. Misc.tests.cpp:<line number>: PASSED:
  10371. CHECK( b > a )
  10372. with expansion:
  10373. 4 > 1
  10374. -------------------------------------------------------------------------------
  10375. looped SECTION tests
  10376. b is currently: 5
  10377. -------------------------------------------------------------------------------
  10378. Misc.tests.cpp:<line number>
  10379. ...............................................................................
  10380. Misc.tests.cpp:<line number>: PASSED:
  10381. CHECK( b > a )
  10382. with expansion:
  10383. 5 > 1
  10384. -------------------------------------------------------------------------------
  10385. looped SECTION tests
  10386. b is currently: 6
  10387. -------------------------------------------------------------------------------
  10388. Misc.tests.cpp:<line number>
  10389. ...............................................................................
  10390. Misc.tests.cpp:<line number>: PASSED:
  10391. CHECK( b > a )
  10392. with expansion:
  10393. 6 > 1
  10394. -------------------------------------------------------------------------------
  10395. looped SECTION tests
  10396. b is currently: 7
  10397. -------------------------------------------------------------------------------
  10398. Misc.tests.cpp:<line number>
  10399. ...............................................................................
  10400. Misc.tests.cpp:<line number>: PASSED:
  10401. CHECK( b > a )
  10402. with expansion:
  10403. 7 > 1
  10404. -------------------------------------------------------------------------------
  10405. looped SECTION tests
  10406. b is currently: 8
  10407. -------------------------------------------------------------------------------
  10408. Misc.tests.cpp:<line number>
  10409. ...............................................................................
  10410. Misc.tests.cpp:<line number>: PASSED:
  10411. CHECK( b > a )
  10412. with expansion:
  10413. 8 > 1
  10414. -------------------------------------------------------------------------------
  10415. looped SECTION tests
  10416. b is currently: 9
  10417. -------------------------------------------------------------------------------
  10418. Misc.tests.cpp:<line number>
  10419. ...............................................................................
  10420. Misc.tests.cpp:<line number>: PASSED:
  10421. CHECK( b > a )
  10422. with expansion:
  10423. 9 > 1
  10424. -------------------------------------------------------------------------------
  10425. looped tests
  10426. -------------------------------------------------------------------------------
  10427. Misc.tests.cpp:<line number>
  10428. ...............................................................................
  10429. Misc.tests.cpp:<line number>: FAILED:
  10430. CHECK( ( fib[i] % 2 ) == 0 )
  10431. with expansion:
  10432. 1 == 0
  10433. with message:
  10434. Testing if fib[0] (1) is even
  10435. Misc.tests.cpp:<line number>: FAILED:
  10436. CHECK( ( fib[i] % 2 ) == 0 )
  10437. with expansion:
  10438. 1 == 0
  10439. with message:
  10440. Testing if fib[1] (1) is even
  10441. Misc.tests.cpp:<line number>: PASSED:
  10442. CHECK( ( fib[i] % 2 ) == 0 )
  10443. with expansion:
  10444. 0 == 0
  10445. with message:
  10446. Testing if fib[2] (2) is even
  10447. Misc.tests.cpp:<line number>: FAILED:
  10448. CHECK( ( fib[i] % 2 ) == 0 )
  10449. with expansion:
  10450. 1 == 0
  10451. with message:
  10452. Testing if fib[3] (3) is even
  10453. Misc.tests.cpp:<line number>: FAILED:
  10454. CHECK( ( fib[i] % 2 ) == 0 )
  10455. with expansion:
  10456. 1 == 0
  10457. with message:
  10458. Testing if fib[4] (5) is even
  10459. Misc.tests.cpp:<line number>: PASSED:
  10460. CHECK( ( fib[i] % 2 ) == 0 )
  10461. with expansion:
  10462. 0 == 0
  10463. with message:
  10464. Testing if fib[5] (8) is even
  10465. Misc.tests.cpp:<line number>: FAILED:
  10466. CHECK( ( fib[i] % 2 ) == 0 )
  10467. with expansion:
  10468. 1 == 0
  10469. with message:
  10470. Testing if fib[6] (13) is even
  10471. Misc.tests.cpp:<line number>: FAILED:
  10472. CHECK( ( fib[i] % 2 ) == 0 )
  10473. with expansion:
  10474. 1 == 0
  10475. with message:
  10476. Testing if fib[7] (21) is even
  10477. -------------------------------------------------------------------------------
  10478. mix info, unscoped info and warning
  10479. -------------------------------------------------------------------------------
  10480. Message.tests.cpp:<line number>
  10481. ...............................................................................
  10482. Message.tests.cpp:<line number>: warning:
  10483. info
  10484. unscoped info
  10485. and warn may mix
  10486. Message.tests.cpp:<line number>: warning:
  10487. info
  10488. unscoped info
  10489. they are not cleared after warnings
  10490. No assertions in test case 'mix info, unscoped info and warning'
  10491. -------------------------------------------------------------------------------
  10492. more nested SECTION tests
  10493. doesn't equal
  10494. equal
  10495. -------------------------------------------------------------------------------
  10496. Misc.tests.cpp:<line number>
  10497. ...............................................................................
  10498. Misc.tests.cpp:<line number>: FAILED:
  10499. REQUIRE( a == b )
  10500. with expansion:
  10501. 1 == 2
  10502. -------------------------------------------------------------------------------
  10503. more nested SECTION tests
  10504. doesn't equal
  10505. not equal
  10506. -------------------------------------------------------------------------------
  10507. Misc.tests.cpp:<line number>
  10508. ...............................................................................
  10509. Misc.tests.cpp:<line number>: PASSED:
  10510. REQUIRE( a != b )
  10511. with expansion:
  10512. 1 != 2
  10513. -------------------------------------------------------------------------------
  10514. more nested SECTION tests
  10515. doesn't equal
  10516. less than
  10517. -------------------------------------------------------------------------------
  10518. Misc.tests.cpp:<line number>
  10519. ...............................................................................
  10520. Misc.tests.cpp:<line number>: PASSED:
  10521. REQUIRE( a < b )
  10522. with expansion:
  10523. 1 < 2
  10524. -------------------------------------------------------------------------------
  10525. nested SECTION tests
  10526. doesn't equal
  10527. -------------------------------------------------------------------------------
  10528. Misc.tests.cpp:<line number>
  10529. ...............................................................................
  10530. Misc.tests.cpp:<line number>: PASSED:
  10531. REQUIRE( a != b )
  10532. with expansion:
  10533. 1 != 2
  10534. Misc.tests.cpp:<line number>: PASSED:
  10535. REQUIRE( b != a )
  10536. with expansion:
  10537. 2 != 1
  10538. -------------------------------------------------------------------------------
  10539. nested SECTION tests
  10540. doesn't equal
  10541. not equal
  10542. -------------------------------------------------------------------------------
  10543. Misc.tests.cpp:<line number>
  10544. ...............................................................................
  10545. Misc.tests.cpp:<line number>: PASSED:
  10546. REQUIRE( a != b )
  10547. with expansion:
  10548. 1 != 2
  10549. -------------------------------------------------------------------------------
  10550. non streamable - with conv. op
  10551. -------------------------------------------------------------------------------
  10552. Tricky.tests.cpp:<line number>
  10553. ...............................................................................
  10554. Tricky.tests.cpp:<line number>: PASSED:
  10555. REQUIRE( s == "7" )
  10556. with expansion:
  10557. "7" == "7"
  10558. -------------------------------------------------------------------------------
  10559. non-copyable objects
  10560. -------------------------------------------------------------------------------
  10561. Tricky.tests.cpp:<line number>
  10562. ...............................................................................
  10563. Tricky.tests.cpp:<line number>: PASSED:
  10564. CHECK( ti == typeid(int) )
  10565. with expansion:
  10566. {?} == {?}
  10567. -------------------------------------------------------------------------------
  10568. not allowed
  10569. -------------------------------------------------------------------------------
  10570. Misc.tests.cpp:<line number>
  10571. ...............................................................................
  10572. Misc.tests.cpp:<line number>: PASSED:
  10573. -------------------------------------------------------------------------------
  10574. not prints unscoped info from previous failures
  10575. -------------------------------------------------------------------------------
  10576. Message.tests.cpp:<line number>
  10577. ...............................................................................
  10578. Message.tests.cpp:<line number>: PASSED:
  10579. REQUIRE( true )
  10580. with message:
  10581. this MAY be seen only for the FIRST assertion IF info is printed for passing
  10582. assertions
  10583. Message.tests.cpp:<line number>: PASSED:
  10584. REQUIRE( true )
  10585. with message:
  10586. this MAY be seen only for the SECOND assertion IF info is printed for passing
  10587. assertions
  10588. Message.tests.cpp:<line number>: FAILED:
  10589. REQUIRE( false )
  10590. with message:
  10591. this SHOULD be seen
  10592. -------------------------------------------------------------------------------
  10593. null strings
  10594. -------------------------------------------------------------------------------
  10595. Misc.tests.cpp:<line number>
  10596. ...............................................................................
  10597. Misc.tests.cpp:<line number>: PASSED:
  10598. REQUIRE( makeString( false ) != static_cast<char*>(0) )
  10599. with expansion:
  10600. "valid string" != {null string}
  10601. Misc.tests.cpp:<line number>: PASSED:
  10602. REQUIRE( makeString( true ) == static_cast<char*>(0) )
  10603. with expansion:
  10604. {null string} == {null string}
  10605. -------------------------------------------------------------------------------
  10606. null_ptr
  10607. -------------------------------------------------------------------------------
  10608. Tricky.tests.cpp:<line number>
  10609. ...............................................................................
  10610. Tricky.tests.cpp:<line number>: PASSED:
  10611. REQUIRE( ptr.get() == 0 )
  10612. with expansion:
  10613. 0 == 0
  10614. -------------------------------------------------------------------------------
  10615. pair<pair<int,const char *,pair<std::string,int> > -> toString
  10616. -------------------------------------------------------------------------------
  10617. ToStringPair.tests.cpp:<line number>
  10618. ...............................................................................
  10619. ToStringPair.tests.cpp:<line number>: PASSED:
  10620. REQUIRE( ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" )
  10621. with expansion:
  10622. "{ { 42, "Arthur" }, { "Ford", 24 } }"
  10623. ==
  10624. "{ { 42, "Arthur" }, { "Ford", 24 } }"
  10625. -------------------------------------------------------------------------------
  10626. parseEnums
  10627. No enums
  10628. -------------------------------------------------------------------------------
  10629. ToString.tests.cpp:<line number>
  10630. ...............................................................................
  10631. ToString.tests.cpp:<line number>: PASSED:
  10632. CHECK_THAT( parseEnums( "" ), Equals( std::vector<Catch::StringRef>{} ) )
  10633. with expansion:
  10634. { } Equals: { }
  10635. -------------------------------------------------------------------------------
  10636. parseEnums
  10637. One enum value
  10638. -------------------------------------------------------------------------------
  10639. ToString.tests.cpp:<line number>
  10640. ...............................................................................
  10641. ToString.tests.cpp:<line number>: PASSED:
  10642. CHECK_THAT( parseEnums( "ClassName::EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) )
  10643. with expansion:
  10644. { Value1 } Equals: { Value1 }
  10645. ToString.tests.cpp:<line number>: PASSED:
  10646. CHECK_THAT( parseEnums( "Value1" ), Equals( std::vector<Catch::StringRef>{"Value1"} ) )
  10647. with expansion:
  10648. { Value1 } Equals: { Value1 }
  10649. ToString.tests.cpp:<line number>: PASSED:
  10650. CHECK_THAT( parseEnums( "EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) )
  10651. with expansion:
  10652. { Value1 } Equals: { Value1 }
  10653. -------------------------------------------------------------------------------
  10654. parseEnums
  10655. Multiple enum values
  10656. -------------------------------------------------------------------------------
  10657. ToString.tests.cpp:<line number>
  10658. ...............................................................................
  10659. ToString.tests.cpp:<line number>: PASSED:
  10660. CHECK_THAT( parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2"} ) )
  10661. with expansion:
  10662. { Value1, Value2 } Equals: { Value1, Value2 }
  10663. ToString.tests.cpp:<line number>: PASSED:
  10664. CHECK_THAT( parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2, ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) )
  10665. with expansion:
  10666. { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
  10667. ToString.tests.cpp:<line number>: PASSED:
  10668. CHECK_THAT( parseEnums( "ClassName::EnumName::Value1,ClassName::EnumName::Value2 , ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) )
  10669. with expansion:
  10670. { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
  10671. -------------------------------------------------------------------------------
  10672. pointer to class
  10673. -------------------------------------------------------------------------------
  10674. Tricky.tests.cpp:<line number>
  10675. ...............................................................................
  10676. Tricky.tests.cpp:<line number>: PASSED:
  10677. REQUIRE( p == 0 )
  10678. with expansion:
  10679. 0 == 0
  10680. -------------------------------------------------------------------------------
  10681. print unscoped info if passing unscoped info is printed
  10682. -------------------------------------------------------------------------------
  10683. Message.tests.cpp:<line number>
  10684. ...............................................................................
  10685. Message.tests.cpp:<line number>: PASSED:
  10686. REQUIRE( true )
  10687. with message:
  10688. this MAY be seen IF info is printed for passing assertions
  10689. -------------------------------------------------------------------------------
  10690. prints unscoped info on failure
  10691. -------------------------------------------------------------------------------
  10692. Message.tests.cpp:<line number>
  10693. ...............................................................................
  10694. Message.tests.cpp:<line number>: FAILED:
  10695. REQUIRE( false )
  10696. with messages:
  10697. this SHOULD be seen
  10698. this SHOULD also be seen
  10699. -------------------------------------------------------------------------------
  10700. prints unscoped info only for the first assertion
  10701. -------------------------------------------------------------------------------
  10702. Message.tests.cpp:<line number>
  10703. ...............................................................................
  10704. Message.tests.cpp:<line number>: FAILED:
  10705. CHECK( false )
  10706. with message:
  10707. this SHOULD be seen only ONCE
  10708. Message.tests.cpp:<line number>: PASSED:
  10709. CHECK( true )
  10710. Message.tests.cpp:<line number>: PASSED:
  10711. CHECK( true )
  10712. with message:
  10713. this MAY also be seen only ONCE IF info is printed for passing assertions
  10714. Message.tests.cpp:<line number>: PASSED:
  10715. CHECK( true )
  10716. -------------------------------------------------------------------------------
  10717. random SECTION tests
  10718. doesn't equal
  10719. -------------------------------------------------------------------------------
  10720. Misc.tests.cpp:<line number>
  10721. ...............................................................................
  10722. Misc.tests.cpp:<line number>: PASSED:
  10723. REQUIRE( a != b )
  10724. with expansion:
  10725. 1 != 2
  10726. Misc.tests.cpp:<line number>: PASSED:
  10727. REQUIRE( b != a )
  10728. with expansion:
  10729. 2 != 1
  10730. -------------------------------------------------------------------------------
  10731. random SECTION tests
  10732. not equal
  10733. -------------------------------------------------------------------------------
  10734. Misc.tests.cpp:<line number>
  10735. ...............................................................................
  10736. Misc.tests.cpp:<line number>: PASSED:
  10737. REQUIRE( a != b )
  10738. with expansion:
  10739. 1 != 2
  10740. -------------------------------------------------------------------------------
  10741. replaceInPlace
  10742. replace single char
  10743. -------------------------------------------------------------------------------
  10744. StringManip.tests.cpp:<line number>
  10745. ...............................................................................
  10746. StringManip.tests.cpp:<line number>: PASSED:
  10747. CHECK( Catch::replaceInPlace(letters, "b", "z") )
  10748. with expansion:
  10749. true
  10750. StringManip.tests.cpp:<line number>: PASSED:
  10751. CHECK( letters == "azcdefcg" )
  10752. with expansion:
  10753. "azcdefcg" == "azcdefcg"
  10754. -------------------------------------------------------------------------------
  10755. replaceInPlace
  10756. replace two chars
  10757. -------------------------------------------------------------------------------
  10758. StringManip.tests.cpp:<line number>
  10759. ...............................................................................
  10760. StringManip.tests.cpp:<line number>: PASSED:
  10761. CHECK( Catch::replaceInPlace(letters, "c", "z") )
  10762. with expansion:
  10763. true
  10764. StringManip.tests.cpp:<line number>: PASSED:
  10765. CHECK( letters == "abzdefzg" )
  10766. with expansion:
  10767. "abzdefzg" == "abzdefzg"
  10768. -------------------------------------------------------------------------------
  10769. replaceInPlace
  10770. replace first char
  10771. -------------------------------------------------------------------------------
  10772. StringManip.tests.cpp:<line number>
  10773. ...............................................................................
  10774. StringManip.tests.cpp:<line number>: PASSED:
  10775. CHECK( Catch::replaceInPlace(letters, "a", "z") )
  10776. with expansion:
  10777. true
  10778. StringManip.tests.cpp:<line number>: PASSED:
  10779. CHECK( letters == "zbcdefcg" )
  10780. with expansion:
  10781. "zbcdefcg" == "zbcdefcg"
  10782. -------------------------------------------------------------------------------
  10783. replaceInPlace
  10784. replace last char
  10785. -------------------------------------------------------------------------------
  10786. StringManip.tests.cpp:<line number>
  10787. ...............................................................................
  10788. StringManip.tests.cpp:<line number>: PASSED:
  10789. CHECK( Catch::replaceInPlace(letters, "g", "z") )
  10790. with expansion:
  10791. true
  10792. StringManip.tests.cpp:<line number>: PASSED:
  10793. CHECK( letters == "abcdefcz" )
  10794. with expansion:
  10795. "abcdefcz" == "abcdefcz"
  10796. -------------------------------------------------------------------------------
  10797. replaceInPlace
  10798. replace all chars
  10799. -------------------------------------------------------------------------------
  10800. StringManip.tests.cpp:<line number>
  10801. ...............................................................................
  10802. StringManip.tests.cpp:<line number>: PASSED:
  10803. CHECK( Catch::replaceInPlace(letters, letters, "replaced") )
  10804. with expansion:
  10805. true
  10806. StringManip.tests.cpp:<line number>: PASSED:
  10807. CHECK( letters == "replaced" )
  10808. with expansion:
  10809. "replaced" == "replaced"
  10810. -------------------------------------------------------------------------------
  10811. replaceInPlace
  10812. replace no chars
  10813. -------------------------------------------------------------------------------
  10814. StringManip.tests.cpp:<line number>
  10815. ...............................................................................
  10816. StringManip.tests.cpp:<line number>: PASSED:
  10817. CHECK_FALSE( Catch::replaceInPlace(letters, "x", "z") )
  10818. with expansion:
  10819. !false
  10820. StringManip.tests.cpp:<line number>: PASSED:
  10821. CHECK( letters == letters )
  10822. with expansion:
  10823. "abcdefcg" == "abcdefcg"
  10824. -------------------------------------------------------------------------------
  10825. replaceInPlace
  10826. escape '
  10827. -------------------------------------------------------------------------------
  10828. StringManip.tests.cpp:<line number>
  10829. ...............................................................................
  10830. StringManip.tests.cpp:<line number>: PASSED:
  10831. CHECK( Catch::replaceInPlace(s, "'", "|'") )
  10832. with expansion:
  10833. true
  10834. StringManip.tests.cpp:<line number>: PASSED:
  10835. CHECK( s == "didn|'t" )
  10836. with expansion:
  10837. "didn|'t" == "didn|'t"
  10838. -------------------------------------------------------------------------------
  10839. second tag
  10840. -------------------------------------------------------------------------------
  10841. Misc.tests.cpp:<line number>
  10842. ...............................................................................
  10843. No assertions in test case 'second tag'
  10844. -------------------------------------------------------------------------------
  10845. send a single char to INFO
  10846. -------------------------------------------------------------------------------
  10847. Misc.tests.cpp:<line number>
  10848. ...............................................................................
  10849. Misc.tests.cpp:<line number>: FAILED:
  10850. REQUIRE( false )
  10851. with message:
  10852. 3
  10853. -------------------------------------------------------------------------------
  10854. sends information to INFO
  10855. -------------------------------------------------------------------------------
  10856. Message.tests.cpp:<line number>
  10857. ...............................................................................
  10858. Message.tests.cpp:<line number>: FAILED:
  10859. REQUIRE( false )
  10860. with messages:
  10861. hi
  10862. i := 7
  10863. -------------------------------------------------------------------------------
  10864. shortened hide tags are split apart
  10865. -------------------------------------------------------------------------------
  10866. Tag.tests.cpp:<line number>
  10867. ...............................................................................
  10868. Tag.tests.cpp:<line number>: PASSED:
  10869. REQUIRE_THAT( testcase.tags, Catch::VectorContains(std::string("magic-tag")) && Catch::VectorContains(std::string(".")) )
  10870. with expansion:
  10871. { "!hide", ".", "magic-tag" } ( Contains: "magic-tag" and Contains: "." )
  10872. -------------------------------------------------------------------------------
  10873. splitString
  10874. -------------------------------------------------------------------------------
  10875. StringManip.tests.cpp:<line number>
  10876. ...............................................................................
  10877. StringManip.tests.cpp:<line number>: PASSED:
  10878. CHECK_THAT( splitStringRef("", ','), Equals(std::vector<StringRef>()) )
  10879. with expansion:
  10880. { } Equals: { }
  10881. StringManip.tests.cpp:<line number>: PASSED:
  10882. CHECK_THAT( splitStringRef("abc", ','), Equals(std::vector<StringRef>{"abc"}) )
  10883. with expansion:
  10884. { abc } Equals: { abc }
  10885. StringManip.tests.cpp:<line number>: PASSED:
  10886. CHECK_THAT( splitStringRef("abc,def", ','), Equals(std::vector<StringRef>{"abc", "def"}) )
  10887. with expansion:
  10888. { abc, def } Equals: { abc, def }
  10889. -------------------------------------------------------------------------------
  10890. stacks unscoped info in loops
  10891. -------------------------------------------------------------------------------
  10892. Message.tests.cpp:<line number>
  10893. ...............................................................................
  10894. Message.tests.cpp:<line number>: FAILED:
  10895. CHECK( false )
  10896. with messages:
  10897. Count 1 to 3...
  10898. 1
  10899. 2
  10900. 3
  10901. Message.tests.cpp:<line number>: FAILED:
  10902. CHECK( false )
  10903. with messages:
  10904. Count 4 to 6...
  10905. 4
  10906. 5
  10907. 6
  10908. -------------------------------------------------------------------------------
  10909. std::map is convertible string
  10910. empty
  10911. -------------------------------------------------------------------------------
  10912. ToStringGeneral.tests.cpp:<line number>
  10913. ...............................................................................
  10914. ToStringGeneral.tests.cpp:<line number>: PASSED:
  10915. REQUIRE( Catch::Detail::stringify( emptyMap ) == "{ }" )
  10916. with expansion:
  10917. "{ }" == "{ }"
  10918. -------------------------------------------------------------------------------
  10919. std::map is convertible string
  10920. single item
  10921. -------------------------------------------------------------------------------
  10922. ToStringGeneral.tests.cpp:<line number>
  10923. ...............................................................................
  10924. ToStringGeneral.tests.cpp:<line number>: PASSED:
  10925. REQUIRE( Catch::Detail::stringify( map ) == "{ { \"one\", 1 } }" )
  10926. with expansion:
  10927. "{ { "one", 1 } }" == "{ { "one", 1 } }"
  10928. -------------------------------------------------------------------------------
  10929. std::map is convertible string
  10930. several items
  10931. -------------------------------------------------------------------------------
  10932. ToStringGeneral.tests.cpp:<line number>
  10933. ...............................................................................
  10934. ToStringGeneral.tests.cpp:<line number>: PASSED:
  10935. REQUIRE( Catch::Detail::stringify( map ) == "{ { \"abc\", 1 }, { \"def\", 2 }, { \"ghi\", 3 } }" )
  10936. with expansion:
  10937. "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
  10938. ==
  10939. "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
  10940. -------------------------------------------------------------------------------
  10941. std::pair<int,const std::string> -> toString
  10942. -------------------------------------------------------------------------------
  10943. ToStringPair.tests.cpp:<line number>
  10944. ...............................................................................
  10945. ToStringPair.tests.cpp:<line number>: PASSED:
  10946. REQUIRE( ::Catch::Detail::stringify(value) == "{ 34, \"xyzzy\" }" )
  10947. with expansion:
  10948. "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
  10949. -------------------------------------------------------------------------------
  10950. std::pair<int,std::string> -> toString
  10951. -------------------------------------------------------------------------------
  10952. ToStringPair.tests.cpp:<line number>
  10953. ...............................................................................
  10954. ToStringPair.tests.cpp:<line number>: PASSED:
  10955. REQUIRE( ::Catch::Detail::stringify( value ) == "{ 34, \"xyzzy\" }" )
  10956. with expansion:
  10957. "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
  10958. -------------------------------------------------------------------------------
  10959. std::set is convertible string
  10960. empty
  10961. -------------------------------------------------------------------------------
  10962. ToStringGeneral.tests.cpp:<line number>
  10963. ...............................................................................
  10964. ToStringGeneral.tests.cpp:<line number>: PASSED:
  10965. REQUIRE( Catch::Detail::stringify( emptySet ) == "{ }" )
  10966. with expansion:
  10967. "{ }" == "{ }"
  10968. -------------------------------------------------------------------------------
  10969. std::set is convertible string
  10970. single item
  10971. -------------------------------------------------------------------------------
  10972. ToStringGeneral.tests.cpp:<line number>
  10973. ...............................................................................
  10974. ToStringGeneral.tests.cpp:<line number>: PASSED:
  10975. REQUIRE( Catch::Detail::stringify( set ) == "{ \"one\" }" )
  10976. with expansion:
  10977. "{ "one" }" == "{ "one" }"
  10978. -------------------------------------------------------------------------------
  10979. std::set is convertible string
  10980. several items
  10981. -------------------------------------------------------------------------------
  10982. ToStringGeneral.tests.cpp:<line number>
  10983. ...............................................................................
  10984. ToStringGeneral.tests.cpp:<line number>: PASSED:
  10985. REQUIRE( Catch::Detail::stringify( set ) == "{ \"abc\", \"def\", \"ghi\" }" )
  10986. with expansion:
  10987. "{ "abc", "def", "ghi" }"
  10988. ==
  10989. "{ "abc", "def", "ghi" }"
  10990. -------------------------------------------------------------------------------
  10991. std::vector<std::pair<std::string,int> > -> toString
  10992. -------------------------------------------------------------------------------
  10993. ToStringPair.tests.cpp:<line number>
  10994. ...............................................................................
  10995. ToStringPair.tests.cpp:<line number>: PASSED:
  10996. REQUIRE( ::Catch::Detail::stringify( pr ) == "{ { \"green\", 55 } }" )
  10997. with expansion:
  10998. "{ { "green", 55 } }"
  10999. ==
  11000. "{ { "green", 55 } }"
  11001. -------------------------------------------------------------------------------
  11002. string literals of different sizes can be compared
  11003. -------------------------------------------------------------------------------
  11004. Tricky.tests.cpp:<line number>
  11005. ...............................................................................
  11006. Tricky.tests.cpp:<line number>: FAILED:
  11007. REQUIRE( std::string( "first" ) == "second" )
  11008. with expansion:
  11009. "first" == "second"
  11010. -------------------------------------------------------------------------------
  11011. stringify ranges
  11012. -------------------------------------------------------------------------------
  11013. ToStringWhich.tests.cpp:<line number>
  11014. ...............................................................................
  11015. ToStringWhich.tests.cpp:<line number>: PASSED:
  11016. REQUIRE( ::Catch::Detail::stringify(streamable_range{}) == "op<<(streamable_range)" )
  11017. with expansion:
  11018. "op<<(streamable_range)"
  11019. ==
  11020. "op<<(streamable_range)"
  11021. ToStringWhich.tests.cpp:<line number>: PASSED:
  11022. REQUIRE( ::Catch::Detail::stringify(stringmaker_range{}) == "stringmaker(streamable_range)" )
  11023. with expansion:
  11024. "stringmaker(streamable_range)"
  11025. ==
  11026. "stringmaker(streamable_range)"
  11027. ToStringWhich.tests.cpp:<line number>: PASSED:
  11028. REQUIRE( ::Catch::Detail::stringify(just_range{}) == "{ 1, 2, 3, 4 }" )
  11029. with expansion:
  11030. "{ 1, 2, 3, 4 }" == "{ 1, 2, 3, 4 }"
  11031. ToStringWhich.tests.cpp:<line number>: PASSED:
  11032. REQUIRE( ::Catch::Detail::stringify(disabled_range{}) == "{ !!! }" )
  11033. with expansion:
  11034. "{ !!! }" == "{ !!! }"
  11035. -------------------------------------------------------------------------------
  11036. stringify( has_maker )
  11037. -------------------------------------------------------------------------------
  11038. ToStringWhich.tests.cpp:<line number>
  11039. ...............................................................................
  11040. ToStringWhich.tests.cpp:<line number>: PASSED:
  11041. REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker>" )
  11042. with expansion:
  11043. "StringMaker<has_maker>"
  11044. ==
  11045. "StringMaker<has_maker>"
  11046. -------------------------------------------------------------------------------
  11047. stringify( has_maker_and_operator )
  11048. -------------------------------------------------------------------------------
  11049. ToStringWhich.tests.cpp:<line number>
  11050. ...............................................................................
  11051. ToStringWhich.tests.cpp:<line number>: PASSED:
  11052. REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker_and_operator>" )
  11053. with expansion:
  11054. "StringMaker<has_maker_and_operator>"
  11055. ==
  11056. "StringMaker<has_maker_and_operator>"
  11057. -------------------------------------------------------------------------------
  11058. stringify( has_neither )
  11059. -------------------------------------------------------------------------------
  11060. ToStringWhich.tests.cpp:<line number>
  11061. ...............................................................................
  11062. ToStringWhich.tests.cpp:<line number>: PASSED:
  11063. REQUIRE( ::Catch::Detail::stringify(item) == "{ !!! }" )
  11064. with expansion:
  11065. "{ !!! }" == "{ !!! }"
  11066. -------------------------------------------------------------------------------
  11067. stringify( has_operator )
  11068. -------------------------------------------------------------------------------
  11069. ToStringWhich.tests.cpp:<line number>
  11070. ...............................................................................
  11071. ToStringWhich.tests.cpp:<line number>: PASSED:
  11072. REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_operator )" )
  11073. with expansion:
  11074. "operator<<( has_operator )"
  11075. ==
  11076. "operator<<( has_operator )"
  11077. -------------------------------------------------------------------------------
  11078. stringify( has_template_operator )
  11079. -------------------------------------------------------------------------------
  11080. ToStringWhich.tests.cpp:<line number>
  11081. ...............................................................................
  11082. ToStringWhich.tests.cpp:<line number>: PASSED:
  11083. REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_template_operator )" )
  11084. with expansion:
  11085. "operator<<( has_template_operator )"
  11086. ==
  11087. "operator<<( has_template_operator )"
  11088. -------------------------------------------------------------------------------
  11089. stringify( vectors<has_maker> )
  11090. -------------------------------------------------------------------------------
  11091. ToStringWhich.tests.cpp:<line number>
  11092. ...............................................................................
  11093. ToStringWhich.tests.cpp:<line number>: PASSED:
  11094. REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker> }" )
  11095. with expansion:
  11096. "{ StringMaker<has_maker> }"
  11097. ==
  11098. "{ StringMaker<has_maker> }"
  11099. -------------------------------------------------------------------------------
  11100. stringify( vectors<has_maker_and_operator> )
  11101. -------------------------------------------------------------------------------
  11102. ToStringWhich.tests.cpp:<line number>
  11103. ...............................................................................
  11104. ToStringWhich.tests.cpp:<line number>: PASSED:
  11105. REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker_and_operator> }" )
  11106. with expansion:
  11107. "{ StringMaker<has_maker_and_operator> }"
  11108. ==
  11109. "{ StringMaker<has_maker_and_operator> }"
  11110. -------------------------------------------------------------------------------
  11111. stringify( vectors<has_operator> )
  11112. -------------------------------------------------------------------------------
  11113. ToStringWhich.tests.cpp:<line number>
  11114. ...............................................................................
  11115. ToStringWhich.tests.cpp:<line number>: PASSED:
  11116. REQUIRE( ::Catch::Detail::stringify( v ) == "{ operator<<( has_operator ) }" )
  11117. with expansion:
  11118. "{ operator<<( has_operator ) }"
  11119. ==
  11120. "{ operator<<( has_operator ) }"
  11121. -------------------------------------------------------------------------------
  11122. strlen3
  11123. -------------------------------------------------------------------------------
  11124. Generators.tests.cpp:<line number>
  11125. ...............................................................................
  11126. Generators.tests.cpp:<line number>: PASSED:
  11127. REQUIRE( data.str.size() == data.len )
  11128. with expansion:
  11129. 3 == 3
  11130. -------------------------------------------------------------------------------
  11131. strlen3
  11132. -------------------------------------------------------------------------------
  11133. Generators.tests.cpp:<line number>
  11134. ...............................................................................
  11135. Generators.tests.cpp:<line number>: PASSED:
  11136. REQUIRE( data.str.size() == data.len )
  11137. with expansion:
  11138. 3 == 3
  11139. -------------------------------------------------------------------------------
  11140. strlen3
  11141. -------------------------------------------------------------------------------
  11142. Generators.tests.cpp:<line number>
  11143. ...............................................................................
  11144. Generators.tests.cpp:<line number>: PASSED:
  11145. REQUIRE( data.str.size() == data.len )
  11146. with expansion:
  11147. 5 == 5
  11148. -------------------------------------------------------------------------------
  11149. strlen3
  11150. -------------------------------------------------------------------------------
  11151. Generators.tests.cpp:<line number>
  11152. ...............................................................................
  11153. Generators.tests.cpp:<line number>: PASSED:
  11154. REQUIRE( data.str.size() == data.len )
  11155. with expansion:
  11156. 4 == 4
  11157. -------------------------------------------------------------------------------
  11158. tables
  11159. -------------------------------------------------------------------------------
  11160. Generators.tests.cpp:<line number>
  11161. ...............................................................................
  11162. Generators.tests.cpp:<line number>: PASSED:
  11163. REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
  11164. with expansion:
  11165. 5 == 5
  11166. -------------------------------------------------------------------------------
  11167. tables
  11168. -------------------------------------------------------------------------------
  11169. Generators.tests.cpp:<line number>
  11170. ...............................................................................
  11171. Generators.tests.cpp:<line number>: PASSED:
  11172. REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
  11173. with expansion:
  11174. 6 == 6
  11175. -------------------------------------------------------------------------------
  11176. tables
  11177. -------------------------------------------------------------------------------
  11178. Generators.tests.cpp:<line number>
  11179. ...............................................................................
  11180. Generators.tests.cpp:<line number>: PASSED:
  11181. REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
  11182. with expansion:
  11183. 5 == 5
  11184. -------------------------------------------------------------------------------
  11185. tables
  11186. -------------------------------------------------------------------------------
  11187. Generators.tests.cpp:<line number>
  11188. ...............................................................................
  11189. Generators.tests.cpp:<line number>: PASSED:
  11190. REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
  11191. with expansion:
  11192. 6 == 6
  11193. -------------------------------------------------------------------------------
  11194. thrown std::strings are translated
  11195. -------------------------------------------------------------------------------
  11196. Exception.tests.cpp:<line number>
  11197. ...............................................................................
  11198. Exception.tests.cpp:<line number>: FAILED:
  11199. due to unexpected exception with message:
  11200. Why would you throw a std::string?
  11201. -------------------------------------------------------------------------------
  11202. toString on const wchar_t const pointer returns the string contents
  11203. -------------------------------------------------------------------------------
  11204. Misc.tests.cpp:<line number>
  11205. ...............................................................................
  11206. Misc.tests.cpp:<line number>: PASSED:
  11207. CHECK( result == "\"wide load\"" )
  11208. with expansion:
  11209. ""wide load"" == ""wide load""
  11210. -------------------------------------------------------------------------------
  11211. toString on const wchar_t pointer returns the string contents
  11212. -------------------------------------------------------------------------------
  11213. Misc.tests.cpp:<line number>
  11214. ...............................................................................
  11215. Misc.tests.cpp:<line number>: PASSED:
  11216. CHECK( result == "\"wide load\"" )
  11217. with expansion:
  11218. ""wide load"" == ""wide load""
  11219. -------------------------------------------------------------------------------
  11220. toString on wchar_t const pointer returns the string contents
  11221. -------------------------------------------------------------------------------
  11222. Misc.tests.cpp:<line number>
  11223. ...............................................................................
  11224. Misc.tests.cpp:<line number>: PASSED:
  11225. CHECK( result == "\"wide load\"" )
  11226. with expansion:
  11227. ""wide load"" == ""wide load""
  11228. -------------------------------------------------------------------------------
  11229. toString on wchar_t returns the string contents
  11230. -------------------------------------------------------------------------------
  11231. Misc.tests.cpp:<line number>
  11232. ...............................................................................
  11233. Misc.tests.cpp:<line number>: PASSED:
  11234. CHECK( result == "\"wide load\"" )
  11235. with expansion:
  11236. ""wide load"" == ""wide load""
  11237. -------------------------------------------------------------------------------
  11238. toString(enum class w/operator<<)
  11239. -------------------------------------------------------------------------------
  11240. EnumToString.tests.cpp:<line number>
  11241. ...............................................................................
  11242. EnumToString.tests.cpp:<line number>: PASSED:
  11243. CHECK( ::Catch::Detail::stringify(e0) == "E2/V0" )
  11244. with expansion:
  11245. "E2/V0" == "E2/V0"
  11246. EnumToString.tests.cpp:<line number>: PASSED:
  11247. CHECK( ::Catch::Detail::stringify(e1) == "E2/V1" )
  11248. with expansion:
  11249. "E2/V1" == "E2/V1"
  11250. EnumToString.tests.cpp:<line number>: PASSED:
  11251. CHECK( ::Catch::Detail::stringify(e3) == "Unknown enum value 10" )
  11252. with expansion:
  11253. "Unknown enum value 10"
  11254. ==
  11255. "Unknown enum value 10"
  11256. -------------------------------------------------------------------------------
  11257. toString(enum class)
  11258. -------------------------------------------------------------------------------
  11259. EnumToString.tests.cpp:<line number>
  11260. ...............................................................................
  11261. EnumToString.tests.cpp:<line number>: PASSED:
  11262. CHECK( ::Catch::Detail::stringify(e0) == "0" )
  11263. with expansion:
  11264. "0" == "0"
  11265. EnumToString.tests.cpp:<line number>: PASSED:
  11266. CHECK( ::Catch::Detail::stringify(e1) == "1" )
  11267. with expansion:
  11268. "1" == "1"
  11269. -------------------------------------------------------------------------------
  11270. toString(enum w/operator<<)
  11271. -------------------------------------------------------------------------------
  11272. EnumToString.tests.cpp:<line number>
  11273. ...............................................................................
  11274. EnumToString.tests.cpp:<line number>: PASSED:
  11275. CHECK( ::Catch::Detail::stringify(e0) == "E2{0}" )
  11276. with expansion:
  11277. "E2{0}" == "E2{0}"
  11278. EnumToString.tests.cpp:<line number>: PASSED:
  11279. CHECK( ::Catch::Detail::stringify(e1) == "E2{1}" )
  11280. with expansion:
  11281. "E2{1}" == "E2{1}"
  11282. -------------------------------------------------------------------------------
  11283. toString(enum)
  11284. -------------------------------------------------------------------------------
  11285. EnumToString.tests.cpp:<line number>
  11286. ...............................................................................
  11287. EnumToString.tests.cpp:<line number>: PASSED:
  11288. CHECK( ::Catch::Detail::stringify(e0) == "0" )
  11289. with expansion:
  11290. "0" == "0"
  11291. EnumToString.tests.cpp:<line number>: PASSED:
  11292. CHECK( ::Catch::Detail::stringify(e1) == "1" )
  11293. with expansion:
  11294. "1" == "1"
  11295. -------------------------------------------------------------------------------
  11296. tuple<>
  11297. -------------------------------------------------------------------------------
  11298. ToStringTuple.tests.cpp:<line number>
  11299. ...............................................................................
  11300. ToStringTuple.tests.cpp:<line number>: PASSED:
  11301. CHECK( "{ }" == ::Catch::Detail::stringify(type{}) )
  11302. with expansion:
  11303. "{ }" == "{ }"
  11304. ToStringTuple.tests.cpp:<line number>: PASSED:
  11305. CHECK( "{ }" == ::Catch::Detail::stringify(value) )
  11306. with expansion:
  11307. "{ }" == "{ }"
  11308. -------------------------------------------------------------------------------
  11309. tuple<float,int>
  11310. -------------------------------------------------------------------------------
  11311. ToStringTuple.tests.cpp:<line number>
  11312. ...............................................................................
  11313. ToStringTuple.tests.cpp:<line number>: PASSED:
  11314. CHECK( "1.2f" == ::Catch::Detail::stringify(float(1.2)) )
  11315. with expansion:
  11316. "1.2f" == "1.2f"
  11317. ToStringTuple.tests.cpp:<line number>: PASSED:
  11318. CHECK( "{ 1.2f, 0 }" == ::Catch::Detail::stringify(type{1.2f,0}) )
  11319. with expansion:
  11320. "{ 1.2f, 0 }" == "{ 1.2f, 0 }"
  11321. -------------------------------------------------------------------------------
  11322. tuple<int>
  11323. -------------------------------------------------------------------------------
  11324. ToStringTuple.tests.cpp:<line number>
  11325. ...............................................................................
  11326. ToStringTuple.tests.cpp:<line number>: PASSED:
  11327. CHECK( "{ 0 }" == ::Catch::Detail::stringify(type{0}) )
  11328. with expansion:
  11329. "{ 0 }" == "{ 0 }"
  11330. -------------------------------------------------------------------------------
  11331. tuple<0,int,const char *>
  11332. -------------------------------------------------------------------------------
  11333. ToStringTuple.tests.cpp:<line number>
  11334. ...............................................................................
  11335. ToStringTuple.tests.cpp:<line number>: PASSED:
  11336. CHECK( "{ 0, 42, \"Catch me\" }" == ::Catch::Detail::stringify(value) )
  11337. with expansion:
  11338. "{ 0, 42, "Catch me" }"
  11339. ==
  11340. "{ 0, 42, "Catch me" }"
  11341. -------------------------------------------------------------------------------
  11342. tuple<string,string>
  11343. -------------------------------------------------------------------------------
  11344. ToStringTuple.tests.cpp:<line number>
  11345. ...............................................................................
  11346. ToStringTuple.tests.cpp:<line number>: PASSED:
  11347. CHECK( "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"}) )
  11348. with expansion:
  11349. "{ "hello", "world" }"
  11350. ==
  11351. "{ "hello", "world" }"
  11352. -------------------------------------------------------------------------------
  11353. tuple<tuple<int>,tuple<>,float>
  11354. -------------------------------------------------------------------------------
  11355. ToStringTuple.tests.cpp:<line number>
  11356. ...............................................................................
  11357. ToStringTuple.tests.cpp:<line number>: PASSED:
  11358. CHECK( "{ { 42 }, { }, 1.2f }" == ::Catch::Detail::stringify(value) )
  11359. with expansion:
  11360. "{ { 42 }, { }, 1.2f }"
  11361. ==
  11362. "{ { 42 }, { }, 1.2f }"
  11363. -------------------------------------------------------------------------------
  11364. vec<vec<string,alloc>> -> toString
  11365. -------------------------------------------------------------------------------
  11366. ToStringVector.tests.cpp:<line number>
  11367. ...............................................................................
  11368. ToStringVector.tests.cpp:<line number>: PASSED:
  11369. REQUIRE( ::Catch::Detail::stringify(v) == "{ }" )
  11370. with expansion:
  11371. "{ }" == "{ }"
  11372. ToStringVector.tests.cpp:<line number>: PASSED:
  11373. REQUIRE( ::Catch::Detail::stringify(v) == "{ { \"hello\" }, { \"world\" } }" )
  11374. with expansion:
  11375. "{ { "hello" }, { "world" } }"
  11376. ==
  11377. "{ { "hello" }, { "world" } }"
  11378. -------------------------------------------------------------------------------
  11379. vector<bool> -> toString
  11380. -------------------------------------------------------------------------------
  11381. ToStringVector.tests.cpp:<line number>
  11382. ...............................................................................
  11383. ToStringVector.tests.cpp:<line number>: PASSED:
  11384. REQUIRE( ::Catch::Detail::stringify(bools) == "{ }" )
  11385. with expansion:
  11386. "{ }" == "{ }"
  11387. ToStringVector.tests.cpp:<line number>: PASSED:
  11388. REQUIRE( ::Catch::Detail::stringify(bools) == "{ true }" )
  11389. with expansion:
  11390. "{ true }" == "{ true }"
  11391. ToStringVector.tests.cpp:<line number>: PASSED:
  11392. REQUIRE( ::Catch::Detail::stringify(bools) == "{ true, false }" )
  11393. with expansion:
  11394. "{ true, false }" == "{ true, false }"
  11395. -------------------------------------------------------------------------------
  11396. vector<int,allocator> -> toString
  11397. -------------------------------------------------------------------------------
  11398. ToStringVector.tests.cpp:<line number>
  11399. ...............................................................................
  11400. ToStringVector.tests.cpp:<line number>: PASSED:
  11401. REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
  11402. with expansion:
  11403. "{ }" == "{ }"
  11404. ToStringVector.tests.cpp:<line number>: PASSED:
  11405. REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" )
  11406. with expansion:
  11407. "{ 42 }" == "{ 42 }"
  11408. ToStringVector.tests.cpp:<line number>: PASSED:
  11409. REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" )
  11410. with expansion:
  11411. "{ 42, 250 }" == "{ 42, 250 }"
  11412. -------------------------------------------------------------------------------
  11413. vector<int> -> toString
  11414. -------------------------------------------------------------------------------
  11415. ToStringVector.tests.cpp:<line number>
  11416. ...............................................................................
  11417. ToStringVector.tests.cpp:<line number>: PASSED:
  11418. REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
  11419. with expansion:
  11420. "{ }" == "{ }"
  11421. ToStringVector.tests.cpp:<line number>: PASSED:
  11422. REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" )
  11423. with expansion:
  11424. "{ 42 }" == "{ 42 }"
  11425. ToStringVector.tests.cpp:<line number>: PASSED:
  11426. REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" )
  11427. with expansion:
  11428. "{ 42, 250 }" == "{ 42, 250 }"
  11429. -------------------------------------------------------------------------------
  11430. vector<string> -> toString
  11431. -------------------------------------------------------------------------------
  11432. ToStringVector.tests.cpp:<line number>
  11433. ...............................................................................
  11434. ToStringVector.tests.cpp:<line number>: PASSED:
  11435. REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
  11436. with expansion:
  11437. "{ }" == "{ }"
  11438. ToStringVector.tests.cpp:<line number>: PASSED:
  11439. REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\" }" )
  11440. with expansion:
  11441. "{ "hello" }" == "{ "hello" }"
  11442. ToStringVector.tests.cpp:<line number>: PASSED:
  11443. REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }" )
  11444. with expansion:
  11445. "{ "hello", "world" }"
  11446. ==
  11447. "{ "hello", "world" }"
  11448. -------------------------------------------------------------------------------
  11449. vectors can be sized and resized
  11450. -------------------------------------------------------------------------------
  11451. Misc.tests.cpp:<line number>
  11452. ...............................................................................
  11453. Misc.tests.cpp:<line number>: PASSED:
  11454. REQUIRE( v.size() == 5 )
  11455. with expansion:
  11456. 5 == 5
  11457. Misc.tests.cpp:<line number>: PASSED:
  11458. REQUIRE( v.capacity() >= 5 )
  11459. with expansion:
  11460. 5 >= 5
  11461. -------------------------------------------------------------------------------
  11462. vectors can be sized and resized
  11463. resizing bigger changes size and capacity
  11464. -------------------------------------------------------------------------------
  11465. Misc.tests.cpp:<line number>
  11466. ...............................................................................
  11467. Misc.tests.cpp:<line number>: PASSED:
  11468. REQUIRE( v.size() == 10 )
  11469. with expansion:
  11470. 10 == 10
  11471. Misc.tests.cpp:<line number>: PASSED:
  11472. REQUIRE( v.capacity() >= 10 )
  11473. with expansion:
  11474. 10 >= 10
  11475. -------------------------------------------------------------------------------
  11476. vectors can be sized and resized
  11477. -------------------------------------------------------------------------------
  11478. Misc.tests.cpp:<line number>
  11479. ...............................................................................
  11480. Misc.tests.cpp:<line number>: PASSED:
  11481. REQUIRE( v.size() == 5 )
  11482. with expansion:
  11483. 5 == 5
  11484. Misc.tests.cpp:<line number>: PASSED:
  11485. REQUIRE( v.capacity() >= 5 )
  11486. with expansion:
  11487. 5 >= 5
  11488. -------------------------------------------------------------------------------
  11489. vectors can be sized and resized
  11490. resizing smaller changes size but not capacity
  11491. -------------------------------------------------------------------------------
  11492. Misc.tests.cpp:<line number>
  11493. ...............................................................................
  11494. Misc.tests.cpp:<line number>: PASSED:
  11495. REQUIRE( v.size() == 0 )
  11496. with expansion:
  11497. 0 == 0
  11498. Misc.tests.cpp:<line number>: PASSED:
  11499. REQUIRE( v.capacity() >= 5 )
  11500. with expansion:
  11501. 5 >= 5
  11502. -------------------------------------------------------------------------------
  11503. vectors can be sized and resized
  11504. resizing smaller changes size but not capacity
  11505. We can use the 'swap trick' to reset the capacity
  11506. -------------------------------------------------------------------------------
  11507. Misc.tests.cpp:<line number>
  11508. ...............................................................................
  11509. Misc.tests.cpp:<line number>: PASSED:
  11510. REQUIRE( v.capacity() == 0 )
  11511. with expansion:
  11512. 0 == 0
  11513. -------------------------------------------------------------------------------
  11514. vectors can be sized and resized
  11515. -------------------------------------------------------------------------------
  11516. Misc.tests.cpp:<line number>
  11517. ...............................................................................
  11518. Misc.tests.cpp:<line number>: PASSED:
  11519. REQUIRE( v.size() == 5 )
  11520. with expansion:
  11521. 5 == 5
  11522. Misc.tests.cpp:<line number>: PASSED:
  11523. REQUIRE( v.capacity() >= 5 )
  11524. with expansion:
  11525. 5 >= 5
  11526. -------------------------------------------------------------------------------
  11527. vectors can be sized and resized
  11528. reserving bigger changes capacity but not size
  11529. -------------------------------------------------------------------------------
  11530. Misc.tests.cpp:<line number>
  11531. ...............................................................................
  11532. Misc.tests.cpp:<line number>: PASSED:
  11533. REQUIRE( v.size() == 5 )
  11534. with expansion:
  11535. 5 == 5
  11536. Misc.tests.cpp:<line number>: PASSED:
  11537. REQUIRE( v.capacity() >= 10 )
  11538. with expansion:
  11539. 10 >= 10
  11540. -------------------------------------------------------------------------------
  11541. vectors can be sized and resized
  11542. -------------------------------------------------------------------------------
  11543. Misc.tests.cpp:<line number>
  11544. ...............................................................................
  11545. Misc.tests.cpp:<line number>: PASSED:
  11546. REQUIRE( v.size() == 5 )
  11547. with expansion:
  11548. 5 == 5
  11549. Misc.tests.cpp:<line number>: PASSED:
  11550. REQUIRE( v.capacity() >= 5 )
  11551. with expansion:
  11552. 5 >= 5
  11553. -------------------------------------------------------------------------------
  11554. vectors can be sized and resized
  11555. reserving smaller does not change size or capacity
  11556. -------------------------------------------------------------------------------
  11557. Misc.tests.cpp:<line number>
  11558. ...............................................................................
  11559. Misc.tests.cpp:<line number>: PASSED:
  11560. REQUIRE( v.size() == 5 )
  11561. with expansion:
  11562. 5 == 5
  11563. Misc.tests.cpp:<line number>: PASSED:
  11564. REQUIRE( v.capacity() >= 5 )
  11565. with expansion:
  11566. 5 >= 5
  11567. -------------------------------------------------------------------------------
  11568. xmlentitycheck
  11569. embedded xml: <test>it should be possible to embed xml characters, such as <,
  11570. " or &, or even whole <xml>documents</xml> within an attribute
  11571. </test>
  11572. -------------------------------------------------------------------------------
  11573. Misc.tests.cpp:<line number>
  11574. ...............................................................................
  11575. Misc.tests.cpp:<line number>: PASSED:
  11576. -------------------------------------------------------------------------------
  11577. xmlentitycheck
  11578. encoded chars: these should all be encoded: &&&"""<<<&"<<&"
  11579. -------------------------------------------------------------------------------
  11580. Misc.tests.cpp:<line number>
  11581. ...............................................................................
  11582. Misc.tests.cpp:<line number>: PASSED:
  11583. ===============================================================================
  11584. test cases: 322 | 232 passed | 86 failed | 4 failed as expected
  11585. assertions: 1776 | 1607 passed | 148 failed | 21 failed as expected