changeset 27:044e39a3bac6

added comment tests
author thomask
date Sat, 09 Oct 2004 14:03:40 +0000
parents 17cbb8970edc
children 17dbcb50e9a5
files nocompile/comment_07.d nocompile/comment_08.d run/comment_01.d run/comment_02.d run/comment_03.d run/comment_04.d run/comment_05.d run/comment_06.d run/comment_09.d run/comment_10.d run/comment_11.d run/comment_12.d run/comment_13.d todo.txt
diffstat 14 files changed, 85 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/comment_07.d	Sat Oct 09 14:03:40 2004 +0000
@@ -0,0 +1,5 @@
+int main(){
+	/* 
+	// */ static assert(0);
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/comment_08.d	Sat Oct 09 14:03:40 2004 +0000
@@ -0,0 +1,5 @@
+int main(){
+	/+ 
+	// +/ static assert(0);
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/comment_01.d	Sat Oct 09 14:03:40 2004 +0000
@@ -0,0 +1,6 @@
+int main(){
+	/+ /+ +/
+	static assert(0); 
+	+/
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/comment_02.d	Sat Oct 09 14:03:40 2004 +0000
@@ -0,0 +1,4 @@
+int main(){
+	// static assert(0);
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/comment_03.d	Sat Oct 09 14:03:40 2004 +0000
@@ -0,0 +1,4 @@
+int main(){
+	/* static assert(0); */
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/comment_04.d	Sat Oct 09 14:03:40 2004 +0000
@@ -0,0 +1,4 @@
+int main(){
+	/+ static assert(0); +/
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/comment_05.d	Sat Oct 09 14:03:40 2004 +0000
@@ -0,0 +1,4 @@
+int main(){
+	// /+ +/ static assert(0);
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/comment_06.d	Sat Oct 09 14:03:40 2004 +0000
@@ -0,0 +1,4 @@
+int main(){
+	// /* */ static assert(0);
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/comment_09.d	Sat Oct 09 14:03:40 2004 +0000
@@ -0,0 +1,6 @@
+int main(){
+	/+ /+ +/
+	static assert(0); 
+	+/
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/comment_10.d	Sat Oct 09 14:03:40 2004 +0000
@@ -0,0 +1,10 @@
+int main(){
+	char[] a;
+	a = /+ "+/ "+/ 3";
+	assert(a.length==4);
+	assert(a[0]=='+');
+	assert(a[1]=='/');
+	assert(a[2]==' ');
+	assert(a[3]=='3');
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/comment_11.d	Sat Oct 09 14:03:40 2004 +0000
@@ -0,0 +1,9 @@
+int main(){
+	char[] string="/**/";
+	assert(string.length==4);
+	assert(string[0]=='/');
+	assert(string[1]=='*');
+	assert(string[2]=='*');
+	assert(string[3]=='/');
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/comment_12.d	Sat Oct 09 14:03:40 2004 +0000
@@ -0,0 +1,9 @@
+int main(){
+	char[] string="/++/";
+	assert(string.length==4);
+	assert(string[0]=='/');
+	assert(string[1]=='+');
+	assert(string[2]=='+');
+	assert(string[3]=='/');
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/comment_13.d	Sat Oct 09 14:03:40 2004 +0000
@@ -0,0 +1,11 @@
+int main(){
+	char[] string="
+//
+";
+	assert(string.length==4);
+	assert(string[0]=='\n');
+	assert(string[1]=='/');
+	assert(string[2]=='/');
+	assert(string[3]=='\n');
+	return 0;
+}
--- a/todo.txt	Sat Oct 09 12:01:24 2004 +0000
+++ b/todo.txt	Sat Oct 09 14:03:40 2004 +0000
@@ -23,6 +23,10 @@
 
 * custom operator implementation
 
+* numeric literals
+
+* numeric literals
+
 * Embedded _ in numeric literals
 	18_446_744_073_709_551_615 / 18446744073709551615
 	
@@ -32,6 +36,3 @@
 	static this(){
 		... initialization code ...
 	}
-
-* comments
-	/* */ // /+ +/