diff tests/parser/string_1.d @ 106:89db676fbacb

Now able of understanding strings.
author Anders Johnsen <skabet@gmail.com>
date Thu, 22 May 2008 12:09:11 +0200
parents 7ff4bc2accf2
children c658172ca8a0
line wrap: on
line diff
--- a/tests/parser/string_1.d	Wed May 21 21:11:55 2008 +0200
+++ b/tests/parser/string_1.d	Thu May 22 12:09:11 2008 +0200
@@ -12,7 +12,6 @@
     char[5]     s5  = `hello`;
     char[15]    s6  = `c:\root\foo.exe`;
     char[4]     s7  = `ab\n`;
-    char[4]     s9  = `abn\`;
 
     char[5]     s10 = "hello";
     char[15]    s11 = "c:\\root\\foo.exe";
@@ -23,5 +22,13 @@
     char[1]     s14 = x"0A";
     char[6]     s15 = x"00 FBCD 32FD 0A";
 
+    /* And some custom ones */
+
+    char[8]     s16 = "\x61\u05D0\U000201A4";
+    char[2]     s17 = "\122\522";
+    char[6]     s15 = x"61 62 63 64
+                        65 66 67 68";
+
+
     return 0;
 }