diff test/moduleinfo2.d @ 273:25fa34e899e9 trunk

[svn r294] Fixed some more of the old tests.
author lindquist
date Wed, 18 Jun 2008 23:29:14 +0200
parents d9d5d59873d8
children
line wrap: on
line diff
--- a/test/moduleinfo2.d	Wed Jun 18 22:27:02 2008 +0200
+++ b/test/moduleinfo2.d	Wed Jun 18 23:29:14 2008 +0200
@@ -4,11 +4,9 @@
 
 void main()
 {
-    ModuleInfo[] mi = ModuleInfo.modules();
-    printf("listing %u modules:\n");
-    foreach(m; mi)
+    printf("listing modules:\n");
+    foreach(m; ModuleInfo)
     {
-        printf("  %s\n", m.name.length, m.name.ptr);
+        printf("  %.*s\n", m.name.length, m.name.ptr);
     }
-    assert(mi.length > 50);
 }