tests for map ope
This commit is contained in:
@@ -4,18 +4,18 @@
|
||||
|
||||
#include "tests_utils.hpp"
|
||||
|
||||
TEST(tests_map_simple)
|
||||
TEST_M(tests_map_simple)
|
||||
{
|
||||
// title
|
||||
TITLE(simple test)
|
||||
|
||||
typename std::map<T, int> first;
|
||||
typename std::map<T, int>::iterator it;
|
||||
typename std::map<T, U> first;
|
||||
typename std::map<T, U>::iterator it;
|
||||
|
||||
first[VAL('a')]=10;
|
||||
first[VAL('b')]=30;
|
||||
first[VAL('c')]=50;
|
||||
first[VAL('d')]=70;
|
||||
first[VALT('a')]=VALU(10);
|
||||
first[VALT('b')]=VALU(30);
|
||||
first[VALT('c')]=VALU(50);
|
||||
first[VALT('d')]=VALU(70);
|
||||
|
||||
for(it=first.begin(); it!=first.end(); ++it){
|
||||
std::cout << it->first << " => " << it->second << '\n';
|
||||
|
||||
Reference in New Issue
Block a user