Created
June 29, 2017 01:22
-
-
Save osyo-manga/abbf0c311b8075d27bc37e8539021dc2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define CATCH_CONFIG_MAIN | |
#include "./catch.hpp" | |
#include <vector> | |
#include <list> | |
template<typename List> | |
void func(){ | |
List v; | |
v.push_back(1); | |
v.push_back(2); | |
v.push_back(3); | |
REQUIRE((v == List{1, 2, 3})); | |
REQUIRE((v == List{1, 2, 5})); | |
} | |
TEST_CASE("test", "std::vector"){ | |
func<std::vector<int>>(); | |
func<std::list<int>>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment