def container_deletion_successful_int():
	global tests
	map_ = libStlContainers.map_int_string()
	map_[1] = "A"
	map_.__delitem__(1)
	equals(map_.__len__(), 0)
	tests += 1
def container_clear_successful_int():
	global tests
	map_ = libStlContainers.map_int_string()
	map_[1] = "A"
	map_[10] = "B"
	map_.clear()
	equals(map_.__len__(), 0)
	tests += 1
def container_indexing_correct_int():
	global tests
	map_ = libStlContainers.map_int_string()
	map_[0] = "ABC"
	map_[3] = "CDE"
	equals(map_[0], "ABC")
	equals(map_[3], "CDE")
	tests += 1
def container_stress_append_and_delete_correct_int():
	global tests
	map_ = libStlContainers.map_int_string()
	i = 0
	while i < 10000:
		map_[i] = "A"
		i += 1
	
	equals(map_.__len__(), 10000)

	i = 10000
	while i >= 0:
		map_.__delitem__(i)
		i -= 1
	
	equals(map_.__len__(), 0)
	tests += 1
# Autor: Michal Andrzejewski
#
#
#
print 'Now running tests from Python_test.py..'

import libStlContainers

map_int_string = libStlContainers.map_int_string()
vector_int = libStlContainers.vector_int()
set_int = libStlContainers.set_int()

vector_double = libStlContainers.vector_double()
vector_string = libStlContainers.vector_string()
set_double = libStlContainers.set_double()
set_string = libStlContainers.set_string()

map_int_string[0] = "a"
map_int_string[1] = "b"
map_int_string[6] = "c"

if map_int_string[6] != "c":
    print "Error"

vector_int.append(0)
vector_int.append(0)
vector_int.append(1)
vector_int.append(2)
vector_int.append(3)

if vector_int.__len__() != 5:
def container_contains_correct_int():
	global tests
	map_ = libStlContainers.map_int_string()
	map_[1] = "A"
	equals(map_.__contains__(1), True)
	tests += 1
def container_creation_successful_int():
	global tests
	map_ = libStlContainers.map_int_string()
	equals(map_.__len__(), 0)
	tests += 1