[{"data":1,"prerenderedAt":197},["ShallowReactive",2],{"doc-list-of-examples":3},{"id":4,"title":5,"body":6,"description":185,"extension":189,"meta":190,"navigation":191,"path":192,"seo":193,"slug":53,"source":194,"stem":195,"__hash__":196},"docs\u002Fdocs\u002Flist-of-examples.md","List of examples",{"type":7,"value":8,"toc":184},"minimark",[9,50,54,59,181],[10,11,12],"blockquote",{},[13,14,15,19,20,24,25,28,29,32,33,36,37,36,40,43,44,49],"p",{},[16,17,18],"strong",{},"Catch3 compatibility reference:"," This page describes the test-writing API Catch3 shares with Catch2: the macros, such as ",[21,22,23],"code",{},"TEST_CASE"," and ",[21,26,27],{},"REQUIRE",", and the ",[21,30,31],{},"Catch::"," namespace keep Catch2's names. Headers and build names are Catch3's own (",[21,34,35],{},"\u003CProgmasoft\u002FCatch3\u002FTestMacros.hpp>",", ",[21,38,39],{},"find_package(Catch3)",[21,41,42],{},"Catch3::Catch3WithMain","). See ",[45,46,48],"a",{"href":47},"\u002Fdocs\u002Fprogmasoft-catch3\u002F","Catch3 additions"," for Progmasoft APIs.",[51,52,5],"h1",{"id":53},"list-of-examples",[55,56,58],"h2",{"id":57},"already-available","Already available",[60,61,62,72,84,92,100,107,114,122,130,138,145,153,160,167,174],"ul",{},[63,64,65,66],"li",{},"Test Case: ",[45,67,71],{"href":68,"rel":69},"https:\u002F\u002Fgithub.com\u002FProgmasoft\u002Fcatch3\u002Fblob\u002Fdevel\u002Fexamples\u002F010-TestCase.cpp",[70],"nofollow","Single-file",[63,73,65,74,36,79],{},[45,75,78],{"href":76,"rel":77},"https:\u002F\u002Fgithub.com\u002FProgmasoft\u002Fcatch3\u002Fblob\u002Fdevel\u002Fexamples\u002F020-TestCase-1.cpp",[70],"Multiple-file 1",[45,80,83],{"href":81,"rel":82},"https:\u002F\u002Fgithub.com\u002FProgmasoft\u002Fcatch3\u002Fblob\u002Fdevel\u002Fexamples\u002F020-TestCase-2.cpp",[70],"2",[63,85,86,87],{},"Assertion: ",[45,88,91],{"href":89,"rel":90},"https:\u002F\u002Fgithub.com\u002FProgmasoft\u002Fcatch3\u002Fblob\u002Fdevel\u002Fexamples\u002F030-Asn-Require-Check.cpp",[70],"REQUIRE, CHECK",[63,93,94,95],{},"Fixture: ",[45,96,99],{"href":97,"rel":98},"https:\u002F\u002Fgithub.com\u002FProgmasoft\u002Fcatch3\u002Fblob\u002Fdevel\u002Fexamples\u002F100-Fix-Section.cpp",[70],"Sections",[63,101,94,102],{},[45,103,106],{"href":104,"rel":105},"https:\u002F\u002Fgithub.com\u002FProgmasoft\u002Fcatch3\u002Fblob\u002Fdevel\u002Fexamples\u002F110-Fix-ClassFixture.cpp",[70],"Class-based fixtures",[63,108,94,109],{},[45,110,113],{"href":111,"rel":112},"https:\u002F\u002Fgithub.com\u002FProgmasoft\u002Fcatch3\u002Fblob\u002Fdevel\u002Fexamples\u002F111-Fix-PersistentFixture.cpp",[70],"Persistent fixtures",[63,115,116,117],{},"BDD: ",[45,118,121],{"href":119,"rel":120},"https:\u002F\u002Fgithub.com\u002FProgmasoft\u002Fcatch3\u002Fblob\u002Fdevel\u002Fexamples\u002F120-Bdd-ScenarioGivenWhenThen.cpp",[70],"SCENARIO, GIVEN, WHEN, THEN",[63,123,124,125],{},"Listener: ",[45,126,129],{"href":127,"rel":128},"https:\u002F\u002Fgithub.com\u002FProgmasoft\u002Fcatch3\u002Fblob\u002Fdevel\u002Fexamples\u002F210-Evt-EventListeners.cpp",[70],"Listeners",[63,131,132,133],{},"Configuration: ",[45,134,137],{"href":135,"rel":136},"https:\u002F\u002Fgithub.com\u002FProgmasoft\u002Fcatch3\u002Fblob\u002Fdevel\u002Fexamples\u002F231-Cfg-OutputStreams.cpp",[70],"Provide your own output streams",[63,139,132,140],{},[45,141,144],{"href":142,"rel":143},"https:\u002F\u002Fgithub.com\u002FProgmasoft\u002Fcatch3\u002Fblob\u002Fdevel\u002Fexamples\u002F232-Cfg-CustomMain.cpp",[70],"Provide your own main",[63,146,147,148],{},"Generators: ",[45,149,152],{"href":150,"rel":151},"https:\u002F\u002Fgithub.com\u002FProgmasoft\u002Fcatch3\u002Fblob\u002Fdevel\u002Fexamples\u002F300-Gen-OwnGenerator.cpp",[70],"Create your own generator",[63,154,147,155],{},[45,156,159],{"href":157,"rel":158},"https:\u002F\u002Fgithub.com\u002FProgmasoft\u002Fcatch3\u002Fblob\u002Fdevel\u002Fexamples\u002F301-Gen-MapTypeConversion.cpp",[70],"Use map to convert types in GENERATE expression",[63,161,147,162],{},[45,163,166],{"href":164,"rel":165},"https:\u002F\u002Fgithub.com\u002FProgmasoft\u002Fcatch3\u002Fblob\u002Fdevel\u002Fexamples\u002F302-Gen-Table.cpp",[70],"Run test with a table of input values",[63,168,147,169],{},[45,170,173],{"href":171,"rel":172},"https:\u002F\u002Fgithub.com\u002FProgmasoft\u002Fcatch3\u002Fblob\u002Fdevel\u002Fexamples\u002F310-Gen-VariablesInGenerators.cpp",[70],"Use variables in generator expressions",[63,175,147,176],{},[45,177,180],{"href":178,"rel":179},"https:\u002F\u002Fgithub.com\u002FProgmasoft\u002Fcatch3\u002Fblob\u002Fdevel\u002Fexamples\u002F311-Gen-CustomCapture.cpp",[70],"Use custom variable capture in generator expressions",[13,182,183],{},"The checked-in examples above are the maintained examples. Additional assertions,\nreporters, and configuration features are documented in the reference pages;\nthis catalog does not link to source files that do not exist.",{"title":185,"searchDepth":186,"depth":186,"links":187},"",2,[188],{"id":57,"depth":186,"text":58},"md",{},true,"\u002Fdocs\u002Flist-of-examples",{"title":5,"description":185},"docs\u002Flist-of-examples.md","docs\u002Flist-of-examples","tyY4-klUXEOtYWWNRyBbY7vH6OLpyHYJaO3hWZMA_l4",1794961592231]