summaryrefslogtreecommitdiffstats
path: root/src/usr/testcore/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/testcore/lib')
-rw-r--r--src/usr/testcore/lib/stltest.H6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usr/testcore/lib/stltest.H b/src/usr/testcore/lib/stltest.H
index b9a16d927..2c4efcb14 100644
--- a/src/usr/testcore/lib/stltest.H
+++ b/src/usr/testcore/lib/stltest.H
@@ -85,6 +85,12 @@ class STLTest : public CxxTest::TestSuite
mymap[v5] = v5;
mymap[v3] = v3;
+ if (v5.value() != mymap[v5].value()) // map::operator[] value
+ {
+ TS_FAIL("map::operator[] returned wrong value %d",
+ mymap[v5].value());
+ }
+
// test map::insert(v), map::insert(h,v), lower_bound()
mymap.insert(std::map<V,V>::value_type(v2,v2)); //map::insert(v);
OpenPOWER on IntegriCloud