def container_deletion_successful_double():
	global tests
	set_double = libStlContainers.set_double()
	set_double.append(1.1)
	set_double.__delitem__(1.1)
	equals(set_double.__len__(), 0)
	tests += 1
def container_clear_successful_double():
	global tests
	set_double = libStlContainers.set_double()
	set_double.append(1.1)
	set_double.append(2.2)
	set_double.append(3.3)
	set_double.clear()
	equals(set_double.__len__(), 0)
	tests += 1
def container_stress_append_and_delete_correct_double():
	global tests
	set_double = libStlContainers.set_double()
	i = 0
	while i < 10000:
		set_double.append(i + 1.1)
		i += 1
	
	equals(set_double.__len__(), 10000)

	i = 10000
	while i >= 0:
		set_double.__delitem__(i + 1.1)
		i -= 1
	
	equals(set_double.__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_double():
	global tests
	set_double = libStlContainers.set_double()
	set_double.append(1.1)
	equals(set_double.__len__(), 1)
	tests += 1
def container_creation_successful_double():
	global tests
	set_double = libStlContainers.set_double()
	equals(set_double.__len__(), 0)
	tests += 1
def container_contains_correct_double():
	global tests
	set_double = libStlContainers.set_double()
	set_double.append(1.1)
	equals(set_double.__contains__(1.1), True)
	tests += 1