def container_deletion_successful_string(): global tests map_ = libStlContainers.map_string_double() map_["A"] = 1.1 map_.__delitem__("A") equals(map_.__len__(), 0) tests += 1
def container_clear_successful_string(): global tests map_ = libStlContainers.map_string_double() map_["A"] = 1.1 map_["B"] = 2.2 map_.clear() equals(map_.__len__(), 0) tests += 1
def container_indexing_correct_string(): global tests map_ = libStlContainers.map_string_double() map_["A"] = 1.1 map_["C"] = 3.3 equals(map_["A"], 1.1) equals(map_["C"], 3.3) tests += 1
def container_contains_correct_string(): global tests map_ = libStlContainers.map_string_double() map_["A"] = 1.1 equals(map_.__contains__("A"), True) tests += 1
def container_creation_successful_string(): global tests map_ = libStlContainers.map_string_double() equals(map_.__len__(), 0) tests += 1