1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597 |
- # rng-seed: 1
- # # A test name that starts with a #
- ok {test-number} - with 1 message: 'yay'
- # #1027: Bitfields can be captured
- ok {test-number} - y.v == 0 for: 0 == 0
- # #1027: Bitfields can be captured
- ok {test-number} - 0 == y.v for: 0 == 0
- # #1147
- ok {test-number} - t1 == t2 for: {?} == {?}
- # #1147
- ok {test-number} - t1 != t2 for: {?} != {?}
- # #1147
- ok {test-number} - t1 < t2 for: {?} < {?}
- # #1147
- ok {test-number} - t1 > t2 for: {?} > {?}
- # #1147
- ok {test-number} - t1 <= t2 for: {?} <= {?}
- # #1147
- ok {test-number} - t1 >= t2 for: {?} >= {?}
- # #1175 - Hidden Test
- ok {test-number} -
- # #1238
- ok {test-number} - std::memcmp(uarr, "123", sizeof(uarr)) == 0 for: 0 == 0 with 2 messages: 'uarr := "123"' and 'sarr := "456"'
- # #1238
- ok {test-number} - std::memcmp(sarr, "456", sizeof(sarr)) == 0 for: 0 == 0 with 2 messages: 'uarr := "123"' and 'sarr := "456"'
- # #1245
- ok {test-number} -
- # #1319: Sections can have description (even if it is not saved
- ok {test-number} -
- # #1403
- ok {test-number} - h1 == h2 for: [1403 helper] == [1403 helper]
- # #1455 - INFO and WARN can start with a linebreak
- warning {test-number} - '
- This info message starts with a linebreak' with 1 message: '
- This warning message starts with a linebreak'
- # #1514: stderr/stdout is not captured in tests aborted by an exception
- not ok {test-number} - explicitly with 1 message: '1514'
- # #1548
- ok {test-number} - std::is_same<TypeList<int>, TypeList<int>>::value for: true
- # #1905 -- test spec parser properly clears internal state between compound tests
- ok {test-number} - spec.matches(*fakeTestCase("spec . char")) for: true
- # #1905 -- test spec parser properly clears internal state between compound tests
- ok {test-number} - spec.matches(*fakeTestCase("spec , char")) for: true
- # #1905 -- test spec parser properly clears internal state between compound tests
- ok {test-number} - !(spec.matches(*fakeTestCase(R"(spec \, char)"))) for: !false
- # #1912 -- test spec parser handles escaping
- ok {test-number} - spec.matches(*fakeTestCase(R"(spec {a} char)")) for: true
- # #1912 -- test spec parser handles escaping
- ok {test-number} - spec.matches(*fakeTestCase(R"(spec [a] char)")) for: true
- # #1912 -- test spec parser handles escaping
- ok {test-number} - !(spec.matches(*fakeTestCase("differs but has similar tag", "[a]"))) for: !false
- # #1912 -- test spec parser handles escaping
- ok {test-number} - spec.matches(*fakeTestCase(R"(spec \ char)")) for: true
- # #1913 - GENERATE inside a for loop should not keep recreating the generator
- ok {test-number} - counter < 7 for: 3 < 7
- # #1913 - GENERATE inside a for loop should not keep recreating the generator
- ok {test-number} - counter < 7 for: 6 < 7
- # #1913 - GENERATEs can share a line
- ok {test-number} - i != j for: 1 != 3
- # #1913 - GENERATEs can share a line
- ok {test-number} - i != j for: 1 != 4
- # #1913 - GENERATEs can share a line
- ok {test-number} - i != j for: 2 != 3
- # #1913 - GENERATEs can share a line
- ok {test-number} - i != j for: 2 != 4
- # #1938 - GENERATE after a section
- ok {test-number} - with 1 message: 'A'
- # #1938 - GENERATE after a section
- ok {test-number} - m for: 1
- # #1938 - GENERATE after a section
- ok {test-number} - m for: 2
- # #1938 - GENERATE after a section
- ok {test-number} - m for: 3
- # #1938 - Section followed by flat generate
- ok {test-number} - 1
- # #1938 - Section followed by flat generate
- ok {test-number} - m for: 2
- # #1938 - Section followed by flat generate
- ok {test-number} - m for: 3
- # #1938 - flat generate
- ok {test-number} - m for: 1
- # #1938 - flat generate
- ok {test-number} - m for: 2
- # #1938 - flat generate
- ok {test-number} - m for: 3
- # #1938 - mixed sections and generates
- ok {test-number} - with 1 message: 'A'
- # #1938 - mixed sections and generates
- ok {test-number} - with 3 messages: 'i := 1' and 'j := 3' and 'k := 5'
- # #1938 - mixed sections and generates
- ok {test-number} - with 1 message: 'B'
- # #1938 - mixed sections and generates
- ok {test-number} - with 3 messages: 'i := 1' and 'j := 3' and 'k := 6'
- # #1938 - mixed sections and generates
- ok {test-number} - with 1 message: 'B'
- # #1938 - mixed sections and generates
- ok {test-number} - with 3 messages: 'i := 1' and 'j := 4' and 'k := 5'
- # #1938 - mixed sections and generates
- ok {test-number} - with 3 messages: 'i := 1' and 'j := 4' and 'k := 6'
- # #1938 - mixed sections and generates
- ok {test-number} - with 1 message: 'A'
- # #1938 - mixed sections and generates
- ok {test-number} - with 3 messages: 'i := 2' and 'j := 3' and 'k := 5'
- # #1938 - mixed sections and generates
- ok {test-number} - with 1 message: 'B'
- # #1938 - mixed sections and generates
- ok {test-number} - with 3 messages: 'i := 2' and 'j := 3' and 'k := 6'
- # #1938 - mixed sections and generates
- ok {test-number} - with 1 message: 'B'
- # #1938 - mixed sections and generates
- ok {test-number} - with 3 messages: 'i := 2' and 'j := 4' and 'k := 5'
- # #1938 - mixed sections and generates
- ok {test-number} - with 3 messages: 'i := 2' and 'j := 4' and 'k := 6'
- # #1938 - nested generate
- ok {test-number} - m for: 1
- # #1938 - nested generate
- ok {test-number} - n for: 1
- # #1938 - nested generate
- ok {test-number} - m for: 1
- # #1938 - nested generate
- ok {test-number} - n for: 2
- # #1938 - nested generate
- ok {test-number} - m for: 1
- # #1938 - nested generate
- ok {test-number} - n for: 3
- # #1938 - nested generate
- ok {test-number} - m for: 2
- # #1938 - nested generate
- ok {test-number} - n for: 1
- # #1938 - nested generate
- ok {test-number} - m for: 2
- # #1938 - nested generate
- ok {test-number} - n for: 2
- # #1938 - nested generate
- ok {test-number} - m for: 2
- # #1938 - nested generate
- ok {test-number} - n for: 3
- # #1938 - nested generate
- ok {test-number} - m for: 3
- # #1938 - nested generate
- ok {test-number} - n for: 1
- # #1938 - nested generate
- ok {test-number} - m for: 3
- # #1938 - nested generate
- ok {test-number} - n for: 2
- # #1938 - nested generate
- ok {test-number} - m for: 3
- # #1938 - nested generate
- ok {test-number} - n for: 3
- # #1954 - 7 arg template test case sig compiles - 1, 1, 1, 1, 1, 0, 0
- ok {test-number} -
- # #1954 - 7 arg template test case sig compiles - 5, 1, 1, 1, 1, 0, 0
- ok {test-number} -
- # #1954 - 7 arg template test case sig compiles - 5, 3, 1, 1, 1, 0, 0
- ok {test-number} -
- # #2152 - ULP checks between differently signed values were wrong - double
- ok {test-number} - smallest_non_zero, WithinULP( -smallest_non_zero, 2 ) for: 0.0 is within 2 ULPs of -4.9406564584124654e-324 ([-1.4821969375237396e-323, 4.9406564584124654e-324])
- # #2152 - ULP checks between differently signed values were wrong - double
- ok {test-number} - smallest_non_zero, !WithinULP( -smallest_non_zero, 1 ) for: 0.0 not is within 1 ULPs of -4.9406564584124654e-324 ([-9.8813129168249309e-324, -0.0000000000000000e+00])
- # #2152 - ULP checks between differently signed values were wrong - float
- ok {test-number} - smallest_non_zero, WithinULP( -smallest_non_zero, 2 ) for: 0.0f is within 2 ULPs of -1.40129846e-45f ([-4.20389539e-45, 1.40129846e-45])
- # #2152 - ULP checks between differently signed values were wrong - float
- ok {test-number} - smallest_non_zero, !WithinULP( -smallest_non_zero, 1 ) for: 0.0f not is within 1 ULPs of -1.40129846e-45f ([-2.80259693e-45, -0.00000000e+00])
- # #748 - captures with unexpected exceptions
- not ok {test-number} - unexpected exception with message: 'answer := 42' with 1 message: 'expected exception'
- # #748 - captures with unexpected exceptions
- not ok {test-number} - unexpected exception with message: 'answer := 42'; expression was: thisThrows() with 1 message: 'expected exception'
- # #748 - captures with unexpected exceptions
- ok {test-number} - thisThrows() with 1 message: 'answer := 42'
- # #809
- ok {test-number} - 42 == f for: 42 == {?}
- # #833
- ok {test-number} - a == t for: 3 == 3
- # #833
- ok {test-number} - a == t for: 3 == 3
- # #833
- ok {test-number} - throws_int(true)
- # #833
- ok {test-number} - throws_int(true), int
- # #833
- ok {test-number} - throws_int(false)
- # #833
- ok {test-number} - "aaa", Catch::Matchers::EndsWith("aaa") for: "aaa" ends with: "aaa"
- # #833
- ok {test-number} - templated_tests<int>(3) for: true
- # #835 -- errno should not be touched by Catch2
- not ok {test-number} - f() == 0 for: 1 == 0
- # #835 -- errno should not be touched by Catch2
- ok {test-number} - errno_after == 1 for: 1 == 1
- # #872
- ok {test-number} - x == 4 for: {?} == 4 with 1 message: 'dummy := 0'
- # #961 -- Dynamically created sections should all be reported
- ok {test-number} - with 1 message: 'Everything is OK'
- # #961 -- Dynamically created sections should all be reported
- ok {test-number} - with 1 message: 'Everything is OK'
- # #961 -- Dynamically created sections should all be reported
- ok {test-number} - with 1 message: 'Everything is OK'
- # #961 -- Dynamically created sections should all be reported
- ok {test-number} - with 1 message: 'Everything is OK'
- # #961 -- Dynamically created sections should all be reported
- ok {test-number} - with 1 message: 'Everything is OK'
- # 'Not' checks that should fail
- not ok {test-number} - false != false
- # 'Not' checks that should fail
- not ok {test-number} - true != true
- # 'Not' checks that should fail
- not ok {test-number} - !true for: false
- # 'Not' checks that should fail
- not ok {test-number} - !(true) for: !true
- # 'Not' checks that should fail
- not ok {test-number} - !trueValue for: false
- # 'Not' checks that should fail
- not ok {test-number} - !(trueValue) for: !true
- # 'Not' checks that should fail
- not ok {test-number} - !(1 == 1) for: false
- # 'Not' checks that should fail
- not ok {test-number} - !(1 == 1)
- # 'Not' checks that should succeed
- ok {test-number} - false == false
- # 'Not' checks that should succeed
- ok {test-number} - true == true
- # 'Not' checks that should succeed
- ok {test-number} - !false for: true
- # 'Not' checks that should succeed
- ok {test-number} - !(false) for: !false
- # 'Not' checks that should succeed
- ok {test-number} - !falseValue for: true
- # 'Not' checks that should succeed
- ok {test-number} - !(falseValue) for: !false
- # 'Not' checks that should succeed
- ok {test-number} - !(1 == 2) for: true
- # 'Not' checks that should succeed
- ok {test-number} - !(1 == 2)
- # (unimplemented) static bools can be evaluated
- ok {test-number} - is_true<true>::value == true for: true == true
- # (unimplemented) static bools can be evaluated
- ok {test-number} - true == is_true<true>::value for: true == true
- # (unimplemented) static bools can be evaluated
- ok {test-number} - is_true<false>::value == false for: false == false
- # (unimplemented) static bools can be evaluated
- ok {test-number} - false == is_true<false>::value for: false == false
- # (unimplemented) static bools can be evaluated
- ok {test-number} - !is_true<false>::value for: true
- # (unimplemented) static bools can be evaluated
- ok {test-number} - !!is_true<true>::value for: true
- # (unimplemented) static bools can be evaluated
- ok {test-number} - is_true<true>::value for: true
- # (unimplemented) static bools can be evaluated
- ok {test-number} - !(is_true<false>::value) for: !false
- # 3x3x3 ints
- ok {test-number} - x < y for: 1 < 4
- # 3x3x3 ints
- ok {test-number} - y < z for: 4 < 7
- # 3x3x3 ints
- ok {test-number} - x < z for: 1 < 7
- # 3x3x3 ints
- ok {test-number} - x < y for: 1 < 4
- # 3x3x3 ints
- ok {test-number} - y < z for: 4 < 8
- # 3x3x3 ints
- ok {test-number} - x < z for: 1 < 8
- # 3x3x3 ints
- ok {test-number} - x < y for: 1 < 4
- # 3x3x3 ints
- ok {test-number} - y < z for: 4 < 9
- # 3x3x3 ints
- ok {test-number} - x < z for: 1 < 9
- # 3x3x3 ints
- ok {test-number} - x < y for: 1 < 5
- # 3x3x3 ints
- ok {test-number} - y < z for: 5 < 7
- # 3x3x3 ints
- ok {test-number} - x < z for: 1 < 7
- # 3x3x3 ints
- ok {test-number} - x < y for: 1 < 5
- # 3x3x3 ints
- ok {test-number} - y < z for: 5 < 8
- # 3x3x3 ints
- ok {test-number} - x < z for: 1 < 8
- # 3x3x3 ints
- ok {test-number} - x < y for: 1 < 5
- # 3x3x3 ints
- ok {test-number} - y < z for: 5 < 9
- # 3x3x3 ints
- ok {test-number} - x < z for: 1 < 9
- # 3x3x3 ints
- ok {test-number} - x < y for: 1 < 6
- # 3x3x3 ints
- ok {test-number} - y < z for: 6 < 7
- # 3x3x3 ints
- ok {test-number} - x < z for: 1 < 7
- # 3x3x3 ints
- ok {test-number} - x < y for: 1 < 6
- # 3x3x3 ints
- ok {test-number} - y < z for: 6 < 8
- # 3x3x3 ints
- ok {test-number} - x < z for: 1 < 8
- # 3x3x3 ints
- ok {test-number} - x < y for: 1 < 6
- # 3x3x3 ints
- ok {test-number} - y < z for: 6 < 9
- # 3x3x3 ints
- ok {test-number} - x < z for: 1 < 9
- # 3x3x3 ints
- ok {test-number} - x < y for: 2 < 4
- # 3x3x3 ints
- ok {test-number} - y < z for: 4 < 7
- # 3x3x3 ints
- ok {test-number} - x < z for: 2 < 7
- # 3x3x3 ints
- ok {test-number} - x < y for: 2 < 4
- # 3x3x3 ints
- ok {test-number} - y < z for: 4 < 8
- # 3x3x3 ints
- ok {test-number} - x < z for: 2 < 8
- # 3x3x3 ints
- ok {test-number} - x < y for: 2 < 4
- # 3x3x3 ints
- ok {test-number} - y < z for: 4 < 9
- # 3x3x3 ints
- ok {test-number} - x < z for: 2 < 9
- # 3x3x3 ints
- ok {test-number} - x < y for: 2 < 5
- # 3x3x3 ints
- ok {test-number} - y < z for: 5 < 7
- # 3x3x3 ints
- ok {test-number} - x < z for: 2 < 7
- # 3x3x3 ints
- ok {test-number} - x < y for: 2 < 5
- # 3x3x3 ints
- ok {test-number} - y < z for: 5 < 8
- # 3x3x3 ints
- ok {test-number} - x < z for: 2 < 8
- # 3x3x3 ints
- ok {test-number} - x < y for: 2 < 5
- # 3x3x3 ints
- ok {test-number} - y < z for: 5 < 9
- # 3x3x3 ints
- ok {test-number} - x < z for: 2 < 9
- # 3x3x3 ints
- ok {test-number} - x < y for: 2 < 6
- # 3x3x3 ints
- ok {test-number} - y < z for: 6 < 7
- # 3x3x3 ints
- ok {test-number} - x < z for: 2 < 7
- # 3x3x3 ints
- ok {test-number} - x < y for: 2 < 6
- # 3x3x3 ints
- ok {test-number} - y < z for: 6 < 8
- # 3x3x3 ints
- ok {test-number} - x < z for: 2 < 8
- # 3x3x3 ints
- ok {test-number} - x < y for: 2 < 6
- # 3x3x3 ints
- ok {test-number} - y < z for: 6 < 9
- # 3x3x3 ints
- ok {test-number} - x < z for: 2 < 9
- # 3x3x3 ints
- ok {test-number} - x < y for: 3 < 4
- # 3x3x3 ints
- ok {test-number} - y < z for: 4 < 7
- # 3x3x3 ints
- ok {test-number} - x < z for: 3 < 7
- # 3x3x3 ints
- ok {test-number} - x < y for: 3 < 4
- # 3x3x3 ints
- ok {test-number} - y < z for: 4 < 8
- # 3x3x3 ints
- ok {test-number} - x < z for: 3 < 8
- # 3x3x3 ints
- ok {test-number} - x < y for: 3 < 4
- # 3x3x3 ints
- ok {test-number} - y < z for: 4 < 9
- # 3x3x3 ints
- ok {test-number} - x < z for: 3 < 9
- # 3x3x3 ints
- ok {test-number} - x < y for: 3 < 5
- # 3x3x3 ints
- ok {test-number} - y < z for: 5 < 7
- # 3x3x3 ints
- ok {test-number} - x < z for: 3 < 7
- # 3x3x3 ints
- ok {test-number} - x < y for: 3 < 5
- # 3x3x3 ints
- ok {test-number} - y < z for: 5 < 8
- # 3x3x3 ints
- ok {test-number} - x < z for: 3 < 8
- # 3x3x3 ints
- ok {test-number} - x < y for: 3 < 5
- # 3x3x3 ints
- ok {test-number} - y < z for: 5 < 9
- # 3x3x3 ints
- ok {test-number} - x < z for: 3 < 9
- # 3x3x3 ints
- ok {test-number} - x < y for: 3 < 6
- # 3x3x3 ints
- ok {test-number} - y < z for: 6 < 7
- # 3x3x3 ints
- ok {test-number} - x < z for: 3 < 7
- # 3x3x3 ints
- ok {test-number} - x < y for: 3 < 6
- # 3x3x3 ints
- ok {test-number} - y < z for: 6 < 8
- # 3x3x3 ints
- ok {test-number} - x < z for: 3 < 8
- # 3x3x3 ints
- ok {test-number} - x < y for: 3 < 6
- # 3x3x3 ints
- ok {test-number} - y < z for: 6 < 9
- # 3x3x3 ints
- ok {test-number} - x < z for: 3 < 9
- # A METHOD_AS_TEST_CASE based test run that fails
- not ok {test-number} - s == "world" for: "hello" == "world"
- # A METHOD_AS_TEST_CASE based test run that succeeds
- ok {test-number} - s == "hello" for: "hello" == "hello"
- # A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo<float>
- not ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 1 for: 0 == 1
- # A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo<int>
- not ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 1 for: 0 == 1
- # A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector<float>
- not ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 1 for: 0 == 1
- # A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector<int>
- not ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 1 for: 0 == 1
- # A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo<float>
- ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 0 for: 0 == 0
- # A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo<int>
- ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 0 for: 0 == 0
- # A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector<float>
- ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 0 for: 0 == 0
- # A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector<int>
- ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 0 for: 0 == 0
- # A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - Template_Foo_2<float, 6>
- not ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() < 2 for: 6 < 2
- # A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - Template_Foo_2<int, 2>
- not ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() < 2 for: 2 < 2
- # A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array<float, 6>
- not ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() < 2 for: 6 < 2
- # A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array<int, 2>
- not ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() < 2 for: 2 < 2
- # A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - Template_Foo_2<float,6>
- ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() >= 2 for: 6 >= 2
- # A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - Template_Foo_2<int,2>
- ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() >= 2 for: 2 >= 2
- # A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::array<float,6>
- ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() >= 2 for: 6 >= 2
- # A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::array<int,2>
- ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() >= 2 for: 2 >= 2
- # A TEMPLATE_TEST_CASE_METHOD based test run that fails - double
- not ok {test-number} - Template_Fixture<TestType>::m_a == 2 for: 1.0 == 2
- # A TEMPLATE_TEST_CASE_METHOD based test run that fails - float
- not ok {test-number} - Template_Fixture<TestType>::m_a == 2 for: 1.0f == 2
- # A TEMPLATE_TEST_CASE_METHOD based test run that fails - int
- not ok {test-number} - Template_Fixture<TestType>::m_a == 2 for: 1 == 2
- # A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - double
- ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1.0 == 1
- # A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - float
- ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1.0f == 1
- # A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - int
- ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1 == 1
- # A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 1
- not ok {test-number} - Nttp_Fixture<V>::value == 0 for: 1 == 0
- # A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 3
- not ok {test-number} - Nttp_Fixture<V>::value == 0 for: 3 == 0
- # A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 6
- not ok {test-number} - Nttp_Fixture<V>::value == 0 for: 6 == 0
- # A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 1
- ok {test-number} - Nttp_Fixture<V>::value > 0 for: 1 > 0
- # A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 3
- ok {test-number} - Nttp_Fixture<V>::value > 0 for: 3 > 0
- # A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 6
- ok {test-number} - Nttp_Fixture<V>::value > 0 for: 6 > 0
- # A TEST_CASE_METHOD based test run that fails
- not ok {test-number} - m_a == 2 for: 1 == 2
- # A TEST_CASE_METHOD based test run that succeeds
- ok {test-number} - m_a == 1 for: 1 == 1
- # A Template product test case - Foo<float>
- ok {test-number} - x.size() == 0 for: 0 == 0
- # A Template product test case - Foo<int>
- ok {test-number} - x.size() == 0 for: 0 == 0
- # A Template product test case - std::vector<float>
- ok {test-number} - x.size() == 0 for: 0 == 0
- # A Template product test case - std::vector<int>
- ok {test-number} - x.size() == 0 for: 0 == 0
- # A Template product test case with array signature - Bar<float, 42>
- ok {test-number} - x.size() > 0 for: 42 > 0
- # A Template product test case with array signature - Bar<int, 9>
- ok {test-number} - x.size() > 0 for: 9 > 0
- # A Template product test case with array signature - std::array<float, 42>
- ok {test-number} - x.size() > 0 for: 42 > 0
- # A Template product test case with array signature - std::array<int, 9>
- ok {test-number} - x.size() > 0 for: 9 > 0
- # A comparison that uses literals instead of the normal constructor
- ok {test-number} - d == 1.23_a for: 1.23 == Approx( 1.23 )
- # A comparison that uses literals instead of the normal constructor
- ok {test-number} - d != 1.22_a for: 1.23 != Approx( 1.22 )
- # A comparison that uses literals instead of the normal constructor
- ok {test-number} - -d == -1.23_a for: -1.23 == Approx( -1.23 )
- # A comparison that uses literals instead of the normal constructor
- ok {test-number} - d == 1.2_a .epsilon(.1) for: 1.23 == Approx( 1.2 )
- # A comparison that uses literals instead of the normal constructor
- ok {test-number} - d != 1.2_a .epsilon(.001) for: 1.23 != Approx( 1.2 )
- # A comparison that uses literals instead of the normal constructor
- ok {test-number} - d == 1_a .epsilon(.3) for: 1.23 == Approx( 1.0 )
- # A couple of nested sections followed by a failure
- ok {test-number} - with 1 message: 'that's not flying - that's failing in style'
- # A couple of nested sections followed by a failure
- not ok {test-number} - explicitly with 1 message: 'to infinity and beyond'
- # A failing expression with a non streamable type is still captured
- not ok {test-number} - &o1 == &o2 for: 0x<hex digits> == 0x<hex digits>
- # A failing expression with a non streamable type is still captured
- not ok {test-number} - o1 == o2 for: {?} == {?}
- # Absolute margin
- ok {test-number} - 104.0 != Approx(100.0) for: 104.0 != Approx( 100.0 )
- # Absolute margin
- ok {test-number} - 104.0 == Approx(100.0).margin(5) for: 104.0 == Approx( 100.0 )
- # Absolute margin
- ok {test-number} - 104.0 == Approx(100.0).margin(4) for: 104.0 == Approx( 100.0 )
- # Absolute margin
- ok {test-number} - 104.0 != Approx(100.0).margin(3) for: 104.0 != Approx( 100.0 )
- # Absolute margin
- ok {test-number} - 100.3 != Approx(100.0) for: 100.3 != Approx( 100.0 )
- # Absolute margin
- ok {test-number} - 100.3 == Approx(100.0).margin(0.5) for: 100.3 == Approx( 100.0 )
- # An expression with side-effects should only be evaluated once
- ok {test-number} - i++ == 7 for: 7 == 7
- # An expression with side-effects should only be evaluated once
- ok {test-number} - i++ == 8 for: 8 == 8
- # An unchecked exception reports the line of the last assertion
- ok {test-number} - 1 == 1
- # An unchecked exception reports the line of the last assertion
- not ok {test-number} - unexpected exception with message: 'unexpected exception'; expression was: {Unknown expression after the reported line}
- # Anonymous test case 1
- ok {test-number} - with 1 message: 'anonymous test case'
- # Approx setters validate their arguments
- ok {test-number} - Approx(0).margin(0)
- # Approx setters validate their arguments
- ok {test-number} - Approx(0).margin(1234656)
- # Approx setters validate their arguments
- ok {test-number} - Approx(0).margin(-2), std::domain_error
- # Approx setters validate their arguments
- ok {test-number} - Approx(0).epsilon(0)
- # Approx setters validate their arguments
- ok {test-number} - Approx(0).epsilon(1)
- # Approx setters validate their arguments
- ok {test-number} - Approx(0).epsilon(-0.001), std::domain_error
- # Approx setters validate their arguments
- ok {test-number} - Approx(0).epsilon(1.0001), std::domain_error
- # Approx with exactly-representable margin
- ok {test-number} - 0.25f == Approx(0.0f).margin(0.25f) for: 0.25f == Approx( 0.0 )
- # Approx with exactly-representable margin
- ok {test-number} - 0.0f == Approx(0.25f).margin(0.25f) for: 0.0f == Approx( 0.25 )
- # Approx with exactly-representable margin
- ok {test-number} - 0.5f == Approx(0.25f).margin(0.25f) for: 0.5f == Approx( 0.25 )
- # Approx with exactly-representable margin
- ok {test-number} - 245.0f == Approx(245.25f).margin(0.25f) for: 245.0f == Approx( 245.25 )
- # Approx with exactly-representable margin
- ok {test-number} - 245.5f == Approx(245.25f).margin(0.25f) for: 245.5f == Approx( 245.25 )
- # Approximate PI
- ok {test-number} - divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) for: 3.1428571429 == Approx( 3.141 )
- # Approximate PI
- ok {test-number} - divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) for: 3.1428571429 != Approx( 3.141 )
- # Approximate comparisons with different epsilons
- ok {test-number} - d != Approx( 1.231 ) for: 1.23 != Approx( 1.231 )
- # Approximate comparisons with different epsilons
- ok {test-number} - d == Approx( 1.231 ).epsilon( 0.1 ) for: 1.23 == Approx( 1.231 )
- # Approximate comparisons with floats
- ok {test-number} - 1.23f == Approx( 1.23f ) for: 1.23f == Approx( 1.2300000191 )
- # Approximate comparisons with floats
- ok {test-number} - 0.0f == Approx( 0.0f ) for: 0.0f == Approx( 0.0 )
- # Approximate comparisons with ints
- ok {test-number} - 1 == Approx( 1 ) for: 1 == Approx( 1.0 )
- # Approximate comparisons with ints
- ok {test-number} - 0 == Approx( 0 ) for: 0 == Approx( 0.0 )
- # Approximate comparisons with mixed numeric types
- ok {test-number} - 1.0f == Approx( 1 ) for: 1.0f == Approx( 1.0 )
- # Approximate comparisons with mixed numeric types
- ok {test-number} - 0 == Approx( dZero) for: 0 == Approx( 0.0 )
- # Approximate comparisons with mixed numeric types
- ok {test-number} - 0 == Approx( dSmall ).margin( 0.001 ) for: 0 == Approx( 0.00001 )
- # Approximate comparisons with mixed numeric types
- ok {test-number} - 1.234f == Approx( dMedium ) for: 1.234f == Approx( 1.234 )
- # Approximate comparisons with mixed numeric types
- ok {test-number} - dMedium == Approx( 1.234f ) for: 1.234 == Approx( 1.2339999676 )
- # Arbitrary predicate matcher
- ok {test-number} - 1, Predicate<int>( alwaysTrue, "always true" ) for: 1 matches predicate: "always true"
- # Arbitrary predicate matcher
- ok {test-number} - 1, !Predicate<int>( alwaysFalse, "always false" ) for: 1 not matches predicate: "always false"
- # Arbitrary predicate matcher
- ok {test-number} - "Hello olleH", Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); }, "First and last character should be equal" ) for: "Hello olleH" matches predicate: "First and last character should be equal"
- # Arbitrary predicate matcher
- ok {test-number} - "This wouldn't pass", !Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); } ) for: "This wouldn't pass" not matches undescribed predicate
- # Assertion macros support bit operators and bool conversions
- ok {test-number} - lhs | rhs for: Val: 1 | Val: 2
- # Assertion macros support bit operators and bool conversions
- ok {test-number} - !(lhs & rhs) for: !(Val: 1 & Val: 2)
- # Assertion macros support bit operators and bool conversions
- ok {test-number} - HasBitOperators{ 1 } & HasBitOperators{ 1 } for: Val: 1 & Val: 1
- # Assertion macros support bit operators and bool conversions
- ok {test-number} - lhs ^ rhs for: Val: 1 ^ Val: 2
- # Assertion macros support bit operators and bool conversions
- ok {test-number} - !(lhs ^ lhs) for: !(Val: 1 ^ Val: 1)
- # Assertions then sections
- ok {test-number} - true
- # Assertions then sections
- ok {test-number} - true
- # Assertions then sections
- ok {test-number} - true
- # Assertions then sections
- ok {test-number} - true
- # Assertions then sections
- ok {test-number} - true
- # Assertions then sections
- ok {test-number} - true
- # Basic use of the Contains range matcher
- ok {test-number} - a, Contains(1) for: { 1, 2, 3 } contains element 1
- # Basic use of the Contains range matcher
- ok {test-number} - b, Contains(1) for: { 0, 1, 2 } contains element 1
- # Basic use of the Contains range matcher
- ok {test-number} - c, !Contains(1) for: { 4, 5, 6 } not contains element 1
- # Basic use of the Contains range matcher
- ok {test-number} - a, Contains(0, close_enough) for: { 1, 2, 3 } contains element 0
- # Basic use of the Contains range matcher
- ok {test-number} - b, Contains(0, close_enough) for: { 0, 1, 2 } contains element 0
- # Basic use of the Contains range matcher
- ok {test-number} - c, !Contains(0, close_enough) for: { 4, 5, 6 } not contains element 0
- # Basic use of the Contains range matcher
- ok {test-number} - a, Contains(4, [](auto&& lhs, size_t sz) { return lhs.size() == sz; }) for: { "abc", "abcd", "abcde" } contains element 4
- # Basic use of the Contains range matcher
- ok {test-number} - in, Contains(1) for: { 1, 2, 3, 4, 5 } contains element 1
- # Basic use of the Contains range matcher
- ok {test-number} - in, !Contains(8) for: { 1, 2, 3, 4, 5 } not contains element 8
- # Basic use of the Contains range matcher
- ok {test-number} - in, Contains(MoveOnlyTestElement{ 2 }) for: { 1, 2, 3 } contains element 2
- # Basic use of the Contains range matcher
- ok {test-number} - in, !Contains(MoveOnlyTestElement{ 9 }) for: { 1, 2, 3 } not contains element 9
- # Basic use of the Contains range matcher
- ok {test-number} - in, Contains(Catch::Matchers::WithinAbs(0.5, 0.5)) for: { 1.0, 2.0, 3.0, 0.0 } contains element matching is within 0.5 of 0.5
- # Basic use of the Empty range matcher
- ok {test-number} - empty_array, IsEmpty() for: { } is empty
- # Basic use of the Empty range matcher
- ok {test-number} - non_empty_array, !IsEmpty() for: { 0.0 } not is empty
- # Basic use of the Empty range matcher
- ok {test-number} - empty_vec, IsEmpty() for: { } is empty
- # Basic use of the Empty range matcher
- ok {test-number} - non_empty_vec, !IsEmpty() for: { 'a', 'b', 'c' } not is empty
- # Basic use of the Empty range matcher
- ok {test-number} - inner_lists_are_empty, !IsEmpty() for: { { } } not is empty
- # Basic use of the Empty range matcher
- ok {test-number} - inner_lists_are_empty.front(), IsEmpty() for: { } is empty
- # Basic use of the Empty range matcher
- ok {test-number} - has_empty{}, !IsEmpty() for: {?} not is empty
- # Basic use of the Empty range matcher
- ok {test-number} - unrelated::ADL_empty{}, IsEmpty() for: {?} is empty
- # CAPTURE can deal with complex expressions
- ok {test-number} - with 7 messages: 'a := 1' and 'b := 2' and 'c := 3' and 'a + b := 3' and 'a+b := 3' and 'c > b := true' and 'a == 1 := true'
- # CAPTURE can deal with complex expressions involving commas
- ok {test-number} - with 7 messages: 'std::vector<int>{1, 2, 3}[0, 1, 2] := 3' and 'std::vector<int>{1, 2, 3}[(0, 1)] := 2' and 'std::vector<int>{1, 2, 3}[0] := 1' and '(helper_1436<int, int>{12, -12}) := { 12, -12 }' and '(helper_1436<int, int>(-12, 12)) := { -12, 12 }' and '(1, 2) := 2' and '(2, 3) := 3'
- # CAPTURE parses string and character constants
- ok {test-number} - with 11 messages: '("comma, in string", "escaped, \", ") := "escaped, ", "' and '"single quote in string,'," := "single quote in string,',"' and '"some escapes, \\,\\\\" := "some escapes, \,\\"' and '"some, ), unmatched, } prenheses {[<" := "some, ), unmatched, } prenheses {[<"' and ''"' := '"'' and ''\'' := '''' and '',' := ','' and ''}' := '}'' and '')' := ')'' and ''(' := '('' and ''{' := '{''
- # Capture and info messages
- ok {test-number} - true with 1 message: 'i := 2'
- # Capture and info messages
- ok {test-number} - true with 1 message: '3'
- # CaseInsensitiveEqualsTo is case insensitive
- ok {test-number} - eq( "", "" ) for: true
- # CaseInsensitiveEqualsTo is case insensitive
- ok {test-number} - !(eq( "", "a" )) for: !false
- # CaseInsensitiveEqualsTo is case insensitive
- ok {test-number} - eq( "a", "a" ) for: true
- # CaseInsensitiveEqualsTo is case insensitive
- ok {test-number} - eq( "a", "A" ) for: true
- # CaseInsensitiveEqualsTo is case insensitive
- ok {test-number} - eq( "A", "a" ) for: true
- # CaseInsensitiveEqualsTo is case insensitive
- ok {test-number} - eq( "A", "A" ) for: true
- # CaseInsensitiveEqualsTo is case insensitive
- ok {test-number} - !(eq( "a", "b" )) for: !false
- # CaseInsensitiveEqualsTo is case insensitive
- ok {test-number} - !(eq( "a", "B" )) for: !false
- # CaseInsensitiveLess is case insensitive
- ok {test-number} - lt( "", "a" ) for: true
- # CaseInsensitiveLess is case insensitive
- ok {test-number} - !(lt( "a", "a" )) for: !false
- # CaseInsensitiveLess is case insensitive
- ok {test-number} - !(lt( "", "" )) for: !false
- # CaseInsensitiveLess is case insensitive
- ok {test-number} - lt( "a", "b" ) for: true
- # CaseInsensitiveLess is case insensitive
- ok {test-number} - lt( "a", "B" ) for: true
- # CaseInsensitiveLess is case insensitive
- ok {test-number} - lt( "A", "b" ) for: true
- # CaseInsensitiveLess is case insensitive
- ok {test-number} - lt( "A", "B" ) for: true
- # Character pretty printing
- ok {test-number} - tab == '\t' for: '\t' == '\t'
- # Character pretty printing
- ok {test-number} - newline == '\n' for: '\n' == '\n'
- # Character pretty printing
- ok {test-number} - carr_return == '\r' for: '\r' == '\r'
- # Character pretty printing
- ok {test-number} - form_feed == '\f' for: '\f' == '\f'
- # Character pretty printing
- ok {test-number} - space == ' ' for: ' ' == ' '
- # Character pretty printing
- ok {test-number} - c == chars[i] for: 'a' == 'a'
- # Character pretty printing
- ok {test-number} - c == chars[i] for: 'z' == 'z'
- # Character pretty printing
- ok {test-number} - c == chars[i] for: 'A' == 'A'
- # Character pretty printing
- ok {test-number} - c == chars[i] for: 'Z' == 'Z'
- # Character pretty printing
- ok {test-number} - null_terminator == '\0' for: 0 == 0
- # Character pretty printing
- ok {test-number} - c == i for: 2 == 2
- # Character pretty printing
- ok {test-number} - c == i for: 3 == 3
- # Character pretty printing
- ok {test-number} - c == i for: 4 == 4
- # Character pretty printing
- ok {test-number} - c == i for: 5 == 5
- # Clara::Arg supports single-arg parse the way Opt does
- ok {test-number} - name.empty() for: true
- # Clara::Arg supports single-arg parse the way Opt does
- ok {test-number} - name == "foo" for: "foo" == "foo"
- # Clara::Opt supports accept-many lambdas
- ok {test-number} - !(parse_result) for: !{?}
- # Clara::Opt supports accept-many lambdas
- ok {test-number} - parse_result for: {?}
- # Clara::Opt supports accept-many lambdas
- ok {test-number} - res == std::vector<std::string>{ "aaa", "bbb" } for: { "aaa", "bbb" } == { "aaa", "bbb" }
- # ColourGuard behaviour
- ok {test-number} - streamWrapper.str().empty() for: true
- # ColourGuard behaviour
- ok {test-number} - streamWrapper.str() == "1\nUsing code: 2\n2\nUsing code: 0\n3\n" for: "1 Using code: 2 2 Using code: 0 3 " == "1 Using code: 2 2 Using code: 0 3 "
- # ColourGuard behaviour
- ok {test-number} - streamWrapper.str() == "Using code: 2\nA\nB\nUsing code: 0\nC\n" for: "Using code: 2 A B Using code: 0 C " == "Using code: 2 A B Using code: 0 C "
- # Combining MatchAllOfGeneric does not nest
- ok {test-number} - with 1 message: 'std::is_same< decltype( ( MatcherA() && MatcherB() ) && MatcherC() ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value'
- # Combining MatchAllOfGeneric does not nest
- ok {test-number} - 1, ( MatcherA() && MatcherB() ) && MatcherC() for: 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T) 1 )
- # Combining MatchAllOfGeneric does not nest
- ok {test-number} - with 1 message: 'std::is_same< decltype( MatcherA() && ( MatcherB() && MatcherC() ) ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value'
- # Combining MatchAllOfGeneric does not nest
- ok {test-number} - 1, MatcherA() && ( MatcherB() && MatcherC() ) for: 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T) 1 )
- # Combining MatchAllOfGeneric does not nest
- ok {test-number} - with 1 message: 'std::is_same< decltype( ( MatcherA() && MatcherB() ) && ( MatcherC() && MatcherD() ) ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC, MatcherD>>:: value'
- # Combining MatchAllOfGeneric does not nest
- ok {test-number} - 1, ( MatcherA() && MatcherB() ) && ( MatcherC() && MatcherD() ) for: 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T) 1 and equals: true )
- # Combining MatchAnyOfGeneric does not nest
- ok {test-number} - with 1 message: 'std::is_same< decltype( ( MatcherA() || MatcherB() ) || MatcherC() ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value'
- # Combining MatchAnyOfGeneric does not nest
- ok {test-number} - 1, ( MatcherA() || MatcherB() ) || MatcherC() for: 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1 )
- # Combining MatchAnyOfGeneric does not nest
- ok {test-number} - with 1 message: 'std::is_same< decltype( MatcherA() || ( MatcherB() || MatcherC() ) ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value'
- # Combining MatchAnyOfGeneric does not nest
- ok {test-number} - 1, MatcherA() || ( MatcherB() || MatcherC() ) for: 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1 )
- # Combining MatchAnyOfGeneric does not nest
- ok {test-number} - with 1 message: 'std::is_same< decltype( ( MatcherA() || MatcherB() ) || ( MatcherC() || MatcherD() ) ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC, MatcherD>>:: value'
- # Combining MatchAnyOfGeneric does not nest
- ok {test-number} - 1, ( MatcherA() || MatcherB() ) || ( MatcherC() || MatcherD() ) for: 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1 or equals: true )
- # Combining MatchNotOfGeneric does not nest
- ok {test-number} - with 1 message: 'std::is_same< decltype( !MatcherA() ), Catch::Matchers::Detail::MatchNotOfGeneric<MatcherA>>::value'
- # Combining MatchNotOfGeneric does not nest
- ok {test-number} - 0, !MatcherA() for: 0 not equals: (int) 1 or (string) "1"
- # Combining MatchNotOfGeneric does not nest
- ok {test-number} - with 1 message: 'std::is_same<decltype( !!MatcherA() ), MatcherA const&>::value'
- # Combining MatchNotOfGeneric does not nest
- ok {test-number} - 1, !!MatcherA() for: 1 equals: (int) 1 or (string) "1"
- # Combining MatchNotOfGeneric does not nest
- ok {test-number} - with 1 message: 'std::is_same< decltype( !!!MatcherA() ), Catch::Matchers::Detail::MatchNotOfGeneric<MatcherA>>::value'
- # Combining MatchNotOfGeneric does not nest
- ok {test-number} - 0, !!!MatcherA() for: 0 not equals: (int) 1 or (string) "1"
- # Combining MatchNotOfGeneric does not nest
- ok {test-number} - with 1 message: 'std::is_same<decltype( !!!!MatcherA() ), MatcherA const&>::value'
- # Combining MatchNotOfGeneric does not nest
- ok {test-number} - 1, !!!!MatcherA() for: 1 equals: (int) 1 or (string) "1"
- # Combining concrete matchers does not use templated matchers
- ok {test-number} - with 1 message: 'std::is_same<decltype( StartsWith( "foo" ) || ( StartsWith( "bar" ) && EndsWith( "bar" ) && !EndsWith( "foo" ) ) ), Catch::Matchers::Detail::MatchAnyOf<std::string>>::value'
- # Combining only templated matchers
- ok {test-number} - with 1 message: 'std::is_same<decltype( MatcherA() || MatcherB() ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB>>::value'
- # Combining only templated matchers
- ok {test-number} - 1, MatcherA() || MatcherB() for: 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 )
- # Combining only templated matchers
- ok {test-number} - with 1 message: 'std::is_same<decltype( MatcherA() && MatcherB() ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB>>::value'
- # Combining only templated matchers
- ok {test-number} - 1, MatcherA() && MatcherB() for: 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 )
- # Combining only templated matchers
- ok {test-number} - with 1 message: 'std::is_same< decltype( MatcherA() || !MatcherB() ), Catch::Matchers::Detail::MatchAnyOfGeneric< MatcherA, Catch::Matchers::Detail::MatchNotOfGeneric<MatcherB>>>::value'
- # Combining only templated matchers
- ok {test-number} - 1, MatcherA() || !MatcherB() for: 1 ( equals: (int) 1 or (string) "1" or not equals: (long long) 1 )
- # Combining templated and concrete matchers
- ok {test-number} - vec, Predicate<std::vector<int>>( []( auto const& v ) { return std::all_of( v.begin(), v.end(), []( int elem ) { return elem % 2 == 1; } ); }, "All elements are odd" ) && !EqualsRange( a ) for: { 1, 3, 5 } ( matches predicate: "All elements are odd" and not Equals: { 5, 3, 1 } )
- # Combining templated and concrete matchers
- ok {test-number} - str, StartsWith( "foo" ) && EqualsRange( arr ) && EndsWith( "bar" ) for: "foobar" ( starts with: "foo" and Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and ends with: "bar" )
- # Combining templated and concrete matchers
- ok {test-number} - str, StartsWith( "foo" ) && !EqualsRange( bad_arr ) && EndsWith( "bar" ) for: "foobar" ( starts with: "foo" and not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and ends with: "bar" )
- # Combining templated and concrete matchers
- ok {test-number} - str, EqualsRange( arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) for: "foobar" ( Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and starts with: "foo" and ends with: "bar" )
- # Combining templated and concrete matchers
- ok {test-number} - str, !EqualsRange( bad_arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) for: "foobar" ( not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and starts with: "foo" and ends with: "bar" )
- # Combining templated and concrete matchers
- ok {test-number} - str, EqualsRange( bad_arr ) || ( StartsWith( "foo" ) && EndsWith( "bar" ) ) for: "foobar" ( Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } or ( starts with: "foo" and ends with: "bar" ) )
- # Combining templated and concrete matchers
- ok {test-number} - str, ( StartsWith( "foo" ) && EndsWith( "bar" ) ) || EqualsRange( bad_arr ) for: "foobar" ( ( starts with: "foo" and ends with: "bar" ) or Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } )
- # Combining templated matchers
- ok {test-number} - container, EqualsRange( a ) || EqualsRange( b ) || EqualsRange( c ) for: { 1, 2, 3 } ( Equals: { 1, 2, 3 } or Equals: { 0, 1, 2 } or Equals: { 4, 5, 6 } )
- # Commas in various macros are allowed
- ok {test-number} - std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}}
- # Commas in various macros are allowed
- ok {test-number} - std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}}
- # Commas in various macros are allowed
- ok {test-number} - std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3}
- # Commas in various macros are allowed
- ok {test-number} - std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3}
- # Commas in various macros are allowed
- ok {test-number} - std::vector<int>{1, 2} == std::vector<int>{1, 2} for: { 1, 2 } == { 1, 2 }
- # Commas in various macros are allowed
- ok {test-number} - std::vector<int>{1, 2} == std::vector<int>{1, 2} for: { 1, 2 } == { 1, 2 }
- # Commas in various macros are allowed
- ok {test-number} - !(std::vector<int>{1, 2} == std::vector<int>{1, 2, 3}) for: !({ 1, 2 } == { 1, 2, 3 })
- # Commas in various macros are allowed
- ok {test-number} - !(std::vector<int>{1, 2} == std::vector<int>{1, 2, 3}) for: !({ 1, 2 } == { 1, 2, 3 })
- # Commas in various macros are allowed
- ok {test-number} - std::vector<int>{1, 2} == std::vector<int>{1, 2} for: { 1, 2 } == { 1, 2 }
- # Commas in various macros are allowed
- ok {test-number} - std::vector<int>{1, 2} == std::vector<int>{1, 2} for: { 1, 2 } == { 1, 2 }
- # Commas in various macros are allowed
- ok {test-number} - true
- # Commas in various macros are allowed
- ok {test-number} - std::vector<int>{1, 2} == std::vector<int>{1, 2} for: { 1, 2 } == { 1, 2 }
- # Comparing function pointers
- ok {test-number} - a for: 0x<hex digits>
- # Comparing function pointers
- ok {test-number} - a == &foo for: 0x<hex digits> == 0x<hex digits>
- # Comparison ops
- ok {test-number} - SimplePcg32{} == SimplePcg32{} for: {?} == {?}
- # Comparison ops
- ok {test-number} - SimplePcg32{ 0 } != SimplePcg32{} for: {?} != {?}
- # Comparison ops
- ok {test-number} - !(SimplePcg32{ 1 } == SimplePcg32{ 2 }) for: !({?} == {?})
- # Comparison ops
- ok {test-number} - !(SimplePcg32{ 1 } != SimplePcg32{ 1 }) for: !({?} != {?})
- # Comparison with explicitly convertible types
- ok {test-number} - td == Approx(10.0) for: StrongDoubleTypedef(10) == Approx( 10.0 )
- # Comparison with explicitly convertible types
- ok {test-number} - Approx(10.0) == td for: Approx( 10.0 ) == StrongDoubleTypedef(10)
- # Comparison with explicitly convertible types
- ok {test-number} - td != Approx(11.0) for: StrongDoubleTypedef(10) != Approx( 11.0 )
- # Comparison with explicitly convertible types
- ok {test-number} - Approx(11.0) != td for: Approx( 11.0 ) != StrongDoubleTypedef(10)
- # Comparison with explicitly convertible types
- ok {test-number} - td <= Approx(10.0) for: StrongDoubleTypedef(10) <= Approx( 10.0 )
- # Comparison with explicitly convertible types
- ok {test-number} - td <= Approx(11.0) for: StrongDoubleTypedef(10) <= Approx( 11.0 )
- # Comparison with explicitly convertible types
- ok {test-number} - Approx(10.0) <= td for: Approx( 10.0 ) <= StrongDoubleTypedef(10)
- # Comparison with explicitly convertible types
- ok {test-number} - Approx(9.0) <= td for: Approx( 9.0 ) <= StrongDoubleTypedef(10)
- # Comparison with explicitly convertible types
- ok {test-number} - td >= Approx(9.0) for: StrongDoubleTypedef(10) >= Approx( 9.0 )
- # Comparison with explicitly convertible types
- ok {test-number} - td >= Approx(td) for: StrongDoubleTypedef(10) >= Approx( 10.0 )
- # Comparison with explicitly convertible types
- ok {test-number} - Approx(td) >= td for: Approx( 10.0 ) >= StrongDoubleTypedef(10)
- # Comparison with explicitly convertible types
- ok {test-number} - Approx(11.0) >= td for: Approx( 11.0 ) >= StrongDoubleTypedef(10)
- # Comparisons between ints where one side is computed
- ok {test-number} - 54 == 6*9 for: 54 == 54
- # Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
- ok {test-number} - ( -1 > 2u ) for: true
- # Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
- ok {test-number} - -1 > 2u for: -1 > 2
- # Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
- ok {test-number} - ( 2u < -1 ) for: true
- # Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
- ok {test-number} - 2u < -1 for: 2 < -1
- # Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
- ok {test-number} - ( minInt > 2u ) for: true
- # Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
- ok {test-number} - minInt > 2u for: -2147483648 > 2
- # Comparisons with int literals don't warn when mixing signed/ unsigned
- ok {test-number} - i == 1 for: 1 == 1
- # Comparisons with int literals don't warn when mixing signed/ unsigned
- ok {test-number} - ui == 2 for: 2 == 2
- # Comparisons with int literals don't warn when mixing signed/ unsigned
- ok {test-number} - l == 3 for: 3 == 3
- # Comparisons with int literals don't warn when mixing signed/ unsigned
- ok {test-number} - ul == 4 for: 4 == 4
- # Comparisons with int literals don't warn when mixing signed/ unsigned
- ok {test-number} - c == 5 for: 5 == 5
- # Comparisons with int literals don't warn when mixing signed/ unsigned
- ok {test-number} - uc == 6 for: 6 == 6
- # Comparisons with int literals don't warn when mixing signed/ unsigned
- ok {test-number} - 1 == i for: 1 == 1
- # Comparisons with int literals don't warn when mixing signed/ unsigned
- ok {test-number} - 2 == ui for: 2 == 2
- # Comparisons with int literals don't warn when mixing signed/ unsigned
- ok {test-number} - 3 == l for: 3 == 3
- # Comparisons with int literals don't warn when mixing signed/ unsigned
- ok {test-number} - 4 == ul for: 4 == 4
- # Comparisons with int literals don't warn when mixing signed/ unsigned
- ok {test-number} - 5 == c for: 5 == 5
- # Comparisons with int literals don't warn when mixing signed/ unsigned
- ok {test-number} - 6 == uc for: 6 == 6
- # Comparisons with int literals don't warn when mixing signed/ unsigned
- ok {test-number} - (std::numeric_limits<uint32_t>::max)() > ul for: 4294967295 (0x<hex digits>) > 4
- # Composed generic matchers shortcircuit
- ok {test-number} - !(matcher.match( 1 )) for: !false
- # Composed generic matchers shortcircuit
- ok {test-number} - first.matchCalled for: true
- # Composed generic matchers shortcircuit
- ok {test-number} - !second.matchCalled for: true
- # Composed generic matchers shortcircuit
- ok {test-number} - matcher.match( 1 ) for: true
- # Composed generic matchers shortcircuit
- ok {test-number} - first.matchCalled for: true
- # Composed generic matchers shortcircuit
- ok {test-number} - !second.matchCalled for: true
- # Composed matchers shortcircuit
- ok {test-number} - !(matcher.match( 1 )) for: !false
- # Composed matchers shortcircuit
- ok {test-number} - first.matchCalled for: true
- # Composed matchers shortcircuit
- ok {test-number} - !second.matchCalled for: true
- # Composed matchers shortcircuit
- ok {test-number} - matcher.match( 1 ) for: true
- # Composed matchers shortcircuit
- ok {test-number} - first.matchCalled for: true
- # Composed matchers shortcircuit
- ok {test-number} - !second.matchCalled for: true
- # Contains string matcher
- not ok {test-number} - testStringForMatching(), ContainsSubstring( "not there", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" contains: "not there" (case insensitive)
- # Contains string matcher
- not ok {test-number} - testStringForMatching(), ContainsSubstring( "STRING" ) for: "this string contains 'abc' as a substring" contains: "STRING"
- # Copy and then generate a range
- ok {test-number} - elem % 2 == 1 for: 1 == 1
- # Copy and then generate a range
- ok {test-number} - elem % 2 == 1 for: 1 == 1
- # Copy and then generate a range
- ok {test-number} - elem % 2 == 1 for: 1 == 1
- # Copy and then generate a range
- ok {test-number} - elem % 2 == 1 for: 1 == 1
- # Copy and then generate a range
- ok {test-number} - elem % 2 == 1 for: 1 == 1
- # Copy and then generate a range
- ok {test-number} - elem % 2 == 1 for: 1 == 1
- # Copy and then generate a range
- ok {test-number} - elem % 2 == 1 for: 1 == 1
- # Copy and then generate a range
- ok {test-number} - elem % 2 == 1 for: 1 == 1
- # Copy and then generate a range
- ok {test-number} - elem % 2 == 1 for: 1 == 1
- # Copy and then generate a range
- ok {test-number} - elem % 2 == 1 for: 1 == 1
- # Copy and then generate a range
- ok {test-number} - elem % 2 == 1 for: 1 == 1
- # Copy and then generate a range
- ok {test-number} - elem % 2 == 1 for: 1 == 1
- # Copy and then generate a range
- ok {test-number} - call_count == 1 for: 1 == 1
- # Copy and then generate a range
- ok {test-number} - make_data().size() == test_count for: 6 == 6
- # Cout stream properly declares it writes to stdout
- ok {test-number} - Catch::makeStream( "-" )->isConsole() for: true
- # Custom exceptions can be translated when testing for nothrow
- not ok {test-number} - unexpected exception with message: 'custom exception - not std'; expression was: throwCustom()
- # Custom exceptions can be translated when testing for throwing as something else
- not ok {test-number} - unexpected exception with message: 'custom exception - not std'; expression was: throwCustom(), std::exception
- # Custom std-exceptions can be custom translated
- not ok {test-number} - unexpected exception with message: 'custom std exception'
- # Default scale is invisible to comparison
- ok {test-number} - 101.000001 != Approx(100).epsilon(0.01) for: 101.000001 != Approx( 100.0 )
- # Default scale is invisible to comparison
- ok {test-number} - std::pow(10, -5) != Approx(std::pow(10, -7)) for: 0.00001 != Approx( 0.0000001 )
- # Directly creating an EnumInfo
- ok {test-number} - enumInfo->lookup(0) == "Value1" for: Value1 == "Value1"
- # Directly creating an EnumInfo
- ok {test-number} - enumInfo->lookup(1) == "Value2" for: Value2 == "Value2"
- # Directly creating an EnumInfo
- ok {test-number} - enumInfo->lookup(3) == "{** unexpected enum value **}" for: {** unexpected enum value **} == "{** unexpected enum value **}"
- # Empty stream name opens cout stream
- ok {test-number} - Catch::makeStream( "" )->isConsole() for: true
- # Empty tag is not allowed
- ok {test-number} - Catch::TestCaseInfo( "", { "fake test name", "[]" }, dummySourceLineInfo )
- # EndsWith string matcher
- not ok {test-number} - testStringForMatching(), EndsWith( "Substring" ) for: "this string contains 'abc' as a substring" ends with: "Substring"
- # EndsWith string matcher
- not ok {test-number} - testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" ends with: "this" (case insensitive)
- # Enums can quickly have stringification enabled using REGISTER_ENUM
- ok {test-number} - stringify( EnumClass3::Value1 ) == "Value1" for: "Value1" == "Value1"
- # Enums can quickly have stringification enabled using REGISTER_ENUM
- ok {test-number} - stringify( EnumClass3::Value2 ) == "Value2" for: "Value2" == "Value2"
- # Enums can quickly have stringification enabled using REGISTER_ENUM
- ok {test-number} - stringify( EnumClass3::Value3 ) == "Value3" for: "Value3" == "Value3"
- # Enums can quickly have stringification enabled using REGISTER_ENUM
- ok {test-number} - stringify( EnumClass3::Value4 ) == "{** unexpected enum value **}" for: "{** unexpected enum value **}" == "{** unexpected enum value **}"
- # Enums can quickly have stringification enabled using REGISTER_ENUM
- ok {test-number} - stringify( ec3 ) == "Value2" for: "Value2" == "Value2"
- # Enums in namespaces can quickly have stringification enabled using REGISTER_ENUM
- ok {test-number} - stringify( Bikeshed::Colours::Red ) == "Red" for: "Red" == "Red"
- # Enums in namespaces can quickly have stringification enabled using REGISTER_ENUM
- ok {test-number} - stringify( Bikeshed::Colours::Blue ) == "Blue" for: "Blue" == "Blue"
- # Epsilon only applies to Approx's value
- ok {test-number} - 101.01 != Approx(100).epsilon(0.01) for: 101.01 != Approx( 100.0 )
- # Equality checks that should fail
- not ok {test-number} - data.int_seven == 6 for: 7 == 6
- # Equality checks that should fail
- not ok {test-number} - data.int_seven == 8 for: 7 == 8
- # Equality checks that should fail
- not ok {test-number} - data.int_seven == 0 for: 7 == 0
- # Equality checks that should fail
- not ok {test-number} - data.float_nine_point_one == Approx( 9.11f ) for: 9.1f == Approx( 9.1099996567 )
- # Equality checks that should fail
- not ok {test-number} - data.float_nine_point_one == Approx( 9.0f ) for: 9.1f == Approx( 9.0 )
- # Equality checks that should fail
- not ok {test-number} - data.float_nine_point_one == Approx( 1 ) for: 9.1f == Approx( 1.0 )
- # Equality checks that should fail
- not ok {test-number} - data.float_nine_point_one == Approx( 0 ) for: 9.1f == Approx( 0.0 )
- # Equality checks that should fail
- not ok {test-number} - data.double_pi == Approx( 3.1415 ) for: 3.1415926535 == Approx( 3.1415 )
- # Equality checks that should fail
- not ok {test-number} - data.str_hello == "goodbye" for: "hello" == "goodbye"
- # Equality checks that should fail
- not ok {test-number} - data.str_hello == "hell" for: "hello" == "hell"
- # Equality checks that should fail
- not ok {test-number} - data.str_hello == "hello1" for: "hello" == "hello1"
- # Equality checks that should fail
- not ok {test-number} - data.str_hello.size() == 6 for: 5 == 6
- # Equality checks that should fail
- not ok {test-number} - x == Approx( 1.301 ) for: 1.3 == Approx( 1.301 )
- # Equality checks that should succeed
- ok {test-number} - data.int_seven == 7 for: 7 == 7
- # Equality checks that should succeed
- ok {test-number} - data.float_nine_point_one == Approx( 9.1f ) for: 9.1f == Approx( 9.1000003815 )
- # Equality checks that should succeed
- ok {test-number} - data.double_pi == Approx( 3.1415926535 ) for: 3.1415926535 == Approx( 3.1415926535 )
- # Equality checks that should succeed
- ok {test-number} - data.str_hello == "hello" for: "hello" == "hello"
- # Equality checks that should succeed
- ok {test-number} - "hello" == data.str_hello for: "hello" == "hello"
- # Equality checks that should succeed
- ok {test-number} - data.str_hello.size() == 5 for: 5 == 5
- # Equality checks that should succeed
- ok {test-number} - x == Approx( 1.3 ) for: 1.3 == Approx( 1.3 )
- # Equals
- ok {test-number} - testStringForMatching(), Equals( "this string contains 'abc' as a substring" ) for: "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring"
- # Equals
- ok {test-number} - testStringForMatching(), Equals( "this string contains 'ABC' as a substring", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" (case insensitive)
- # Equals string matcher
- not ok {test-number} - testStringForMatching(), Equals( "this string contains 'ABC' as a substring" ) for: "this string contains 'abc' as a substring" equals: "this string contains 'ABC' as a substring"
- # Equals string matcher
- not ok {test-number} - testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" equals: "something else" (case insensitive)
- # Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified
- ok {test-number} - ::Catch::Detail::stringify(WhatException{}) == "This exception has overridden what() method" for: "This exception has overridden what() method" == "This exception has overridden what() method"
- # Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified
- ok {test-number} - ::Catch::Detail::stringify(OperatorException{}) == "OperatorException" for: "OperatorException" == "OperatorException"
- # Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified
- ok {test-number} - ::Catch::Detail::stringify(StringMakerException{}) == "StringMakerException" for: "StringMakerException" == "StringMakerException"
- # Exception matchers that fail
- not ok {test-number} - expected exception, got none; expression was: doesNotThrow(), SpecialException, ExceptionMatcher{ 1 }
- # Exception matchers that fail
- not ok {test-number} - expected exception, got none; expression was: doesNotThrow(), SpecialException, ExceptionMatcher{ 1 }
- # Exception matchers that fail
- not ok {test-number} - unexpected exception with message: 'Unknown exception'; expression was: throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 }
- # Exception matchers that fail
- not ok {test-number} - unexpected exception with message: 'Unknown exception'; expression was: throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 }
- # Exception matchers that fail
- not ok {test-number} - throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 } for: SpecialException::what special exception has value of 1
- # Exception matchers that fail
- not ok {test-number} - throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 } for: SpecialException::what special exception has value of 1
- # Exception matchers that succeed
- ok {test-number} - throwsSpecialException( 1 ), SpecialException, ExceptionMatcher{ 1 } for: SpecialException::what special exception has value of 1
- # Exception matchers that succeed
- ok {test-number} - throwsSpecialException( 2 ), SpecialException, ExceptionMatcher{ 2 } for: SpecialException::what special exception has value of 2
- # Exception messages can be tested for
- ok {test-number} - thisThrows(), "expected exception" for: "expected exception" equals: "expected exception"
- # Exception messages can be tested for
- ok {test-number} - thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) for: "expected exception" equals: "expected exception" (case insensitive)
- # Exception messages can be tested for
- ok {test-number} - thisThrows(), StartsWith( "expected" ) for: "expected exception" starts with: "expected"
- # Exception messages can be tested for
- ok {test-number} - thisThrows(), EndsWith( "exception" ) for: "expected exception" ends with: "exception"
- # Exception messages can be tested for
- ok {test-number} - thisThrows(), ContainsSubstring( "except" ) for: "expected exception" contains: "except"
- # Exception messages can be tested for
- ok {test-number} - thisThrows(), ContainsSubstring( "exCept", Catch::CaseSensitive::No ) for: "expected exception" contains: "except" (case insensitive)
- # Exceptions matchers
- ok {test-number} - throwsDerivedException(), DerivedException, Message( "DerivedException::what" ) for: DerivedException::what exception message matches "DerivedException::what"
- # Exceptions matchers
- ok {test-number} - throwsDerivedException(), DerivedException, !Message( "derivedexception::what" ) for: DerivedException::what not exception message matches "derivedexception::what"
- # Exceptions matchers
- ok {test-number} - throwsSpecialException( 2 ), SpecialException, !Message( "DerivedException::what" ) for: SpecialException::what not exception message matches "DerivedException::what"
- # Exceptions matchers
- ok {test-number} - throwsSpecialException( 2 ), SpecialException, Message( "SpecialException::what" ) for: SpecialException::what exception message matches "SpecialException::what"
- # Expected exceptions that don't throw or unexpected exceptions fail the test
- not ok {test-number} - unexpected exception with message: 'expected exception'; expression was: thisThrows(), std::string
- # Expected exceptions that don't throw or unexpected exceptions fail the test
- not ok {test-number} - expected exception, got none; expression was: thisDoesntThrow(), std::domain_error
- # Expected exceptions that don't throw or unexpected exceptions fail the test
- not ok {test-number} - unexpected exception with message: 'expected exception'; expression was: thisThrows()
- # FAIL aborts the test
- not ok {test-number} - explicitly with 1 message: 'This is a failure'
- # FAIL does not require an argument
- not ok {test-number} - explicitly
- # FAIL_CHECK does not abort the test
- not ok {test-number} - explicitly with 1 message: 'This is a failure'
- # FAIL_CHECK does not abort the test
- warning {test-number} - 'This message appears in the output'
- # Factorials are computed
- ok {test-number} - Factorial(0) == 1 for: 1 == 1
- # Factorials are computed
- ok {test-number} - Factorial(1) == 1 for: 1 == 1
- # Factorials are computed
- ok {test-number} - Factorial(2) == 2 for: 2 == 2
- # Factorials are computed
- ok {test-number} - Factorial(3) == 6 for: 6 == 6
- # Factorials are computed
- ok {test-number} - Factorial(10) == 3628800 for: 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
- # Floating point matchers: double
- ok {test-number} - 10., WithinRel( 11.1, 0.1 ) for: 10.0 and 11.1 are within 10% of each other
- # Floating point matchers: double
- ok {test-number} - 10., !WithinRel( 11.2, 0.1 ) for: 10.0 not and 11.2 are within 10% of each other
- # Floating point matchers: double
- ok {test-number} - 1., !WithinRel( 0., 0.99 ) for: 1.0 not and 0 are within 99% of each other
- # Floating point matchers: double
- ok {test-number} - -0., WithinRel( 0. ) for: -0.0 and 0 are within 2.22045e-12% of each other
- # Floating point matchers: double
- ok {test-number} - v1, WithinRel( v2 ) for: 0.0 and 2.22507e-308 are within 2.22045e-12% of each other
- # Floating point matchers: double
- ok {test-number} - 1., WithinAbs( 1., 0 ) for: 1.0 is within 0.0 of 1.0
- # Floating point matchers: double
- ok {test-number} - 0., WithinAbs( 1., 1 ) for: 0.0 is within 1.0 of 1.0
- # Floating point matchers: double
- ok {test-number} - 0., !WithinAbs( 1., 0.99 ) for: 0.0 not is within 0.99 of 1.0
- # Floating point matchers: double
- ok {test-number} - 0., !WithinAbs( 1., 0.99 ) for: 0.0 not is within 0.99 of 1.0
- # Floating point matchers: double
- ok {test-number} - 11., !WithinAbs( 10., 0.5 ) for: 11.0 not is within 0.5 of 10.0
- # Floating point matchers: double
- ok {test-number} - 10., !WithinAbs( 11., 0.5 ) for: 10.0 not is within 0.5 of 11.0
- # Floating point matchers: double
- ok {test-number} - -10., WithinAbs( -10., 0.5 ) for: -10.0 is within 0.5 of -10.0
- # Floating point matchers: double
- ok {test-number} - -10., WithinAbs( -9.6, 0.5 ) for: -10.0 is within 0.5 of -9.6
- # Floating point matchers: double
- ok {test-number} - 1., WithinULP( 1., 0 ) for: 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00])
- # Floating point matchers: double
- ok {test-number} - nextafter( 1., 2. ), WithinULP( 1., 1 ) for: 1.0 is within 1 ULPs of 1.0000000000000000e+00 ([9.9999999999999989e-01, 1.0000000000000002e+00])
- # Floating point matchers: double
- ok {test-number} - 0., WithinULP( nextafter( 0., 1. ), 1 ) for: 0.0 is within 1 ULPs of 4.9406564584124654e-324 ([0.0000000000000000e+00, 9.8813129168249309e-324])
- # Floating point matchers: double
- ok {test-number} - 1., WithinULP( nextafter( 1., 0. ), 1 ) for: 1.0 is within 1 ULPs of 9.9999999999999989e-01 ([9.9999999999999978e-01, 1.0000000000000000e+00])
- # Floating point matchers: double
- ok {test-number} - 1., !WithinULP( nextafter( 1., 2. ), 0 ) for: 1.0 not is within 0 ULPs of 1.0000000000000002e+00 ([1.0000000000000002e+00, 1.0000000000000002e+00])
- # Floating point matchers: double
- ok {test-number} - 1., WithinULP( 1., 0 ) for: 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00])
- # Floating point matchers: double
- ok {test-number} - -0., WithinULP( 0., 0 ) for: -0.0 is within 0 ULPs of 0.0000000000000000e+00 ([0.0000000000000000e+00, 0.0000000000000000e+00])
- # Floating point matchers: double
- ok {test-number} - 1., WithinAbs( 1., 0.5 ) || WithinULP( 2., 1 ) for: 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0000000000000000e+00 ([1.9999999999999998e+00, 2.0000000000000004e+00]) )
- # Floating point matchers: double
- ok {test-number} - 1., WithinAbs( 2., 0.5 ) || WithinULP( 1., 0 ) for: 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00]) )
- # Floating point matchers: double
- ok {test-number} - 0.0001, WithinAbs( 0., 0.001 ) || WithinRel( 0., 0.1 ) for: 0.0001 ( is within 0.001 of 0.0 or and 0 are within 10% of each other )
- # Floating point matchers: double
- ok {test-number} - WithinAbs( 1., 0. )
- # Floating point matchers: double
- ok {test-number} - WithinAbs( 1., -1. ), std::domain_error
- # Floating point matchers: double
- ok {test-number} - WithinULP( 1., 0 )
- # Floating point matchers: double
- ok {test-number} - WithinRel( 1., 0. )
- # Floating point matchers: double
- ok {test-number} - WithinRel( 1., -0.2 ), std::domain_error
- # Floating point matchers: double
- ok {test-number} - WithinRel( 1., 1. ), std::domain_error
- # Floating point matchers: float
- ok {test-number} - 10.f, WithinRel( 11.1f, 0.1f ) for: 10.0f and 11.1 are within 10% of each other
- # Floating point matchers: float
- ok {test-number} - 10.f, !WithinRel( 11.2f, 0.1f ) for: 10.0f not and 11.2 are within 10% of each other
- # Floating point matchers: float
- ok {test-number} - 1.f, !WithinRel( 0.f, 0.99f ) for: 1.0f not and 0 are within 99% of each other
- # Floating point matchers: float
- ok {test-number} - -0.f, WithinRel( 0.f ) for: -0.0f and 0 are within 0.00119209% of each other
- # Floating point matchers: float
- ok {test-number} - v1, WithinRel( v2 ) for: 0.0f and 1.17549e-38 are within 0.00119209% of each other
- # Floating point matchers: float
- ok {test-number} - 1.f, WithinAbs( 1.f, 0 ) for: 1.0f is within 0.0 of 1.0
- # Floating point matchers: float
- ok {test-number} - 0.f, WithinAbs( 1.f, 1 ) for: 0.0f is within 1.0 of 1.0
- # Floating point matchers: float
- ok {test-number} - 0.f, !WithinAbs( 1.f, 0.99f ) for: 0.0f not is within 0.9900000095 of 1.0
- # Floating point matchers: float
- ok {test-number} - 0.f, !WithinAbs( 1.f, 0.99f ) for: 0.0f not is within 0.9900000095 of 1.0
- # Floating point matchers: float
- ok {test-number} - 0.f, WithinAbs( -0.f, 0 ) for: 0.0f is within 0.0 of -0.0
- # Floating point matchers: float
- ok {test-number} - 11.f, !WithinAbs( 10.f, 0.5f ) for: 11.0f not is within 0.5 of 10.0
- # Floating point matchers: float
- ok {test-number} - 10.f, !WithinAbs( 11.f, 0.5f ) for: 10.0f not is within 0.5 of 11.0
- # Floating point matchers: float
- ok {test-number} - -10.f, WithinAbs( -10.f, 0.5f ) for: -10.0f is within 0.5 of -10.0
- # Floating point matchers: float
- ok {test-number} - -10.f, WithinAbs( -9.6f, 0.5f ) for: -10.0f is within 0.5 of -9.6000003815
- # Floating point matchers: float
- ok {test-number} - 1.f, WithinULP( 1.f, 0 ) for: 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
- # Floating point matchers: float
- ok {test-number} - -1.f, WithinULP( -1.f, 0 ) for: -1.0f is within 0 ULPs of -1.00000000e+00f ([-1.00000000e+00, -1.00000000e+00])
- # Floating point matchers: float
- ok {test-number} - nextafter( 1.f, 2.f ), WithinULP( 1.f, 1 ) for: 1.0f is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00])
- # Floating point matchers: float
- ok {test-number} - 0.f, WithinULP( nextafter( 0.f, 1.f ), 1 ) for: 0.0f is within 1 ULPs of 1.40129846e-45f ([0.00000000e+00, 2.80259693e-45])
- # Floating point matchers: float
- ok {test-number} - 1.f, WithinULP( nextafter( 1.f, 0.f ), 1 ) for: 1.0f is within 1 ULPs of 9.99999940e-01f ([9.99999881e-01, 1.00000000e+00])
- # Floating point matchers: float
- ok {test-number} - 1.f, !WithinULP( nextafter( 1.f, 2.f ), 0 ) for: 1.0f not is within 0 ULPs of 1.00000012e+00f ([1.00000012e+00, 1.00000012e+00])
- # Floating point matchers: float
- ok {test-number} - 1.f, WithinULP( 1.f, 0 ) for: 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
- # Floating point matchers: float
- ok {test-number} - -0.f, WithinULP( 0.f, 0 ) for: -0.0f is within 0 ULPs of 0.00000000e+00f ([0.00000000e+00, 0.00000000e+00])
- # Floating point matchers: float
- ok {test-number} - 1.f, WithinAbs( 1.f, 0.5 ) || WithinULP( 1.f, 1 ) for: 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00]) )
- # Floating point matchers: float
- ok {test-number} - 1.f, WithinAbs( 2.f, 0.5 ) || WithinULP( 1.f, 0 ) for: 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00]) )
- # Floating point matchers: float
- ok {test-number} - 0.0001f, WithinAbs( 0.f, 0.001f ) || WithinRel( 0.f, 0.1f ) for: 0.0001f ( is within 0.001 of 0.0 or and 0 are within 10% of each other )
- # Floating point matchers: float
- ok {test-number} - WithinAbs( 1.f, 0.f )
- # Floating point matchers: float
- ok {test-number} - WithinAbs( 1.f, -1.f ), std::domain_error
- # Floating point matchers: float
- ok {test-number} - WithinULP( 1.f, 0 )
- # Floating point matchers: float
- ok {test-number} - WithinULP( 1.f, static_cast<uint64_t>( -1 ) ), std::domain_error
- # Floating point matchers: float
- ok {test-number} - WithinRel( 1.f, 0.f )
- # Floating point matchers: float
- ok {test-number} - WithinRel( 1.f, -0.2f ), std::domain_error
- # Floating point matchers: float
- ok {test-number} - WithinRel( 1.f, 1.f ), std::domain_error
- # Generators -- adapters
- ok {test-number} - i % 2 == 0 for: 0 == 0
- # Generators -- adapters
- ok {test-number} - i % 2 == 0 for: 0 == 0
- # Generators -- adapters
- ok {test-number} - i % 2 == 0 for: 0 == 0
- # Generators -- adapters
- ok {test-number} - filter([] (int) {return false; }, value(1)), Catch::GeneratorException
- # Generators -- adapters
- ok {test-number} - i < 4 for: 1 < 4
- # Generators -- adapters
- ok {test-number} - i < 4 for: 2 < 4
- # Generators -- adapters
- ok {test-number} - i < 4 for: 3 < 4
- # Generators -- adapters
- ok {test-number} - i % 2 == 0 for: 0 == 0
- # Generators -- adapters
- ok {test-number} - i % 2 == 0 for: 0 == 0
- # Generators -- adapters
- ok {test-number} - i % 2 == 0 for: 0 == 0
- # Generators -- adapters
- ok {test-number} - i.size() == 1 for: 1 == 1
- # Generators -- adapters
- ok {test-number} - i.size() == 1 for: 1 == 1
- # Generators -- adapters
- ok {test-number} - i.size() == 1 for: 1 == 1
- # Generators -- adapters
- ok {test-number} - i.size() == 1 for: 1 == 1
- # Generators -- adapters
- ok {test-number} - i.size() == 1 for: 1 == 1
- # Generators -- adapters
- ok {test-number} - i.size() == 1 for: 1 == 1
- # Generators -- adapters
- ok {test-number} - j > 0 for: 1 > 0
- # Generators -- adapters
- ok {test-number} - j > 0 for: 2 > 0
- # Generators -- adapters
- ok {test-number} - j > 0 for: 3 > 0
- # Generators -- adapters
- ok {test-number} - j > 0 for: 1 > 0
- # Generators -- adapters
- ok {test-number} - j > 0 for: 2 > 0
- # Generators -- adapters
- ok {test-number} - j > 0 for: 3 > 0
- # Generators -- adapters
- ok {test-number} - chunk2.size() == 2 for: 2 == 2
- # Generators -- adapters
- ok {test-number} - chunk2.front() == chunk2.back() for: 1 == 1
- # Generators -- adapters
- ok {test-number} - chunk2.size() == 2 for: 2 == 2
- # Generators -- adapters
- ok {test-number} - chunk2.front() == chunk2.back() for: 2 == 2
- # Generators -- adapters
- ok {test-number} - chunk2.size() == 2 for: 2 == 2
- # Generators -- adapters
- ok {test-number} - chunk2.front() == chunk2.back() for: 3 == 3
- # Generators -- adapters
- ok {test-number} - chunk2.size() == 2 for: 2 == 2
- # Generators -- adapters
- ok {test-number} - chunk2.front() == chunk2.back() for: 1 == 1
- # Generators -- adapters
- ok {test-number} - chunk2.front() < 3 for: 1 < 3
- # Generators -- adapters
- ok {test-number} - chunk2.size() == 2 for: 2 == 2
- # Generators -- adapters
- ok {test-number} - chunk2.front() == chunk2.back() for: 2 == 2
- # Generators -- adapters
- ok {test-number} - chunk2.front() < 3 for: 2 < 3
- # Generators -- adapters
- ok {test-number} - chunk2.size() == 0 for: 0 == 0
- # Generators -- adapters
- ok {test-number} - chunk2.size() == 0 for: 0 == 0
- # Generators -- adapters
- ok {test-number} - chunk2.size() == 0 for: 0 == 0
- # Generators -- adapters
- ok {test-number} - chunk(2, value(1)), Catch::GeneratorException
- # Generators -- simple
- ok {test-number} - j < i for: -3 < 1
- # Generators -- simple
- ok {test-number} - j < i for: -2 < 1
- # Generators -- simple
- ok {test-number} - j < i for: -1 < 1
- # Generators -- simple
- ok {test-number} - 4u * i > str.size() for: 4 > 1
- # Generators -- simple
- ok {test-number} - 4u * i > str.size() for: 4 > 2
- # Generators -- simple
- ok {test-number} - 4u * i > str.size() for: 4 > 3
- # Generators -- simple
- ok {test-number} - j < i for: -3 < 2
- # Generators -- simple
- ok {test-number} - j < i for: -2 < 2
- # Generators -- simple
- ok {test-number} - j < i for: -1 < 2
- # Generators -- simple
- ok {test-number} - 4u * i > str.size() for: 8 > 1
- # Generators -- simple
- ok {test-number} - 4u * i > str.size() for: 8 > 2
- # Generators -- simple
- ok {test-number} - 4u * i > str.size() for: 8 > 3
- # Generators -- simple
- ok {test-number} - j < i for: -3 < 3
- # Generators -- simple
- ok {test-number} - j < i for: -2 < 3
- # Generators -- simple
- ok {test-number} - j < i for: -1 < 3
- # Generators -- simple
- ok {test-number} - 4u * i > str.size() for: 12 > 1
- # Generators -- simple
- ok {test-number} - 4u * i > str.size() for: 12 > 2
- # Generators -- simple
- ok {test-number} - 4u * i > str.size() for: 12 > 3
- # Generators internals
- ok {test-number} - gen.get() == 123 for: 123 == 123
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == 1 for: 1 == 1
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 3 for: 3 == 3
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 5 for: 5 == 5
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == 1 for: 1 == 1
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 5 for: 5 == 5
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 2 for: 2 == 2
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 4 for: 4 == 4
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 0 for: 0 == 0
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get().size() == 2 for: 2 == 2
- # Generators internals
- ok {test-number} - gen.get() == "aa" for: "aa" == "aa"
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == "bb" for: "bb" == "bb"
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == "cc" for: "cc" == "cc"
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == 1 for: 1 == 1
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 3 for: 3 == 3
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == 1 for: 1 == 1
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 3 for: 3 == 3
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - filter([](int) { return false; }, value(1)), Catch::GeneratorException
- # Generators internals
- ok {test-number} - filter([](int) { return false; }, values({ 1, 2, 3 })), Catch::GeneratorException
- # Generators internals
- ok {test-number} - gen.get() == 1 for: 1 == 1
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 2 for: 2 == 2
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == 1 for: 1 == 1
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == 2.0 for: 2.0 == 2.0
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 4.0 for: 4.0 == 4.0
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 6.0 for: 6.0 == 6.0
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == 2.0 for: 2.0 == 2.0
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 4.0 for: 4.0 == 4.0
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 6.0 for: 6.0 == 6.0
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == 3 for: 3 == 3
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == 1 for: 1 == 1
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 2 for: 2 == 2
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 3 for: 3 == 3
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 1 for: 1 == 1
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 2 for: 2 == 2
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 3 for: 3 == 3
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == -2 for: -2 == -2
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == -1 for: -1 == -1
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 0 for: 0 == 0
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 1 for: 1 == 1
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == 2 for: 2 == 2
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 1 for: 1 == 1
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 0 for: 0 == 0
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == -1 for: -1 == -1
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == -7 for: -7 == -7
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == -4 for: -4 == -4
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == -1 for: -1 == -1
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 2 for: 2 == 2
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == -7 for: -7 == -7
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == -4 for: -4 == -4
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == -1 for: -1 == -1
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 2 for: 2 == 2
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == -7 for: -7 == -7
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == -4 for: -4 == -4
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == -1 for: -1 == -1
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 2 for: 2 == 2
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 5 for: 5 == 5
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -1.0 == Approx( -1.0 ) with 1 message: 'Current expected value is -1'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -1'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -0.9 == Approx( -0.9 ) with 1 message: 'Current expected value is -0.9'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.9'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -0.8 == Approx( -0.8 ) with 1 message: 'Current expected value is -0.8'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.8'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -0.7 == Approx( -0.7 ) with 1 message: 'Current expected value is -0.7'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.7'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -0.6 == Approx( -0.6 ) with 1 message: 'Current expected value is -0.6'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.6'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -0.5 == Approx( -0.5 ) with 1 message: 'Current expected value is -0.5'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.5'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -0.4 == Approx( -0.4 ) with 1 message: 'Current expected value is -0.4'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.4'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -0.3 == Approx( -0.3 ) with 1 message: 'Current expected value is -0.3'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.3'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -0.2 == Approx( -0.2 ) with 1 message: 'Current expected value is -0.2'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.2'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -0.1 == Approx( -0.1 ) with 1 message: 'Current expected value is -0.1'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.1'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -0.0 == Approx( -0.0 ) with 1 message: 'Current expected value is -1.38778e-16'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -1.38778e-16'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: 0.1 == Approx( 0.1 ) with 1 message: 'Current expected value is 0.1'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.1'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: 0.2 == Approx( 0.2 ) with 1 message: 'Current expected value is 0.2'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.2'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: 0.3 == Approx( 0.3 ) with 1 message: 'Current expected value is 0.3'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.3'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: 0.4 == Approx( 0.4 ) with 1 message: 'Current expected value is 0.4'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.4'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: 0.5 == Approx( 0.5 ) with 1 message: 'Current expected value is 0.5'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.5'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: 0.6 == Approx( 0.6 ) with 1 message: 'Current expected value is 0.6'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.6'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: 0.7 == Approx( 0.7 ) with 1 message: 'Current expected value is 0.7'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.7'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: 0.8 == Approx( 0.8 ) with 1 message: 'Current expected value is 0.8'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.8'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: 0.9 == Approx( 0.9 ) with 1 message: 'Current expected value is 0.9'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.9'
- # Generators internals
- ok {test-number} - gen.get() == Approx( rangeEnd ) for: 1.0 == Approx( 1.0 )
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -1.0 == Approx( -1.0 ) with 1 message: 'Current expected value is -1'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -1'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -0.7 == Approx( -0.7 ) with 1 message: 'Current expected value is -0.7'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.7'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -0.4 == Approx( -0.4 ) with 1 message: 'Current expected value is -0.4'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.4'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -0.1 == Approx( -0.1 ) with 1 message: 'Current expected value is -0.1'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.1'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: 0.2 == Approx( 0.2 ) with 1 message: 'Current expected value is 0.2'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.2'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: 0.5 == Approx( 0.5 ) with 1 message: 'Current expected value is 0.5'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.5'
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -1.0 == Approx( -1.0 ) with 1 message: 'Current expected value is -1'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -1'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -0.7 == Approx( -0.7 ) with 1 message: 'Current expected value is -0.7'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.7'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -0.4 == Approx( -0.4 ) with 1 message: 'Current expected value is -0.4'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.4'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: -0.1 == Approx( -0.1 ) with 1 message: 'Current expected value is -0.1'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.1'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: 0.2 == Approx( 0.2 ) with 1 message: 'Current expected value is 0.2'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.2'
- # Generators internals
- ok {test-number} - gen.get() == Approx(expected) for: 0.5 == Approx( 0.5 ) with 1 message: 'Current expected value is 0.5'
- # Generators internals
- ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.5'
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == 5 for: 5 == 5
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 2 for: 2 == 2
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == -1 for: -1 == -1
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == -4 for: -4 == -4
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == 5 for: 5 == 5
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 2 for: 2 == 2
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == -1 for: -1 == -1
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == -4 for: -4 == -4
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Generators internals
- ok {test-number} - gen.get() == 5 for: 5 == 5
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == 2 for: 2 == 2
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == -1 for: -1 == -1
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == -4 for: -4 == -4
- # Generators internals
- ok {test-number} - gen.next() for: true
- # Generators internals
- ok {test-number} - gen.get() == -7 for: -7 == -7
- # Generators internals
- ok {test-number} - !(gen.next()) for: !false
- # Greater-than inequalities with different epsilons
- ok {test-number} - d >= Approx( 1.22 ) for: 1.23 >= Approx( 1.22 )
- # Greater-than inequalities with different epsilons
- ok {test-number} - d >= Approx( 1.23 ) for: 1.23 >= Approx( 1.23 )
- # Greater-than inequalities with different epsilons
- ok {test-number} - !(d >= Approx( 1.24 )) for: !(1.23 >= Approx( 1.24 ))
- # Greater-than inequalities with different epsilons
- ok {test-number} - d >= Approx( 1.24 ).epsilon(0.1) for: 1.23 >= Approx( 1.24 )
- # Hashers with different seed produce different hash with same test case
- ok {test-number} - h1( dummy ) != h2( dummy ) for: 3422778688 (0x<hex digits>) != 130711275 (0x<hex digits>)
- # Hashers with same seed produce same hash
- ok {test-number} - h1( dummy ) == h2( dummy ) for: 3422778688 (0x<hex digits>) == 3422778688 (0x<hex digits>)
- # Hashing different test cases produces different result
- ok {test-number} - h( dummy1 ) != h( dummy2 ) for: 2903002874 (0x<hex digits>) != 2668622104 (0x<hex digits>)
- # Hashing different test cases produces different result
- ok {test-number} - h( dummy1 ) != h( dummy2 ) for: 2673152918 (0x<hex digits>) != 3916075712 (0x<hex digits>)
- # Hashing different test cases produces different result
- ok {test-number} - h( dummy1 ) != h( dummy2 ) for: 2074929312 (0x<hex digits>) != 3429949824 (0x<hex digits>)
- # Hashing test case produces same hash across multiple calls
- ok {test-number} - h( dummy ) == h( dummy ) for: 3422778688 (0x<hex digits>) == 3422778688 (0x<hex digits>)
- # INFO and WARN do not abort tests
- warning {test-number} - 'this is a message' with 1 message: 'this is a warning'
- # INFO gets logged on failure
- not ok {test-number} - a == 1 for: 2 == 1 with 2 messages: 'this message should be logged' and 'so should this'
- # INFO gets logged on failure, even if captured before successful assertions
- ok {test-number} - a == 2 for: 2 == 2 with 1 message: 'this message may be logged later'
- # INFO gets logged on failure, even if captured before successful assertions
- not ok {test-number} - a == 1 for: 2 == 1 with 2 messages: 'this message may be logged later' and 'this message should be logged'
- # INFO gets logged on failure, even if captured before successful assertions
- not ok {test-number} - a == 0 for: 2 == 0 with 3 messages: 'this message may be logged later' and 'this message should be logged' and 'and this, but later'
- # INFO gets logged on failure, even if captured before successful assertions
- ok {test-number} - a == 2 for: 2 == 2 with 4 messages: 'this message may be logged later' and 'this message should be logged' and 'and this, but later' and 'but not this'
- # INFO is reset for each loop
- ok {test-number} - i < 10 for: 0 < 10 with 2 messages: 'current counter 0' and 'i := 0'
- # INFO is reset for each loop
- ok {test-number} - i < 10 for: 1 < 10 with 2 messages: 'current counter 1' and 'i := 1'
- # INFO is reset for each loop
- ok {test-number} - i < 10 for: 2 < 10 with 2 messages: 'current counter 2' and 'i := 2'
- # INFO is reset for each loop
- ok {test-number} - i < 10 for: 3 < 10 with 2 messages: 'current counter 3' and 'i := 3'
- # INFO is reset for each loop
- ok {test-number} - i < 10 for: 4 < 10 with 2 messages: 'current counter 4' and 'i := 4'
- # INFO is reset for each loop
- ok {test-number} - i < 10 for: 5 < 10 with 2 messages: 'current counter 5' and 'i := 5'
- # INFO is reset for each loop
- ok {test-number} - i < 10 for: 6 < 10 with 2 messages: 'current counter 6' and 'i := 6'
- # INFO is reset for each loop
- ok {test-number} - i < 10 for: 7 < 10 with 2 messages: 'current counter 7' and 'i := 7'
- # INFO is reset for each loop
- ok {test-number} - i < 10 for: 8 < 10 with 2 messages: 'current counter 8' and 'i := 8'
- # INFO is reset for each loop
- ok {test-number} - i < 10 for: 9 < 10 with 2 messages: 'current counter 9' and 'i := 9'
- # INFO is reset for each loop
- not ok {test-number} - i < 10 for: 10 < 10 with 2 messages: 'current counter 10' and 'i := 10'
- # Inequality checks that should fail
- not ok {test-number} - data.int_seven != 7 for: 7 != 7
- # Inequality checks that should fail
- not ok {test-number} - data.float_nine_point_one != Approx( 9.1f ) for: 9.1f != Approx( 9.1000003815 )
- # Inequality checks that should fail
- not ok {test-number} - data.double_pi != Approx( 3.1415926535 ) for: 3.1415926535 != Approx( 3.1415926535 )
- # Inequality checks that should fail
- not ok {test-number} - data.str_hello != "hello" for: "hello" != "hello"
- # Inequality checks that should fail
- not ok {test-number} - data.str_hello.size() != 5 for: 5 != 5
- # Inequality checks that should succeed
- ok {test-number} - data.int_seven != 6 for: 7 != 6
- # Inequality checks that should succeed
- ok {test-number} - data.int_seven != 8 for: 7 != 8
- # Inequality checks that should succeed
- ok {test-number} - data.float_nine_point_one != Approx( 9.11f ) for: 9.1f != Approx( 9.1099996567 )
- # Inequality checks that should succeed
- ok {test-number} - data.float_nine_point_one != Approx( 9.0f ) for: 9.1f != Approx( 9.0 )
- # Inequality checks that should succeed
- ok {test-number} - data.float_nine_point_one != Approx( 1 ) for: 9.1f != Approx( 1.0 )
- # Inequality checks that should succeed
- ok {test-number} - data.float_nine_point_one != Approx( 0 ) for: 9.1f != Approx( 0.0 )
- # Inequality checks that should succeed
- ok {test-number} - data.double_pi != Approx( 3.1415 ) for: 3.1415926535 != Approx( 3.1415 )
- # Inequality checks that should succeed
- ok {test-number} - data.str_hello != "goodbye" for: "hello" != "goodbye"
- # Inequality checks that should succeed
- ok {test-number} - data.str_hello != "hell" for: "hello" != "hell"
- # Inequality checks that should succeed
- ok {test-number} - data.str_hello != "hello1" for: "hello" != "hello1"
- # Inequality checks that should succeed
- ok {test-number} - data.str_hello.size() != 6 for: 5 != 6
- # Lambdas in assertions
- ok {test-number} - []() { return true; }() for: true
- # Less-than inequalities with different epsilons
- ok {test-number} - d <= Approx( 1.24 ) for: 1.23 <= Approx( 1.24 )
- # Less-than inequalities with different epsilons
- ok {test-number} - d <= Approx( 1.23 ) for: 1.23 <= Approx( 1.23 )
- # Less-than inequalities with different epsilons
- ok {test-number} - !(d <= Approx( 1.22 )) for: !(1.23 <= Approx( 1.22 ))
- # Less-than inequalities with different epsilons
- ok {test-number} - d <= Approx( 1.22 ).epsilon(0.1) for: 1.23 <= Approx( 1.22 )
- # ManuallyRegistered
- ok {test-number} - with 1 message: 'was called'
- # Matchers can be (AllOf) composed with the && operator
- ok {test-number} - testStringForMatching(), ContainsSubstring( "string" ) && ContainsSubstring( "abc" ) && ContainsSubstring( "substring" ) && ContainsSubstring( "contains" ) for: "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" and contains: "substring" and contains: "contains" )
- # Matchers can be (AnyOf) composed with the || operator
- ok {test-number} - testStringForMatching(), ContainsSubstring( "string" ) || ContainsSubstring( "different" ) || ContainsSubstring( "random" ) for: "this string contains 'abc' as a substring" ( contains: "string" or contains: "different" or contains: "random" )
- # Matchers can be (AnyOf) composed with the || operator
- ok {test-number} - testStringForMatching2(), ContainsSubstring( "string" ) || ContainsSubstring( "different" ) || ContainsSubstring( "random" ) for: "some completely different text that contains one common word" ( contains: "string" or contains: "different" or contains: "random" )
- # Matchers can be composed with both && and ||
- ok {test-number} - testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) && ContainsSubstring( "substring" ) for: "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "substring" )
- # Matchers can be composed with both && and || - failing
- not ok {test-number} - testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) && ContainsSubstring( "random" ) for: "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "random" )
- # Matchers can be negated (Not) with the ! operator
- ok {test-number} - testStringForMatching(), !ContainsSubstring( "different" ) for: "this string contains 'abc' as a substring" not contains: "different"
- # Matchers can be negated (Not) with the ! operator - failing
- not ok {test-number} - testStringForMatching(), !ContainsSubstring( "substring" ) for: "this string contains 'abc' as a substring" not contains: "substring"
- # Mayfail test case with nested sections
- not ok {test-number} - explicitly
- # Mayfail test case with nested sections
- not ok {test-number} - explicitly
- # Mayfail test case with nested sections
- not ok {test-number} - explicitly
- # Mayfail test case with nested sections
- not ok {test-number} - explicitly
- # Mismatching exception messages failing the test
- ok {test-number} - thisThrows(), "expected exception" for: "expected exception" equals: "expected exception"
- # Mismatching exception messages failing the test
- not ok {test-number} - thisThrows(), "should fail" for: "expected exception" equals: "should fail"
- # Multireporter calls reporters and listeners in correct order
- ok {test-number} - records == expected for: { "Hello", "world", "Goodbye", "world" } == { "Hello", "world", "Goodbye", "world" }
- # Multireporter updates ReporterPreferences properly
- ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == false for: false == false
- # Multireporter updates ReporterPreferences properly
- ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == false for: false == false
- # Multireporter updates ReporterPreferences properly
- ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
- # Multireporter updates ReporterPreferences properly
- ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == false for: false == false
- # Multireporter updates ReporterPreferences properly
- ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
- # Multireporter updates ReporterPreferences properly
- ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == true for: true == true
- # Multireporter updates ReporterPreferences properly
- ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
- # Multireporter updates ReporterPreferences properly
- ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == true for: true == true
- # Multireporter updates ReporterPreferences properly
- ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == false for: false == false
- # Multireporter updates ReporterPreferences properly
- ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == false for: false == false
- # Multireporter updates ReporterPreferences properly
- ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
- # Multireporter updates ReporterPreferences properly
- ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == false for: false == false
- # Multireporter updates ReporterPreferences properly
- ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
- # Multireporter updates ReporterPreferences properly
- ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == true for: true == true
- # Multireporter updates ReporterPreferences properly
- ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
- # Multireporter updates ReporterPreferences properly
- ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == true for: true == true
- # Nested generators and captured variables
- ok {test-number} - values > -6 for: 3 > -6
- # Nested generators and captured variables
- ok {test-number} - values > -6 for: 4 > -6
- # Nested generators and captured variables
- ok {test-number} - values > -6 for: 5 > -6
- # Nested generators and captured variables
- ok {test-number} - values > -6 for: 6 > -6
- # Nested generators and captured variables
- ok {test-number} - values > -6 for: -5 > -6
- # Nested generators and captured variables
- ok {test-number} - values > -6 for: -4 > -6
- # Nested generators and captured variables
- ok {test-number} - values > -6 for: 90 > -6
- # Nested generators and captured variables
- ok {test-number} - values > -6 for: 91 > -6
- # Nested generators and captured variables
- ok {test-number} - values > -6 for: 92 > -6
- # Nested generators and captured variables
- ok {test-number} - values > -6 for: 93 > -6
- # Nested generators and captured variables
- ok {test-number} - values > -6 for: 94 > -6
- # Nested generators and captured variables
- ok {test-number} - values > -6 for: 95 > -6
- # Nested generators and captured variables
- ok {test-number} - values > -6 for: 96 > -6
- # Nested generators and captured variables
- ok {test-number} - values > -6 for: 97 > -6
- # Nested generators and captured variables
- ok {test-number} - values > -6 for: 98 > -6
- # Nested generators and captured variables
- ok {test-number} - values > -6 for: 99 > -6
- # Nice descriptive name
- warning {test-number} - 'This one ran'
- # Non-std exceptions can be translated
- not ok {test-number} - unexpected exception with message: 'custom exception'
- # Objects that evaluated in boolean contexts can be checked
- ok {test-number} - True for: {?}
- # Objects that evaluated in boolean contexts can be checked
- ok {test-number} - !False for: true
- # Objects that evaluated in boolean contexts can be checked
- ok {test-number} - !(False) for: !{?}
- # Optionally static assertions
- ok {test-number} - with 1 message: 'std::is_void<void>::value'
- # Optionally static assertions
- ok {test-number} - with 1 message: '!(std::is_void<int>::value)'
- # Optionally static assertions
- ok {test-number} - with 1 message: 'std::is_void<void>::value'
- # Optionally static assertions
- ok {test-number} - with 1 message: '!(std::is_void<int>::value)'
- # Ordering comparison checks that should fail
- not ok {test-number} - data.int_seven > 7 for: 7 > 7
- # Ordering comparison checks that should fail
- not ok {test-number} - data.int_seven < 7 for: 7 < 7
- # Ordering comparison checks that should fail
- not ok {test-number} - data.int_seven > 8 for: 7 > 8
- # Ordering comparison checks that should fail
- not ok {test-number} - data.int_seven < 6 for: 7 < 6
- # Ordering comparison checks that should fail
- not ok {test-number} - data.int_seven < 0 for: 7 < 0
- # Ordering comparison checks that should fail
- not ok {test-number} - data.int_seven < -1 for: 7 < -1
- # Ordering comparison checks that should fail
- not ok {test-number} - data.int_seven >= 8 for: 7 >= 8
- # Ordering comparison checks that should fail
- not ok {test-number} - data.int_seven <= 6 for: 7 <= 6
- # Ordering comparison checks that should fail
- not ok {test-number} - data.float_nine_point_one < 9 for: 9.1f < 9
- # Ordering comparison checks that should fail
- not ok {test-number} - data.float_nine_point_one > 10 for: 9.1f > 10
- # Ordering comparison checks that should fail
- not ok {test-number} - data.float_nine_point_one > 9.2 for: 9.1f > 9.2
- # Ordering comparison checks that should fail
- not ok {test-number} - data.str_hello > "hello" for: "hello" > "hello"
- # Ordering comparison checks that should fail
- not ok {test-number} - data.str_hello < "hello" for: "hello" < "hello"
- # Ordering comparison checks that should fail
- not ok {test-number} - data.str_hello > "hellp" for: "hello" > "hellp"
- # Ordering comparison checks that should fail
- not ok {test-number} - data.str_hello > "z" for: "hello" > "z"
- # Ordering comparison checks that should fail
- not ok {test-number} - data.str_hello < "hellm" for: "hello" < "hellm"
- # Ordering comparison checks that should fail
- not ok {test-number} - data.str_hello < "a" for: "hello" < "a"
- # Ordering comparison checks that should fail
- not ok {test-number} - data.str_hello >= "z" for: "hello" >= "z"
- # Ordering comparison checks that should fail
- not ok {test-number} - data.str_hello <= "a" for: "hello" <= "a"
- # Ordering comparison checks that should succeed
- ok {test-number} - data.int_seven < 8 for: 7 < 8
- # Ordering comparison checks that should succeed
- ok {test-number} - data.int_seven > 6 for: 7 > 6
- # Ordering comparison checks that should succeed
- ok {test-number} - data.int_seven > 0 for: 7 > 0
- # Ordering comparison checks that should succeed
- ok {test-number} - data.int_seven > -1 for: 7 > -1
- # Ordering comparison checks that should succeed
- ok {test-number} - data.int_seven >= 7 for: 7 >= 7
- # Ordering comparison checks that should succeed
- ok {test-number} - data.int_seven >= 6 for: 7 >= 6
- # Ordering comparison checks that should succeed
- ok {test-number} - data.int_seven <= 7 for: 7 <= 7
- # Ordering comparison checks that should succeed
- ok {test-number} - data.int_seven <= 8 for: 7 <= 8
- # Ordering comparison checks that should succeed
- ok {test-number} - data.float_nine_point_one > 9 for: 9.1f > 9
- # Ordering comparison checks that should succeed
- ok {test-number} - data.float_nine_point_one < 10 for: 9.1f < 10
- # Ordering comparison checks that should succeed
- ok {test-number} - data.float_nine_point_one < 9.2 for: 9.1f < 9.2
- # Ordering comparison checks that should succeed
- ok {test-number} - data.str_hello <= "hello" for: "hello" <= "hello"
- # Ordering comparison checks that should succeed
- ok {test-number} - data.str_hello >= "hello" for: "hello" >= "hello"
- # Ordering comparison checks that should succeed
- ok {test-number} - data.str_hello < "hellp" for: "hello" < "hellp"
- # Ordering comparison checks that should succeed
- ok {test-number} - data.str_hello < "zebra" for: "hello" < "zebra"
- # Ordering comparison checks that should succeed
- ok {test-number} - data.str_hello > "hellm" for: "hello" > "hellm"
- # Ordering comparison checks that should succeed
- ok {test-number} - data.str_hello > "a" for: "hello" > "a"
- # Our PCG implementation provides expected results for known seeds
- ok {test-number} - rng() == 0x<hex digits> for: 4242248763 (0x<hex digits>) == 4242248763 (0x<hex digits>)
- # Our PCG implementation provides expected results for known seeds
- ok {test-number} - rng() == 0x<hex digits> for: 1867888929 (0x<hex digits>) == 1867888929 (0x<hex digits>)
- # Our PCG implementation provides expected results for known seeds
- ok {test-number} - rng() == 0x<hex digits> for: 1276619030 (0x<hex digits>) == 1276619030 (0x<hex digits>)
- # Our PCG implementation provides expected results for known seeds
- ok {test-number} - rng() == 0x<hex digits> for: 1911218783 (0x<hex digits>) == 1911218783 (0x<hex digits>)
- # Our PCG implementation provides expected results for known seeds
- ok {test-number} - rng() == 0x<hex digits> for: 1827115164 (0x<hex digits>) == 1827115164 (0x<hex digits>)
- # Our PCG implementation provides expected results for known seeds
- ok {test-number} - rng() == 0x<hex digits> for: 1472234645 (0x<hex digits>) == 1472234645 (0x<hex digits>)
- # Our PCG implementation provides expected results for known seeds
- ok {test-number} - rng() == 0x<hex digits> for: 868832940 (0x<hex digits>) == 868832940 (0x<hex digits>)
- # Our PCG implementation provides expected results for known seeds
- ok {test-number} - rng() == 0x<hex digits> for: 570883446 (0x<hex digits>) == 570883446 (0x<hex digits>)
- # Our PCG implementation provides expected results for known seeds
- ok {test-number} - rng() == 0x<hex digits> for: 889299803 (0x<hex digits>) == 889299803 (0x<hex digits>)
- # Our PCG implementation provides expected results for known seeds
- ok {test-number} - rng() == 0x<hex digits> for: 4261393167 (0x<hex digits>) == 4261393167 (0x<hex digits>)
- # Our PCG implementation provides expected results for known seeds
- ok {test-number} - rng() == 0x<hex digits> for: 1472234645 (0x<hex digits>) == 1472234645 (0x<hex digits>)
- # Our PCG implementation provides expected results for known seeds
- ok {test-number} - rng() == 0x<hex digits> for: 868832940 (0x<hex digits>) == 868832940 (0x<hex digits>)
- # Our PCG implementation provides expected results for known seeds
- ok {test-number} - rng() == 0x<hex digits> for: 570883446 (0x<hex digits>) == 570883446 (0x<hex digits>)
- # Our PCG implementation provides expected results for known seeds
- ok {test-number} - rng() == 0x<hex digits> for: 889299803 (0x<hex digits>) == 889299803 (0x<hex digits>)
- # Our PCG implementation provides expected results for known seeds
- ok {test-number} - rng() == 0x<hex digits> for: 4261393167 (0x<hex digits>) == 4261393167 (0x<hex digits>)
- # Output from all sections is reported
- not ok {test-number} - explicitly with 1 message: 'Message from section one'
- # Output from all sections is reported
- not ok {test-number} - explicitly with 1 message: 'Message from section two'
- # Overloaded comma or address-of operators are not used
- ok {test-number} - ( EvilMatcher(), EvilMatcher() ), EvilCommaOperatorUsed
- # Overloaded comma or address-of operators are not used
- ok {test-number} - &EvilMatcher(), EvilAddressOfOperatorUsed
- # Overloaded comma or address-of operators are not used
- ok {test-number} - EvilMatcher() || ( EvilMatcher() && !EvilMatcher() )
- # Overloaded comma or address-of operators are not used
- ok {test-number} - ( EvilMatcher() && EvilMatcher() ) || !EvilMatcher()
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcD ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - parseTestSpec( "*a" ).matches( *tcA ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcD ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - parseTestSpec( "a*" ).matches( *tcA ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcD ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - parseTestSpec( "*a*" ).matches( *tcA ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcD ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcD ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcD ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcD ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcD ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcD ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcD ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcD ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcD ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcD ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcD ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcD ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.hasFilters() == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcA ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcB ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcC ) == false for: false == false
- # Parse test names and tags
- ok {test-number} - spec.matches( *tcD ) == true for: true == true
- # Parse test names and tags
- ok {test-number} - spec.matches( *fakeTestCase( " aardvark " ) ) for: true
- # Parse test names and tags
- ok {test-number} - spec.matches( *fakeTestCase( " aardvark" ) ) for: true
- # Parse test names and tags
- ok {test-number} - spec.matches( *fakeTestCase( " aardvark " ) ) for: true
- # Parse test names and tags
- ok {test-number} - spec.matches( *fakeTestCase( "aardvark " ) ) for: true
- # Parse test names and tags
- ok {test-number} - spec.matches( *fakeTestCase( "aardvark" ) ) for: true
- # Parse test names and tags
- ok {test-number} - spec.matches( *fakeTestCase( " aardvark " ) ) for: true
- # Parse test names and tags
- ok {test-number} - spec.matches( *fakeTestCase( " aardvark" ) ) for: true
- # Parse test names and tags
- ok {test-number} - spec.matches( *fakeTestCase( " aardvark " ) ) for: true
- # Parse test names and tags
- ok {test-number} - spec.matches( *fakeTestCase( "aardvark " ) ) for: true
- # Parse test names and tags
- ok {test-number} - spec.matches( *fakeTestCase( "aardvark" ) ) for: true
- # Parse test names and tags
- ok {test-number} - spec.matches(*fakeTestCase("hidden and foo", "[.][foo]")) for: true
- # Parse test names and tags
- ok {test-number} - !(spec.matches(*fakeTestCase("only foo", "[foo]"))) for: !false
- # Parse test names and tags
- ok {test-number} - !(spec.matches(*fakeTestCase("hidden and foo", "[.][foo]"))) for: !false
- # Parse test names and tags
- ok {test-number} - !(spec.matches(*fakeTestCase("only foo", "[foo]"))) for: !false
- # Parse test names and tags
- ok {test-number} - !(spec.matches(*fakeTestCase("only hidden", "[.]"))) for: !false
- # Parse test names and tags
- ok {test-number} - spec.matches(*fakeTestCase("neither foo nor hidden", "[bar]")) for: true
- # Parsed tags are matched case insensitive
- ok {test-number} - spec.hasFilters() for: true
- # Parsed tags are matched case insensitive
- ok {test-number} - spec.getInvalidSpecs().empty() for: true
- # Parsed tags are matched case insensitive
- ok {test-number} - spec.matches( testCase ) for: true
- # Parsing sharding-related cli flags
- ok {test-number} - cli.parse({ "test", "--shard-count=8" }) for: {?}
- # Parsing sharding-related cli flags
- ok {test-number} - config.shardCount == 8 for: 8 == 8
- # Parsing sharding-related cli flags
- ok {test-number} - !(result) for: !{?}
- # Parsing sharding-related cli flags
- ok {test-number} - result.errorMessage(), ContainsSubstring("Shard count must be a positive number") for: "Shard count must be a positive number" contains: "Shard count must be a positive number"
- # Parsing sharding-related cli flags
- ok {test-number} - !(result) for: !{?}
- # Parsing sharding-related cli flags
- ok {test-number} - result.errorMessage(), ContainsSubstring("Shard count must be a positive number") for: "Shard count must be a positive number" contains: "Shard count must be a positive number"
- # Parsing sharding-related cli flags
- ok {test-number} - cli.parse({ "test", "--shard-index=2" }) for: {?}
- # Parsing sharding-related cli flags
- ok {test-number} - config.shardIndex == 2 for: 2 == 2
- # Parsing sharding-related cli flags
- ok {test-number} - !(result) for: !{?}
- # Parsing sharding-related cli flags
- ok {test-number} - result.errorMessage(), ContainsSubstring("Shard index must be a non-negative number") for: "Shard index must be a non-negative number" contains: "Shard index must be a non-negative number"
- # Parsing sharding-related cli flags
- ok {test-number} - cli.parse({ "test", "--shard-index=0" }) for: {?}
- # Parsing sharding-related cli flags
- ok {test-number} - config.shardIndex == 0 for: 0 == 0
- # Parsing tags with non-alphabetical characters is pass-through
- ok {test-number} - spec.hasFilters() for: true with 1 message: 'tagString := "[tag with spaces]"'
- # Parsing tags with non-alphabetical characters is pass-through
- ok {test-number} - spec.getInvalidSpecs().empty() for: true with 1 message: 'tagString := "[tag with spaces]"'
- # Parsing tags with non-alphabetical characters is pass-through
- ok {test-number} - spec.matches( testCase ) for: true with 1 message: 'tagString := "[tag with spaces]"'
- # Parsing tags with non-alphabetical characters is pass-through
- ok {test-number} - spec.hasFilters() for: true with 1 message: 'tagString := "[I said "good day" sir!]"'
- # Parsing tags with non-alphabetical characters is pass-through
- ok {test-number} - spec.getInvalidSpecs().empty() for: true with 1 message: 'tagString := "[I said "good day" sir!]"'
- # Parsing tags with non-alphabetical characters is pass-through
- ok {test-number} - spec.matches( testCase ) for: true with 1 message: 'tagString := "[I said "good day" sir!]"'
- # Parsing warnings
- ok {test-number} - cli.parse( { "test", "-w", "NoAssertions" } ) for: {?}
- # Parsing warnings
- ok {test-number} - config.warnings == WarnAbout::NoAssertions for: 1 == 1
- # Parsing warnings
- ok {test-number} - !(cli.parse( { "test", "-w", "NoTests" } )) for: !{?}
- # Parsing warnings
- ok {test-number} - cli.parse( { "test", "--warn", "NoAssertions", "--warn", "UnmatchedTestSpec" } ) for: {?}
- # Parsing warnings
- ok {test-number} - config.warnings == ( WarnAbout::NoAssertions | WarnAbout::UnmatchedTestSpec ) for: 3 == 3
- # Pointers can be compared to null
- ok {test-number} - p == 0 for: 0 == 0
- # Pointers can be compared to null
- ok {test-number} - p == pNULL for: 0 == 0
- # Pointers can be compared to null
- ok {test-number} - p != 0 for: 0x<hex digits> != 0
- # Pointers can be compared to null
- ok {test-number} - cp != 0 for: 0x<hex digits> != 0
- # Pointers can be compared to null
- ok {test-number} - cpc != 0 for: 0x<hex digits> != 0
- # Pointers can be compared to null
- ok {test-number} - returnsNull() == 0 for: {null string} == 0
- # Pointers can be compared to null
- ok {test-number} - returnsConstNull() == 0 for: {null string} == 0
- # Pointers can be compared to null
- ok {test-number} - 0 != p for: 0 != 0x<hex digits>
- # Precision of floating point stringification can be set
- ok {test-number} - str1.size() == 3 + 5 for: 8 == 8
- # Precision of floating point stringification can be set
- ok {test-number} - str2.size() == 3 + 10 for: 13 == 13
- # Precision of floating point stringification can be set
- ok {test-number} - str1.size() == 2 + 5 for: 7 == 7
- # Precision of floating point stringification can be set
- ok {test-number} - str2.size() == 2 + 15 for: 17 == 17
- # Predicate matcher can accept const char*
- ok {test-number} - "foo", Predicate<const char*>( []( const char* const& ) { return true; } ) for: "foo" matches undescribed predicate
- # Process can be configured on command line
- ok {test-number} - result for: {?}
- # Process can be configured on command line
- ok {test-number} - config.processName == "" for: "" == ""
- # Process can be configured on command line
- ok {test-number} - result for: {?}
- # Process can be configured on command line
- ok {test-number} - config.processName == "test" for: "test" == "test"
- # Process can be configured on command line
- ok {test-number} - config.shouldDebugBreak == false for: false == false
- # Process can be configured on command line
- ok {test-number} - config.abortAfter == -1 for: -1 == -1
- # Process can be configured on command line
- ok {test-number} - config.noThrow == false for: false == false
- # Process can be configured on command line
- ok {test-number} - config.reporterSpecifications.empty() for: true
- # Process can be configured on command line
- ok {test-number} - !(cfg.hasTestFilters()) for: !false
- # Process can be configured on command line
- ok {test-number} - cfg.getReporterSpecs().size() == 1 for: 1 == 1
- # Process can be configured on command line
- ok {test-number} - cfg.getReporterSpecs()[0] == Catch::ReporterSpec{ expectedReporter, {}, {}, {} } for: {?} == {?}
- # Process can be configured on command line
- ok {test-number} - cfg.getProcessedReporterSpecs().size() == 1 for: 1 == 1
- # Process can be configured on command line
- ok {test-number} - cfg.getProcessedReporterSpecs()[0] == Catch::ProcessedReporterSpec{ expectedReporter, std::string{}, Catch::ColourMode::PlatformDefault, {} } for: {?} == {?}
- # Process can be configured on command line
- ok {test-number} - result for: {?}
- # Process can be configured on command line
- ok {test-number} - cfg.hasTestFilters() for: true
- # Process can be configured on command line
- ok {test-number} - cfg.testSpec().matches(*fakeTestCase("notIncluded")) == false for: false == false
- # Process can be configured on command line
- ok {test-number} - cfg.testSpec().matches(*fakeTestCase("test1")) for: true
- # Process can be configured on command line
- ok {test-number} - result for: {?}
- # Process can be configured on command line
- ok {test-number} - cfg.hasTestFilters() for: true
- # Process can be configured on command line
- ok {test-number} - cfg.testSpec().matches(*fakeTestCase("test1")) == false for: false == false
- # Process can be configured on command line
- ok {test-number} - cfg.testSpec().matches(*fakeTestCase("alwaysIncluded")) for: true
- # Process can be configured on command line
- ok {test-number} - result for: {?}
- # Process can be configured on command line
- ok {test-number} - cfg.hasTestFilters() for: true
- # Process can be configured on command line
- ok {test-number} - cfg.testSpec().matches(*fakeTestCase("test1")) == false for: false == false
- # Process can be configured on command line
- ok {test-number} - cfg.testSpec().matches(*fakeTestCase("alwaysIncluded")) for: true
- # Process can be configured on command line
- ok {test-number} - result for: {?} with 1 message: 'result.errorMessage() := ""'
- # Process can be configured on command line
- ok {test-number} - config.reporterSpecifications == vec_Specs{ { "console", {}, {}, {} } } for: { {?} } == { {?} } with 1 message: 'result.errorMessage() := ""'
- # Process can be configured on command line
- ok {test-number} - result for: {?} with 1 message: 'result.errorMessage() := ""'
- # Process can be configured on command line
- ok {test-number} - config.reporterSpecifications == vec_Specs{ { "xml", {}, {}, {} } } for: { {?} } == { {?} } with 1 message: 'result.errorMessage() := ""'
- # Process can be configured on command line
- ok {test-number} - result for: {?} with 1 message: 'result.errorMessage() := ""'
- # Process can be configured on command line
- ok {test-number} - config.reporterSpecifications == vec_Specs{ { "junit", {}, {}, {} } } for: { {?} } == { {?} } with 1 message: 'result.errorMessage() := ""'
- # Process can be configured on command line
- ok {test-number} - !result for: true
- # Process can be configured on command line
- ok {test-number} - result.errorMessage(), ContainsSubstring("Unrecognized reporter") for: "Unrecognized reporter, 'unsupported'. Check available with --list-reporters" contains: "Unrecognized reporter"
- # Process can be configured on command line
- ok {test-number} - result for: {?} with 1 message: 'result.errorMessage() := ""'
- # Process can be configured on command line
- ok {test-number} - config.reporterSpecifications == vec_Specs{ { "console", "out.txt"s, {}, {} } } for: { {?} } == { {?} } with 1 message: 'result.errorMessage() := ""'
- # Process can be configured on command line
- ok {test-number} - result for: {?} with 1 message: 'result.errorMessage() := ""'
- # Process can be configured on command line
- ok {test-number} - config.reporterSpecifications == vec_Specs{ { "console", "C:\\Temp\\out.txt"s, {}, {} } } for: { {?} } == { {?} } with 1 message: 'result.errorMessage() := ""'
- # Process can be configured on command line
- ok {test-number} - cli.parse({ "test", "-r", "xml::out=output.xml", "-r", "junit::out=output-junit.xml" }) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.reporterSpecifications == vec_Specs{ { "xml", "output.xml"s, {}, {} }, { "junit", "output-junit.xml"s, {}, {} } } for: { {?}, {?} } == { {?}, {?} }
- # Process can be configured on command line
- ok {test-number} - cli.parse({ "test", "-r", "xml::out=output.xml", "-r", "console" }) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.reporterSpecifications == vec_Specs{ { "xml", "output.xml"s, {}, {} }, { "console", {}, {}, {} } } for: { {?}, {?} } == { {?}, {?} }
- # Process can be configured on command line
- ok {test-number} - !result for: true
- # Process can be configured on command line
- ok {test-number} - result.errorMessage(), ContainsSubstring("Only one reporter may have unspecified output file.") for: "Only one reporter may have unspecified output file." contains: "Only one reporter may have unspecified output file."
- # Process can be configured on command line
- ok {test-number} - cli.parse({"test", "-b"}) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.shouldDebugBreak == true for: true == true
- # Process can be configured on command line
- ok {test-number} - cli.parse({"test", "--break"}) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.shouldDebugBreak for: true
- # Process can be configured on command line
- ok {test-number} - cli.parse({"test", "-a"}) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.abortAfter == 1 for: 1 == 1
- # Process can be configured on command line
- ok {test-number} - cli.parse({"test", "-x", "2"}) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.abortAfter == 2 for: 2 == 2
- # Process can be configured on command line
- ok {test-number} - !result for: true
- # Process can be configured on command line
- ok {test-number} - result.errorMessage(), ContainsSubstring("convert") && ContainsSubstring("oops") for: "Unable to convert 'oops' to destination type" ( contains: "convert" and contains: "oops" )
- # Process can be configured on command line
- ok {test-number} - cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.waitForKeypress == std::get<1>(input) for: 0 == 0
- # Process can be configured on command line
- ok {test-number} - cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.waitForKeypress == std::get<1>(input) for: 1 == 1
- # Process can be configured on command line
- ok {test-number} - cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.waitForKeypress == std::get<1>(input) for: 2 == 2
- # Process can be configured on command line
- ok {test-number} - cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.waitForKeypress == std::get<1>(input) for: 3 == 3
- # Process can be configured on command line
- ok {test-number} - !result for: true
- # Process can be configured on command line
- ok {test-number} - result.errorMessage(), ContainsSubstring("never") && ContainsSubstring("both") for: "keypress argument must be one of: never, start, exit or both. 'sometimes' not recognised" ( contains: "never" and contains: "both" )
- # Process can be configured on command line
- ok {test-number} - cli.parse({"test", "-e"}) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.noThrow for: true
- # Process can be configured on command line
- ok {test-number} - cli.parse({"test", "--nothrow"}) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.noThrow for: true
- # Process can be configured on command line
- ok {test-number} - cli.parse({"test", "-o", "filename.ext"}) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.defaultOutputFilename == "filename.ext" for: "filename.ext" == "filename.ext"
- # Process can be configured on command line
- ok {test-number} - cli.parse({"test", "--out", "filename.ext"}) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.defaultOutputFilename == "filename.ext" for: "filename.ext" == "filename.ext"
- # Process can be configured on command line
- ok {test-number} - cli.parse({"test", "-abe"}) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.abortAfter == 1 for: 1 == 1
- # Process can be configured on command line
- ok {test-number} - config.shouldDebugBreak for: true
- # Process can be configured on command line
- ok {test-number} - config.noThrow == true for: true == true
- # Process can be configured on command line
- ok {test-number} - cli.parse({"test"}) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.defaultColourMode == ColourMode::PlatformDefault for: 0 == 0
- # Process can be configured on command line
- ok {test-number} - cli.parse( { "test", "--colour-mode", "default" } ) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.defaultColourMode == ColourMode::PlatformDefault for: 0 == 0
- # Process can be configured on command line
- ok {test-number} - cli.parse({"test", "--colour-mode", "ansi"}) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.defaultColourMode == ColourMode::ANSI for: 1 == 1
- # Process can be configured on command line
- ok {test-number} - cli.parse({"test", "--colour-mode", "none"}) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.defaultColourMode == ColourMode::None for: 3 == 3
- # Process can be configured on command line
- ok {test-number} - !result for: true
- # Process can be configured on command line
- ok {test-number} - result.errorMessage(), ContainsSubstring( "colour mode must be one of" ) for: "colour mode must be one of: default, ansi, win32, or none. 'wrong' is not recognised" contains: "colour mode must be one of"
- # Process can be configured on command line
- ok {test-number} - cli.parse({ "test", "--benchmark-samples=200" }) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.benchmarkSamples == 200 for: 200 == 200
- # Process can be configured on command line
- ok {test-number} - cli.parse({ "test", "--benchmark-resamples=20000" }) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.benchmarkResamples == 20000 for: 20000 (0x<hex digits>) == 20000 (0x<hex digits>)
- # Process can be configured on command line
- ok {test-number} - cli.parse({ "test", "--benchmark-confidence-interval=0.99" }) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.benchmarkConfidenceInterval == Catch::Approx(0.99) for: 0.99 == Approx( 0.99 )
- # Process can be configured on command line
- ok {test-number} - cli.parse({ "test", "--benchmark-no-analysis" }) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.benchmarkNoAnalysis for: true
- # Process can be configured on command line
- ok {test-number} - cli.parse({ "test", "--benchmark-warmup-time=10" }) for: {?}
- # Process can be configured on command line
- ok {test-number} - config.benchmarkWarmupTime == 10 for: 10 == 10
- # Product with differing arities - std::tuple<int, double, float>
- ok {test-number} - std::tuple_size<TestType>::value >= 1 for: 3 >= 1
- # Product with differing arities - std::tuple<int, double>
- ok {test-number} - std::tuple_size<TestType>::value >= 1 for: 2 >= 1
- # Product with differing arities - std::tuple<int>
- ok {test-number} - std::tuple_size<TestType>::value >= 1 for: 1 >= 1
- # Random seed generation accepts known methods
- ok {test-number} - Catch::generateRandomSeed(method)
- # Random seed generation accepts known methods
- ok {test-number} - Catch::generateRandomSeed(method)
- # Random seed generation accepts known methods
- ok {test-number} - Catch::generateRandomSeed(method)
- # Random seed generation reports unknown methods
- ok {test-number} - Catch::generateRandomSeed(static_cast<Catch::GenerateFrom>(77))
- # Range type with sentinel
- ok {test-number} - Catch::Detail::stringify(UsesSentinel{}) == "{ }" for: "{ }" == "{ }"
- # Reconstruction should be based on stringification: #914
- not ok {test-number} - truthy(false) for: Hey, its truthy!
- # Regex string matcher
- not ok {test-number} - testStringForMatching(), Matches( "this STRING contains 'abc' as a substring" ) for: "this string contains 'abc' as a substring" matches "this STRING contains 'abc' as a substring" case sensitively
- # Regex string matcher
- not ok {test-number} - testStringForMatching(), Matches( "contains 'abc' as a substring" ) for: "this string contains 'abc' as a substring" matches "contains 'abc' as a substring" case sensitively
- # Regex string matcher
- not ok {test-number} - testStringForMatching(), Matches( "this string contains 'abc' as a" ) for: "this string contains 'abc' as a substring" matches "this string contains 'abc' as a" case sensitively
- # Registering reporter with '::' in name fails
- ok {test-number} - registry.registerReporter( "with::doublecolons", Catch::Detail::make_unique<TestReporterFactory>() ), "'::' is not allowed in reporter name: 'with::doublecolons'" for: "'::' is not allowed in reporter name: 'with::doublecolons'" equals: "'::' is not allowed in reporter name: 'with::doublecolons'"
- # Regression test #1
- ok {test-number} - actual, !UnorderedEquals( expected ) for: { 'a', 'b' } not UnorderedEquals: { 'c', 'b' }
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring("fakeTag"s) for: "All available tags: 1 [fakeTag] 1 tag " contains: "fakeTag" with 1 message: 'Tested reporter: Automake'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring("fake reporter"s) for: "Available reporters: fake reporter: fake description " contains: "fake reporter" with 1 message: 'Tested reporter: Automake'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "All available test cases: fake test name [fakeTestTag] 1 test case " ( contains: "fake test name" and contains: "fakeTestTag" ) with 1 message: 'Tested reporter: Automake'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring("fakeTag"s) for: "All available tags: 1 [fakeTag] 1 tag " contains: "fakeTag" with 1 message: 'Tested reporter: compact'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring("fake reporter"s) for: "Available reporters: fake reporter: fake description " contains: "fake reporter" with 1 message: 'Tested reporter: compact'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "All available test cases: fake test name [fakeTestTag] 1 test case " ( contains: "fake test name" and contains: "fakeTestTag" ) with 1 message: 'Tested reporter: compact'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring("fakeTag"s) for: "All available tags: 1 [fakeTag] 1 tag " contains: "fakeTag" with 1 message: 'Tested reporter: console'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring("fake reporter"s) for: "Available reporters: fake reporter: fake description " contains: "fake reporter" with 1 message: 'Tested reporter: console'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "All available test cases: fake test name [fakeTestTag] 1 test case " ( contains: "fake test name" and contains: "fakeTestTag" ) with 1 message: 'Tested reporter: console'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring("fakeTag"s) for: "<?xml version="1.0" encoding="UTF-8"?> All available tags: 1 [fakeTag] 1 tag " contains: "fakeTag" with 1 message: 'Tested reporter: JUnit'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring("fake reporter"s) for: "<?xml version="1.0" encoding="UTF-8"?> Available reporters: fake reporter: fake description " contains: "fake reporter" with 1 message: 'Tested reporter: JUnit'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "<?xml version="1.0" encoding="UTF-8"?> All available test cases: fake test name [fakeTestTag] 1 test case " ( contains: "fake test name" and contains: "fakeTestTag" ) with 1 message: 'Tested reporter: JUnit'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring("fakeTag"s) for: "<?xml version="1.0" encoding="UTF-8"?> All available tags: 1 [fakeTag] 1 tag " contains: "fakeTag" with 1 message: 'Tested reporter: SonarQube'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring("fake reporter"s) for: "<?xml version="1.0" encoding="UTF-8"?> Available reporters: fake reporter: fake description " contains: "fake reporter" with 1 message: 'Tested reporter: SonarQube'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "<?xml version="1.0" encoding="UTF-8"?> All available test cases: fake test name [fakeTestTag] 1 test case " ( contains: "fake test name" and contains: "fakeTestTag" ) with 1 message: 'Tested reporter: SonarQube'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring("fakeTag"s) for: "All available tags: 1 [fakeTag] 1 tag " contains: "fakeTag" with 1 message: 'Tested reporter: TAP'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring("fake reporter"s) for: "Available reporters: fake reporter: fake description " contains: "fake reporter" with 1 message: 'Tested reporter: TAP'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "All available test cases: fake test name [fakeTestTag] 1 test case " ( contains: "fake test name" and contains: "fakeTestTag" ) with 1 message: 'Tested reporter: TAP'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring("fakeTag"s) for: "All available tags: 1 [fakeTag] 1 tag " contains: "fakeTag" with 1 message: 'Tested reporter: TeamCity'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring("fake reporter"s) for: "Available reporters: fake reporter: fake description " contains: "fake reporter" with 1 message: 'Tested reporter: TeamCity'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "All available test cases: fake test name [fakeTestTag] 1 test case " ( contains: "fake test name" and contains: "fakeTestTag" ) with 1 message: 'Tested reporter: TeamCity'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring("fakeTag"s) for: "<?xml version="1.0" encoding="UTF-8"?> <TagsFromMatchingTests> <Tag> <Count>1</Count> <Aliases> <Alias>fakeTag</Alias> </Aliases> </Tag> </TagsFromMatchingTests>" contains: "fakeTag" with 1 message: 'Tested reporter: XML'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring("fake reporter"s) for: "<?xml version="1.0" encoding="UTF-8"?> <AvailableReporters> <Reporter> <Name>fake reporter</Name> <Description>fake description</Description> </Reporter> </AvailableReporters>" contains: "fake reporter" with 1 message: 'Tested reporter: XML'
- # Reporter's write listings to provided stream
- ok {test-number} - !(factories.empty()) for: !false
- # Reporter's write listings to provided stream
- ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "<?xml version="1.0" encoding="UTF-8"?> <MatchingTests> <TestCase> <Name>fake test name</Name> <ClassName/> <Tags>[fakeTestTag]</Tags> <SourceInfo> <File>fake-file.cpp</File> <Line>123456789</Line> </SourceInfo> </TestCase> </MatchingTests>" ( contains: "fake test name" and contains: "fakeTestTag" ) with 1 message: 'Tested reporter: XML'
- # Reproducer for #2309 - a very long description past 80 chars (default console width) with a late colon : blablabla
- ok {test-number} -
- # SUCCEED counts as a test pass
- ok {test-number} - with 1 message: 'this is a success'
- # SUCCEED does not require an argument
- ok {test-number} -
- # Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods
- ok {test-number} - before == 0 for: 0 == 0
- # Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods
- ok {test-number} - after > before for: 1 > 0
- # Scenario: Do that thing with the thing
- ok {test-number} - itDoesThis() for: true
- # Scenario: Do that thing with the thing
- ok {test-number} - itDoesThat() for: true
- # Scenario: This is a really long scenario name to see how the list command deals with wrapping
- ok {test-number} - with 1 message: 'boo!'
- # Scenario: Vector resizing affects size and capacity
- ok {test-number} - v.size() == 0 for: 0 == 0
- # Scenario: Vector resizing affects size and capacity
- ok {test-number} - v.size() == 10 for: 10 == 10
- # Scenario: Vector resizing affects size and capacity
- ok {test-number} - v.capacity() >= 10 for: 10 >= 10
- # Scenario: Vector resizing affects size and capacity
- ok {test-number} - v.size() == 5 for: 5 == 5
- # Scenario: Vector resizing affects size and capacity
- ok {test-number} - v.capacity() >= 10 for: 10 >= 10
- # Scenario: Vector resizing affects size and capacity
- ok {test-number} - v.size() == 0 for: 0 == 0
- # Scenario: Vector resizing affects size and capacity
- ok {test-number} - v.capacity() >= 10 for: 10 >= 10
- # Scenario: Vector resizing affects size and capacity
- ok {test-number} - v.size() == 0 for: 0 == 0
- # Some simple comparisons between doubles
- ok {test-number} - d == Approx( 1.23 ) for: 1.23 == Approx( 1.23 )
- # Some simple comparisons between doubles
- ok {test-number} - d != Approx( 1.22 ) for: 1.23 != Approx( 1.22 )
- # Some simple comparisons between doubles
- ok {test-number} - d != Approx( 1.24 ) for: 1.23 != Approx( 1.24 )
- # Some simple comparisons between doubles
- ok {test-number} - d == 1.23_a for: 1.23 == Approx( 1.23 )
- # Some simple comparisons between doubles
- ok {test-number} - d != 1.22_a for: 1.23 != Approx( 1.22 )
- # Some simple comparisons between doubles
- ok {test-number} - Approx( d ) == 1.23 for: Approx( 1.23 ) == 1.23
- # Some simple comparisons between doubles
- ok {test-number} - Approx( d ) != 1.22 for: Approx( 1.23 ) != 1.22
- # Some simple comparisons between doubles
- ok {test-number} - Approx( d ) != 1.24 for: Approx( 1.23 ) != 1.24
- # StartsWith string matcher
- not ok {test-number} - testStringForMatching(), StartsWith( "This String" ) for: "this string contains 'abc' as a substring" starts with: "This String"
- # StartsWith string matcher
- not ok {test-number} - testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" starts with: "string" (case insensitive)
- # Static arrays are convertible to string
- ok {test-number} - Catch::Detail::stringify(singular) == "{ 1 }" for: "{ 1 }" == "{ 1 }"
- # Static arrays are convertible to string
- ok {test-number} - Catch::Detail::stringify(arr) == "{ 3, 2, 1 }" for: "{ 3, 2, 1 }" == "{ 3, 2, 1 }"
- # Static arrays are convertible to string
- ok {test-number} - Catch::Detail::stringify(arr) == R"({ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } })" for: "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }" == "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
- # String matchers
- ok {test-number} - testStringForMatching(), ContainsSubstring( "string" ) for: "this string contains 'abc' as a substring" contains: "string"
- # String matchers
- ok {test-number} - testStringForMatching(), ContainsSubstring( "string", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" contains: "string" (case insensitive)
- # String matchers
- ok {test-number} - testStringForMatching(), ContainsSubstring( "abc" ) for: "this string contains 'abc' as a substring" contains: "abc"
- # String matchers
- ok {test-number} - testStringForMatching(), ContainsSubstring( "aBC", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" contains: "abc" (case insensitive)
- # String matchers
- ok {test-number} - testStringForMatching(), StartsWith( "this" ) for: "this string contains 'abc' as a substring" starts with: "this"
- # String matchers
- ok {test-number} - testStringForMatching(), StartsWith( "THIS", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" starts with: "this" (case insensitive)
- # String matchers
- ok {test-number} - testStringForMatching(), EndsWith( "substring" ) for: "this string contains 'abc' as a substring" ends with: "substring"
- # String matchers
- ok {test-number} - testStringForMatching(), EndsWith( " SuBsTrInG", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" ends with: " substring" (case insensitive)
- # StringRef
- ok {test-number} - empty.empty() for: true
- # StringRef
- ok {test-number} - empty.size() == 0 for: 0 == 0
- # StringRef
- ok {test-number} - std::strcmp( empty.data(), "" ) == 0 for: 0 == 0
- # StringRef
- ok {test-number} - s.empty() == false for: false == false
- # StringRef
- ok {test-number} - s.size() == 5 for: 5 == 5
- # StringRef
- ok {test-number} - std::strcmp( rawChars, "hello" ) == 0 for: 0 == 0
- # StringRef
- ok {test-number} - s.data() == rawChars for: "hello" == "hello"
- # StringRef
- ok {test-number} - original == "original"
- # StringRef
- ok {test-number} - original.data()
- # StringRef
- ok {test-number} - original.begin() == copy.begin() for: "original string" == "original string"
- # StringRef
- ok {test-number} - original.begin() == copy.begin() for: "original string" == "original string"
- # StringRef
- ok {test-number} - ss.empty() == false for: false == false
- # StringRef
- ok {test-number} - ss.size() == 5 for: 5 == 5
- # StringRef
- ok {test-number} - std::strncmp( ss.data(), "hello", 5 ) == 0 for: 0 == 0
- # StringRef
- ok {test-number} - ss == "hello" for: hello == "hello"
- # StringRef
- ok {test-number} - ss.size() == 6 for: 6 == 6
- # StringRef
- ok {test-number} - std::strcmp( ss.data(), "world!" ) == 0 for: 0 == 0
- # StringRef
- ok {test-number} - s.data() == s2.data() for: "hello world!" == "hello world!"
- # StringRef
- ok {test-number} - s.data() == ss.data() for: "hello world!" == "hello world!"
- # StringRef
- ok {test-number} - s.substr(s.size() + 1, 123).empty() for: true
- # StringRef
- ok {test-number} - std::strcmp(ss.data(), "world!") == 0 for: 0 == 0
- # StringRef
- ok {test-number} - s.substr(1'000'000, 1).empty() for: true
- # StringRef
- ok {test-number} - reinterpret_cast<char*>(buffer1) != reinterpret_cast<char*>(buffer2) for: "Hello" != "Hello"
- # StringRef
- ok {test-number} - left == right for: Hello == Hello
- # StringRef
- ok {test-number} - left != left.substr(0, 3) for: Hello != Hel
- # StringRef
- ok {test-number} - sr == "a standard string" for: a standard string == "a standard string"
- # StringRef
- ok {test-number} - sr.size() == stdStr.size() for: 17 == 17
- # StringRef
- ok {test-number} - sr == "a standard string" for: a standard string == "a standard string"
- # StringRef
- ok {test-number} - sr.size() == stdStr.size() for: 17 == 17
- # StringRef
- ok {test-number} - sr == "a standard string" for: a standard string == "a standard string"
- # StringRef
- ok {test-number} - sr.size() == stdStr.size() for: 17 == 17
- # StringRef
- ok {test-number} - stdStr == "a stringref" for: "a stringref" == "a stringref"
- # StringRef
- ok {test-number} - stdStr.size() == sr.size() for: 11 == 11
- # StringRef
- ok {test-number} - stdStr == "a stringref" for: "a stringref" == "a stringref"
- # StringRef
- ok {test-number} - stdStr.size() == sr.size() for: 11 == 11
- # StringRef
- ok {test-number} - lhs == "some string += the stringref contents" for: "some string += the stringref contents" == "some string += the stringref contents"
- # StringRef
- ok {test-number} - together == "abrakadabra" for: "abrakadabra" == "abrakadabra"
- # StringRef at compilation time
- ok {test-number} - with 1 message: 'empty.size() == 0'
- # StringRef at compilation time
- ok {test-number} - with 1 message: 'empty.begin() == empty.end()'
- # StringRef at compilation time
- ok {test-number} - with 1 message: 'stringref.size() == 3'
- # StringRef at compilation time
- ok {test-number} - with 1 message: 'stringref.data() == abc'
- # StringRef at compilation time
- ok {test-number} - with 1 message: 'stringref.begin() == abc'
- # StringRef at compilation time
- ok {test-number} - with 1 message: 'stringref.begin() != stringref.end()'
- # StringRef at compilation time
- ok {test-number} - with 1 message: 'stringref.substr(10, 0).empty()'
- # StringRef at compilation time
- ok {test-number} - with 1 message: 'stringref.substr(2, 1).data() == abc + 2'
- # StringRef at compilation time
- ok {test-number} - with 1 message: 'stringref[1] == 'b''
- # StringRef at compilation time
- ok {test-number} - with 1 message: 'shortened.size() == 2'
- # StringRef at compilation time
- ok {test-number} - with 1 message: 'shortened.data() == abc'
- # StringRef at compilation time
- ok {test-number} - with 1 message: 'shortened.begin() != shortened.end()'
- # StringRef at compilation time
- ok {test-number} - with 1 message: '!(sr1.empty())'
- # StringRef at compilation time
- ok {test-number} - with 1 message: 'sr1.size() == 3'
- # StringRef at compilation time
- ok {test-number} - with 1 message: 'sr2.empty()'
- # StringRef at compilation time
- ok {test-number} - with 1 message: 'sr2.size() == 0'
- # Stringifying char arrays with statically known sizes - char
- ok {test-number} - ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc""
- # Stringifying char arrays with statically known sizes - char
- ok {test-number} - ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc""
- # Stringifying char arrays with statically known sizes - signed char
- ok {test-number} - ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc""
- # Stringifying char arrays with statically known sizes - signed char
- ok {test-number} - ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc""
- # Stringifying char arrays with statically known sizes - unsigned char
- ok {test-number} - ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc""
- # Stringifying char arrays with statically known sizes - unsigned char
- ok {test-number} - ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc""
- # Stringifying std::chrono::duration helpers
- ok {test-number} - minute == seconds for: 1 m == 60 s
- # Stringifying std::chrono::duration helpers
- ok {test-number} - hour != seconds for: 1 h != 60 s
- # Stringifying std::chrono::duration helpers
- ok {test-number} - micro != milli for: 1 us != 1 ms
- # Stringifying std::chrono::duration helpers
- ok {test-number} - nano != micro for: 1 ns != 1 us
- # Stringifying std::chrono::duration with weird ratios
- ok {test-number} - half_minute != femto_second for: 1 [30/1]s != 1 fs
- # Stringifying std::chrono::duration with weird ratios
- ok {test-number} - pico_second != atto_second for: 1 ps != 1 as
- # Stringifying std::chrono::time_point<system_clock>
- ok {test-number} - now != later for: {iso8601-timestamp} != {iso8601-timestamp}
- # Tabs and newlines show in output
- not ok {test-number} - s1 == s2 for: "if ($b == 10) { $a = 20; }" == "if ($b == 10) { $a = 20; } "
- # Tag alias can be registered against tag patterns
- ok {test-number} - what, ContainsSubstring( "[@zzz]" ) for: "error: tag alias, '[@zzz]' already registered. First seen at: file:2 Redefined at: file:10" contains: "[@zzz]"
- # Tag alias can be registered against tag patterns
- ok {test-number} - what, ContainsSubstring( "file" ) for: "error: tag alias, '[@zzz]' already registered. First seen at: file:2 Redefined at: file:10" contains: "file"
- # Tag alias can be registered against tag patterns
- ok {test-number} - what, ContainsSubstring( "2" ) for: "error: tag alias, '[@zzz]' already registered. First seen at: file:2 Redefined at: file:10" contains: "2"
- # Tag alias can be registered against tag patterns
- ok {test-number} - what, ContainsSubstring( "10" ) for: "error: tag alias, '[@zzz]' already registered. First seen at: file:2 Redefined at: file:10" contains: "10"
- # Tag alias can be registered against tag patterns
- ok {test-number} - registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) )
- # Tag alias can be registered against tag patterns
- ok {test-number} - registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) )
- # Tag alias can be registered against tag patterns
- ok {test-number} - registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) )
- # Tag alias can be registered against tag patterns
- ok {test-number} - registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) )
- # Tags with spaces and non-alphanumerical characters are accepted
- ok {test-number} - testCase.tags.size() == 2 for: 2 == 2
- # Tags with spaces and non-alphanumerical characters are accepted
- ok {test-number} - testCase.tags, VectorContains( Tag( "tag with spaces" ) ) && VectorContains( Tag( "I said \"good day\" sir!"_catch_sr ) ) for: { {?}, {?} } ( Contains: {?} and Contains: {?} )
- # Template test case method with test types specified inside std::tuple - MyTypes - 0
- ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1 == 1
- # Template test case method with test types specified inside std::tuple - MyTypes - 1
- ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1 == 1
- # Template test case method with test types specified inside std::tuple - MyTypes - 2
- ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1.0 == 1
- # Template test case with test types specified inside non-copyable and non-movable std::tuple - NonCopyableAndNonMovableTypes - 0
- ok {test-number} - sizeof(TestType) > 0 for: 1 > 0
- # Template test case with test types specified inside non-copyable and non-movable std::tuple - NonCopyableAndNonMovableTypes - 1
- ok {test-number} - sizeof(TestType) > 0 for: 4 > 0
- # Template test case with test types specified inside non-default-constructible std::tuple - MyNonDefaultConstructibleTypes - 0
- ok {test-number} - sizeof(TestType) > 0 for: 1 > 0
- # Template test case with test types specified inside non-default-constructible std::tuple - MyNonDefaultConstructibleTypes - 1
- ok {test-number} - sizeof(TestType) > 0 for: 4 > 0
- # Template test case with test types specified inside std::tuple - MyTypes - 0
- ok {test-number} - sizeof(TestType) > 0 for: 4 > 0
- # Template test case with test types specified inside std::tuple - MyTypes - 1
- ok {test-number} - sizeof(TestType) > 0 for: 1 > 0
- # Template test case with test types specified inside std::tuple - MyTypes - 2
- ok {test-number} - sizeof(TestType) > 0 for: 4 > 0
- # TemplateTest: vectors can be sized and resized - float
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - float
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - float
- ok {test-number} - v.size() == 10 for: 10 == 10
- # TemplateTest: vectors can be sized and resized - float
- ok {test-number} - v.capacity() >= 10 for: 10 >= 10
- # TemplateTest: vectors can be sized and resized - float
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - float
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - float
- ok {test-number} - v.size() == 0 for: 0 == 0
- # TemplateTest: vectors can be sized and resized - float
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - float
- ok {test-number} - v.capacity() == 0 for: 0 == 0
- # TemplateTest: vectors can be sized and resized - float
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - float
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - float
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - float
- ok {test-number} - v.capacity() >= 10 for: 10 >= 10
- # TemplateTest: vectors can be sized and resized - float
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - float
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - float
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - float
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - int
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - int
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - int
- ok {test-number} - v.size() == 10 for: 10 == 10
- # TemplateTest: vectors can be sized and resized - int
- ok {test-number} - v.capacity() >= 10 for: 10 >= 10
- # TemplateTest: vectors can be sized and resized - int
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - int
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - int
- ok {test-number} - v.size() == 0 for: 0 == 0
- # TemplateTest: vectors can be sized and resized - int
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - int
- ok {test-number} - v.capacity() == 0 for: 0 == 0
- # TemplateTest: vectors can be sized and resized - int
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - int
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - int
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - int
- ok {test-number} - v.capacity() >= 10 for: 10 >= 10
- # TemplateTest: vectors can be sized and resized - int
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - int
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - int
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - int
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - std::string
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - std::string
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - std::string
- ok {test-number} - v.size() == 10 for: 10 == 10
- # TemplateTest: vectors can be sized and resized - std::string
- ok {test-number} - v.capacity() >= 10 for: 10 >= 10
- # TemplateTest: vectors can be sized and resized - std::string
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - std::string
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - std::string
- ok {test-number} - v.size() == 0 for: 0 == 0
- # TemplateTest: vectors can be sized and resized - std::string
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - std::string
- ok {test-number} - v.capacity() == 0 for: 0 == 0
- # TemplateTest: vectors can be sized and resized - std::string
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - std::string
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - std::string
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - std::string
- ok {test-number} - v.capacity() >= 10 for: 10 >= 10
- # TemplateTest: vectors can be sized and resized - std::string
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - std::string
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - std::string
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - std::string
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
- ok {test-number} - v.size() == 10 for: 10 == 10
- # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
- ok {test-number} - v.capacity() >= 10 for: 10 >= 10
- # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
- ok {test-number} - v.size() == 0 for: 0 == 0
- # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
- ok {test-number} - v.capacity() == 0 for: 0 == 0
- # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
- ok {test-number} - v.capacity() >= 10 for: 10 >= 10
- # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
- ok {test-number} - v.size() == 5 for: 5 == 5
- # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
- ok {test-number} - v.size() == V for: 6 == 6
- # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
- ok {test-number} - v.capacity() >= V for: 6 >= 6
- # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
- ok {test-number} - v.size() == 2 * V for: 12 == 12
- # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
- ok {test-number} - v.capacity() >= 2 * V for: 12 >= 12
- # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
- ok {test-number} - v.size() == V for: 6 == 6
- # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
- ok {test-number} - v.capacity() >= V for: 6 >= 6
- # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
- ok {test-number} - v.size() == 0 for: 0 == 0
- # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
- ok {test-number} - v.capacity() >= V for: 6 >= 6
- # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
- ok {test-number} - v.capacity() == 0 for: 0 == 0
- # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
- ok {test-number} - v.size() == V for: 6 == 6
- # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
- ok {test-number} - v.capacity() >= V for: 6 >= 6
- # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
- ok {test-number} - v.size() == V for: 6 == 6
- # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
- ok {test-number} - v.capacity() >= 2 * V for: 12 >= 12
- # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
- ok {test-number} - v.size() == V for: 6 == 6
- # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
- ok {test-number} - v.capacity() >= V for: 6 >= 6
- # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
- ok {test-number} - v.size() == V for: 6 == 6
- # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
- ok {test-number} - v.capacity() >= V for: 6 >= 6
- # TemplateTestSig: vectors can be sized and resized - float,4
- ok {test-number} - v.size() == V for: 4 == 4
- # TemplateTestSig: vectors can be sized and resized - float,4
- ok {test-number} - v.capacity() >= V for: 4 >= 4
- # TemplateTestSig: vectors can be sized and resized - float,4
- ok {test-number} - v.size() == 2 * V for: 8 == 8
- # TemplateTestSig: vectors can be sized and resized - float,4
- ok {test-number} - v.capacity() >= 2 * V for: 8 >= 8
- # TemplateTestSig: vectors can be sized and resized - float,4
- ok {test-number} - v.size() == V for: 4 == 4
- # TemplateTestSig: vectors can be sized and resized - float,4
- ok {test-number} - v.capacity() >= V for: 4 >= 4
- # TemplateTestSig: vectors can be sized and resized - float,4
- ok {test-number} - v.size() == 0 for: 0 == 0
- # TemplateTestSig: vectors can be sized and resized - float,4
- ok {test-number} - v.capacity() >= V for: 4 >= 4
- # TemplateTestSig: vectors can be sized and resized - float,4
- ok {test-number} - v.capacity() == 0 for: 0 == 0
- # TemplateTestSig: vectors can be sized and resized - float,4
- ok {test-number} - v.size() == V for: 4 == 4
- # TemplateTestSig: vectors can be sized and resized - float,4
- ok {test-number} - v.capacity() >= V for: 4 >= 4
- # TemplateTestSig: vectors can be sized and resized - float,4
- ok {test-number} - v.size() == V for: 4 == 4
- # TemplateTestSig: vectors can be sized and resized - float,4
- ok {test-number} - v.capacity() >= 2 * V for: 8 >= 8
- # TemplateTestSig: vectors can be sized and resized - float,4
- ok {test-number} - v.size() == V for: 4 == 4
- # TemplateTestSig: vectors can be sized and resized - float,4
- ok {test-number} - v.capacity() >= V for: 4 >= 4
- # TemplateTestSig: vectors can be sized and resized - float,4
- ok {test-number} - v.size() == V for: 4 == 4
- # TemplateTestSig: vectors can be sized and resized - float,4
- ok {test-number} - v.capacity() >= V for: 4 >= 4
- # TemplateTestSig: vectors can be sized and resized - int,5
- ok {test-number} - v.size() == V for: 5 == 5
- # TemplateTestSig: vectors can be sized and resized - int,5
- ok {test-number} - v.capacity() >= V for: 5 >= 5
- # TemplateTestSig: vectors can be sized and resized - int,5
- ok {test-number} - v.size() == 2 * V for: 10 == 10
- # TemplateTestSig: vectors can be sized and resized - int,5
- ok {test-number} - v.capacity() >= 2 * V for: 10 >= 10
- # TemplateTestSig: vectors can be sized and resized - int,5
- ok {test-number} - v.size() == V for: 5 == 5
- # TemplateTestSig: vectors can be sized and resized - int,5
- ok {test-number} - v.capacity() >= V for: 5 >= 5
- # TemplateTestSig: vectors can be sized and resized - int,5
- ok {test-number} - v.size() == 0 for: 0 == 0
- # TemplateTestSig: vectors can be sized and resized - int,5
- ok {test-number} - v.capacity() >= V for: 5 >= 5
- # TemplateTestSig: vectors can be sized and resized - int,5
- ok {test-number} - v.capacity() == 0 for: 0 == 0
- # TemplateTestSig: vectors can be sized and resized - int,5
- ok {test-number} - v.size() == V for: 5 == 5
- # TemplateTestSig: vectors can be sized and resized - int,5
- ok {test-number} - v.capacity() >= V for: 5 >= 5
- # TemplateTestSig: vectors can be sized and resized - int,5
- ok {test-number} - v.size() == V for: 5 == 5
- # TemplateTestSig: vectors can be sized and resized - int,5
- ok {test-number} - v.capacity() >= 2 * V for: 10 >= 10
- # TemplateTestSig: vectors can be sized and resized - int,5
- ok {test-number} - v.size() == V for: 5 == 5
- # TemplateTestSig: vectors can be sized and resized - int,5
- ok {test-number} - v.capacity() >= V for: 5 >= 5
- # TemplateTestSig: vectors can be sized and resized - int,5
- ok {test-number} - v.size() == V for: 5 == 5
- # TemplateTestSig: vectors can be sized and resized - int,5
- ok {test-number} - v.capacity() >= V for: 5 >= 5
- # TemplateTestSig: vectors can be sized and resized - std::string,15
- ok {test-number} - v.size() == V for: 15 == 15
- # TemplateTestSig: vectors can be sized and resized - std::string,15
- ok {test-number} - v.capacity() >= V for: 15 >= 15
- # TemplateTestSig: vectors can be sized and resized - std::string,15
- ok {test-number} - v.size() == 2 * V for: 30 == 30
- # TemplateTestSig: vectors can be sized and resized - std::string,15
- ok {test-number} - v.capacity() >= 2 * V for: 30 >= 30
- # TemplateTestSig: vectors can be sized and resized - std::string,15
- ok {test-number} - v.size() == V for: 15 == 15
- # TemplateTestSig: vectors can be sized and resized - std::string,15
- ok {test-number} - v.capacity() >= V for: 15 >= 15
- # TemplateTestSig: vectors can be sized and resized - std::string,15
- ok {test-number} - v.size() == 0 for: 0 == 0
- # TemplateTestSig: vectors can be sized and resized - std::string,15
- ok {test-number} - v.capacity() >= V for: 15 >= 15
- # TemplateTestSig: vectors can be sized and resized - std::string,15
- ok {test-number} - v.capacity() == 0 for: 0 == 0
- # TemplateTestSig: vectors can be sized and resized - std::string,15
- ok {test-number} - v.size() == V for: 15 == 15
- # TemplateTestSig: vectors can be sized and resized - std::string,15
- ok {test-number} - v.capacity() >= V for: 15 >= 15
- # TemplateTestSig: vectors can be sized and resized - std::string,15
- ok {test-number} - v.size() == V for: 15 == 15
- # TemplateTestSig: vectors can be sized and resized - std::string,15
- ok {test-number} - v.capacity() >= 2 * V for: 30 >= 30
- # TemplateTestSig: vectors can be sized and resized - std::string,15
- ok {test-number} - v.size() == V for: 15 == 15
- # TemplateTestSig: vectors can be sized and resized - std::string,15
- ok {test-number} - v.capacity() >= V for: 15 >= 15
- # TemplateTestSig: vectors can be sized and resized - std::string,15
- ok {test-number} - v.size() == V for: 15 == 15
- # TemplateTestSig: vectors can be sized and resized - std::string,15
- ok {test-number} - v.capacity() >= V for: 15 >= 15
- # Test case with identical tags keeps just one
- ok {test-number} - testCase.tags.size() == 1 for: 1 == 1
- # Test case with identical tags keeps just one
- ok {test-number} - testCase.tags[0] == Tag( "tag1" ) for: {?} == {?}
- # Test case with one argument
- ok {test-number} - with 1 message: 'no assertions'
- # Test enum bit values
- ok {test-number} - 0x<hex digits> == bit30and31 for: 3221225472 (0x<hex digits>) == 3221225472
- # Test with special, characters "in name
- ok {test-number} -
- # Testing checked-if
- ok {test-number} - true
- # Testing checked-if
- ok {test-number} -
- # Testing checked-if
- ok {test-number} - false # TODO
- # Testing checked-if
- ok {test-number} - true
- # Testing checked-if
- ok {test-number} - false # TODO
- # Testing checked-if
- ok {test-number} -
- # Testing checked-if 2
- ok {test-number} - true
- # Testing checked-if 2
- not ok {test-number} - explicitly
- # Testing checked-if 3
- ok {test-number} - false # TODO
- # Testing checked-if 3
- not ok {test-number} - explicitly
- # The NO_FAIL macro reports a failure but does not fail the test
- ok {test-number} - 1 == 2 # TODO
- # The default listing implementation write to provided stream
- ok {test-number} - listingString, ContainsSubstring("[fakeTag]"s) for: "All available tags: 1 [fakeTag] 1 tag " contains: "[fakeTag]"
- # The default listing implementation write to provided stream
- ok {test-number} - listingString, ContainsSubstring( "fake reporter"s ) && ContainsSubstring( "fake description"s ) for: "Available reporters: fake reporter: fake description " ( contains: "fake reporter" and contains: "fake description" )
- # The default listing implementation write to provided stream
- ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "All available test cases: fake test name [fakeTestTag] 1 test case " ( contains: "fake test name" and contains: "fakeTestTag" )
- # The default listing implementation write to provided stream
- ok {test-number} - listingString, ContainsSubstring( "fakeListener"s ) && ContainsSubstring( "fake description"s ) for: "Registered listeners: fakeListener: fake description " ( contains: "fakeListener" and contains: "fake description" )
- # This test 'should' fail but doesn't
- ok {test-number} - with 1 message: 'oops!'
- # Thrown string literals are translated
- not ok {test-number} - unexpected exception with message: 'For some reason someone is throwing a string literal!'
- # Tracker
- ok {test-number} - testCase.isOpen() for: true
- # Tracker
- ok {test-number} - s1.isOpen() for: true
- # Tracker
- ok {test-number} - s1.isSuccessfullyCompleted() for: true
- # Tracker
- ok {test-number} - testCase.isComplete() == false for: false == false
- # Tracker
- ok {test-number} - ctx.completedCycle() for: true
- # Tracker
- ok {test-number} - testCase.isSuccessfullyCompleted() for: true
- # Tracker
- ok {test-number} - testCase.isOpen() for: true
- # Tracker
- ok {test-number} - s1.isOpen() for: true
- # Tracker
- ok {test-number} - s1.isComplete() for: true
- # Tracker
- ok {test-number} - s1.isSuccessfullyCompleted() == false for: false == false
- # Tracker
- ok {test-number} - testCase.isComplete() == false for: false == false
- # Tracker
- ok {test-number} - ctx.completedCycle() for: true
- # Tracker
- ok {test-number} - testCase.isSuccessfullyCompleted() == false for: false == false
- # Tracker
- ok {test-number} - testCase2.isOpen() for: true
- # Tracker
- ok {test-number} - s1b.isOpen() == false for: false == false
- # Tracker
- ok {test-number} - ctx.completedCycle() for: true
- # Tracker
- ok {test-number} - testCase.isComplete() for: true
- # Tracker
- ok {test-number} - testCase.isSuccessfullyCompleted() for: true
- # Tracker
- ok {test-number} - testCase.isOpen() for: true
- # Tracker
- ok {test-number} - s1.isOpen() for: true
- # Tracker
- ok {test-number} - s1.isComplete() for: true
- # Tracker
- ok {test-number} - s1.isSuccessfullyCompleted() == false for: false == false
- # Tracker
- ok {test-number} - testCase.isComplete() == false for: false == false
- # Tracker
- ok {test-number} - ctx.completedCycle() for: true
- # Tracker
- ok {test-number} - testCase.isSuccessfullyCompleted() == false for: false == false
- # Tracker
- ok {test-number} - testCase2.isOpen() for: true
- # Tracker
- ok {test-number} - s1b.isOpen() == false for: false == false
- # Tracker
- ok {test-number} - s2.isOpen() for: true
- # Tracker
- ok {test-number} - ctx.completedCycle() for: true
- # Tracker
- ok {test-number} - testCase.isComplete() for: true
- # Tracker
- ok {test-number} - testCase.isSuccessfullyCompleted() for: true
- # Tracker
- ok {test-number} - testCase.isOpen() for: true
- # Tracker
- ok {test-number} - s1.isOpen() for: true
- # Tracker
- ok {test-number} - s2.isOpen() == false for: false == false
- # Tracker
- ok {test-number} - testCase.isComplete() == false for: false == false
- # Tracker
- ok {test-number} - testCase2.isOpen() for: true
- # Tracker
- ok {test-number} - s1b.isOpen() == false for: false == false
- # Tracker
- ok {test-number} - s2b.isOpen() for: true
- # Tracker
- ok {test-number} - ctx.completedCycle() == false for: false == false
- # Tracker
- ok {test-number} - ctx.completedCycle() for: true
- # Tracker
- ok {test-number} - s2b.isSuccessfullyCompleted() for: true
- # Tracker
- ok {test-number} - testCase2.isComplete() == false for: false == false
- # Tracker
- ok {test-number} - testCase2.isSuccessfullyCompleted() for: true
- # Tracker
- ok {test-number} - testCase.isOpen() for: true
- # Tracker
- ok {test-number} - s1.isOpen() for: true
- # Tracker
- ok {test-number} - s2.isOpen() == false for: false == false
- # Tracker
- ok {test-number} - testCase.isComplete() == false for: false == false
- # Tracker
- ok {test-number} - testCase2.isOpen() for: true
- # Tracker
- ok {test-number} - s1b.isOpen() == false for: false == false
- # Tracker
- ok {test-number} - s2b.isOpen() for: true
- # Tracker
- ok {test-number} - ctx.completedCycle() == false for: false == false
- # Tracker
- ok {test-number} - ctx.completedCycle() for: true
- # Tracker
- ok {test-number} - s2b.isComplete() for: true
- # Tracker
- ok {test-number} - s2b.isSuccessfullyCompleted() == false for: false == false
- # Tracker
- ok {test-number} - testCase2.isSuccessfullyCompleted() == false for: false == false
- # Tracker
- ok {test-number} - testCase3.isOpen() for: true
- # Tracker
- ok {test-number} - s1c.isOpen() == false for: false == false
- # Tracker
- ok {test-number} - s2c.isOpen() == false for: false == false
- # Tracker
- ok {test-number} - testCase3.isSuccessfullyCompleted() for: true
- # Tracker
- ok {test-number} - testCase.isOpen() for: true
- # Tracker
- ok {test-number} - s1.isOpen() for: true
- # Tracker
- ok {test-number} - s2.isOpen() for: true
- # Tracker
- ok {test-number} - s2.isComplete() for: true
- # Tracker
- ok {test-number} - s1.isComplete() == false for: false == false
- # Tracker
- ok {test-number} - s1.isComplete() for: true
- # Tracker
- ok {test-number} - testCase.isComplete() == false for: false == false
- # Tracker
- ok {test-number} - testCase.isComplete() for: true
- # Trim strings
- ok {test-number} - trim(std::string(no_whitespace)) == no_whitespace for: "There is no extra whitespace here" == "There is no extra whitespace here"
- # Trim strings
- ok {test-number} - trim(std::string(leading_whitespace)) == no_whitespace for: "There is no extra whitespace here" == "There is no extra whitespace here"
- # Trim strings
- ok {test-number} - trim(std::string(trailing_whitespace)) == no_whitespace for: "There is no extra whitespace here" == "There is no extra whitespace here"
- # Trim strings
- ok {test-number} - trim(std::string(whitespace_at_both_ends)) == no_whitespace for: "There is no extra whitespace here" == "There is no extra whitespace here"
- # Trim strings
- ok {test-number} - trim(StringRef(no_whitespace)) == StringRef(no_whitespace) for: There is no extra whitespace here == There is no extra whitespace here
- # Trim strings
- ok {test-number} - trim(StringRef(leading_whitespace)) == StringRef(no_whitespace) for: There is no extra whitespace here == There is no extra whitespace here
- # Trim strings
- ok {test-number} - trim(StringRef(trailing_whitespace)) == StringRef(no_whitespace) for: There is no extra whitespace here == There is no extra whitespace here
- # Trim strings
- ok {test-number} - trim(StringRef(whitespace_at_both_ends)) == StringRef(no_whitespace) for: There is no extra whitespace here == There is no extra whitespace here
- # Unexpected exceptions can be translated
- not ok {test-number} - unexpected exception with message: '3.14'
- # Upcasting special member functions
- ok {test-number} - bptr->i == 3 for: 3 == 3
- # Upcasting special member functions
- ok {test-number} - bptr->i == 3 for: 3 == 3
- # Usage of AllMatch range matcher
- ok {test-number} - data, AllMatch(SizeIs(5)) for: { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } all match has size == 5
- # Usage of AllMatch range matcher
- ok {test-number} - data, !AllMatch(Contains(0) && Contains(1)) for: { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } not all match ( contains element 0 and contains element 1 )
- # Usage of AllMatch range matcher
- ok {test-number} - needs_adl, AllMatch( Predicate<int>( []( int elem ) { return elem < 6; } ) ) for: { 1, 2, 3, 4, 5 } all match matches undescribed predicate
- # Usage of AllMatch range matcher
- ok {test-number} - mocked, allMatch for: { 1, 2, 3, 4, 5 } all match matches undescribed predicate
- # Usage of AllMatch range matcher
- ok {test-number} - mocked.m_derefed[0] for: true
- # Usage of AllMatch range matcher
- ok {test-number} - mocked.m_derefed[1] for: true
- # Usage of AllMatch range matcher
- ok {test-number} - mocked.m_derefed[2] for: true
- # Usage of AllMatch range matcher
- ok {test-number} - mocked.m_derefed[3] for: true
- # Usage of AllMatch range matcher
- ok {test-number} - mocked.m_derefed[4] for: true
- # Usage of AllMatch range matcher
- ok {test-number} - mocked, !allMatch for: { 1, 2, 3, 4, 5 } not all match matches undescribed predicate
- # Usage of AllMatch range matcher
- ok {test-number} - mocked.m_derefed[0] for: true
- # Usage of AllMatch range matcher
- ok {test-number} - mocked.m_derefed[1] for: true
- # Usage of AllMatch range matcher
- ok {test-number} - mocked.m_derefed[2] for: true
- # Usage of AllMatch range matcher
- ok {test-number} - !(mocked.m_derefed[3]) for: !false
- # Usage of AllMatch range matcher
- ok {test-number} - !(mocked.m_derefed[4]) for: !false
- # Usage of AllTrue range matcher
- ok {test-number} - data, AllTrue() for: { true, true, true, true, true } contains only true
- # Usage of AllTrue range matcher
- ok {test-number} - data, AllTrue() for: { } contains only true
- # Usage of AllTrue range matcher
- ok {test-number} - data, !AllTrue() for: { true, true, false, true, true } not contains only true
- # Usage of AllTrue range matcher
- ok {test-number} - data, !AllTrue() for: { false, false, false, false, false } not contains only true
- # Usage of AllTrue range matcher
- ok {test-number} - data, AllTrue() for: { true, true, true, true, true } contains only true
- # Usage of AllTrue range matcher
- ok {test-number} - data, !AllTrue() for: { true, true, false, true, true } not contains only true
- # Usage of AllTrue range matcher
- ok {test-number} - data, !AllTrue() for: { false, false, false, false, false } not contains only true
- # Usage of AllTrue range matcher
- ok {test-number} - mocked, AllTrue() for: { true, true, true, true, true } contains only true
- # Usage of AllTrue range matcher
- ok {test-number} - mocked.m_derefed[0] for: true
- # Usage of AllTrue range matcher
- ok {test-number} - mocked.m_derefed[1] for: true
- # Usage of AllTrue range matcher
- ok {test-number} - mocked.m_derefed[2] for: true
- # Usage of AllTrue range matcher
- ok {test-number} - mocked.m_derefed[3] for: true
- # Usage of AllTrue range matcher
- ok {test-number} - mocked.m_derefed[4] for: true
- # Usage of AllTrue range matcher
- ok {test-number} - mocked, !AllTrue() for: { true, true, false, true, true } not contains only true
- # Usage of AllTrue range matcher
- ok {test-number} - mocked.m_derefed[0] for: true
- # Usage of AllTrue range matcher
- ok {test-number} - mocked.m_derefed[1] for: true
- # Usage of AllTrue range matcher
- ok {test-number} - mocked.m_derefed[2] for: true
- # Usage of AllTrue range matcher
- ok {test-number} - !(mocked.m_derefed[3]) for: !false
- # Usage of AllTrue range matcher
- ok {test-number} - !(mocked.m_derefed[4]) for: !false
- # Usage of AnyMatch range matcher
- ok {test-number} - data, AnyMatch(SizeIs(5)) for: { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } any match has size == 5
- # Usage of AnyMatch range matcher
- ok {test-number} - data, !AnyMatch(Contains(0) && Contains(10)) for: { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } not any match ( contains element 0 and contains element 10 )
- # Usage of AnyMatch range matcher
- ok {test-number} - needs_adl, AnyMatch( Predicate<int>( []( int elem ) { return elem < 3; } ) ) for: { 1, 2, 3, 4, 5 } any match matches undescribed predicate
- # Usage of AnyMatch range matcher
- ok {test-number} - mocked, !anyMatch for: { 1, 2, 3, 4, 5 } not any match matches undescribed predicate
- # Usage of AnyMatch range matcher
- ok {test-number} - mocked.m_derefed[0] for: true
- # Usage of AnyMatch range matcher
- ok {test-number} - mocked.m_derefed[1] for: true
- # Usage of AnyMatch range matcher
- ok {test-number} - mocked.m_derefed[2] for: true
- # Usage of AnyMatch range matcher
- ok {test-number} - mocked.m_derefed[3] for: true
- # Usage of AnyMatch range matcher
- ok {test-number} - mocked.m_derefed[4] for: true
- # Usage of AnyMatch range matcher
- ok {test-number} - mocked, anyMatch for: { 1, 2, 3, 4, 5 } any match matches undescribed predicate
- # Usage of AnyMatch range matcher
- ok {test-number} - mocked.m_derefed[0] for: true
- # Usage of AnyMatch range matcher
- ok {test-number} - !(mocked.m_derefed[1]) for: !false
- # Usage of AnyMatch range matcher
- ok {test-number} - !(mocked.m_derefed[2]) for: !false
- # Usage of AnyMatch range matcher
- ok {test-number} - !(mocked.m_derefed[3]) for: !false
- # Usage of AnyMatch range matcher
- ok {test-number} - !(mocked.m_derefed[4]) for: !false
- # Usage of AnyTrue range matcher
- ok {test-number} - data, AnyTrue() for: { true, true, true, true, true } contains at least one true
- # Usage of AnyTrue range matcher
- ok {test-number} - data, !AnyTrue() for: { } not contains at least one true
- # Usage of AnyTrue range matcher
- ok {test-number} - data, AnyTrue() for: { false, false, true, false, false } contains at least one true
- # Usage of AnyTrue range matcher
- ok {test-number} - data, !AnyTrue() for: { false, false, false, false, false } not contains at least one true
- # Usage of AnyTrue range matcher
- ok {test-number} - data, AnyTrue() for: { true, true, true, true, true } contains at least one true
- # Usage of AnyTrue range matcher
- ok {test-number} - data, AnyTrue() for: { false, false, true, false, false } contains at least one true
- # Usage of AnyTrue range matcher
- ok {test-number} - data, !AnyTrue() for: { false, false, false, false, false } not contains at least one true
- # Usage of AnyTrue range matcher
- ok {test-number} - mocked, AnyTrue() for: { false, false, false, false, true } contains at least one true
- # Usage of AnyTrue range matcher
- ok {test-number} - mocked.m_derefed[0] for: true
- # Usage of AnyTrue range matcher
- ok {test-number} - mocked.m_derefed[1] for: true
- # Usage of AnyTrue range matcher
- ok {test-number} - mocked.m_derefed[2] for: true
- # Usage of AnyTrue range matcher
- ok {test-number} - mocked.m_derefed[3] for: true
- # Usage of AnyTrue range matcher
- ok {test-number} - mocked.m_derefed[4] for: true
- # Usage of AnyTrue range matcher
- ok {test-number} - mocked, AnyTrue() for: { false, false, true, true, true } contains at least one true
- # Usage of AnyTrue range matcher
- ok {test-number} - mocked.m_derefed[0] for: true
- # Usage of AnyTrue range matcher
- ok {test-number} - mocked.m_derefed[1] for: true
- # Usage of AnyTrue range matcher
- ok {test-number} - mocked.m_derefed[2] for: true
- # Usage of AnyTrue range matcher
- ok {test-number} - !(mocked.m_derefed[3]) for: !false
- # Usage of AnyTrue range matcher
- ok {test-number} - !(mocked.m_derefed[4]) for: !false
- # Usage of NoneMatch range matcher
- ok {test-number} - data, NoneMatch(SizeIs(6)) for: { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } none match has size == 6
- # Usage of NoneMatch range matcher
- ok {test-number} - data, !NoneMatch(Contains(0) && Contains(1)) for: { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } not none match ( contains element 0 and contains element 1 )
- # Usage of NoneMatch range matcher
- ok {test-number} - needs_adl, NoneMatch( Predicate<int>( []( int elem ) { return elem > 6; } ) ) for: { 1, 2, 3, 4, 5 } none match matches undescribed predicate
- # Usage of NoneMatch range matcher
- ok {test-number} - mocked, noneMatch for: { 1, 2, 3, 4, 5 } none match matches undescribed predicate
- # Usage of NoneMatch range matcher
- ok {test-number} - mocked.m_derefed[0] for: true
- # Usage of NoneMatch range matcher
- ok {test-number} - mocked.m_derefed[1] for: true
- # Usage of NoneMatch range matcher
- ok {test-number} - mocked.m_derefed[2] for: true
- # Usage of NoneMatch range matcher
- ok {test-number} - mocked.m_derefed[3] for: true
- # Usage of NoneMatch range matcher
- ok {test-number} - mocked.m_derefed[4] for: true
- # Usage of NoneMatch range matcher
- ok {test-number} - mocked, !noneMatch for: { 1, 2, 3, 4, 5 } not none match matches undescribed predicate
- # Usage of NoneMatch range matcher
- ok {test-number} - mocked.m_derefed[0] for: true
- # Usage of NoneMatch range matcher
- ok {test-number} - !(mocked.m_derefed[1]) for: !false
- # Usage of NoneMatch range matcher
- ok {test-number} - !(mocked.m_derefed[2]) for: !false
- # Usage of NoneMatch range matcher
- ok {test-number} - !(mocked.m_derefed[3]) for: !false
- # Usage of NoneMatch range matcher
- ok {test-number} - !(mocked.m_derefed[4]) for: !false
- # Usage of NoneTrue range matcher
- ok {test-number} - data, !NoneTrue() for: { true, true, true, true, true } not contains no true
- # Usage of NoneTrue range matcher
- ok {test-number} - data, NoneTrue() for: { } contains no true
- # Usage of NoneTrue range matcher
- ok {test-number} - data, !NoneTrue() for: { false, false, true, false, false } not contains no true
- # Usage of NoneTrue range matcher
- ok {test-number} - data, NoneTrue() for: { false, false, false, false, false } contains no true
- # Usage of NoneTrue range matcher
- ok {test-number} - data, !NoneTrue() for: { true, true, true, true, true } not contains no true
- # Usage of NoneTrue range matcher
- ok {test-number} - data, !NoneTrue() for: { false, false, true, false, false } not contains no true
- # Usage of NoneTrue range matcher
- ok {test-number} - data, NoneTrue() for: { false, false, false, false, false } contains no true
- # Usage of NoneTrue range matcher
- ok {test-number} - mocked, NoneTrue() for: { false, false, false, false, false } contains no true
- # Usage of NoneTrue range matcher
- ok {test-number} - mocked.m_derefed[0] for: true
- # Usage of NoneTrue range matcher
- ok {test-number} - mocked.m_derefed[1] for: true
- # Usage of NoneTrue range matcher
- ok {test-number} - mocked.m_derefed[2] for: true
- # Usage of NoneTrue range matcher
- ok {test-number} - mocked.m_derefed[3] for: true
- # Usage of NoneTrue range matcher
- ok {test-number} - mocked.m_derefed[4] for: true
- # Usage of NoneTrue range matcher
- ok {test-number} - mocked, !NoneTrue() for: { false, false, true, true, true } not contains no true
- # Usage of NoneTrue range matcher
- ok {test-number} - mocked.m_derefed[0] for: true
- # Usage of NoneTrue range matcher
- ok {test-number} - mocked.m_derefed[1] for: true
- # Usage of NoneTrue range matcher
- ok {test-number} - mocked.m_derefed[2] for: true
- # Usage of NoneTrue range matcher
- ok {test-number} - !(mocked.m_derefed[3]) for: !false
- # Usage of NoneTrue range matcher
- ok {test-number} - !(mocked.m_derefed[4]) for: !false
- # Usage of the SizeIs range matcher
- ok {test-number} - empty_vec, SizeIs(0) for: { } has size == 0
- # Usage of the SizeIs range matcher
- ok {test-number} - empty_vec, !SizeIs(2) for: { } not has size == 2
- # Usage of the SizeIs range matcher
- ok {test-number} - empty_vec, SizeIs(Lt(2)) for: { } size matches is less than 2
- # Usage of the SizeIs range matcher
- ok {test-number} - arr, SizeIs(2) for: { 0, 0 } has size == 2
- # Usage of the SizeIs range matcher
- ok {test-number} - arr, SizeIs( Lt(3)) for: { 0, 0 } size matches is less than 3
- # Usage of the SizeIs range matcher
- ok {test-number} - arr, !SizeIs(!Lt(3)) for: { 0, 0 } not size matches not is less than 3
- # Usage of the SizeIs range matcher
- ok {test-number} - map, SizeIs(3) for: { {?}, {?}, {?} } has size == 3
- # Usage of the SizeIs range matcher
- ok {test-number} - unrelated::ADL_size{}, SizeIs(12) for: {?} has size == 12
- # Usage of the SizeIs range matcher
- ok {test-number} - has_size{}, SizeIs(13) for: {?} has size == 13
- # Use a custom approx
- ok {test-number} - d == approx( 1.23 ) for: 1.23 == Approx( 1.23 )
- # Use a custom approx
- ok {test-number} - d == approx( 1.22 ) for: 1.23 == Approx( 1.22 )
- # Use a custom approx
- ok {test-number} - d == approx( 1.24 ) for: 1.23 == Approx( 1.24 )
- # Use a custom approx
- ok {test-number} - d != approx( 1.25 ) for: 1.23 != Approx( 1.25 )
- # Use a custom approx
- ok {test-number} - approx( d ) == 1.23 for: Approx( 1.23 ) == 1.23
- # Use a custom approx
- ok {test-number} - approx( d ) == 1.22 for: Approx( 1.23 ) == 1.22
- # Use a custom approx
- ok {test-number} - approx( d ) == 1.24 for: Approx( 1.23 ) == 1.24
- # Use a custom approx
- ok {test-number} - approx( d ) != 1.25 for: Approx( 1.23 ) != 1.25
- # Variadic macros
- ok {test-number} - with 1 message: 'no assertions'
- # Vector Approx matcher
- ok {test-number} - empty, Approx( empty ) for: { } is approx: { }
- # Vector Approx matcher
- ok {test-number} - v1, Approx( v1 ) for: { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
- # Vector Approx matcher
- ok {test-number} - v1, Approx<double>( { 1., 2., 3. } ) for: { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
- # Vector Approx matcher
- ok {test-number} - v1, !Approx( temp ) for: { 1.0, 2.0, 3.0 } not is approx: { 1.0, 2.0, 3.0, 4.0 }
- # Vector Approx matcher
- ok {test-number} - v1, !Approx( v2 ) for: { 1.0, 2.0, 3.0 } not is approx: { 1.5, 2.5, 3.5 }
- # Vector Approx matcher
- ok {test-number} - v1, Approx( v2 ).margin( 0.5 ) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
- # Vector Approx matcher
- ok {test-number} - v1, Approx( v2 ).epsilon( 0.5 ) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
- # Vector Approx matcher
- ok {test-number} - v1, Approx( v2 ).epsilon( 0.1 ).scale( 500 ) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
- # Vector Approx matcher -- failing
- not ok {test-number} - empty, Approx( t1 ) for: { } is approx: { 1.0, 2.0 }
- # Vector Approx matcher -- failing
- not ok {test-number} - v1, Approx( v2 ) for: { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 }
- # Vector matchers
- ok {test-number} - v, VectorContains( 1 ) for: { 1, 2, 3 } Contains: 1
- # Vector matchers
- ok {test-number} - v, VectorContains( 2 ) for: { 1, 2, 3 } Contains: 2
- # Vector matchers
- ok {test-number} - v5, ( VectorContains<int, CustomAllocator<int>>( 2 ) ) for: { 1, 2, 3 } Contains: 2
- # Vector matchers
- ok {test-number} - v, Contains( v2 ) for: { 1, 2, 3 } Contains: { 1, 2 }
- # Vector matchers
- ok {test-number} - v, Contains<int>( { 1, 2 } ) for: { 1, 2, 3 } Contains: { 1, 2 }
- # Vector matchers
- ok {test-number} - v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) for: { 1, 2, 3 } Contains: { 1, 2 }
- # Vector matchers
- ok {test-number} - v, Contains( v2 ) for: { 1, 2, 3 } Contains: { 1, 2, 3 }
- # Vector matchers
- ok {test-number} - v, Contains( empty ) for: { 1, 2, 3 } Contains: { }
- # Vector matchers
- ok {test-number} - empty, Contains( empty ) for: { } Contains: { }
- # Vector matchers
- ok {test-number} - v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) for: { 1, 2, 3 } Contains: { 1, 2, 3 }
- # Vector matchers
- ok {test-number} - v5, Contains( v6 ) for: { 1, 2, 3 } Contains: { 1, 2 }
- # Vector matchers
- ok {test-number} - v, VectorContains( 1 ) && VectorContains( 2 ) for: { 1, 2, 3 } ( Contains: 1 and Contains: 2 )
- # Vector matchers
- ok {test-number} - v, Equals( v ) for: { 1, 2, 3 } Equals: { 1, 2, 3 }
- # Vector matchers
- ok {test-number} - empty, Equals( empty ) for: { } Equals: { }
- # Vector matchers
- ok {test-number} - v, Equals<int>( { 1, 2, 3 } ) for: { 1, 2, 3 } Equals: { 1, 2, 3 }
- # Vector matchers
- ok {test-number} - v, Equals( v2 ) for: { 1, 2, 3 } Equals: { 1, 2, 3 }
- # Vector matchers
- ok {test-number} - v5, ( Equals<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) for: { 1, 2, 3 } Equals: { 1, 2, 3 }
- # Vector matchers
- ok {test-number} - v5, Equals( v6 ) for: { 1, 2, 3 } Equals: { 1, 2, 3 }
- # Vector matchers
- ok {test-number} - v, UnorderedEquals( v ) for: { 1, 2, 3 } UnorderedEquals: { 1, 2, 3 }
- # Vector matchers
- ok {test-number} - v, UnorderedEquals<int>( { 3, 2, 1 } ) for: { 1, 2, 3 } UnorderedEquals: { 3, 2, 1 }
- # Vector matchers
- ok {test-number} - empty, UnorderedEquals( empty ) for: { } UnorderedEquals: { }
- # Vector matchers
- ok {test-number} - permuted, UnorderedEquals( v ) for: { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
- # Vector matchers
- ok {test-number} - permuted, UnorderedEquals( v ) for: { 2, 3, 1 } UnorderedEquals: { 1, 2, 3 }
- # Vector matchers
- ok {test-number} - v5, ( UnorderedEquals<int, std::allocator<int>, CustomAllocator<int>>( permuted ) ) for: { 1, 2, 3 } UnorderedEquals: { 2, 3, 1 }
- # Vector matchers
- ok {test-number} - v5_permuted, UnorderedEquals( v5 ) for: { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
- # Vector matchers that fail
- not ok {test-number} - v, VectorContains( -1 ) for: { 1, 2, 3 } Contains: -1
- # Vector matchers that fail
- not ok {test-number} - empty, VectorContains( 1 ) for: { } Contains: 1
- # Vector matchers that fail
- not ok {test-number} - empty, Contains( v ) for: { } Contains: { 1, 2, 3 }
- # Vector matchers that fail
- not ok {test-number} - v, Contains( v2 ) for: { 1, 2, 3 } Contains: { 1, 2, 4 }
- # Vector matchers that fail
- not ok {test-number} - v, Equals( v2 ) for: { 1, 2, 3 } Equals: { 1, 2 }
- # Vector matchers that fail
- not ok {test-number} - v2, Equals( v ) for: { 1, 2 } Equals: { 1, 2, 3 }
- # Vector matchers that fail
- not ok {test-number} - empty, Equals( v ) for: { } Equals: { 1, 2, 3 }
- # Vector matchers that fail
- not ok {test-number} - v, Equals( empty ) for: { 1, 2, 3 } Equals: { }
- # Vector matchers that fail
- not ok {test-number} - v, UnorderedEquals( empty ) for: { 1, 2, 3 } UnorderedEquals: { }
- # Vector matchers that fail
- not ok {test-number} - empty, UnorderedEquals( v ) for: { } UnorderedEquals: { 1, 2, 3 }
- # Vector matchers that fail
- not ok {test-number} - permuted, UnorderedEquals( v ) for: { 1, 3 } UnorderedEquals: { 1, 2, 3 }
- # Vector matchers that fail
- not ok {test-number} - permuted, UnorderedEquals( v ) for: { 3, 1 } UnorderedEquals: { 1, 2, 3 }
- # When checked exceptions are thrown they can be expected or unexpected
- ok {test-number} - thisThrows(), std::domain_error
- # When checked exceptions are thrown they can be expected or unexpected
- ok {test-number} - thisDoesntThrow()
- # When checked exceptions are thrown they can be expected or unexpected
- ok {test-number} - thisThrows()
- # When unchecked exceptions are thrown directly they are always failures
- not ok {test-number} - unexpected exception with message: 'unexpected exception'
- # When unchecked exceptions are thrown during a CHECK the test should continue
- not ok {test-number} - unexpected exception with message: 'expected exception'; expression was: thisThrows() == 0
- # When unchecked exceptions are thrown during a REQUIRE the test should abort fail
- not ok {test-number} - unexpected exception with message: 'expected exception'; expression was: thisThrows() == 0
- # When unchecked exceptions are thrown from functions they are always failures
- not ok {test-number} - unexpected exception with message: 'expected exception'; expression was: thisThrows() == 0
- # When unchecked exceptions are thrown from sections they are always failures
- not ok {test-number} - unexpected exception with message: 'unexpected exception'
- # X/level/0/a
- ok {test-number} -
- # X/level/0/b
- ok {test-number} -
- # X/level/1/a
- ok {test-number} -
- # X/level/1/b
- ok {test-number} -
- # XmlEncode
- ok {test-number} - encode( "normal string" ) == "normal string" for: "normal string" == "normal string"
- # XmlEncode
- ok {test-number} - encode( "" ) == "" for: "" == ""
- # XmlEncode
- ok {test-number} - encode( "smith & jones" ) == "smith & jones" for: "smith & jones" == "smith & jones"
- # XmlEncode
- ok {test-number} - encode( "smith < jones" ) == "smith < jones" for: "smith < jones" == "smith < jones"
- # XmlEncode
- ok {test-number} - encode( "smith > jones" ) == "smith > jones" for: "smith > jones" == "smith > jones"
- # XmlEncode
- ok {test-number} - encode( "smith ]]> jones" ) == "smith ]]> jones" for: "smith ]]> jones" == "smith ]]> jones"
- # XmlEncode
- ok {test-number} - encode( stringWithQuotes ) == stringWithQuotes for: "don't "quote" me on that" == "don't "quote" me on that"
- # XmlEncode
- ok {test-number} - encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't "quote" me on that" for: "don't "quote" me on that" == "don't "quote" me on that"
- # XmlEncode
- ok {test-number} - encode( "[\x01]" ) == "[\\x01]" for: "[\x01]" == "[\x01]"
- # XmlEncode
- ok {test-number} - encode( "[\x7F]" ) == "[\\x7F]" for: "[\x7F]" == "[\x7F]"
- # XmlWriter writes boolean attributes as true/false
- ok {test-number} - stream.str(), ContainsSubstring(R"(attr1="true")") && ContainsSubstring(R"(attr2="false")") for: "<?xml version="1.0" encoding="UTF-8"?> <Element1 attr1="true" attr2="false"/> " ( contains: "attr1="true"" and contains: "attr2="false"" )
- # analyse no analysis
- ok {test-number} - analysis.mean.point.count() == 23 for: 23.0 == 23
- # analyse no analysis
- ok {test-number} - analysis.mean.lower_bound.count() == 23 for: 23.0 == 23
- # analyse no analysis
- ok {test-number} - analysis.mean.upper_bound.count() == 23 for: 23.0 == 23
- # analyse no analysis
- ok {test-number} - analysis.standard_deviation.point.count() == 0 for: 0.0 == 0
- # analyse no analysis
- ok {test-number} - analysis.standard_deviation.lower_bound.count() == 0 for: 0.0 == 0
- # analyse no analysis
- ok {test-number} - analysis.standard_deviation.upper_bound.count() == 0 for: 0.0 == 0
- # analyse no analysis
- ok {test-number} - analysis.outliers.total() == 0 for: 0 == 0
- # analyse no analysis
- ok {test-number} - analysis.outliers.low_mild == 0 for: 0 == 0
- # analyse no analysis
- ok {test-number} - analysis.outliers.low_severe == 0 for: 0 == 0
- # analyse no analysis
- ok {test-number} - analysis.outliers.high_mild == 0 for: 0 == 0
- # analyse no analysis
- ok {test-number} - analysis.outliers.high_severe == 0 for: 0 == 0
- # analyse no analysis
- ok {test-number} - analysis.outliers.samples_seen == 0 for: 0 == 0
- # analyse no analysis
- ok {test-number} - analysis.outlier_variance == 0 for: 0.0 == 0
- # array<int, N> -> toString
- ok {test-number} - Catch::Detail::stringify( empty ) == "{ }" for: "{ }" == "{ }"
- # array<int, N> -> toString
- ok {test-number} - Catch::Detail::stringify( oneValue ) == "{ 42 }" for: "{ 42 }" == "{ 42 }"
- # array<int, N> -> toString
- ok {test-number} - Catch::Detail::stringify( twoValues ) == "{ 42, 250 }" for: "{ 42, 250 }" == "{ 42, 250 }"
- # benchmark function call
- ok {test-number} - model.started == 1 for: 1 == 1
- # benchmark function call
- ok {test-number} - model.finished == 0 for: 0 == 0
- # benchmark function call
- ok {test-number} - model.started == 1 for: 1 == 1
- # benchmark function call
- ok {test-number} - model.finished == 1 for: 1 == 1
- # benchmark function call
- ok {test-number} - called == 1 for: 1 == 1
- # benchmark function call
- ok {test-number} - model.started == 0 for: 0 == 0
- # benchmark function call
- ok {test-number} - model.finished == 0 for: 0 == 0
- # benchmark function call
- ok {test-number} - model.started == 0 for: 0 == 0
- # benchmark function call
- ok {test-number} - model.finished == 0 for: 0 == 0
- # benchmark function call
- ok {test-number} - called == 1 for: 1 == 1
- # boolean member
- ok {test-number} - obj.prop != 0 for: 0x<hex digits> != 0
- # checkedElse
- ok {test-number} - flag for: true
- # checkedElse
- ok {test-number} - testCheckedElse( true ) for: true
- # checkedElse, failing
- ok {test-number} - flag for: false # TODO
- # checkedElse, failing
- not ok {test-number} - testCheckedElse( false ) for: false
- # checkedIf
- ok {test-number} - flag for: true
- # checkedIf
- ok {test-number} - testCheckedIf( true ) for: true
- # checkedIf, failing
- ok {test-number} - flag for: false # TODO
- # checkedIf, failing
- not ok {test-number} - testCheckedIf( false ) for: false
- # classify_outliers
- ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
- # classify_outliers
- ok {test-number} - o.low_severe == los for: 0 == 0
- # classify_outliers
- ok {test-number} - o.low_mild == lom for: 0 == 0
- # classify_outliers
- ok {test-number} - o.high_mild == him for: 0 == 0
- # classify_outliers
- ok {test-number} - o.high_severe == his for: 0 == 0
- # classify_outliers
- ok {test-number} - o.total() == los + lom + him + his for: 0 == 0
- # classify_outliers
- ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
- # classify_outliers
- ok {test-number} - o.low_severe == los for: 1 == 1
- # classify_outliers
- ok {test-number} - o.low_mild == lom for: 0 == 0
- # classify_outliers
- ok {test-number} - o.high_mild == him for: 0 == 0
- # classify_outliers
- ok {test-number} - o.high_severe == his for: 0 == 0
- # classify_outliers
- ok {test-number} - o.total() == los + lom + him + his for: 1 == 1
- # classify_outliers
- ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
- # classify_outliers
- ok {test-number} - o.low_severe == los for: 0 == 0
- # classify_outliers
- ok {test-number} - o.low_mild == lom for: 1 == 1
- # classify_outliers
- ok {test-number} - o.high_mild == him for: 0 == 0
- # classify_outliers
- ok {test-number} - o.high_severe == his for: 0 == 0
- # classify_outliers
- ok {test-number} - o.total() == los + lom + him + his for: 1 == 1
- # classify_outliers
- ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
- # classify_outliers
- ok {test-number} - o.low_severe == los for: 0 == 0
- # classify_outliers
- ok {test-number} - o.low_mild == lom for: 0 == 0
- # classify_outliers
- ok {test-number} - o.high_mild == him for: 1 == 1
- # classify_outliers
- ok {test-number} - o.high_severe == his for: 0 == 0
- # classify_outliers
- ok {test-number} - o.total() == los + lom + him + his for: 1 == 1
- # classify_outliers
- ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
- # classify_outliers
- ok {test-number} - o.low_severe == los for: 0 == 0
- # classify_outliers
- ok {test-number} - o.low_mild == lom for: 0 == 0
- # classify_outliers
- ok {test-number} - o.high_mild == him for: 0 == 0
- # classify_outliers
- ok {test-number} - o.high_severe == his for: 1 == 1
- # classify_outliers
- ok {test-number} - o.total() == los + lom + him + his for: 1 == 1
- # classify_outliers
- ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
- # classify_outliers
- ok {test-number} - o.low_severe == los for: 1 == 1
- # classify_outliers
- ok {test-number} - o.low_mild == lom for: 0 == 0
- # classify_outliers
- ok {test-number} - o.high_mild == him for: 1 == 1
- # classify_outliers
- ok {test-number} - o.high_severe == his for: 0 == 0
- # classify_outliers
- ok {test-number} - o.total() == los + lom + him + his for: 2 == 2
- # comparisons between const int variables
- ok {test-number} - unsigned_char_var == 1 for: 1 == 1
- # comparisons between const int variables
- ok {test-number} - unsigned_short_var == 1 for: 1 == 1
- # comparisons between const int variables
- ok {test-number} - unsigned_int_var == 1 for: 1 == 1
- # comparisons between const int variables
- ok {test-number} - unsigned_long_var == 1 for: 1 == 1
- # comparisons between int variables
- ok {test-number} - long_var == unsigned_char_var for: 1 == 1
- # comparisons between int variables
- ok {test-number} - long_var == unsigned_short_var for: 1 == 1
- # comparisons between int variables
- ok {test-number} - long_var == unsigned_int_var for: 1 == 1
- # comparisons between int variables
- ok {test-number} - long_var == unsigned_long_var for: 1 == 1
- # convertToBits
- ok {test-number} - convertToBits( 0.f ) == 0 for: 0 == 0
- # convertToBits
- ok {test-number} - convertToBits( -0.f ) == ( 1ULL << 31 ) for: 2147483648 (0x<hex digits>) == 2147483648 (0x<hex digits>)
- # convertToBits
- ok {test-number} - convertToBits( 0. ) == 0 for: 0 == 0
- # convertToBits
- ok {test-number} - convertToBits( -0. ) == ( 1ULL << 63 ) for: 9223372036854775808 (0x<hex digits>) == 9223372036854775808 (0x<hex digits>)
- # convertToBits
- ok {test-number} - convertToBits( std::numeric_limits<float>::denorm_min() ) == 1 for: 1 == 1
- # convertToBits
- ok {test-number} - convertToBits( std::numeric_limits<double>::denorm_min() ) == 1 for: 1 == 1
- # empty tags are not allowed
- ok {test-number} - Catch::TestCaseInfo("", { "test with an empty tag", "[]" }, dummySourceLineInfo)
- # erfc_inv
- ok {test-number} - erfc_inv(1.103560) == Approx(-0.09203687623843015) for: -0.0920368762 == Approx( -0.0920368762 )
- # erfc_inv
- ok {test-number} - erfc_inv(1.067400) == Approx(-0.05980291115763361) for: -0.0598029112 == Approx( -0.0598029112 )
- # erfc_inv
- ok {test-number} - erfc_inv(0.050000) == Approx(1.38590382434967796) for: 1.3859038243 == Approx( 1.3859038243 )
- # estimate_clock_resolution
- ok {test-number} - res.mean.count() == rate for: 2000.0 == 2000 (0x<hex digits>)
- # estimate_clock_resolution
- ok {test-number} - res.outliers.total() == 0 for: 0 == 0
- # even more nested SECTION tests
- ok {test-number} -
- # even more nested SECTION tests
- ok {test-number} -
- # even more nested SECTION tests
- ok {test-number} -
- # is_unary_function
- ok {test-number} - with 1 message: 'Catch::Clara::Detail::is_unary_function<decltype(unary1)>::value'
- # is_unary_function
- ok {test-number} - with 1 message: 'Catch::Clara::Detail::is_unary_function<decltype(unary2)>::value'
- # is_unary_function
- ok {test-number} - with 1 message: 'Catch::Clara::Detail::is_unary_function<decltype(unary3)>::value'
- # is_unary_function
- ok {test-number} - with 1 message: 'Catch::Clara::Detail::is_unary_function<decltype(unary4)>::value'
- # is_unary_function
- ok {test-number} - with 1 message: 'Catch::Clara::Detail::is_unary_function<decltype(unary5)>::value'
- # is_unary_function
- ok {test-number} - with 1 message: 'Catch::Clara::Detail::is_unary_function<decltype(unary6)>::value'
- # is_unary_function
- ok {test-number} - with 1 message: '!(Catch::Clara::Detail::is_unary_function<decltype(binary1)>::value)'
- # is_unary_function
- ok {test-number} - with 1 message: '!(Catch::Clara::Detail::is_unary_function<decltype(binary2)>::value)'
- # is_unary_function
- ok {test-number} - with 1 message: '!(Catch::Clara::Detail::is_unary_function<decltype(nullary1)>::value)'
- # is_unary_function
- ok {test-number} - with 1 message: '!(Catch::Clara::Detail::is_unary_function<decltype(nullary2)>::value)'
- # is_unary_function
- ok {test-number} - with 1 message: '!(Catch::Clara::Detail::is_unary_function<int>::value)'
- # is_unary_function
- ok {test-number} - with 1 message: '!(Catch::Clara::Detail::is_unary_function<std::string const&>::value)'
- # just failure
- not ok {test-number} - explicitly with 1 message: 'Previous info should not be seen'
- # just failure after unscoped info
- not ok {test-number} - explicitly with 1 message: 'previous unscoped info SHOULD not be seen'
- # long long
- ok {test-number} - l == std::numeric_limits<long long>::max() for: 9223372036854775807 (0x<hex digits>) == 9223372036854775807 (0x<hex digits>)
- # looped SECTION tests
- not ok {test-number} - b > a for: 0 > 1
- # looped SECTION tests
- not ok {test-number} - b > a for: 1 > 1
- # looped SECTION tests
- ok {test-number} - b > a for: 2 > 1
- # looped SECTION tests
- ok {test-number} - b > a for: 3 > 1
- # looped SECTION tests
- ok {test-number} - b > a for: 4 > 1
- # looped SECTION tests
- ok {test-number} - b > a for: 5 > 1
- # looped SECTION tests
- ok {test-number} - b > a for: 6 > 1
- # looped SECTION tests
- ok {test-number} - b > a for: 7 > 1
- # looped SECTION tests
- ok {test-number} - b > a for: 8 > 1
- # looped SECTION tests
- ok {test-number} - b > a for: 9 > 1
- # looped tests
- not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[0] (1) is even'
- # looped tests
- not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[1] (1) is even'
- # looped tests
- ok {test-number} - ( fib[i] % 2 ) == 0 for: 0 == 0 with 1 message: 'Testing if fib[2] (2) is even'
- # looped tests
- not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[3] (3) is even'
- # looped tests
- not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[4] (5) is even'
- # looped tests
- ok {test-number} - ( fib[i] % 2 ) == 0 for: 0 == 0 with 1 message: 'Testing if fib[5] (8) is even'
- # looped tests
- not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[6] (13) is even'
- # looped tests
- not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[7] (21) is even'
- # makeStream recognizes %debug stream name
- ok {test-number} - Catch::makeStream( "%debug" )
- # make_unique reimplementation
- ok {test-number} - !(lval.has_moved) for: !false
- # make_unique reimplementation
- ok {test-number} - rval.has_moved for: true
- # make_unique reimplementation
- ok {test-number} - *ptr == std::tuple<int, double, int>{1, 2., 3} for: {?} == {?}
- # mean
- ok {test-number} - m == 19. for: 19.0 == 19.0
- # measure
- ok {test-number} - x == 17 for: 17 == 17
- # measure
- ok {test-number} - x == 23 for: 23 == 23
- # measure
- ok {test-number} - r.elapsed.count() == 42 for: 42 == 42
- # measure
- ok {test-number} - r.result == 23 for: 23 == 23
- # measure
- ok {test-number} - r.iterations == 1 for: 1 == 1
- # measure
- ok {test-number} - s.elapsed.count() == 69 for: 69 == 69
- # measure
- ok {test-number} - s.result == 17 for: 17 == 17
- # measure
- ok {test-number} - s.iterations == 1 for: 1 == 1
- # mix info, unscoped info and warning
- warning {test-number} - 'info' with 2 messages: 'unscoped info' and 'and warn may mix'
- # mix info, unscoped info and warning
- warning {test-number} - 'info' with 2 messages: 'unscoped info' and 'they are not cleared after warnings'
- # more nested SECTION tests
- not ok {test-number} - a == b for: 1 == 2
- # more nested SECTION tests
- ok {test-number} - a != b for: 1 != 2
- # more nested SECTION tests
- ok {test-number} - a < b for: 1 < 2
- # nested SECTION tests
- ok {test-number} - a != b for: 1 != 2
- # nested SECTION tests
- ok {test-number} - b != a for: 2 != 1
- # nested SECTION tests
- ok {test-number} - a != b for: 1 != 2
- # non streamable - with conv. op
- ok {test-number} - s == "7" for: "7" == "7"
- # non-copyable objects
- ok {test-number} - ti == typeid(int) for: {?} == {?}
- # normal_cdf
- ok {test-number} - normal_cdf(0.000000) == Approx(0.50000000000000000) for: 0.5 == Approx( 0.5 )
- # normal_cdf
- ok {test-number} - normal_cdf(1.000000) == Approx(0.84134474606854293) for: 0.8413447461 == Approx( 0.8413447461 )
- # normal_cdf
- ok {test-number} - normal_cdf(-1.000000) == Approx(0.15865525393145705) for: 0.1586552539 == Approx( 0.1586552539 )
- # normal_cdf
- ok {test-number} - normal_cdf(2.809729) == Approx(0.99752083845315409) for: 0.9975208385 == Approx( 0.9975208385 )
- # normal_cdf
- ok {test-number} - normal_cdf(-1.352570) == Approx(0.08809652095066035) for: 0.088096521 == Approx( 0.088096521 )
- # normal_quantile
- ok {test-number} - normal_quantile(0.551780) == Approx(0.13015979861484198) for: 0.1301597986 == Approx( 0.1301597986 )
- # normal_quantile
- ok {test-number} - normal_quantile(0.533700) == Approx(0.08457408802851875) for: 0.084574088 == Approx( 0.084574088 )
- # normal_quantile
- ok {test-number} - normal_quantile(0.025000) == Approx(-1.95996398454005449) for: -1.9599639845 == Approx( -1.9599639845 )
- # not allowed
- ok {test-number} -
- # not prints unscoped info from previous failures
- ok {test-number} - true with 1 message: 'this MAY be seen only for the FIRST assertion IF info is printed for passing assertions'
- # not prints unscoped info from previous failures
- ok {test-number} - true with 1 message: 'this MAY be seen only for the SECOND assertion IF info is printed for passing assertions'
- # not prints unscoped info from previous failures
- not ok {test-number} - false with 1 message: 'this SHOULD be seen'
- # null strings
- ok {test-number} - makeString( false ) != static_cast<char*>(0) for: "valid string" != {null string}
- # null strings
- ok {test-number} - makeString( true ) == static_cast<char*>(0) for: {null string} == {null string}
- # null_ptr
- ok {test-number} - ptr.get() == 0 for: 0 == 0
- # pair<pair<int,const char *,pair<std::string,int> > -> toString
- ok {test-number} - ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" for: "{ { 42, "Arthur" }, { "Ford", 24 } }" == "{ { 42, "Arthur" }, { "Ford", 24 } }"
- # parseEnums
- ok {test-number} - parseEnums( "" ), Equals( std::vector<Catch::StringRef>{} ) for: { } Equals: { }
- # parseEnums
- ok {test-number} - parseEnums( "ClassName::EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) for: { Value1 } Equals: { Value1 }
- # parseEnums
- ok {test-number} - parseEnums( "Value1" ), Equals( std::vector<Catch::StringRef>{"Value1"} ) for: { Value1 } Equals: { Value1 }
- # parseEnums
- ok {test-number} - parseEnums( "EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) for: { Value1 } Equals: { Value1 }
- # parseEnums
- ok {test-number} - parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2"} ) for: { Value1, Value2 } Equals: { Value1, Value2 }
- # parseEnums
- ok {test-number} - parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2, ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) for: { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
- # parseEnums
- ok {test-number} - parseEnums( "ClassName::EnumName::Value1,ClassName::EnumName::Value2 , ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) for: { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
- # pointer to class
- ok {test-number} - p == 0 for: 0 == 0
- # print unscoped info if passing unscoped info is printed
- ok {test-number} - true with 1 message: 'this MAY be seen IF info is printed for passing assertions'
- # prints unscoped info on failure
- not ok {test-number} - false with 2 messages: 'this SHOULD be seen' and 'this SHOULD also be seen'
- # prints unscoped info only for the first assertion
- not ok {test-number} - false with 1 message: 'this SHOULD be seen only ONCE'
- # prints unscoped info only for the first assertion
- ok {test-number} - true
- # prints unscoped info only for the first assertion
- ok {test-number} - true with 1 message: 'this MAY also be seen only ONCE IF info is printed for passing assertions'
- # prints unscoped info only for the first assertion
- ok {test-number} - true
- # random SECTION tests
- ok {test-number} - a != b for: 1 != 2
- # random SECTION tests
- ok {test-number} - b != a for: 2 != 1
- # random SECTION tests
- ok {test-number} - a != b for: 1 != 2
- # replaceInPlace
- ok {test-number} - Catch::replaceInPlace(letters, "b", "z") for: true
- # replaceInPlace
- ok {test-number} - letters == "azcdefcg" for: "azcdefcg" == "azcdefcg"
- # replaceInPlace
- ok {test-number} - Catch::replaceInPlace(letters, "c", "z") for: true
- # replaceInPlace
- ok {test-number} - letters == "abzdefzg" for: "abzdefzg" == "abzdefzg"
- # replaceInPlace
- ok {test-number} - Catch::replaceInPlace(letters, "a", "z") for: true
- # replaceInPlace
- ok {test-number} - letters == "zbcdefcg" for: "zbcdefcg" == "zbcdefcg"
- # replaceInPlace
- ok {test-number} - Catch::replaceInPlace(letters, "g", "z") for: true
- # replaceInPlace
- ok {test-number} - letters == "abcdefcz" for: "abcdefcz" == "abcdefcz"
- # replaceInPlace
- ok {test-number} - Catch::replaceInPlace(letters, letters, "replaced") for: true
- # replaceInPlace
- ok {test-number} - letters == "replaced" for: "replaced" == "replaced"
- # replaceInPlace
- ok {test-number} - !(Catch::replaceInPlace(letters, "x", "z")) for: !false
- # replaceInPlace
- ok {test-number} - letters == letters for: "abcdefcg" == "abcdefcg"
- # replaceInPlace
- ok {test-number} - Catch::replaceInPlace(s, "'", "|'") for: true
- # replaceInPlace
- ok {test-number} - s == "didn|'t" for: "didn|'t" == "didn|'t"
- # request an unknown %-starting stream fails
- ok {test-number} - Catch::makeStream( "%somestream" )
- # resolution
- ok {test-number} - res.size() == count for: 10 == 10
- # resolution
- ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
- # resolution
- ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
- # resolution
- ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
- # resolution
- ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
- # resolution
- ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
- # resolution
- ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
- # resolution
- ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
- # resolution
- ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
- # resolution
- ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
- # run_for_at_least, chronometer
- ok {test-number} - meter.runs() >= old_runs for: 1 >= 1
- # run_for_at_least, chronometer
- ok {test-number} - meter.runs() >= old_runs for: 2 >= 1
- # run_for_at_least, chronometer
- ok {test-number} - meter.runs() >= old_runs for: 4 >= 2
- # run_for_at_least, chronometer
- ok {test-number} - meter.runs() >= old_runs for: 8 >= 4
- # run_for_at_least, chronometer
- ok {test-number} - meter.runs() >= old_runs for: 16 >= 8
- # run_for_at_least, chronometer
- ok {test-number} - meter.runs() >= old_runs for: 32 >= 16
- # run_for_at_least, chronometer
- ok {test-number} - meter.runs() >= old_runs for: 64 >= 32
- # run_for_at_least, chronometer
- ok {test-number} - meter.runs() >= old_runs for: 128 >= 64
- # run_for_at_least, chronometer
- ok {test-number} - Timing.elapsed >= time for: 128 ns >= 100 ns
- # run_for_at_least, chronometer
- ok {test-number} - Timing.result == Timing.iterations + 17 for: 145 == 145
- # run_for_at_least, chronometer
- ok {test-number} - Timing.iterations >= time.count() for: 128 >= 100
- # run_for_at_least, int
- ok {test-number} - x >= old_x for: 1 >= 1
- # run_for_at_least, int
- ok {test-number} - x >= old_x for: 2 >= 1
- # run_for_at_least, int
- ok {test-number} - x >= old_x for: 4 >= 2
- # run_for_at_least, int
- ok {test-number} - x >= old_x for: 8 >= 4
- # run_for_at_least, int
- ok {test-number} - x >= old_x for: 16 >= 8
- # run_for_at_least, int
- ok {test-number} - x >= old_x for: 32 >= 16
- # run_for_at_least, int
- ok {test-number} - x >= old_x for: 64 >= 32
- # run_for_at_least, int
- ok {test-number} - x >= old_x for: 128 >= 64
- # run_for_at_least, int
- ok {test-number} - Timing.elapsed >= time for: 128 ns >= 100 ns
- # run_for_at_least, int
- ok {test-number} - Timing.result == Timing.iterations + 17 for: 145 == 145
- # run_for_at_least, int
- ok {test-number} - Timing.iterations >= time.count() for: 128 >= 100
- # send a single char to INFO
- not ok {test-number} - false with 1 message: '3'
- # sends information to INFO
- not ok {test-number} - false with 2 messages: 'hi' and 'i := 7'
- # shortened hide tags are split apart
- ok {test-number} - testcase.tags, VectorContains( Tag( "magic-tag" ) ) && VectorContains( Tag( "."_catch_sr ) ) for: { {?}, {?} } ( Contains: {?} and Contains: {?} )
- # splitString
- ok {test-number} - splitStringRef("", ','), Equals(std::vector<StringRef>()) for: { } Equals: { }
- # splitString
- ok {test-number} - splitStringRef("abc", ','), Equals(std::vector<StringRef>{"abc"}) for: { abc } Equals: { abc }
- # splitString
- ok {test-number} - splitStringRef("abc,def", ','), Equals(std::vector<StringRef>{"abc", "def"}) for: { abc, def } Equals: { abc, def }
- # stacks unscoped info in loops
- not ok {test-number} - false with 4 messages: 'Count 1 to 3...' and '1' and '2' and '3'
- # stacks unscoped info in loops
- not ok {test-number} - false with 4 messages: 'Count 4 to 6...' and '4' and '5' and '6'
- # startsWith
- ok {test-number} - !(startsWith("", 'c')) for: !false
- # startsWith
- ok {test-number} - startsWith(std::string("abc"), 'a') for: true
- # startsWith
- ok {test-number} - startsWith("def"_catch_sr, 'd') for: true
- # std::map is convertible string
- ok {test-number} - Catch::Detail::stringify( emptyMap ) == "{ }" for: "{ }" == "{ }"
- # std::map is convertible string
- ok {test-number} - Catch::Detail::stringify( map ) == "{ { \"one\", 1 } }" for: "{ { "one", 1 } }" == "{ { "one", 1 } }"
- # std::map is convertible string
- ok {test-number} - Catch::Detail::stringify( map ) == "{ { \"abc\", 1 }, { \"def\", 2 }, { \"ghi\", 3 } }" for: "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }" == "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
- # std::pair<int,const std::string> -> toString
- ok {test-number} - ::Catch::Detail::stringify(value) == "{ 34, \"xyzzy\" }" for: "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
- # std::pair<int,std::string> -> toString
- ok {test-number} - ::Catch::Detail::stringify( value ) == "{ 34, \"xyzzy\" }" for: "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
- # std::set is convertible string
- ok {test-number} - Catch::Detail::stringify( emptySet ) == "{ }" for: "{ }" == "{ }"
- # std::set is convertible string
- ok {test-number} - Catch::Detail::stringify( set ) == "{ \"one\" }" for: "{ "one" }" == "{ "one" }"
- # std::set is convertible string
- ok {test-number} - Catch::Detail::stringify( set ) == "{ \"abc\", \"def\", \"ghi\" }" for: "{ "abc", "def", "ghi" }" == "{ "abc", "def", "ghi" }"
- # std::vector<std::pair<std::string,int> > -> toString
- ok {test-number} - ::Catch::Detail::stringify( pr ) == "{ { \"green\", 55 } }" for: "{ { "green", 55 } }" == "{ { "green", 55 } }"
- # stdout and stderr streams have %-starting name
- ok {test-number} - Catch::makeStream( "%stderr" )->isConsole() for: true
- # stdout and stderr streams have %-starting name
- ok {test-number} - Catch::makeStream( "%stdout" )->isConsole() for: true
- # stringify ranges
- ok {test-number} - ::Catch::Detail::stringify(streamable_range{}) == "op<<(streamable_range)" for: "op<<(streamable_range)" == "op<<(streamable_range)"
- # stringify ranges
- ok {test-number} - ::Catch::Detail::stringify(stringmaker_range{}) == "stringmaker(streamable_range)" for: "stringmaker(streamable_range)" == "stringmaker(streamable_range)"
- # stringify ranges
- ok {test-number} - ::Catch::Detail::stringify(just_range{}) == "{ 1, 2, 3, 4 }" for: "{ 1, 2, 3, 4 }" == "{ 1, 2, 3, 4 }"
- # stringify ranges
- ok {test-number} - ::Catch::Detail::stringify(disabled_range{}) == "{?}" for: "{?}" == "{?}"
- # stringify( has_maker )
- ok {test-number} - ::Catch::Detail::stringify( item ) == "StringMaker<has_maker>" for: "StringMaker<has_maker>" == "StringMaker<has_maker>"
- # stringify( has_maker_and_operator )
- ok {test-number} - ::Catch::Detail::stringify( item ) == "StringMaker<has_maker_and_operator>" for: "StringMaker<has_maker_and_operator>" == "StringMaker<has_maker_and_operator>"
- # stringify( has_neither )
- ok {test-number} - ::Catch::Detail::stringify(item) == "{?}" for: "{?}" == "{?}"
- # stringify( has_operator )
- ok {test-number} - ::Catch::Detail::stringify( item ) == "operator<<( has_operator )" for: "operator<<( has_operator )" == "operator<<( has_operator )"
- # stringify( has_template_operator )
- ok {test-number} - ::Catch::Detail::stringify( item ) == "operator<<( has_template_operator )" for: "operator<<( has_template_operator )" == "operator<<( has_template_operator )"
- # stringify( vectors<has_maker> )
- ok {test-number} - ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker> }" for: "{ StringMaker<has_maker> }" == "{ StringMaker<has_maker> }"
- # stringify( vectors<has_maker_and_operator> )
- ok {test-number} - ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker_and_operator> }" for: "{ StringMaker<has_maker_and_operator> }" == "{ StringMaker<has_maker_and_operator> }"
- # stringify( vectors<has_operator> )
- ok {test-number} - ::Catch::Detail::stringify( v ) == "{ operator<<( has_operator ) }" for: "{ operator<<( has_operator ) }" == "{ operator<<( has_operator ) }"
- # strlen3
- ok {test-number} - data.str.size() == data.len for: 3 == 3
- # strlen3
- ok {test-number} - data.str.size() == data.len for: 3 == 3
- # strlen3
- ok {test-number} - data.str.size() == data.len for: 5 == 5
- # strlen3
- ok {test-number} - data.str.size() == data.len for: 4 == 4
- # tables
- ok {test-number} - strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) for: 5 == 5
- # tables
- ok {test-number} - strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) for: 6 == 6
- # tables
- ok {test-number} - strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) for: 5 == 5
- # tables
- ok {test-number} - strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) for: 6 == 6
- # tags with dots in later positions are not parsed as hidden
- ok {test-number} - testcase.tags.size() == 1 for: 1 == 1
- # tags with dots in later positions are not parsed as hidden
- ok {test-number} - testcase.tags[0].original == "magic.tag"_catch_sr for: magic.tag == magic.tag
- # thrown std::strings are translated
- not ok {test-number} - unexpected exception with message: 'Why would you throw a std::string?'
- # toString on const wchar_t const pointer returns the string contents
- ok {test-number} - result == "\"wide load\"" for: ""wide load"" == ""wide load""
- # toString on const wchar_t pointer returns the string contents
- ok {test-number} - result == "\"wide load\"" for: ""wide load"" == ""wide load""
- # toString on wchar_t const pointer returns the string contents
- ok {test-number} - result == "\"wide load\"" for: ""wide load"" == ""wide load""
- # toString on wchar_t returns the string contents
- ok {test-number} - result == "\"wide load\"" for: ""wide load"" == ""wide load""
- # toString(enum class w/operator<<)
- ok {test-number} - ::Catch::Detail::stringify(e0) == "E2/V0" for: "E2/V0" == "E2/V0"
- # toString(enum class w/operator<<)
- ok {test-number} - ::Catch::Detail::stringify(e1) == "E2/V1" for: "E2/V1" == "E2/V1"
- # toString(enum class w/operator<<)
- ok {test-number} - ::Catch::Detail::stringify(e3) == "Unknown enum value 10" for: "Unknown enum value 10" == "Unknown enum value 10"
- # toString(enum class)
- ok {test-number} - ::Catch::Detail::stringify(e0) == "0" for: "0" == "0"
- # toString(enum class)
- ok {test-number} - ::Catch::Detail::stringify(e1) == "1" for: "1" == "1"
- # toString(enum w/operator<<)
- ok {test-number} - ::Catch::Detail::stringify(e0) == "E2{0}" for: "E2{0}" == "E2{0}"
- # toString(enum w/operator<<)
- ok {test-number} - ::Catch::Detail::stringify(e1) == "E2{1}" for: "E2{1}" == "E2{1}"
- # toString(enum)
- ok {test-number} - ::Catch::Detail::stringify(e0) == "0" for: "0" == "0"
- # toString(enum)
- ok {test-number} - ::Catch::Detail::stringify(e1) == "1" for: "1" == "1"
- # tuple<>
- ok {test-number} - "{ }" == ::Catch::Detail::stringify(type{}) for: "{ }" == "{ }"
- # tuple<>
- ok {test-number} - "{ }" == ::Catch::Detail::stringify(value) for: "{ }" == "{ }"
- # tuple<float,int>
- ok {test-number} - "1.2f" == ::Catch::Detail::stringify(float(1.2)) for: "1.2f" == "1.2f"
- # tuple<float,int>
- ok {test-number} - "{ 1.2f, 0 }" == ::Catch::Detail::stringify(type{1.2f,0}) for: "{ 1.2f, 0 }" == "{ 1.2f, 0 }"
- # tuple<int>
- ok {test-number} - "{ 0 }" == ::Catch::Detail::stringify(type{0}) for: "{ 0 }" == "{ 0 }"
- # tuple<string,string>
- ok {test-number} - "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"}) for: "{ "hello", "world" }" == "{ "hello", "world" }"
- # tuple<tuple<int>,tuple<>,float>
- ok {test-number} - "{ { 42 }, { }, 1.2f }" == ::Catch::Detail::stringify(value) for: "{ { 42 }, { }, 1.2f }" == "{ { 42 }, { }, 1.2f }"
- # uniform samples
- ok {test-number} - e.point == 23 for: 23.0 == 23
- # uniform samples
- ok {test-number} - e.upper_bound == 23 for: 23.0 == 23
- # uniform samples
- ok {test-number} - e.lower_bound == 23 for: 23.0 == 23
- # uniform samples
- ok {test-number} - e.confidence_interval == 0.95 for: 0.95 == 0.95
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - !(ptr) for: !{?}
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - ptr.get() == 0 for: 0 == 0
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - ptr for: {?}
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - *ptr == 0 for: 0 == 0
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - ptr.get() == naked_ptr for: 0x<hex digits> == 0x<hex digits>
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - !(ptr) for: !{?}
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - ptr.get() == 0 for: 0 == 0
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - ptr for: {?}
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - *ptr == 0 for: 0 == 0
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - ptr.get() == naked_ptr for: 0x<hex digits> == 0x<hex digits>
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - ptr for: {?}
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - ptr.get() != 0 for: 0x<hex digits> != 0
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - *ptr == 2 for: 2 == 2
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - !(ptr) for: !{?}
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - ptr.get() == 0 for: 0 == 0
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - !(ptr1) for: !{?}
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - ptr2 for: {?}
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - *ptr2 == 1 for: 1 == 1
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - !(ptr2) for: !{?}
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - ptr1 for: {?}
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - *ptr1 == 2 for: 2 == 2
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - *ptr1 == 2 for: 2 == 2
- # unique_ptr reimplementation: basic functionality
- ok {test-number} - *ptr2 == 1 for: 1 == 1
- # vec<vec<string,alloc>> -> toString
- ok {test-number} - ::Catch::Detail::stringify(v) == "{ }" for: "{ }" == "{ }"
- # vec<vec<string,alloc>> -> toString
- ok {test-number} - ::Catch::Detail::stringify(v) == "{ { \"hello\" }, { \"world\" } }" for: "{ { "hello" }, { "world" } }" == "{ { "hello" }, { "world" } }"
- # vector<bool> -> toString
- ok {test-number} - ::Catch::Detail::stringify(bools) == "{ }" for: "{ }" == "{ }"
- # vector<bool> -> toString
- ok {test-number} - ::Catch::Detail::stringify(bools) == "{ true }" for: "{ true }" == "{ true }"
- # vector<bool> -> toString
- ok {test-number} - ::Catch::Detail::stringify(bools) == "{ true, false }" for: "{ true, false }" == "{ true, false }"
- # vector<int,allocator> -> toString
- ok {test-number} - ::Catch::Detail::stringify(vv) == "{ }" for: "{ }" == "{ }"
- # vector<int,allocator> -> toString
- ok {test-number} - ::Catch::Detail::stringify(vv) == "{ 42 }" for: "{ 42 }" == "{ 42 }"
- # vector<int,allocator> -> toString
- ok {test-number} - ::Catch::Detail::stringify(vv) == "{ 42, 250 }" for: "{ 42, 250 }" == "{ 42, 250 }"
- # vector<int> -> toString
- ok {test-number} - ::Catch::Detail::stringify(vv) == "{ }" for: "{ }" == "{ }"
- # vector<int> -> toString
- ok {test-number} - ::Catch::Detail::stringify(vv) == "{ 42 }" for: "{ 42 }" == "{ 42 }"
- # vector<int> -> toString
- ok {test-number} - ::Catch::Detail::stringify(vv) == "{ 42, 250 }" for: "{ 42, 250 }" == "{ 42, 250 }"
- # vector<string> -> toString
- ok {test-number} - ::Catch::Detail::stringify(vv) == "{ }" for: "{ }" == "{ }"
- # vector<string> -> toString
- ok {test-number} - ::Catch::Detail::stringify(vv) == "{ \"hello\" }" for: "{ "hello" }" == "{ "hello" }"
- # vector<string> -> toString
- ok {test-number} - ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }" for: "{ "hello", "world" }" == "{ "hello", "world" }"
- # vectors can be sized and resized
- ok {test-number} - v.size() == 5 for: 5 == 5
- # vectors can be sized and resized
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # vectors can be sized and resized
- ok {test-number} - v.size() == 10 for: 10 == 10
- # vectors can be sized and resized
- ok {test-number} - v.capacity() >= 10 for: 10 >= 10
- # vectors can be sized and resized
- ok {test-number} - v.size() == 5 for: 5 == 5
- # vectors can be sized and resized
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # vectors can be sized and resized
- ok {test-number} - v.size() == 0 for: 0 == 0
- # vectors can be sized and resized
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # vectors can be sized and resized
- ok {test-number} - v.capacity() == 0 for: 0 == 0
- # vectors can be sized and resized
- ok {test-number} - v.size() == 5 for: 5 == 5
- # vectors can be sized and resized
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # vectors can be sized and resized
- ok {test-number} - v.size() == 5 for: 5 == 5
- # vectors can be sized and resized
- ok {test-number} - v.capacity() >= 10 for: 10 >= 10
- # vectors can be sized and resized
- ok {test-number} - v.size() == 5 for: 5 == 5
- # vectors can be sized and resized
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # vectors can be sized and resized
- ok {test-number} - v.size() == 5 for: 5 == 5
- # vectors can be sized and resized
- ok {test-number} - v.capacity() >= 5 for: 5 >= 5
- # warmup
- ok {test-number} - (iterations * rate) > Catch::Benchmark::Detail::warmup_time.count() for: 160000000 (0x<hex digits>) > 100
- # warmup
- ok {test-number} - (end - start) > Catch::Benchmark::Detail::warmup_time for: 310016000 ns > 100 ms
- # weighted_average_quantile
- ok {test-number} - q1 == 14.5 for: 14.5 == 14.5
- # weighted_average_quantile
- ok {test-number} - med == 18. for: 18.0 == 18.0
- # weighted_average_quantile
- ok {test-number} - q3 == 23. for: 23.0 == 23.0
- # xmlentitycheck
- ok {test-number} -
- # xmlentitycheck
- ok {test-number} -
- 1..2299
|