view run/s/sort_16_C.d @ 1319:81222734adf3

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

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

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

module dstress.run.s.sort_16_C;

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

	if(a.sort != "abc\U00000081\U00002000\U00010000"){
		assert(0);
	}

	char[] b = "\U00010000a\U00002000c\U00000081b";

	if(b.sort != "abc\U00000081\U00002000\U00010000"){
		assert(0);
	}

	return 0;
}