view run/sort_01.d @ 70:5f98d4a33d49

1) review of all test cases with unexpected results (except encoding and html/xml) 2) updated todo
author thomask
date Sat, 23 Oct 2004 22:47:47 +0000
parents 1ed6616fe905
children dc5c9509a605
line wrap: on
line source

// sort is documented as a general array property
module dstress.run.sort_01;

int main(){
	bit a[];
	a.length=3;
	a[0]=false;
	a[1]=true;
	a[2]=false;

	bit[] b=a.sort;

	assert(a.length==3);
	assert(!a[0]);
	assert(!a[1]);
	assert(a[2]);

	assert(b.length==3);
	assert(!b[0]);
	assert(!b[1]);
	assert(b[2]);

	return 0;
}