console.std.approved.txt 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399
  1. Filters: ~[!nonportable]~[!benchmark]~[approvals] *
  2. Randomness seeded to: 1
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. <exe-name> is a Catch2 v<version> host application.
  5. Run with -? for options
  6. -------------------------------------------------------------------------------
  7. #1455 - INFO and WARN can start with a linebreak
  8. -------------------------------------------------------------------------------
  9. Message.tests.cpp:<line number>
  10. ...............................................................................
  11. Message.tests.cpp:<line number>: warning:
  12. This warning message starts with a linebreak
  13. This would not be caught previously
  14. Nor would this
  15. -------------------------------------------------------------------------------
  16. #1514: stderr/stdout is not captured in tests aborted by an exception
  17. -------------------------------------------------------------------------------
  18. Tricky.tests.cpp:<line number>
  19. ...............................................................................
  20. Tricky.tests.cpp:<line number>: FAILED:
  21. explicitly with message:
  22. 1514
  23. -------------------------------------------------------------------------------
  24. #748 - captures with unexpected exceptions
  25. outside assertions
  26. -------------------------------------------------------------------------------
  27. Exception.tests.cpp:<line number>
  28. ...............................................................................
  29. Exception.tests.cpp:<line number>: FAILED:
  30. due to unexpected exception with messages:
  31. answer := 42
  32. expected exception
  33. -------------------------------------------------------------------------------
  34. #748 - captures with unexpected exceptions
  35. inside REQUIRE_NOTHROW
  36. -------------------------------------------------------------------------------
  37. Exception.tests.cpp:<line number>
  38. ...............................................................................
  39. Exception.tests.cpp:<line number>: FAILED:
  40. REQUIRE_NOTHROW( thisThrows() )
  41. due to unexpected exception with messages:
  42. answer := 42
  43. expected exception
  44. -------------------------------------------------------------------------------
  45. #835 -- errno should not be touched by Catch2
  46. -------------------------------------------------------------------------------
  47. Misc.tests.cpp:<line number>
  48. ...............................................................................
  49. Misc.tests.cpp:<line number>: FAILED:
  50. CHECK( f() == 0 )
  51. with expansion:
  52. 1 == 0
  53. -------------------------------------------------------------------------------
  54. 'Not' checks that should fail
  55. -------------------------------------------------------------------------------
  56. Condition.tests.cpp:<line number>
  57. ...............................................................................
  58. Condition.tests.cpp:<line number>: FAILED:
  59. CHECK( false != false )
  60. Condition.tests.cpp:<line number>: FAILED:
  61. CHECK( true != true )
  62. Condition.tests.cpp:<line number>: FAILED:
  63. CHECK( !true )
  64. with expansion:
  65. false
  66. Condition.tests.cpp:<line number>: FAILED:
  67. CHECK_FALSE( true )
  68. with expansion:
  69. !true
  70. Condition.tests.cpp:<line number>: FAILED:
  71. CHECK( !trueValue )
  72. with expansion:
  73. false
  74. Condition.tests.cpp:<line number>: FAILED:
  75. CHECK_FALSE( trueValue )
  76. with expansion:
  77. !true
  78. Condition.tests.cpp:<line number>: FAILED:
  79. CHECK( !(1 == 1) )
  80. with expansion:
  81. false
  82. Condition.tests.cpp:<line number>: FAILED:
  83. CHECK_FALSE( 1 == 1 )
  84. -------------------------------------------------------------------------------
  85. A METHOD_AS_TEST_CASE based test run that fails
  86. -------------------------------------------------------------------------------
  87. Class.tests.cpp:<line number>
  88. ...............................................................................
  89. Class.tests.cpp:<line number>: FAILED:
  90. REQUIRE( s == "world" )
  91. with expansion:
  92. "hello" == "world"
  93. -------------------------------------------------------------------------------
  94. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo
  95. <float>
  96. -------------------------------------------------------------------------------
  97. Class.tests.cpp:<line number>
  98. ...............................................................................
  99. Class.tests.cpp:<line number>: FAILED:
  100. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
  101. with expansion:
  102. 0 == 1
  103. -------------------------------------------------------------------------------
  104. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo
  105. <int>
  106. -------------------------------------------------------------------------------
  107. Class.tests.cpp:<line number>
  108. ...............................................................................
  109. Class.tests.cpp:<line number>: FAILED:
  110. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
  111. with expansion:
  112. 0 == 1
  113. -------------------------------------------------------------------------------
  114. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector
  115. <float>
  116. -------------------------------------------------------------------------------
  117. Class.tests.cpp:<line number>
  118. ...............................................................................
  119. Class.tests.cpp:<line number>: FAILED:
  120. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
  121. with expansion:
  122. 0 == 1
  123. -------------------------------------------------------------------------------
  124. A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector
  125. <int>
  126. -------------------------------------------------------------------------------
  127. Class.tests.cpp:<line number>
  128. ...............................................................................
  129. Class.tests.cpp:<line number>: FAILED:
  130. REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
  131. with expansion:
  132. 0 == 1
  133. -------------------------------------------------------------------------------
  134. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails -
  135. Template_Foo_2<float, 6>
  136. -------------------------------------------------------------------------------
  137. Class.tests.cpp:<line number>
  138. ...............................................................................
  139. Class.tests.cpp:<line number>: FAILED:
  140. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
  141. with expansion:
  142. 6 < 2
  143. -------------------------------------------------------------------------------
  144. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails -
  145. Template_Foo_2<int, 2>
  146. -------------------------------------------------------------------------------
  147. Class.tests.cpp:<line number>
  148. ...............................................................................
  149. Class.tests.cpp:<line number>: FAILED:
  150. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
  151. with expansion:
  152. 2 < 2
  153. -------------------------------------------------------------------------------
  154. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array
  155. <float, 6>
  156. -------------------------------------------------------------------------------
  157. Class.tests.cpp:<line number>
  158. ...............................................................................
  159. Class.tests.cpp:<line number>: FAILED:
  160. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
  161. with expansion:
  162. 6 < 2
  163. -------------------------------------------------------------------------------
  164. A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array
  165. <int, 2>
  166. -------------------------------------------------------------------------------
  167. Class.tests.cpp:<line number>
  168. ...............................................................................
  169. Class.tests.cpp:<line number>: FAILED:
  170. REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
  171. with expansion:
  172. 2 < 2
  173. -------------------------------------------------------------------------------
  174. A TEMPLATE_TEST_CASE_METHOD based test run that fails - double
  175. -------------------------------------------------------------------------------
  176. Class.tests.cpp:<line number>
  177. ...............................................................................
  178. Class.tests.cpp:<line number>: FAILED:
  179. REQUIRE( Template_Fixture<TestType>::m_a == 2 )
  180. with expansion:
  181. 1.0 == 2
  182. -------------------------------------------------------------------------------
  183. A TEMPLATE_TEST_CASE_METHOD based test run that fails - float
  184. -------------------------------------------------------------------------------
  185. Class.tests.cpp:<line number>
  186. ...............................................................................
  187. Class.tests.cpp:<line number>: FAILED:
  188. REQUIRE( Template_Fixture<TestType>::m_a == 2 )
  189. with expansion:
  190. 1.0f == 2
  191. -------------------------------------------------------------------------------
  192. A TEMPLATE_TEST_CASE_METHOD based test run that fails - int
  193. -------------------------------------------------------------------------------
  194. Class.tests.cpp:<line number>
  195. ...............................................................................
  196. Class.tests.cpp:<line number>: FAILED:
  197. REQUIRE( Template_Fixture<TestType>::m_a == 2 )
  198. with expansion:
  199. 1 == 2
  200. -------------------------------------------------------------------------------
  201. A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 1
  202. -------------------------------------------------------------------------------
  203. Class.tests.cpp:<line number>
  204. ...............................................................................
  205. Class.tests.cpp:<line number>: FAILED:
  206. REQUIRE( Nttp_Fixture<V>::value == 0 )
  207. with expansion:
  208. 1 == 0
  209. -------------------------------------------------------------------------------
  210. A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 3
  211. -------------------------------------------------------------------------------
  212. Class.tests.cpp:<line number>
  213. ...............................................................................
  214. Class.tests.cpp:<line number>: FAILED:
  215. REQUIRE( Nttp_Fixture<V>::value == 0 )
  216. with expansion:
  217. 3 == 0
  218. -------------------------------------------------------------------------------
  219. A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 6
  220. -------------------------------------------------------------------------------
  221. Class.tests.cpp:<line number>
  222. ...............................................................................
  223. Class.tests.cpp:<line number>: FAILED:
  224. REQUIRE( Nttp_Fixture<V>::value == 0 )
  225. with expansion:
  226. 6 == 0
  227. -------------------------------------------------------------------------------
  228. A TEST_CASE_METHOD based test run that fails
  229. -------------------------------------------------------------------------------
  230. Class.tests.cpp:<line number>
  231. ...............................................................................
  232. Class.tests.cpp:<line number>: FAILED:
  233. REQUIRE( m_a == 2 )
  234. with expansion:
  235. 1 == 2
  236. -------------------------------------------------------------------------------
  237. A couple of nested sections followed by a failure
  238. -------------------------------------------------------------------------------
  239. Misc.tests.cpp:<line number>
  240. ...............................................................................
  241. Misc.tests.cpp:<line number>: FAILED:
  242. explicitly with message:
  243. to infinity and beyond
  244. -------------------------------------------------------------------------------
  245. A failing expression with a non streamable type is still captured
  246. -------------------------------------------------------------------------------
  247. Tricky.tests.cpp:<line number>
  248. ...............................................................................
  249. Tricky.tests.cpp:<line number>: FAILED:
  250. CHECK( &o1 == &o2 )
  251. with expansion:
  252. 0x<hex digits> == 0x<hex digits>
  253. Tricky.tests.cpp:<line number>: FAILED:
  254. CHECK( o1 == o2 )
  255. with expansion:
  256. {?} == {?}
  257. -------------------------------------------------------------------------------
  258. An unchecked exception reports the line of the last assertion
  259. -------------------------------------------------------------------------------
  260. Exception.tests.cpp:<line number>
  261. ...............................................................................
  262. Exception.tests.cpp:<line number>: FAILED:
  263. {Unknown expression after the reported line}
  264. due to unexpected exception with message:
  265. unexpected exception
  266. -------------------------------------------------------------------------------
  267. Contains string matcher
  268. -------------------------------------------------------------------------------
  269. Matchers.tests.cpp:<line number>
  270. ...............................................................................
  271. Matchers.tests.cpp:<line number>: FAILED:
  272. CHECK_THAT( testStringForMatching(), ContainsSubstring( "not there", Catch::CaseSensitive::No ) )
  273. with expansion:
  274. "this string contains 'abc' as a substring" contains: "not there" (case
  275. insensitive)
  276. Matchers.tests.cpp:<line number>: FAILED:
  277. CHECK_THAT( testStringForMatching(), ContainsSubstring( "STRING" ) )
  278. with expansion:
  279. "this string contains 'abc' as a substring" contains: "STRING"
  280. -------------------------------------------------------------------------------
  281. Custom exceptions can be translated when testing for nothrow
  282. -------------------------------------------------------------------------------
  283. Exception.tests.cpp:<line number>
  284. ...............................................................................
  285. Exception.tests.cpp:<line number>: FAILED:
  286. REQUIRE_NOTHROW( throwCustom() )
  287. due to unexpected exception with message:
  288. custom exception - not std
  289. -------------------------------------------------------------------------------
  290. Custom exceptions can be translated when testing for throwing as something else
  291. -------------------------------------------------------------------------------
  292. Exception.tests.cpp:<line number>
  293. ...............................................................................
  294. Exception.tests.cpp:<line number>: FAILED:
  295. REQUIRE_THROWS_AS( throwCustom(), std::exception )
  296. due to unexpected exception with message:
  297. custom exception - not std
  298. -------------------------------------------------------------------------------
  299. Custom std-exceptions can be custom translated
  300. -------------------------------------------------------------------------------
  301. Exception.tests.cpp:<line number>
  302. ...............................................................................
  303. Exception.tests.cpp:<line number>: FAILED:
  304. due to unexpected exception with message:
  305. custom std exception
  306. -------------------------------------------------------------------------------
  307. EndsWith string matcher
  308. -------------------------------------------------------------------------------
  309. Matchers.tests.cpp:<line number>
  310. ...............................................................................
  311. Matchers.tests.cpp:<line number>: FAILED:
  312. CHECK_THAT( testStringForMatching(), EndsWith( "Substring" ) )
  313. with expansion:
  314. "this string contains 'abc' as a substring" ends with: "Substring"
  315. Matchers.tests.cpp:<line number>: FAILED:
  316. CHECK_THAT( testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) )
  317. with expansion:
  318. "this string contains 'abc' as a substring" ends with: "this" (case
  319. insensitive)
  320. -------------------------------------------------------------------------------
  321. Equality checks that should fail
  322. -------------------------------------------------------------------------------
  323. Condition.tests.cpp:<line number>
  324. ...............................................................................
  325. Condition.tests.cpp:<line number>: FAILED:
  326. CHECK( data.int_seven == 6 )
  327. with expansion:
  328. 7 == 6
  329. Condition.tests.cpp:<line number>: FAILED:
  330. CHECK( data.int_seven == 8 )
  331. with expansion:
  332. 7 == 8
  333. Condition.tests.cpp:<line number>: FAILED:
  334. CHECK( data.int_seven == 0 )
  335. with expansion:
  336. 7 == 0
  337. Condition.tests.cpp:<line number>: FAILED:
  338. CHECK( data.float_nine_point_one == Approx( 9.11f ) )
  339. with expansion:
  340. 9.1f == Approx( 9.1099996567 )
  341. Condition.tests.cpp:<line number>: FAILED:
  342. CHECK( data.float_nine_point_one == Approx( 9.0f ) )
  343. with expansion:
  344. 9.1f == Approx( 9.0 )
  345. Condition.tests.cpp:<line number>: FAILED:
  346. CHECK( data.float_nine_point_one == Approx( 1 ) )
  347. with expansion:
  348. 9.1f == Approx( 1.0 )
  349. Condition.tests.cpp:<line number>: FAILED:
  350. CHECK( data.float_nine_point_one == Approx( 0 ) )
  351. with expansion:
  352. 9.1f == Approx( 0.0 )
  353. Condition.tests.cpp:<line number>: FAILED:
  354. CHECK( data.double_pi == Approx( 3.1415 ) )
  355. with expansion:
  356. 3.1415926535 == Approx( 3.1415 )
  357. Condition.tests.cpp:<line number>: FAILED:
  358. CHECK( data.str_hello == "goodbye" )
  359. with expansion:
  360. "hello" == "goodbye"
  361. Condition.tests.cpp:<line number>: FAILED:
  362. CHECK( data.str_hello == "hell" )
  363. with expansion:
  364. "hello" == "hell"
  365. Condition.tests.cpp:<line number>: FAILED:
  366. CHECK( data.str_hello == "hello1" )
  367. with expansion:
  368. "hello" == "hello1"
  369. Condition.tests.cpp:<line number>: FAILED:
  370. CHECK( data.str_hello.size() == 6 )
  371. with expansion:
  372. 5 == 6
  373. Condition.tests.cpp:<line number>: FAILED:
  374. CHECK( x == Approx( 1.301 ) )
  375. with expansion:
  376. 1.3 == Approx( 1.301 )
  377. -------------------------------------------------------------------------------
  378. Equals string matcher
  379. -------------------------------------------------------------------------------
  380. Matchers.tests.cpp:<line number>
  381. ...............................................................................
  382. Matchers.tests.cpp:<line number>: FAILED:
  383. CHECK_THAT( testStringForMatching(), Equals( "this string contains 'ABC' as a substring" ) )
  384. with expansion:
  385. "this string contains 'abc' as a substring" equals: "this string contains
  386. 'ABC' as a substring"
  387. Matchers.tests.cpp:<line number>: FAILED:
  388. CHECK_THAT( testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) )
  389. with expansion:
  390. "this string contains 'abc' as a substring" equals: "something else" (case
  391. insensitive)
  392. -------------------------------------------------------------------------------
  393. Exception matchers that fail
  394. No exception
  395. -------------------------------------------------------------------------------
  396. Matchers.tests.cpp:<line number>
  397. ...............................................................................
  398. Matchers.tests.cpp:<line number>: FAILED:
  399. CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } )
  400. because no exception was thrown where one was expected:
  401. Matchers.tests.cpp:<line number>: FAILED:
  402. REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } )
  403. because no exception was thrown where one was expected:
  404. -------------------------------------------------------------------------------
  405. Exception matchers that fail
  406. Type mismatch
  407. -------------------------------------------------------------------------------
  408. Matchers.tests.cpp:<line number>
  409. ...............................................................................
  410. Matchers.tests.cpp:<line number>: FAILED:
  411. CHECK_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } )
  412. due to unexpected exception with message:
  413. Unknown exception
  414. Matchers.tests.cpp:<line number>: FAILED:
  415. REQUIRE_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } )
  416. due to unexpected exception with message:
  417. Unknown exception
  418. -------------------------------------------------------------------------------
  419. Exception matchers that fail
  420. Contents are wrong
  421. -------------------------------------------------------------------------------
  422. Matchers.tests.cpp:<line number>
  423. ...............................................................................
  424. Matchers.tests.cpp:<line number>: FAILED:
  425. CHECK_THROWS_MATCHES( throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 } )
  426. with expansion:
  427. SpecialException::what special exception has value of 1
  428. Matchers.tests.cpp:<line number>: FAILED:
  429. REQUIRE_THROWS_MATCHES( throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 } )
  430. with expansion:
  431. SpecialException::what special exception has value of 1
  432. -------------------------------------------------------------------------------
  433. Expected exceptions that don't throw or unexpected exceptions fail the test
  434. -------------------------------------------------------------------------------
  435. Exception.tests.cpp:<line number>
  436. ...............................................................................
  437. Exception.tests.cpp:<line number>: FAILED:
  438. CHECK_THROWS_AS( thisThrows(), std::string )
  439. due to unexpected exception with message:
  440. expected exception
  441. Exception.tests.cpp:<line number>: FAILED:
  442. CHECK_THROWS_AS( thisDoesntThrow(), std::domain_error )
  443. because no exception was thrown where one was expected:
  444. Exception.tests.cpp:<line number>: FAILED:
  445. CHECK_NOTHROW( thisThrows() )
  446. due to unexpected exception with message:
  447. expected exception
  448. -------------------------------------------------------------------------------
  449. FAIL aborts the test
  450. -------------------------------------------------------------------------------
  451. Message.tests.cpp:<line number>
  452. ...............................................................................
  453. Message.tests.cpp:<line number>: FAILED:
  454. explicitly with message:
  455. This is a failure
  456. -------------------------------------------------------------------------------
  457. FAIL does not require an argument
  458. -------------------------------------------------------------------------------
  459. Message.tests.cpp:<line number>
  460. ...............................................................................
  461. Message.tests.cpp:<line number>: FAILED:
  462. -------------------------------------------------------------------------------
  463. FAIL_CHECK does not abort the test
  464. -------------------------------------------------------------------------------
  465. Message.tests.cpp:<line number>
  466. ...............................................................................
  467. Message.tests.cpp:<line number>: FAILED:
  468. explicitly with message:
  469. This is a failure
  470. Message.tests.cpp:<line number>: warning:
  471. This message appears in the output
  472. -------------------------------------------------------------------------------
  473. INFO and WARN do not abort tests
  474. -------------------------------------------------------------------------------
  475. Message.tests.cpp:<line number>
  476. ...............................................................................
  477. Message.tests.cpp:<line number>: warning:
  478. this is a warning
  479. -------------------------------------------------------------------------------
  480. INFO gets logged on failure
  481. -------------------------------------------------------------------------------
  482. Message.tests.cpp:<line number>
  483. ...............................................................................
  484. Message.tests.cpp:<line number>: FAILED:
  485. REQUIRE( a == 1 )
  486. with expansion:
  487. 2 == 1
  488. with messages:
  489. this message should be logged
  490. so should this
  491. -------------------------------------------------------------------------------
  492. INFO gets logged on failure, even if captured before successful assertions
  493. -------------------------------------------------------------------------------
  494. Message.tests.cpp:<line number>
  495. ...............................................................................
  496. Message.tests.cpp:<line number>: FAILED:
  497. CHECK( a == 1 )
  498. with expansion:
  499. 2 == 1
  500. with messages:
  501. this message may be logged later
  502. this message should be logged
  503. Message.tests.cpp:<line number>: FAILED:
  504. CHECK( a == 0 )
  505. with expansion:
  506. 2 == 0
  507. with messages:
  508. this message may be logged later
  509. this message should be logged
  510. and this, but later
  511. -------------------------------------------------------------------------------
  512. INFO is reset for each loop
  513. -------------------------------------------------------------------------------
  514. Message.tests.cpp:<line number>
  515. ...............................................................................
  516. Message.tests.cpp:<line number>: FAILED:
  517. REQUIRE( i < 10 )
  518. with expansion:
  519. 10 < 10
  520. with messages:
  521. current counter 10
  522. i := 10
  523. -------------------------------------------------------------------------------
  524. Inequality checks that should fail
  525. -------------------------------------------------------------------------------
  526. Condition.tests.cpp:<line number>
  527. ...............................................................................
  528. Condition.tests.cpp:<line number>: FAILED:
  529. CHECK( data.int_seven != 7 )
  530. with expansion:
  531. 7 != 7
  532. Condition.tests.cpp:<line number>: FAILED:
  533. CHECK( data.float_nine_point_one != Approx( 9.1f ) )
  534. with expansion:
  535. 9.1f != Approx( 9.1000003815 )
  536. Condition.tests.cpp:<line number>: FAILED:
  537. CHECK( data.double_pi != Approx( 3.1415926535 ) )
  538. with expansion:
  539. 3.1415926535 != Approx( 3.1415926535 )
  540. Condition.tests.cpp:<line number>: FAILED:
  541. CHECK( data.str_hello != "hello" )
  542. with expansion:
  543. "hello" != "hello"
  544. Condition.tests.cpp:<line number>: FAILED:
  545. CHECK( data.str_hello.size() != 5 )
  546. with expansion:
  547. 5 != 5
  548. -------------------------------------------------------------------------------
  549. Matchers can be composed with both && and || - failing
  550. -------------------------------------------------------------------------------
  551. Matchers.tests.cpp:<line number>
  552. ...............................................................................
  553. Matchers.tests.cpp:<line number>: FAILED:
  554. CHECK_THAT( testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) && ContainsSubstring( "random" ) )
  555. with expansion:
  556. "this string contains 'abc' as a substring" ( ( contains: "string" or
  557. contains: "different" ) and contains: "random" )
  558. -------------------------------------------------------------------------------
  559. Matchers can be negated (Not) with the ! operator - failing
  560. -------------------------------------------------------------------------------
  561. Matchers.tests.cpp:<line number>
  562. ...............................................................................
  563. Matchers.tests.cpp:<line number>: FAILED:
  564. CHECK_THAT( testStringForMatching(), !ContainsSubstring( "substring" ) )
  565. with expansion:
  566. "this string contains 'abc' as a substring" not contains: "substring"
  567. -------------------------------------------------------------------------------
  568. Mayfail test case with nested sections
  569. A
  570. 1
  571. -------------------------------------------------------------------------------
  572. Condition.tests.cpp:<line number>
  573. ...............................................................................
  574. Condition.tests.cpp:<line number>: FAILED:
  575. -------------------------------------------------------------------------------
  576. Mayfail test case with nested sections
  577. A
  578. 2
  579. -------------------------------------------------------------------------------
  580. Condition.tests.cpp:<line number>
  581. ...............................................................................
  582. Condition.tests.cpp:<line number>: FAILED:
  583. -------------------------------------------------------------------------------
  584. Mayfail test case with nested sections
  585. B
  586. 1
  587. -------------------------------------------------------------------------------
  588. Condition.tests.cpp:<line number>
  589. ...............................................................................
  590. Condition.tests.cpp:<line number>: FAILED:
  591. -------------------------------------------------------------------------------
  592. Mayfail test case with nested sections
  593. B
  594. 2
  595. -------------------------------------------------------------------------------
  596. Condition.tests.cpp:<line number>
  597. ...............................................................................
  598. Condition.tests.cpp:<line number>: FAILED:
  599. -------------------------------------------------------------------------------
  600. Mismatching exception messages failing the test
  601. -------------------------------------------------------------------------------
  602. Exception.tests.cpp:<line number>
  603. ...............................................................................
  604. Exception.tests.cpp:<line number>: FAILED:
  605. REQUIRE_THROWS_WITH( thisThrows(), "should fail" )
  606. with expansion:
  607. "expected exception" equals: "should fail"
  608. -------------------------------------------------------------------------------
  609. Nice descriptive name
  610. -------------------------------------------------------------------------------
  611. Misc.tests.cpp:<line number>
  612. ...............................................................................
  613. Misc.tests.cpp:<line number>: warning:
  614. This one ran
  615. -------------------------------------------------------------------------------
  616. Non-std exceptions can be translated
  617. -------------------------------------------------------------------------------
  618. Exception.tests.cpp:<line number>
  619. ...............................................................................
  620. Exception.tests.cpp:<line number>: FAILED:
  621. due to unexpected exception with message:
  622. custom exception
  623. -------------------------------------------------------------------------------
  624. Ordering comparison checks that should fail
  625. -------------------------------------------------------------------------------
  626. Condition.tests.cpp:<line number>
  627. ...............................................................................
  628. Condition.tests.cpp:<line number>: FAILED:
  629. CHECK( data.int_seven > 7 )
  630. with expansion:
  631. 7 > 7
  632. Condition.tests.cpp:<line number>: FAILED:
  633. CHECK( data.int_seven < 7 )
  634. with expansion:
  635. 7 < 7
  636. Condition.tests.cpp:<line number>: FAILED:
  637. CHECK( data.int_seven > 8 )
  638. with expansion:
  639. 7 > 8
  640. Condition.tests.cpp:<line number>: FAILED:
  641. CHECK( data.int_seven < 6 )
  642. with expansion:
  643. 7 < 6
  644. Condition.tests.cpp:<line number>: FAILED:
  645. CHECK( data.int_seven < 0 )
  646. with expansion:
  647. 7 < 0
  648. Condition.tests.cpp:<line number>: FAILED:
  649. CHECK( data.int_seven < -1 )
  650. with expansion:
  651. 7 < -1
  652. Condition.tests.cpp:<line number>: FAILED:
  653. CHECK( data.int_seven >= 8 )
  654. with expansion:
  655. 7 >= 8
  656. Condition.tests.cpp:<line number>: FAILED:
  657. CHECK( data.int_seven <= 6 )
  658. with expansion:
  659. 7 <= 6
  660. Condition.tests.cpp:<line number>: FAILED:
  661. CHECK( data.float_nine_point_one < 9 )
  662. with expansion:
  663. 9.1f < 9
  664. Condition.tests.cpp:<line number>: FAILED:
  665. CHECK( data.float_nine_point_one > 10 )
  666. with expansion:
  667. 9.1f > 10
  668. Condition.tests.cpp:<line number>: FAILED:
  669. CHECK( data.float_nine_point_one > 9.2 )
  670. with expansion:
  671. 9.1f > 9.2
  672. Condition.tests.cpp:<line number>: FAILED:
  673. CHECK( data.str_hello > "hello" )
  674. with expansion:
  675. "hello" > "hello"
  676. Condition.tests.cpp:<line number>: FAILED:
  677. CHECK( data.str_hello < "hello" )
  678. with expansion:
  679. "hello" < "hello"
  680. Condition.tests.cpp:<line number>: FAILED:
  681. CHECK( data.str_hello > "hellp" )
  682. with expansion:
  683. "hello" > "hellp"
  684. Condition.tests.cpp:<line number>: FAILED:
  685. CHECK( data.str_hello > "z" )
  686. with expansion:
  687. "hello" > "z"
  688. Condition.tests.cpp:<line number>: FAILED:
  689. CHECK( data.str_hello < "hellm" )
  690. with expansion:
  691. "hello" < "hellm"
  692. Condition.tests.cpp:<line number>: FAILED:
  693. CHECK( data.str_hello < "a" )
  694. with expansion:
  695. "hello" < "a"
  696. Condition.tests.cpp:<line number>: FAILED:
  697. CHECK( data.str_hello >= "z" )
  698. with expansion:
  699. "hello" >= "z"
  700. Condition.tests.cpp:<line number>: FAILED:
  701. CHECK( data.str_hello <= "a" )
  702. with expansion:
  703. "hello" <= "a"
  704. -------------------------------------------------------------------------------
  705. Output from all sections is reported
  706. one
  707. -------------------------------------------------------------------------------
  708. Message.tests.cpp:<line number>
  709. ...............................................................................
  710. Message.tests.cpp:<line number>: FAILED:
  711. explicitly with message:
  712. Message from section one
  713. -------------------------------------------------------------------------------
  714. Output from all sections is reported
  715. two
  716. -------------------------------------------------------------------------------
  717. Message.tests.cpp:<line number>
  718. ...............................................................................
  719. Message.tests.cpp:<line number>: FAILED:
  720. explicitly with message:
  721. Message from section two
  722. -------------------------------------------------------------------------------
  723. Reconstruction should be based on stringification: #914
  724. -------------------------------------------------------------------------------
  725. Decomposition.tests.cpp:<line number>
  726. ...............................................................................
  727. Decomposition.tests.cpp:<line number>: FAILED:
  728. CHECK( truthy(false) )
  729. with expansion:
  730. Hey, its truthy!
  731. -------------------------------------------------------------------------------
  732. Regex string matcher
  733. -------------------------------------------------------------------------------
  734. Matchers.tests.cpp:<line number>
  735. ...............................................................................
  736. Matchers.tests.cpp:<line number>: FAILED:
  737. CHECK_THAT( testStringForMatching(), Matches( "this STRING contains 'abc' as a substring" ) )
  738. with expansion:
  739. "this string contains 'abc' as a substring" matches "this STRING contains
  740. 'abc' as a substring" case sensitively
  741. Matchers.tests.cpp:<line number>: FAILED:
  742. CHECK_THAT( testStringForMatching(), Matches( "contains 'abc' as a substring" ) )
  743. with expansion:
  744. "this string contains 'abc' as a substring" matches "contains 'abc' as a
  745. substring" case sensitively
  746. Matchers.tests.cpp:<line number>: FAILED:
  747. CHECK_THAT( testStringForMatching(), Matches( "this string contains 'abc' as a" ) )
  748. with expansion:
  749. "this string contains 'abc' as a substring" matches "this string contains
  750. 'abc' as a" case sensitively
  751. A string sent directly to stdout
  752. A string sent directly to stderr
  753. A string sent to stderr via clog
  754. Message from section one
  755. Message from section two
  756. -------------------------------------------------------------------------------
  757. StartsWith string matcher
  758. -------------------------------------------------------------------------------
  759. Matchers.tests.cpp:<line number>
  760. ...............................................................................
  761. Matchers.tests.cpp:<line number>: FAILED:
  762. CHECK_THAT( testStringForMatching(), StartsWith( "This String" ) )
  763. with expansion:
  764. "this string contains 'abc' as a substring" starts with: "This String"
  765. Matchers.tests.cpp:<line number>: FAILED:
  766. CHECK_THAT( testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) )
  767. with expansion:
  768. "this string contains 'abc' as a substring" starts with: "string" (case
  769. insensitive)
  770. -------------------------------------------------------------------------------
  771. Tabs and newlines show in output
  772. -------------------------------------------------------------------------------
  773. Misc.tests.cpp:<line number>
  774. ...............................................................................
  775. Misc.tests.cpp:<line number>: FAILED:
  776. CHECK( s1 == s2 )
  777. with expansion:
  778. "if ($b == 10) {
  779. $a = 20;
  780. }"
  781. ==
  782. "if ($b == 10) {
  783. $a = 20;
  784. }
  785. "
  786. -------------------------------------------------------------------------------
  787. Testing checked-if 2
  788. -------------------------------------------------------------------------------
  789. Misc.tests.cpp:<line number>
  790. ...............................................................................
  791. Misc.tests.cpp:<line number>: FAILED:
  792. -------------------------------------------------------------------------------
  793. Testing checked-if 3
  794. -------------------------------------------------------------------------------
  795. Misc.tests.cpp:<line number>
  796. ...............................................................................
  797. Misc.tests.cpp:<line number>: FAILED:
  798. -------------------------------------------------------------------------------
  799. Thrown string literals are translated
  800. -------------------------------------------------------------------------------
  801. Exception.tests.cpp:<line number>
  802. ...............................................................................
  803. Exception.tests.cpp:<line number>: FAILED:
  804. due to unexpected exception with message:
  805. For some reason someone is throwing a string literal!
  806. -------------------------------------------------------------------------------
  807. Unexpected exceptions can be translated
  808. -------------------------------------------------------------------------------
  809. Exception.tests.cpp:<line number>
  810. ...............................................................................
  811. Exception.tests.cpp:<line number>: FAILED:
  812. due to unexpected exception with message:
  813. 3.14
  814. -------------------------------------------------------------------------------
  815. Vector Approx matcher -- failing
  816. Empty and non empty vectors are not approx equal
  817. -------------------------------------------------------------------------------
  818. Matchers.tests.cpp:<line number>
  819. ...............................................................................
  820. Matchers.tests.cpp:<line number>: FAILED:
  821. CHECK_THAT( empty, Approx( t1 ) )
  822. with expansion:
  823. { } is approx: { 1.0, 2.0 }
  824. -------------------------------------------------------------------------------
  825. Vector Approx matcher -- failing
  826. Just different vectors
  827. -------------------------------------------------------------------------------
  828. Matchers.tests.cpp:<line number>
  829. ...............................................................................
  830. Matchers.tests.cpp:<line number>: FAILED:
  831. CHECK_THAT( v1, Approx( v2 ) )
  832. with expansion:
  833. { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 }
  834. -------------------------------------------------------------------------------
  835. Vector matchers that fail
  836. Contains (element)
  837. -------------------------------------------------------------------------------
  838. Matchers.tests.cpp:<line number>
  839. ...............................................................................
  840. Matchers.tests.cpp:<line number>: FAILED:
  841. CHECK_THAT( v, VectorContains( -1 ) )
  842. with expansion:
  843. { 1, 2, 3 } Contains: -1
  844. Matchers.tests.cpp:<line number>: FAILED:
  845. CHECK_THAT( empty, VectorContains( 1 ) )
  846. with expansion:
  847. { } Contains: 1
  848. -------------------------------------------------------------------------------
  849. Vector matchers that fail
  850. Contains (vector)
  851. -------------------------------------------------------------------------------
  852. Matchers.tests.cpp:<line number>
  853. ...............................................................................
  854. Matchers.tests.cpp:<line number>: FAILED:
  855. CHECK_THAT( empty, Contains( v ) )
  856. with expansion:
  857. { } Contains: { 1, 2, 3 }
  858. Matchers.tests.cpp:<line number>: FAILED:
  859. CHECK_THAT( v, Contains( v2 ) )
  860. with expansion:
  861. { 1, 2, 3 } Contains: { 1, 2, 4 }
  862. -------------------------------------------------------------------------------
  863. Vector matchers that fail
  864. Equals
  865. -------------------------------------------------------------------------------
  866. Matchers.tests.cpp:<line number>
  867. ...............................................................................
  868. Matchers.tests.cpp:<line number>: FAILED:
  869. CHECK_THAT( v, Equals( v2 ) )
  870. with expansion:
  871. { 1, 2, 3 } Equals: { 1, 2 }
  872. Matchers.tests.cpp:<line number>: FAILED:
  873. CHECK_THAT( v2, Equals( v ) )
  874. with expansion:
  875. { 1, 2 } Equals: { 1, 2, 3 }
  876. Matchers.tests.cpp:<line number>: FAILED:
  877. CHECK_THAT( empty, Equals( v ) )
  878. with expansion:
  879. { } Equals: { 1, 2, 3 }
  880. Matchers.tests.cpp:<line number>: FAILED:
  881. CHECK_THAT( v, Equals( empty ) )
  882. with expansion:
  883. { 1, 2, 3 } Equals: { }
  884. -------------------------------------------------------------------------------
  885. Vector matchers that fail
  886. UnorderedEquals
  887. -------------------------------------------------------------------------------
  888. Matchers.tests.cpp:<line number>
  889. ...............................................................................
  890. Matchers.tests.cpp:<line number>: FAILED:
  891. CHECK_THAT( v, UnorderedEquals( empty ) )
  892. with expansion:
  893. { 1, 2, 3 } UnorderedEquals: { }
  894. Matchers.tests.cpp:<line number>: FAILED:
  895. CHECK_THAT( empty, UnorderedEquals( v ) )
  896. with expansion:
  897. { } UnorderedEquals: { 1, 2, 3 }
  898. Matchers.tests.cpp:<line number>: FAILED:
  899. CHECK_THAT( permuted, UnorderedEquals( v ) )
  900. with expansion:
  901. { 1, 3 } UnorderedEquals: { 1, 2, 3 }
  902. Matchers.tests.cpp:<line number>: FAILED:
  903. CHECK_THAT( permuted, UnorderedEquals( v ) )
  904. with expansion:
  905. { 3, 1 } UnorderedEquals: { 1, 2, 3 }
  906. -------------------------------------------------------------------------------
  907. When unchecked exceptions are thrown directly they are always failures
  908. -------------------------------------------------------------------------------
  909. Exception.tests.cpp:<line number>
  910. ...............................................................................
  911. Exception.tests.cpp:<line number>: FAILED:
  912. due to unexpected exception with message:
  913. unexpected exception
  914. -------------------------------------------------------------------------------
  915. When unchecked exceptions are thrown during a CHECK the test should continue
  916. -------------------------------------------------------------------------------
  917. Exception.tests.cpp:<line number>
  918. ...............................................................................
  919. Exception.tests.cpp:<line number>: FAILED:
  920. CHECK( thisThrows() == 0 )
  921. due to unexpected exception with message:
  922. expected exception
  923. -------------------------------------------------------------------------------
  924. When unchecked exceptions are thrown during a REQUIRE the test should abort
  925. fail
  926. -------------------------------------------------------------------------------
  927. Exception.tests.cpp:<line number>
  928. ...............................................................................
  929. Exception.tests.cpp:<line number>: FAILED:
  930. REQUIRE( thisThrows() == 0 )
  931. due to unexpected exception with message:
  932. expected exception
  933. -------------------------------------------------------------------------------
  934. When unchecked exceptions are thrown from functions they are always failures
  935. -------------------------------------------------------------------------------
  936. Exception.tests.cpp:<line number>
  937. ...............................................................................
  938. Exception.tests.cpp:<line number>: FAILED:
  939. CHECK( thisThrows() == 0 )
  940. due to unexpected exception with message:
  941. expected exception
  942. -------------------------------------------------------------------------------
  943. When unchecked exceptions are thrown from sections they are always failures
  944. section name
  945. -------------------------------------------------------------------------------
  946. Exception.tests.cpp:<line number>
  947. ...............................................................................
  948. Exception.tests.cpp:<line number>: FAILED:
  949. due to unexpected exception with message:
  950. unexpected exception
  951. -------------------------------------------------------------------------------
  952. checkedElse, failing
  953. -------------------------------------------------------------------------------
  954. Misc.tests.cpp:<line number>
  955. ...............................................................................
  956. Misc.tests.cpp:<line number>: FAILED:
  957. REQUIRE( testCheckedElse( false ) )
  958. with expansion:
  959. false
  960. -------------------------------------------------------------------------------
  961. checkedIf, failing
  962. -------------------------------------------------------------------------------
  963. Misc.tests.cpp:<line number>
  964. ...............................................................................
  965. Misc.tests.cpp:<line number>: FAILED:
  966. REQUIRE( testCheckedIf( false ) )
  967. with expansion:
  968. false
  969. loose text artifact
  970. -------------------------------------------------------------------------------
  971. just failure
  972. -------------------------------------------------------------------------------
  973. Message.tests.cpp:<line number>
  974. ...............................................................................
  975. Message.tests.cpp:<line number>: FAILED:
  976. explicitly with message:
  977. Previous info should not be seen
  978. -------------------------------------------------------------------------------
  979. just failure after unscoped info
  980. -------------------------------------------------------------------------------
  981. Message.tests.cpp:<line number>
  982. ...............................................................................
  983. Message.tests.cpp:<line number>: FAILED:
  984. explicitly with message:
  985. previous unscoped info SHOULD not be seen
  986. -------------------------------------------------------------------------------
  987. looped SECTION tests
  988. b is currently: 0
  989. -------------------------------------------------------------------------------
  990. Misc.tests.cpp:<line number>
  991. ...............................................................................
  992. Misc.tests.cpp:<line number>: FAILED:
  993. CHECK( b > a )
  994. with expansion:
  995. 0 > 1
  996. -------------------------------------------------------------------------------
  997. looped SECTION tests
  998. b is currently: 1
  999. -------------------------------------------------------------------------------
  1000. Misc.tests.cpp:<line number>
  1001. ...............................................................................
  1002. Misc.tests.cpp:<line number>: FAILED:
  1003. CHECK( b > a )
  1004. with expansion:
  1005. 1 > 1
  1006. -------------------------------------------------------------------------------
  1007. looped tests
  1008. -------------------------------------------------------------------------------
  1009. Misc.tests.cpp:<line number>
  1010. ...............................................................................
  1011. Misc.tests.cpp:<line number>: FAILED:
  1012. CHECK( ( fib[i] % 2 ) == 0 )
  1013. with expansion:
  1014. 1 == 0
  1015. with message:
  1016. Testing if fib[0] (1) is even
  1017. Misc.tests.cpp:<line number>: FAILED:
  1018. CHECK( ( fib[i] % 2 ) == 0 )
  1019. with expansion:
  1020. 1 == 0
  1021. with message:
  1022. Testing if fib[1] (1) is even
  1023. Misc.tests.cpp:<line number>: FAILED:
  1024. CHECK( ( fib[i] % 2 ) == 0 )
  1025. with expansion:
  1026. 1 == 0
  1027. with message:
  1028. Testing if fib[3] (3) is even
  1029. Misc.tests.cpp:<line number>: FAILED:
  1030. CHECK( ( fib[i] % 2 ) == 0 )
  1031. with expansion:
  1032. 1 == 0
  1033. with message:
  1034. Testing if fib[4] (5) is even
  1035. Misc.tests.cpp:<line number>: FAILED:
  1036. CHECK( ( fib[i] % 2 ) == 0 )
  1037. with expansion:
  1038. 1 == 0
  1039. with message:
  1040. Testing if fib[6] (13) is even
  1041. Misc.tests.cpp:<line number>: FAILED:
  1042. CHECK( ( fib[i] % 2 ) == 0 )
  1043. with expansion:
  1044. 1 == 0
  1045. with message:
  1046. Testing if fib[7] (21) is even
  1047. -------------------------------------------------------------------------------
  1048. mix info, unscoped info and warning
  1049. -------------------------------------------------------------------------------
  1050. Message.tests.cpp:<line number>
  1051. ...............................................................................
  1052. Message.tests.cpp:<line number>: warning:
  1053. and warn may mix
  1054. Message.tests.cpp:<line number>: warning:
  1055. they are not cleared after warnings
  1056. -------------------------------------------------------------------------------
  1057. more nested SECTION tests
  1058. doesn't equal
  1059. equal
  1060. -------------------------------------------------------------------------------
  1061. Misc.tests.cpp:<line number>
  1062. ...............................................................................
  1063. Misc.tests.cpp:<line number>: FAILED:
  1064. REQUIRE( a == b )
  1065. with expansion:
  1066. 1 == 2
  1067. -------------------------------------------------------------------------------
  1068. not prints unscoped info from previous failures
  1069. -------------------------------------------------------------------------------
  1070. Message.tests.cpp:<line number>
  1071. ...............................................................................
  1072. Message.tests.cpp:<line number>: FAILED:
  1073. REQUIRE( false )
  1074. with message:
  1075. this SHOULD be seen
  1076. -------------------------------------------------------------------------------
  1077. prints unscoped info on failure
  1078. -------------------------------------------------------------------------------
  1079. Message.tests.cpp:<line number>
  1080. ...............................................................................
  1081. Message.tests.cpp:<line number>: FAILED:
  1082. REQUIRE( false )
  1083. with messages:
  1084. this SHOULD be seen
  1085. this SHOULD also be seen
  1086. -------------------------------------------------------------------------------
  1087. prints unscoped info only for the first assertion
  1088. -------------------------------------------------------------------------------
  1089. Message.tests.cpp:<line number>
  1090. ...............................................................................
  1091. Message.tests.cpp:<line number>: FAILED:
  1092. CHECK( false )
  1093. with message:
  1094. this SHOULD be seen only ONCE
  1095. -------------------------------------------------------------------------------
  1096. send a single char to INFO
  1097. -------------------------------------------------------------------------------
  1098. Misc.tests.cpp:<line number>
  1099. ...............................................................................
  1100. Misc.tests.cpp:<line number>: FAILED:
  1101. REQUIRE( false )
  1102. with message:
  1103. 3
  1104. -------------------------------------------------------------------------------
  1105. sends information to INFO
  1106. -------------------------------------------------------------------------------
  1107. Message.tests.cpp:<line number>
  1108. ...............................................................................
  1109. Message.tests.cpp:<line number>: FAILED:
  1110. REQUIRE( false )
  1111. with messages:
  1112. hi
  1113. i := 7
  1114. -------------------------------------------------------------------------------
  1115. stacks unscoped info in loops
  1116. -------------------------------------------------------------------------------
  1117. Message.tests.cpp:<line number>
  1118. ...............................................................................
  1119. Message.tests.cpp:<line number>: FAILED:
  1120. CHECK( false )
  1121. with messages:
  1122. Count 1 to 3...
  1123. 1
  1124. 2
  1125. 3
  1126. Message.tests.cpp:<line number>: FAILED:
  1127. CHECK( false )
  1128. with messages:
  1129. Count 4 to 6...
  1130. 4
  1131. 5
  1132. 6
  1133. -------------------------------------------------------------------------------
  1134. thrown std::strings are translated
  1135. -------------------------------------------------------------------------------
  1136. Exception.tests.cpp:<line number>
  1137. ...............................................................................
  1138. Exception.tests.cpp:<line number>: FAILED:
  1139. due to unexpected exception with message:
  1140. Why would you throw a std::string?
  1141. ===============================================================================
  1142. test cases: 394 | 318 passed | 69 failed | 7 failed as expected
  1143. assertions: 2284 | 2129 passed | 128 failed | 27 failed as expected