def container_deletion_successful_string():
	global tests
	set_string = libStlContainers.set_string()
	set_string.append("A")
	set_string.__delitem__("A")
	equals(set_string.__len__(), 0)
	tests += 1
def container_clear_successful_string():
	global tests
	set_string = libStlContainers.set_string()
	set_string.append("A")
	set_string.append("B")
	set_string.append("C")
	set_string.clear()
	equals(set_string.__len__(), 0)
	tests += 1
def container_stress_append_and_delete_correct_string():
	global tests
	set_string = libStlContainers.set_string()
	i = 0
	while i < 10000:
		set_string.append("A")
		i += 1
	
	equals(set_string.__len__(), 1)

	i = 10000
	while i > 0:
		set_string.__delitem__("A")
		i -= 1
	
	equals(set_string.__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_append_successful_string():
	global tests
	set_string = libStlContainers.set_string()
	set_string.append("A")
	equals(set_string.__len__(), 1)
	tests += 1
def container_creation_successful_string():
	global tests
	set_string = libStlContainers.set_string()
	equals(set_string.__len__(), 0)
	tests += 1
def container_contains_correct_string():
	global tests
	set_string = libStlContainers.set_string()
	set_string.append("A")
	equals(set_string.__contains__("A"), True)
	tests += 1