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/imports.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/imports.scala')
-rw-r--r-- | test/files/run/imports.scala | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/test/files/run/imports.scala b/test/files/run/imports.scala index 94b10f5b51..d976478d8b 100644 --- a/test/files/run/imports.scala +++ b/test/files/run/imports.scala @@ -3,18 +3,16 @@ //############################################################################ // $Id$ -import java.lang.System; // to avoid name clash with .NET's library - //############################################################################ object checker { def check(where: String, what: String, value: Any): Unit = { - System.out.print("In " + where + ", " + what + ".toString() returns "); - System.out.flush(); + Console.print("In " + where + ", " + what + ".toString() returns "); + Console.flush; val string: String = if (value == null) "null" else value.toString(); val test = if (string == where) "ok" else "KO"; - System.out.println(string + " -> " + test); - System.out.flush(); + Console.println(string + " -> " + test); + Console.flush; } } @@ -34,7 +32,7 @@ class C_ico() { check("C_ico", "v_ico ", v_ico); check("C_ico", "field ", field); check("C_ico", "method", method); - System.out.println(); + Console.println; } object o_ico { @@ -61,7 +59,7 @@ class C_ioc() { check("C_ioc", "v_ioc ", v_ioc); check("C_ioc", "field ", field); check("C_ioc", "method", method); - System.out.println(); + Console.println; } //############################################################################ @@ -82,7 +80,7 @@ class C_oic() { check("C_oic", "v_oic ", v_oic); check("C_oic", "field ", field); check("C_oic", "method", method); - System.out.println(); + Console.println; } //############################################################################ |