Changeset 2879 for trunk/test/split.cc
- Timestamp:
- Nov 16, 2012, 2:47:56 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/split.cc
r2370 r2879 2 2 3 3 /* 4 Copyright (C) 2010 Peter Johansson4 Copyright (C) 2010, 2012 Peter Johansson 5 5 6 6 This file is part of the yat library, http://dev.thep.lu.se/yat … … 29 29 using namespace theplu::yat; 30 30 31 template<typename T> 31 32 void test_split(const std::vector<std::string>& correct, const std::string& str, 32 chardelim, test::Suite& suite);33 T delim, test::Suite& suite); 33 34 34 35 int main(int argc, char* argv[]) … … 53 54 test_split(correct, "banan", 'n', suite); 54 55 56 correct[0]="split"; 57 correct[1]="me"; 58 correct[2]="please"; 59 test_split(correct, "split,me;please", ";,", suite); 60 61 55 62 return suite.return_value(); 56 63 } 57 64 65 template<typename T> 58 66 void test_split(const std::vector<std::string>& correct, const std::string& str, 59 chardelim, test::Suite& suite)67 T delim, test::Suite& suite) 60 68 { 61 69 suite.out() << "split(vec, \"" << str << "\", '" << delim << "')\n";
Note: See TracChangeset
for help on using the changeset viewer.