From ff21a4fbafeb04afbd4dade2a217a4de2ab034f9 Mon Sep 17 00:00:00 2001 From: mihaylov Date: Tue, 27 Sep 2005 08:24:43 +0000 Subject: Made platform independant --- test/files/run/overloads.scala | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'test/files/run/overloads.scala') diff --git a/test/files/run/overloads.scala b/test/files/run/overloads.scala index a94f379888..31664b2ea6 100644 --- a/test/files/run/overloads.scala +++ b/test/files/run/overloads.scala @@ -3,8 +3,6 @@ //############################################################################ // $Id$ -import java.lang.System; // to avoid name clash with .NET's library - //############################################################################ object Ops { @@ -38,13 +36,13 @@ object overloads { def check(what: String, actual: Any, expected: Any): Unit = { val success: Boolean = actual == expected; - System.out.print(if (success) "ok" else "KO"); + Console.print(if (success) "ok" else "KO"); var value: String = if (actual == null) "null" else actual.toString(); if (value == "\u0000") value = "\\u0000"; - System.out.print(": " + what + " = " + value); - if (!success) System.out.print(" != " + expected); - System.out.println(); - System.out.flush(); + Console.print(": " + what + " = " + value); + if (!success) Console.print(" != " + expected); + Console.println; + Console.flush; } def - = 0; -- cgit v1.2.3