comparison tests/parser/string_1.d @ 208:41ccd50e7cbc

Added missing tests
author Anders Johnsen <skabet@gmail.com>
date Tue, 12 Aug 2008 18:21:06 +0200
parents 7ff4bc2accf2
children
comparison
equal deleted inserted replaced
207:e0551773a005 208:41ccd50e7cbc
10 char[4] s4 = r"ab\n"; 10 char[4] s4 = r"ab\n";
11 11
12 char[5] s5 = `hello`; 12 char[5] s5 = `hello`;
13 char[15] s6 = `c:\root\foo.exe`; 13 char[15] s6 = `c:\root\foo.exe`;
14 char[4] s7 = `ab\n`; 14 char[4] s7 = `ab\n`;
15 char[4] s9 = `abn\`;
16 15
17 char[5] s10 = "hello"; 16 char[5] s10 = "hello";
18 char[15] s11 = "c:\\root\\foo.exe"; 17 char[15] s11 = "c:\\root\\foo.exe";
19 char[3] s12 = "ab\n"; 18 char[3] s12 = "ab\n";
20 char[3] s13 = "ab 19 char[3] s13 = "ab
21 "; 20 ";
22 21
23 char[1] s14 = x"0A"; 22 char[1] s14 = x"0A";
24 char[6] s15 = x"00 FBCD 32FD 0A"; 23 char[6] s15 = x"00 FBCD 32FD 0A";
25 24
25 /* And some custom ones */
26
27 char[7] s16 = "\x61\u05D0\U000201A4";
28 char[2] s17 = "\122\522";
29 char[8] s18 = x"61 62 63 64
30 65 66 67 68";
31
32 char[3] s19 = "\&reg;\&amp;";
33
34 char[3] s20 = "\&reg;\&amp;"c;
35 wchar[2] s21 = "\&reg;\&amp;"w;
36 dchar[2] s22 = "\&reg;\&amp;"d;
37
26 return 0; 38 return 0;
27 } 39 }