1. Matt Oswald
  2. xUnit++

Commits

Matt Oswald  committed 14ae912

added a test to verify Theories can accept inline lambdas as data providers

  • Participants
  • Parent commits 2b424de
  • Branches default

Comments (0)

Files changed (1)

File Tests/Theory.cpp

View file
  • Ignore whitespace
     // just existing is good enough
 }
 
+THEORY(TheoriesCanAcceptLambdas, (int, int),
+    ([]() -> std::vector<std::tuple<int, int>>
+    {
+        std::vector<std::tuple<int, int>> data;
+        data.push_back(std::make_tuple(0, 0));
+        return data;
+    })
+)
+{
+    // just existing is good enough
 }
+
+}