Searched refs:mymap (Results 1 – 3 of 3) sorted by relevance
/external/flatbuffers/tests/ |
D | JavaTest.java | 691 FlexBuffers.Map mymap = m.get("mymap").asMap(); in testFlexBuffersTest() local 692 …TestEq(mymap.keys().get(0), m.keys().get(0)); // These should be equal by pointer equality, since … in testFlexBuffersTest() 693 TestEq(mymap.keys().get(0).toString(), "bar"); in testFlexBuffersTest() 694 TestEq(mymap.values().get(0).asString(), vec.get(1).asString()); in testFlexBuffersTest() 695 TestEq(mymap.get("int").asInt(), -120); in testFlexBuffersTest() 696 TestEq((float)mymap.get("float").asFloat(), -123.0f); in testFlexBuffersTest() 697 TestEq(Arrays.equals(mymap.get("blob").asBlob().getBytes(), new byte[]{ 65, 67 }), true); in testFlexBuffersTest() 698 TestEq(mymap.get("blob").asBlob().toString(), "AC"); in testFlexBuffersTest() 699 TestEq(mymap.get("blob").toString(), "\"AC\""); in testFlexBuffersTest()
|
D | test.cpp | 2850 auto mymap = map["mymap"].AsMap(); in FlexBuffersTest() local 2852 TEST_EQ(mymap.Keys()[0].AsKey(), map.Keys()[4].AsKey()); in FlexBuffersTest() 2853 TEST_EQ(mymap.Values()[0].AsString().c_str(), vec[1].AsString().c_str()); in FlexBuffersTest()
|
/external/python/cpython3/Lib/test/ |
D | test_collections.py | 1810 mymap = UserDict() 1811 mymap['red'] = 5 1812 self.assertIsInstance(mymap.keys(), Set) 1813 self.assertIsInstance(mymap.keys(), KeysView) 1814 self.assertIsInstance(mymap.items(), Set) 1815 self.assertIsInstance(mymap.items(), ItemsView) 1817 mymap = UserDict() 1818 mymap['red'] = 5 1819 z = mymap.keys() | {'orange'} 1822 mymap['blue'] = 7 # Shouldn't affect 'z' [all …]
|