# HG changeset patch # User Christian Kamm # Date 1243540808 -7200 # Node ID c6cc9cf12becbe48e75842a4be583bf787f059f6 # Parent 087dafe5262a39bd3d7a3a5dcdce63713fead73a Get rid of old phobos-based tests. diff -r 087dafe5262a -r c6cc9cf12bec tests/mini/phobos/bug57.d --- a/tests/mini/phobos/bug57.d Thu May 28 21:45:14 2009 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -import std.stdio; -class Foo {} -void func3() -{ - Foo[1] test=[new Foo]; - writefln(test); -} -void main() { - func3(); -} diff -r 087dafe5262a -r c6cc9cf12bec tests/mini/phobos/bug58.d --- a/tests/mini/phobos/bug58.d Thu May 28 21:45:14 2009 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -module bug58; -import std.stdio; -void main() -{ - int[16] arr = [1,16,2,15,3,14,4,13,5,12,6,11,7,10,8,9]; - writefln("arr = ",arr); - arr.sort; - writefln("arr.sort = ",arr); - assert(arr == [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]); -} diff -r 087dafe5262a -r c6cc9cf12bec tests/mini/phobos/bug66.d --- a/tests/mini/phobos/bug66.d Thu May 28 21:45:14 2009 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -module bug66; -import std.stdio; -class Scene { string name() { return "Scene"; } } -class Group : Scene { this () { } } -void main() { writefln((new Group).name); } diff -r 087dafe5262a -r c6cc9cf12bec tests/mini/phobos/bug71.d --- a/tests/mini/phobos/bug71.d Thu May 28 21:45:14 2009 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -module bug71; - -void main() -{ - static TypeInfo skipCI(TypeInfo valti) - { - while (1) - { - if (valti.classinfo.name.length == 18 && - valti.classinfo.name[9..18] == "Invariant") - valti = (cast(TypeInfo_Invariant)valti).next; - else if (valti.classinfo.name.length == 14 && - valti.classinfo.name[9..14] == "Const") - valti = (cast(TypeInfo_Const)valti).next; - else - break; - } - return valti; - } -} \ No newline at end of file diff -r 087dafe5262a -r c6cc9cf12bec tests/mini/phobos/bug79.d --- a/tests/mini/phobos/bug79.d Thu May 28 21:45:14 2009 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -module bug79; -import std.c.linux.linux; -void main() -{ - timespec ts; - ts.tv_nsec -= 1; - //auto t = ts.tv_nsec - 1; - //t -= 1; -} diff -r 087dafe5262a -r c6cc9cf12bec tests/mini/phobos/imports2.d --- a/tests/mini/phobos/imports2.d Thu May 28 21:45:14 2009 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -module imports2; -import std.stdio; - -void main() { - writefln("Hello world!"[]); -} diff -r 087dafe5262a -r c6cc9cf12bec tests/mini/phobos/stdiotest.d --- a/tests/mini/phobos/stdiotest.d Thu May 28 21:45:14 2009 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -module stdiotest; - -import std.stdio; - -T typed(T)(T x) -{ - return x; -} - -void main() -{ - /*char[] str = "hello"; - writefln(str); - - writefln("hello world");*/ - - char[] fmt = "%s"; - writefln(2.0f); - - /*{writefln(typed!(byte)(1));} - {writefln(typed!(short)(2));} - {writefln(typed!(int)(3));} - {writefln(typed!(long)(-4));} - {writefln(typed!(ulong)(5));} - {writefln("%f", typed!(float)(6));} - {writefln("%f", typed!(double)(7));} - {writefln("%f", typed!(real)(8));}*/ -} diff -r 087dafe5262a -r c6cc9cf12bec tests/mini/phobos/stdiotest2.d --- a/tests/mini/phobos/stdiotest2.d Thu May 28 21:45:14 2009 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -module stdiotest2; -import std.stdio; -void main() -{ - int[4] v = [1,2,3,4]; - { - writefln("%s", v); - { - int[] dv = v; - {writefln("%s", dv);} - } - } - - { - writefln(v); - { - //int[] dv = v; - //{writefln(dv);} - } - } - //writefln(1,2,3,4.56,"hello",v); -} diff -r 087dafe5262a -r c6cc9cf12bec tests/mini/phobos/strings2.d --- a/tests/mini/phobos/strings2.d Thu May 28 21:45:14 2009 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -module strings2; - -import std.string; -import std.stdio; - -void main() -{ - int i = 32; - auto str = format(i); - writefln(str); - - long l = 123123; - str = format(l); - writefln(str); -}