console.std.approved.txt 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385
  1. Filters: ~[!nonportable]~[!benchmark]~[approvals]
  2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3. <exe-name> is a <version> host application.
  4. Run with -? for options
  5. Randomness seeded to: 1
  6. -------------------------------------------------------------------------------
  7. #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 Catch
  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(), Contains("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(), Contains("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(), (Contains("string") || Contains("different")) && Contains("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(), !Contains("substring") )
  565. with expansion:
  566. "this string contains 'abc' as a substring" not contains: "substring"
  567. -------------------------------------------------------------------------------
  568. Mismatching exception messages failing the test
  569. -------------------------------------------------------------------------------
  570. Exception.tests.cpp:<line number>
  571. ...............................................................................
  572. Exception.tests.cpp:<line number>: FAILED:
  573. REQUIRE_THROWS_WITH( thisThrows(), "should fail" )
  574. with expansion:
  575. "expected exception" equals: "should fail"
  576. -------------------------------------------------------------------------------
  577. Nice descriptive name
  578. -------------------------------------------------------------------------------
  579. Misc.tests.cpp:<line number>
  580. ...............................................................................
  581. Misc.tests.cpp:<line number>: warning:
  582. This one ran
  583. -------------------------------------------------------------------------------
  584. Non-std exceptions can be translated
  585. -------------------------------------------------------------------------------
  586. Exception.tests.cpp:<line number>
  587. ...............................................................................
  588. Exception.tests.cpp:<line number>: FAILED:
  589. due to unexpected exception with message:
  590. custom exception
  591. -------------------------------------------------------------------------------
  592. Ordering comparison checks that should fail
  593. -------------------------------------------------------------------------------
  594. Condition.tests.cpp:<line number>
  595. ...............................................................................
  596. Condition.tests.cpp:<line number>: FAILED:
  597. CHECK( data.int_seven > 7 )
  598. with expansion:
  599. 7 > 7
  600. Condition.tests.cpp:<line number>: FAILED:
  601. CHECK( data.int_seven < 7 )
  602. with expansion:
  603. 7 < 7
  604. Condition.tests.cpp:<line number>: FAILED:
  605. CHECK( data.int_seven > 8 )
  606. with expansion:
  607. 7 > 8
  608. Condition.tests.cpp:<line number>: FAILED:
  609. CHECK( data.int_seven < 6 )
  610. with expansion:
  611. 7 < 6
  612. Condition.tests.cpp:<line number>: FAILED:
  613. CHECK( data.int_seven < 0 )
  614. with expansion:
  615. 7 < 0
  616. Condition.tests.cpp:<line number>: FAILED:
  617. CHECK( data.int_seven < -1 )
  618. with expansion:
  619. 7 < -1
  620. Condition.tests.cpp:<line number>: FAILED:
  621. CHECK( data.int_seven >= 8 )
  622. with expansion:
  623. 7 >= 8
  624. Condition.tests.cpp:<line number>: FAILED:
  625. CHECK( data.int_seven <= 6 )
  626. with expansion:
  627. 7 <= 6
  628. Condition.tests.cpp:<line number>: FAILED:
  629. CHECK( data.float_nine_point_one < 9 )
  630. with expansion:
  631. 9.1f < 9
  632. Condition.tests.cpp:<line number>: FAILED:
  633. CHECK( data.float_nine_point_one > 10 )
  634. with expansion:
  635. 9.1f > 10
  636. Condition.tests.cpp:<line number>: FAILED:
  637. CHECK( data.float_nine_point_one > 9.2 )
  638. with expansion:
  639. 9.1f > 9.2
  640. Condition.tests.cpp:<line number>: FAILED:
  641. CHECK( data.str_hello > "hello" )
  642. with expansion:
  643. "hello" > "hello"
  644. Condition.tests.cpp:<line number>: FAILED:
  645. CHECK( data.str_hello < "hello" )
  646. with expansion:
  647. "hello" < "hello"
  648. Condition.tests.cpp:<line number>: FAILED:
  649. CHECK( data.str_hello > "hellp" )
  650. with expansion:
  651. "hello" > "hellp"
  652. Condition.tests.cpp:<line number>: FAILED:
  653. CHECK( data.str_hello > "z" )
  654. with expansion:
  655. "hello" > "z"
  656. Condition.tests.cpp:<line number>: FAILED:
  657. CHECK( data.str_hello < "hellm" )
  658. with expansion:
  659. "hello" < "hellm"
  660. Condition.tests.cpp:<line number>: FAILED:
  661. CHECK( data.str_hello < "a" )
  662. with expansion:
  663. "hello" < "a"
  664. Condition.tests.cpp:<line number>: FAILED:
  665. CHECK( data.str_hello >= "z" )
  666. with expansion:
  667. "hello" >= "z"
  668. Condition.tests.cpp:<line number>: FAILED:
  669. CHECK( data.str_hello <= "a" )
  670. with expansion:
  671. "hello" <= "a"
  672. -------------------------------------------------------------------------------
  673. Output from all sections is reported
  674. one
  675. -------------------------------------------------------------------------------
  676. Message.tests.cpp:<line number>
  677. ...............................................................................
  678. Message.tests.cpp:<line number>: FAILED:
  679. explicitly with message:
  680. Message from section one
  681. -------------------------------------------------------------------------------
  682. Output from all sections is reported
  683. two
  684. -------------------------------------------------------------------------------
  685. Message.tests.cpp:<line number>
  686. ...............................................................................
  687. Message.tests.cpp:<line number>: FAILED:
  688. explicitly with message:
  689. Message from section two
  690. -------------------------------------------------------------------------------
  691. Reconstruction should be based on stringification: #914
  692. -------------------------------------------------------------------------------
  693. Decomposition.tests.cpp:<line number>
  694. ...............................................................................
  695. Decomposition.tests.cpp:<line number>: FAILED:
  696. CHECK( truthy(false) )
  697. with expansion:
  698. Hey, its truthy!
  699. -------------------------------------------------------------------------------
  700. Regex string matcher
  701. -------------------------------------------------------------------------------
  702. Matchers.tests.cpp:<line number>
  703. ...............................................................................
  704. Matchers.tests.cpp:<line number>: FAILED:
  705. CHECK_THAT( testStringForMatching(), Matches("this STRING contains 'abc' as a substring") )
  706. with expansion:
  707. "this string contains 'abc' as a substring" matches "this STRING contains
  708. 'abc' as a substring" case sensitively
  709. Matchers.tests.cpp:<line number>: FAILED:
  710. CHECK_THAT( testStringForMatching(), Matches("contains 'abc' as a substring") )
  711. with expansion:
  712. "this string contains 'abc' as a substring" matches "contains 'abc' as a
  713. substring" case sensitively
  714. Matchers.tests.cpp:<line number>: FAILED:
  715. CHECK_THAT( testStringForMatching(), Matches("this string contains 'abc' as a") )
  716. with expansion:
  717. "this string contains 'abc' as a substring" matches "this string contains
  718. 'abc' as a" case sensitively
  719. A string sent directly to stdout
  720. A string sent directly to stderr
  721. A string sent to stderr via clog
  722. Message from section one
  723. Message from section two
  724. -------------------------------------------------------------------------------
  725. StartsWith string matcher
  726. -------------------------------------------------------------------------------
  727. Matchers.tests.cpp:<line number>
  728. ...............................................................................
  729. Matchers.tests.cpp:<line number>: FAILED:
  730. CHECK_THAT( testStringForMatching(), StartsWith("This String") )
  731. with expansion:
  732. "this string contains 'abc' as a substring" starts with: "This String"
  733. Matchers.tests.cpp:<line number>: FAILED:
  734. CHECK_THAT( testStringForMatching(), StartsWith("string", Catch::CaseSensitive::No) )
  735. with expansion:
  736. "this string contains 'abc' as a substring" starts with: "string" (case
  737. insensitive)
  738. -------------------------------------------------------------------------------
  739. Tabs and newlines show in output
  740. -------------------------------------------------------------------------------
  741. Misc.tests.cpp:<line number>
  742. ...............................................................................
  743. Misc.tests.cpp:<line number>: FAILED:
  744. CHECK( s1 == s2 )
  745. with expansion:
  746. "if ($b == 10) {
  747. $a = 20;
  748. }"
  749. ==
  750. "if ($b == 10) {
  751. $a = 20;
  752. }
  753. "
  754. -------------------------------------------------------------------------------
  755. Thrown string literals are translated
  756. -------------------------------------------------------------------------------
  757. Exception.tests.cpp:<line number>
  758. ...............................................................................
  759. Exception.tests.cpp:<line number>: FAILED:
  760. due to unexpected exception with message:
  761. For some reason someone is throwing a string literal!
  762. -------------------------------------------------------------------------------
  763. Unexpected exceptions can be translated
  764. -------------------------------------------------------------------------------
  765. Exception.tests.cpp:<line number>
  766. ...............................................................................
  767. Exception.tests.cpp:<line number>: FAILED:
  768. due to unexpected exception with message:
  769. 3.14
  770. -------------------------------------------------------------------------------
  771. Vector Approx matcher -- failing
  772. Empty and non empty vectors are not approx equal
  773. -------------------------------------------------------------------------------
  774. Matchers.tests.cpp:<line number>
  775. ...............................................................................
  776. Matchers.tests.cpp:<line number>: FAILED:
  777. CHECK_THAT( empty, Approx(t1) )
  778. with expansion:
  779. { } is approx: { 1.0, 2.0 }
  780. -------------------------------------------------------------------------------
  781. Vector Approx matcher -- failing
  782. Just different vectors
  783. -------------------------------------------------------------------------------
  784. Matchers.tests.cpp:<line number>
  785. ...............................................................................
  786. Matchers.tests.cpp:<line number>: FAILED:
  787. CHECK_THAT( v1, Approx(v2) )
  788. with expansion:
  789. { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 }
  790. -------------------------------------------------------------------------------
  791. Vector matchers that fail
  792. Contains (element)
  793. -------------------------------------------------------------------------------
  794. Matchers.tests.cpp:<line number>
  795. ...............................................................................
  796. Matchers.tests.cpp:<line number>: FAILED:
  797. CHECK_THAT( v, VectorContains(-1) )
  798. with expansion:
  799. { 1, 2, 3 } Contains: -1
  800. Matchers.tests.cpp:<line number>: FAILED:
  801. CHECK_THAT( empty, VectorContains(1) )
  802. with expansion:
  803. { } Contains: 1
  804. -------------------------------------------------------------------------------
  805. Vector matchers that fail
  806. Contains (vector)
  807. -------------------------------------------------------------------------------
  808. Matchers.tests.cpp:<line number>
  809. ...............................................................................
  810. Matchers.tests.cpp:<line number>: FAILED:
  811. CHECK_THAT( empty, Contains(v) )
  812. with expansion:
  813. { } Contains: { 1, 2, 3 }
  814. Matchers.tests.cpp:<line number>: FAILED:
  815. CHECK_THAT( v, Contains(v2) )
  816. with expansion:
  817. { 1, 2, 3 } Contains: { 1, 2, 4 }
  818. -------------------------------------------------------------------------------
  819. Vector matchers that fail
  820. Equals
  821. -------------------------------------------------------------------------------
  822. Matchers.tests.cpp:<line number>
  823. ...............................................................................
  824. Matchers.tests.cpp:<line number>: FAILED:
  825. CHECK_THAT( v, Equals(v2) )
  826. with expansion:
  827. { 1, 2, 3 } Equals: { 1, 2 }
  828. Matchers.tests.cpp:<line number>: FAILED:
  829. CHECK_THAT( v2, Equals(v) )
  830. with expansion:
  831. { 1, 2 } Equals: { 1, 2, 3 }
  832. Matchers.tests.cpp:<line number>: FAILED:
  833. CHECK_THAT( empty, Equals(v) )
  834. with expansion:
  835. { } Equals: { 1, 2, 3 }
  836. Matchers.tests.cpp:<line number>: FAILED:
  837. CHECK_THAT( v, Equals(empty) )
  838. with expansion:
  839. { 1, 2, 3 } Equals: { }
  840. -------------------------------------------------------------------------------
  841. Vector matchers that fail
  842. UnorderedEquals
  843. -------------------------------------------------------------------------------
  844. Matchers.tests.cpp:<line number>
  845. ...............................................................................
  846. Matchers.tests.cpp:<line number>: FAILED:
  847. CHECK_THAT( v, UnorderedEquals(empty) )
  848. with expansion:
  849. { 1, 2, 3 } UnorderedEquals: { }
  850. Matchers.tests.cpp:<line number>: FAILED:
  851. CHECK_THAT( empty, UnorderedEquals(v) )
  852. with expansion:
  853. { } UnorderedEquals: { 1, 2, 3 }
  854. Matchers.tests.cpp:<line number>: FAILED:
  855. CHECK_THAT( permuted, UnorderedEquals(v) )
  856. with expansion:
  857. { 1, 3 } UnorderedEquals: { 1, 2, 3 }
  858. Matchers.tests.cpp:<line number>: FAILED:
  859. CHECK_THAT( permuted, UnorderedEquals(v) )
  860. with expansion:
  861. { 3, 1 } UnorderedEquals: { 1, 2, 3 }
  862. -------------------------------------------------------------------------------
  863. When unchecked exceptions are thrown directly they are always failures
  864. -------------------------------------------------------------------------------
  865. Exception.tests.cpp:<line number>
  866. ...............................................................................
  867. Exception.tests.cpp:<line number>: FAILED:
  868. due to unexpected exception with message:
  869. unexpected exception
  870. -------------------------------------------------------------------------------
  871. When unchecked exceptions are thrown during a CHECK the test should continue
  872. -------------------------------------------------------------------------------
  873. Exception.tests.cpp:<line number>
  874. ...............................................................................
  875. Exception.tests.cpp:<line number>: FAILED:
  876. CHECK( thisThrows() == 0 )
  877. due to unexpected exception with message:
  878. expected exception
  879. -------------------------------------------------------------------------------
  880. When unchecked exceptions are thrown during a REQUIRE the test should abort
  881. fail
  882. -------------------------------------------------------------------------------
  883. Exception.tests.cpp:<line number>
  884. ...............................................................................
  885. Exception.tests.cpp:<line number>: FAILED:
  886. REQUIRE( thisThrows() == 0 )
  887. due to unexpected exception with message:
  888. expected exception
  889. -------------------------------------------------------------------------------
  890. When unchecked exceptions are thrown from functions they are always failures
  891. -------------------------------------------------------------------------------
  892. Exception.tests.cpp:<line number>
  893. ...............................................................................
  894. Exception.tests.cpp:<line number>: FAILED:
  895. CHECK( thisThrows() == 0 )
  896. due to unexpected exception with message:
  897. expected exception
  898. -------------------------------------------------------------------------------
  899. When unchecked exceptions are thrown from sections they are always failures
  900. section name
  901. -------------------------------------------------------------------------------
  902. Exception.tests.cpp:<line number>
  903. ...............................................................................
  904. Exception.tests.cpp:<line number>: FAILED:
  905. due to unexpected exception with message:
  906. unexpected exception
  907. -------------------------------------------------------------------------------
  908. Where the LHS is not a simple value
  909. -------------------------------------------------------------------------------
  910. Tricky.tests.cpp:<line number>
  911. ...............................................................................
  912. Tricky.tests.cpp:<line number>: warning:
  913. Uncomment the code in this test to check that it gives a sensible compiler
  914. error
  915. -------------------------------------------------------------------------------
  916. Where there is more to the expression after the RHS
  917. -------------------------------------------------------------------------------
  918. Tricky.tests.cpp:<line number>
  919. ...............................................................................
  920. Tricky.tests.cpp:<line number>: warning:
  921. Uncomment the code in this test to check that it gives a sensible compiler
  922. error
  923. -------------------------------------------------------------------------------
  924. checkedElse, failing
  925. -------------------------------------------------------------------------------
  926. Misc.tests.cpp:<line number>
  927. ...............................................................................
  928. Misc.tests.cpp:<line number>: FAILED:
  929. CHECKED_ELSE( flag )
  930. with expansion:
  931. false
  932. Misc.tests.cpp:<line number>: FAILED:
  933. REQUIRE( testCheckedElse( false ) )
  934. with expansion:
  935. false
  936. -------------------------------------------------------------------------------
  937. checkedIf, failing
  938. -------------------------------------------------------------------------------
  939. Misc.tests.cpp:<line number>
  940. ...............................................................................
  941. Misc.tests.cpp:<line number>: FAILED:
  942. CHECKED_IF( flag )
  943. with expansion:
  944. false
  945. Misc.tests.cpp:<line number>: FAILED:
  946. REQUIRE( testCheckedIf( false ) )
  947. with expansion:
  948. false
  949. loose text artifact
  950. -------------------------------------------------------------------------------
  951. just failure
  952. -------------------------------------------------------------------------------
  953. Message.tests.cpp:<line number>
  954. ...............................................................................
  955. Message.tests.cpp:<line number>: FAILED:
  956. explicitly with message:
  957. Previous info should not be seen
  958. -------------------------------------------------------------------------------
  959. just failure after unscoped info
  960. -------------------------------------------------------------------------------
  961. Message.tests.cpp:<line number>
  962. ...............................................................................
  963. Message.tests.cpp:<line number>: FAILED:
  964. explicitly with message:
  965. previous unscoped info SHOULD not be seen
  966. -------------------------------------------------------------------------------
  967. looped SECTION tests
  968. b is currently: 0
  969. -------------------------------------------------------------------------------
  970. Misc.tests.cpp:<line number>
  971. ...............................................................................
  972. Misc.tests.cpp:<line number>: FAILED:
  973. CHECK( b > a )
  974. with expansion:
  975. 0 > 1
  976. -------------------------------------------------------------------------------
  977. looped SECTION tests
  978. b is currently: 1
  979. -------------------------------------------------------------------------------
  980. Misc.tests.cpp:<line number>
  981. ...............................................................................
  982. Misc.tests.cpp:<line number>: FAILED:
  983. CHECK( b > a )
  984. with expansion:
  985. 1 > 1
  986. -------------------------------------------------------------------------------
  987. looped tests
  988. -------------------------------------------------------------------------------
  989. Misc.tests.cpp:<line number>
  990. ...............................................................................
  991. Misc.tests.cpp:<line number>: FAILED:
  992. CHECK( ( fib[i] % 2 ) == 0 )
  993. with expansion:
  994. 1 == 0
  995. with message:
  996. Testing if fib[0] (1) is even
  997. Misc.tests.cpp:<line number>: FAILED:
  998. CHECK( ( fib[i] % 2 ) == 0 )
  999. with expansion:
  1000. 1 == 0
  1001. with message:
  1002. Testing if fib[1] (1) is even
  1003. Misc.tests.cpp:<line number>: FAILED:
  1004. CHECK( ( fib[i] % 2 ) == 0 )
  1005. with expansion:
  1006. 1 == 0
  1007. with message:
  1008. Testing if fib[3] (3) is even
  1009. Misc.tests.cpp:<line number>: FAILED:
  1010. CHECK( ( fib[i] % 2 ) == 0 )
  1011. with expansion:
  1012. 1 == 0
  1013. with message:
  1014. Testing if fib[4] (5) is even
  1015. Misc.tests.cpp:<line number>: FAILED:
  1016. CHECK( ( fib[i] % 2 ) == 0 )
  1017. with expansion:
  1018. 1 == 0
  1019. with message:
  1020. Testing if fib[6] (13) is even
  1021. Misc.tests.cpp:<line number>: FAILED:
  1022. CHECK( ( fib[i] % 2 ) == 0 )
  1023. with expansion:
  1024. 1 == 0
  1025. with message:
  1026. Testing if fib[7] (21) is even
  1027. -------------------------------------------------------------------------------
  1028. mix info, unscoped info and warning
  1029. -------------------------------------------------------------------------------
  1030. Message.tests.cpp:<line number>
  1031. ...............................................................................
  1032. Message.tests.cpp:<line number>: warning:
  1033. and warn may mix
  1034. Message.tests.cpp:<line number>: warning:
  1035. they are not cleared after warnings
  1036. -------------------------------------------------------------------------------
  1037. more nested SECTION tests
  1038. doesn't equal
  1039. equal
  1040. -------------------------------------------------------------------------------
  1041. Misc.tests.cpp:<line number>
  1042. ...............................................................................
  1043. Misc.tests.cpp:<line number>: FAILED:
  1044. REQUIRE( a == b )
  1045. with expansion:
  1046. 1 == 2
  1047. -------------------------------------------------------------------------------
  1048. not prints unscoped info from previous failures
  1049. -------------------------------------------------------------------------------
  1050. Message.tests.cpp:<line number>
  1051. ...............................................................................
  1052. Message.tests.cpp:<line number>: FAILED:
  1053. REQUIRE( false )
  1054. with message:
  1055. this SHOULD be seen
  1056. -------------------------------------------------------------------------------
  1057. prints unscoped info on failure
  1058. -------------------------------------------------------------------------------
  1059. Message.tests.cpp:<line number>
  1060. ...............................................................................
  1061. Message.tests.cpp:<line number>: FAILED:
  1062. REQUIRE( false )
  1063. with messages:
  1064. this SHOULD be seen
  1065. this SHOULD also be seen
  1066. -------------------------------------------------------------------------------
  1067. prints unscoped info only for the first assertion
  1068. -------------------------------------------------------------------------------
  1069. Message.tests.cpp:<line number>
  1070. ...............................................................................
  1071. Message.tests.cpp:<line number>: FAILED:
  1072. CHECK( false )
  1073. with message:
  1074. this SHOULD be seen only ONCE
  1075. -------------------------------------------------------------------------------
  1076. send a single char to INFO
  1077. -------------------------------------------------------------------------------
  1078. Misc.tests.cpp:<line number>
  1079. ...............................................................................
  1080. Misc.tests.cpp:<line number>: FAILED:
  1081. REQUIRE( false )
  1082. with message:
  1083. 3
  1084. -------------------------------------------------------------------------------
  1085. sends information to INFO
  1086. -------------------------------------------------------------------------------
  1087. Message.tests.cpp:<line number>
  1088. ...............................................................................
  1089. Message.tests.cpp:<line number>: FAILED:
  1090. REQUIRE( false )
  1091. with messages:
  1092. hi
  1093. i := 7
  1094. -------------------------------------------------------------------------------
  1095. stacks unscoped info in loops
  1096. -------------------------------------------------------------------------------
  1097. Message.tests.cpp:<line number>
  1098. ...............................................................................
  1099. Message.tests.cpp:<line number>: FAILED:
  1100. CHECK( false )
  1101. with messages:
  1102. Count 1 to 3...
  1103. 1
  1104. 2
  1105. 3
  1106. Message.tests.cpp:<line number>: FAILED:
  1107. CHECK( false )
  1108. with messages:
  1109. Count 4 to 6...
  1110. 4
  1111. 5
  1112. 6
  1113. -------------------------------------------------------------------------------
  1114. string literals of different sizes can be compared
  1115. -------------------------------------------------------------------------------
  1116. Tricky.tests.cpp:<line number>
  1117. ...............................................................................
  1118. Tricky.tests.cpp:<line number>: FAILED:
  1119. REQUIRE( std::string( "first" ) == "second" )
  1120. with expansion:
  1121. "first" == "second"
  1122. -------------------------------------------------------------------------------
  1123. thrown std::strings are translated
  1124. -------------------------------------------------------------------------------
  1125. Exception.tests.cpp:<line number>
  1126. ...............................................................................
  1127. Exception.tests.cpp:<line number>: FAILED:
  1128. due to unexpected exception with message:
  1129. Why would you throw a std::string?
  1130. ===============================================================================
  1131. test cases: 322 | 248 passed | 70 failed | 4 failed as expected
  1132. assertions: 1759 | 1607 passed | 131 failed | 21 failed as expected