tests are receving as much argument as necessary, and print works with map

This commit is contained in:
hugogogo
2022-06-19 11:49:49 +02:00
parent 94745ca8a9
commit 50224fb432
8 changed files with 40 additions and 165 deletions

View File

@@ -9,17 +9,18 @@ TEST(tests_map_simple)
// title
TITLE(simple test)
std::map<char,int> first;
std::map<char, int>::iterator it;
typename std::map<T, int> first;
typename std::map<T, int>::iterator it;
first['a']=10;
first['b']=30;
first['c']=50;
first['d']=70;
first[VAL('a')]=10;
first[VAL('b')]=30;
first[VAL('c')]=50;
first[VAL('d')]=70;
for(it=first.begin(); it!=first.end(); ++it){
std::cout << it->first << " => " << it->second << '\n';
}
PRINT(first)
DELETE
}