Mercurial > projects > ldc
diff tests/mini/complex5.d @ 587:23538d0f0d5b
Fixed a few mini tests issues.
Added 'darwin' and 'Posix' as versions user can't set.
Fixed #80 .
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Thu, 11 Sep 2008 21:10:15 +0200 |
parents | |
children | 4435f57956e7 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/mini/complex5.d Thu Sep 11 21:10:15 2008 +0200 @@ -0,0 +1,13 @@ +module complex5; + +void main() +{ + cfloat c = 3+2i; + foo(c); +} + +void foo(cfloat c) +{ + assert(c.re > 2.9999 && c.re < 3.0001); + assert(c.im > 1.9999i && c.im < 2.0001); +}