Commit b062daa5 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

added warns

parent 759b269c
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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 {};
+10 −0
Original line number Diff line number Diff line
@@ -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";