Skip to content

Commit ea630be

Browse files
author
Julian LALU
committed
Update tests
1 parent 55ebf6d commit ea630be

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/hashmap/hashmap_indexed_operator.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ GTEST_TEST(hashmap, indexed_operator_trivial_same_type)
88
map[1] = 2;
99
hud::hashmap<const char *, const char *> map2;
1010
map2["key"] = "value";
11-
11+
const bool ok = map2.find("key")->value() = "value";
12+
map2["key"] = "value2";
13+
const bool ok2 = map2.find("key")->value() = "value2";
1214
return std::tuple {
1315
map.find(1)->value() = 2,
14-
map2.find("key")->value() = "value",
16+
ok,
17+
ok2
1518
};
1619
};
17-
}
20+
}

0 commit comments

Comments
 (0)