Mercurial > projects > dstress
view run/s/sort_16_C.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 | 81222734adf3 |
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.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; }