Loading tests/testSequenceA.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,15 @@ bool failExample(const char* testName, const string& msg, string expected, strin << ", got " << got << "\n"; return false; } // helper function: consistent warning printing bool warnExample(const char* testName, const std::string& msg, const std::string& expected, const std::string& got) { std::cerr << "[" << testName << " WARNING] " << msg << ": expected " << expected << ", got " << got << "\n"; return false; } template <size_t N, typename = void> struct has_sequence : std::false_type {}; Loading tests/testSequenceB.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,16 @@ bool failExample(const char* testName, const string& msg, string expected, strin return false; } // helper function: consistent warning printing bool warnExample(const char* testName, const std::string& msg, const std::string& expected, const std::string& got) { std::cerr << "[" << testName << " WARNING] " << msg << ": expected " << expected << ", got " << got << "\n"; return false; } bool test_0() { const char* T = "sequence 3b"; Loading Loading
tests/testSequenceA.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,15 @@ bool failExample(const char* testName, const string& msg, string expected, strin << ", got " << got << "\n"; return false; } // helper function: consistent warning printing bool warnExample(const char* testName, const std::string& msg, const std::string& expected, const std::string& got) { std::cerr << "[" << testName << " WARNING] " << msg << ": expected " << expected << ", got " << got << "\n"; return false; } template <size_t N, typename = void> struct has_sequence : std::false_type {}; Loading
tests/testSequenceB.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,16 @@ bool failExample(const char* testName, const string& msg, string expected, strin return false; } // helper function: consistent warning printing bool warnExample(const char* testName, const std::string& msg, const std::string& expected, const std::string& got) { std::cerr << "[" << testName << " WARNING] " << msg << ": expected " << expected << ", got " << got << "\n"; return false; } bool test_0() { const char* T = "sequence 3b"; Loading