c++ 單元測試框架Catch2

官方教程有三種方式 方式1 如下 第一步:獲取 Catch2,下載 catch.hpp 第二步:引入頭文件 #include "catch.hpp" 第三步:寫測試代碼 #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #include "catch.h
相關文章
相關標籤/搜索