view run/r/remove_01.d @ 1597:8b9d4d2f925a

Fix typos in complex tests. See D bug 614.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 16:53:58 +0200
parents 15b52e26c8f4
children
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

module dstress.run.r.remove_01;

class Int{
	this(int i){
		this.i = i;
	}
	int i;
}

int main(){
	Int[char[]] array;
	Int a = new Int(1);
	array["eins"]=a;

	Int b = new Int(2);
	array["zwei"]=b;

	Int c = new Int(3);
	array["drei"]=c;

	assert(("zwei" in array) !is null);

	array.remove("zwei");
	
	assert(("zwei" in array) is null);
	assert(b !is null);

	return 0;
}