diff options
author | mihaylov <mihaylov@epfl.ch> | 2005-09-27 08:24:43 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2005-09-27 08:24:43 +0000 |
commit | ff21a4fbafeb04afbd4dade2a217a4de2ab034f9 (patch) | |
tree | 6ed4066269260129cb3085deded9374f8b1f6b9d /test/files/run/bridges.scala | |
parent | 5f6f5f723b884cd41d1233340590e2bf95d90588 (diff) | |
download | scala-ff21a4fbafeb04afbd4dade2a217a4de2ab034f9.tar.gz scala-ff21a4fbafeb04afbd4dade2a217a4de2ab034f9.tar.bz2 scala-ff21a4fbafeb04afbd4dade2a217a4de2ab034f9.zip |
Made platform independant
Diffstat (limited to 'test/files/run/bridges.scala')
-rw-r--r-- | test/files/run/bridges.scala | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/test/files/run/bridges.scala b/test/files/run/bridges.scala index ce76ae33b5..5d61608d36 100644 --- a/test/files/run/bridges.scala +++ b/test/files/run/bridges.scala @@ -3,8 +3,6 @@ //############################################################################ // $Id$ -import java.lang.System; // to avoid name clash with .NET's library - class A; class B; class C; @@ -28,7 +26,7 @@ object Help { } def print: Unit = { var i = 0; - while (i < max) { if (i > 0) System.out.print(", "); System.out.print(vars(i)); i = i + 1; } + while (i < max) { if (i > 0) Console.print(", "); Console.print(vars(i)); i = i + 1; } } def foo = { vars(next) = "foo"; next = next + 1; } def bar = { vars(next) = "bar"; next = next + 1; } @@ -3585,15 +3583,15 @@ object Test { Help.init; test; if (!Help.check(count, value)) { - System.out.print(name + " failed: "); + Console.print(name + " failed: "); Help.print; - System.out.println(); + Console.println; errors = errors + 1; } } catch { case exception => { - System.out.print(name + " raised exception " + exception); - System.out.println(); + Console.print(name + " raised exception " + exception); + Console.println; errors = errors + 1; } } @@ -7118,8 +7116,8 @@ object Test { // */test("S_TZIfwFooXIfwBarYIf", new S_TZIfwFooXIfwBarYIf[D], 4, "mix"); if (errors > 0) { - System.out.println(); - System.out.println(errors + " error" + (if (errors > 1) "s" else "")); + Console.println; + Console.println(errors + " error" + (if (errors > 1) "s" else "")); } } } |