Mercurial > projects > dstress
diff run/escape_unicode16_02.d @ 1560:36bedfa079e6
D1 -> D2 : 2/N
author | thomask |
---|---|
date | Sun, 19 Aug 2007 19:15:01 +0000 |
parents | f87ba6507260 |
children |
line wrap: on
line diff
--- a/run/escape_unicode16_02.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/escape_unicode16_02.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,10 +5,10 @@ module dstress.run.escape_unicode16_02; int main(){ - char[] string="\u02AF1"; - assert(string.length==3); - assert(string[0]==0xCA); - assert(string[1]==0xAF); - assert(string[2]=='1'); + string x="\u02AF1"; + assert(x.length==3); + assert(x[0]==0xCA); + assert(x[1]==0xAF); + assert(x[2]=='1'); return 0; }