view run/r/reverse_08_A.d @ 1320:daef239f37cf

sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
author thomask
date Sun, 31 Dec 2006 19:59:08 +0000
parents 851d63db41cb
children 5695ef959886
line wrap: on
line source

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

// @author@	Derek Parnell <ddparnell@bigpond.com>
// @date@	2006-10-02
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=391
// @desc@	[Issue 391] New: .sort and .reverse break utf8 encoding

module dstress.run.r.reverse_08_A;

int main(){
	char[] a = "a\U00000081b\U00002000c\U00010000";
	char[] b = a.reverse;

	if(b != "\U00010000c\U00002000b\U00000081a"){
		assert(0);
	}

	if(b.reverse != a){
		assert(0);
	}

	return 0;
}