1 // madronalib: a C++ framework for DSP applications. 2 // Copyright (c) 2020 Madrona Labs LLC. http://www.madronalabs.com 3 // Distributed under the MIT license: http://madrona-labs.mit-license.org/ 4 5 // a unit test made using the Catch framework in catch.hpp / tests.cpp. 6 7 #ifdef _WINDOWS 8 9 #define CATCH_CONFIG_RUNNER 10 #include "tests.h" 11 12 #include "catch.hpp" 13 14 // Windows hack to pause console output so we can read it. 15 #include <conio.h> main(int argc,char ** argv)16int main(int argc, char** argv) 17 { 18 int result = Catch::Session().run(argc, argv); 19 system("pause"); 20 return result; 21 } 22 23 #else 24 25 #define CATCH_CONFIG_MAIN 26 #include "catch.hpp" 27 #include "tests.h" 28 29 #endif 30