tests for map ope

This commit is contained in:
hugogogo
2022-06-19 12:33:18 +02:00
parent 50224fb432
commit 3074f7c93c
3 changed files with 49 additions and 35 deletions

View File

@@ -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';