changeset 399:8f24d8aa2308

ifloat -> cfloat Stewart Gordon <smjg_1998@yahoo.com> 2005-04-07 news:d33938$212r$1@digitaldaemon.com
author thomask
date Thu, 07 Apr 2005 13:40:58 +0000
parents 0728e025bd4b
children fa85aed6d38a
files run/creal_09.d run/creal_21.d run/creal_22.d
diffstat 3 files changed, 26 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/run/creal_09.d	Wed Apr 06 21:53:12 2005 +0000
+++ b/run/creal_09.d	Thu Apr 07 13:40:58 2005 +0000
@@ -5,14 +5,8 @@
 module dstress.run.creal_09;
 
 int main(){
-	creal a = 1.2L;
-	assert(a.re == 1.2L);
-	assert(a.im == 0.0L);
-	a=9.8Li;
-	assert(a.re == 0.0L);
-	assert(a.im == 9.8L);
-	a=1.2L+9.8Li;
-	assert(a.re == 1.2L);
-	assert(a.im == 9.8L);
+	a=1.3L+9.7Li;
+	assert(a.re == 1.3L);
+	assert(a.im == 9.7L);
 	return 0;
 }
--- a/run/creal_21.d	Wed Apr 06 21:53:12 2005 +0000
+++ b/run/creal_21.d	Thu Apr 07 13:40:58 2005 +0000
@@ -2,11 +2,15 @@
 // $Date$
 // $Author$
 
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
+// @date@	2005-04-06
+// @uri@	news:k8udi2-qbi.ln1@lnews.kuehne.cn
+
 module dstress.run.creal_21;
 
 int main(){
-	creal a = 22.0L;
-	creal b = 22.0L + 0.0Li;
-	assert(a==b);
+	creal c = 2.7L;
+	assert(c.re==2.7L);
+	assert(c.im==0.0L);
 	return 0;
 }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/creal_22.d	Thu Apr 07 13:40:58 2005 +0000
@@ -0,0 +1,16 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @auhtor@	Stewart Gordon <smjg_1998@yahoo.com>
+// @date@	2005-04-07
+// @uri@	news:d33938$212r$1@digitaldaemon.com
+
+module dstress.run.creal_22;
+ 
+int main(){
+	creal c = 1.3Li;
+	assert(c.re==0.0L);
+	assert(c.im==1.3L);
+	return 0;
+}